• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Diskarbitration 10.3 and 10.4
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Diskarbitration 10.3 and 10.4


  • Subject: Re: Diskarbitration 10.3 and 10.4
  • From: Terry Lambert <email@hidden>
  • Date: Thu, 12 Jun 2008 19:27:07 -0700

On Jun 12, 2008, at 8:42 AM, Andy Green wrote:
I have an app of which I'd like to deploy a single binary that will work
on 10.3 and later.


It links against the public DiskArbitration framework, so at the moment
I can't run it on 10.3.


I can, instead, use the 10.3.9/PrivateFrameworks/DiskArb.framework, and
the ppc version builds and runs, however there's obviously no i386 build
in there.


Is it possible to have a single build, which runs the public framework
on 10.4 and the private one on 10.3?

And if so, what's the incantation?

It's a dylib, so rather than linking it directly, you could provide a wrapper that opened on or the other and looked up the symbols and Did The Right Thing. You could also use install_name_tool at install time to select between them.


The first option will be better if there are any header changes that make the libraries binary incompatible with each other, but is more work. If there are no header changes, you can do it in the installer by selecting which one to have it look for at install time, rather than trying to do it at runtime.

-- Terry
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Diskarbitration 10.3 and 10.4 (From: "Andy Green" <email@hidden>)

  • Prev by Date: Re: Create Process As User
  • Next by Date: Re: Create Process As User
  • Previous by thread: Diskarbitration 10.3 and 10.4
  • Next by thread: Re: Diskarbitration 10.3 and 10.4
  • Index(es):
    • Date
    • Thread