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: Paul Kim <email@hidden>
- Date: Thu, 21 Jan 2010 13:44:04 -0500
On Jan 21, 2010, at 1:30 PM, BJ Homer wrote:
I've embedded this plist
<?xml version="1.0" encoding="UTF-8"?>
<plist version="1.0"> <dict> <key>LSMinimumSystemVersionByArchitecture</key> <dict>
<key>x86_64</key> <string>10.7.0</string> </dict>
</dict> </plist>
into the binary. Since I'm on Snow Leopard, I'm not running 10.7 (obviously), I'd expect to launch the i386 version if this worked from the command line. It still launches x86_64.
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'.
paul
|
_______________________________________________
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