Re: Universal binary with x86_64 for 10.6 only
Re: Universal binary with x86_64 for 10.6 only
- Subject: Re: Universal binary with x86_64 for 10.6 only
- From: BJ Homer <email@hidden>
- Date: Thu, 21 Jan 2010 11:47:37 -0700
I've tried all this stuff before and it doesn't work. I believe those keys are only consulted by Launch Services so it doesn't come into play if you run it from the commandline. I don't think there's any way to get the OS to pick the right binary for a commandline program in this case. I'd love to be proven wrong on this.
Is this program one that the user will run directly or is it being run from another program? If the latter, then you could check the OS version and then use the 'arch' command to run your commandline program. If the user needs to run it on the commandline directly, you can try doing a wrapper script which in turn runs 'arch'.
It's actually something launched by launchd, so essentially being run directly on the command line. Launchd has no way of launching an architecture conditionally (that I'm aware of), so it would probably have to be a wrapper script or else modifying the launchd plist directly. Which is all more invasive than I'd like, but may be the only solution.
If anyone knows of a better option, I'd love to hear it.
-BJ
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden