• 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: Universal binary with x86_64 for 10.6 only
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<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

  • Follow-Ups:
    • Re: Universal binary with x86_64 for 10.6 only
      • From: BJ Homer <email@hidden>
References: 
 >Universal binary with x86_64 for 10.6 only (From: BJ Homer <email@hidden>)
 >Re: Universal binary with x86_64 for 10.6 only (From: Steve Christensen <email@hidden>)
 >Re: Universal binary with x86_64 for 10.6 only (From: Clark Cox <email@hidden>)
 >Re: Universal binary with x86_64 for 10.6 only (From: BJ Homer <email@hidden>)

  • Prev by Date: Re: Universal binary with x86_64 for 10.6 only
  • Next by Date: RE: Universal binary with x86_64 for 10.6 only
  • Previous by thread: Re: Universal binary with x86_64 for 10.6 only
  • Next by thread: Re: Universal binary with x86_64 for 10.6 only
  • Index(es):
    • Date
    • Thread