• 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: 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

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>)
 >Re: Universal binary with x86_64 for 10.6 only (From: Paul Kim <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: [moderator] Re: Moderated post on self going out of scope
  • Index(es):
    • Date
    • Thread