• 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: Determine Application Architecture
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Determine Application Architecture


  • Subject: Re: Determine Application Architecture
  • From: Sherm Pendley <email@hidden>
  • Date: Mon, 24 Jul 2006 13:56:07 -0400

On Jul 24, 2006, at 1:50 PM, Thom McGrath wrote:

I don't mean for the running application, I mean for an application whose path I specify. I remember reading about a command-line tool that can do this, but cannot find it anywhere. So how do I go about detecting which chip architectures an application will run on?

In case I'm being too ambiguous, I mean Intel/PPC/Universal.

The "lipo" tool is most often used to create Universal Binaries, but it also has an -info option:


Sherm-Pendleys-Computer:~ sherm$ lipo Applications/Aquamacs\ Emacs.app/Contents/MacOS/Aquamacs\ Emacs -info
Architectures in the fat file: Applications/Aquamacs Emacs.app/ Contents/MacOS/Aquamacs Emacs are: i386 ppc


The "file" command-line tool will also do this. For instance:

Sherm-Pendleys-Computer:~ sherm$ file Applications/Aquamacs\ Emacs.app/Contents/MacOS/Aquamacs\ Emacs
Applications/Aquamacs Emacs.app/Contents/MacOS/Aquamacs Emacs: Mach-O fat file with 2 architectures
Applications/Aquamacs Emacs.app/Contents/MacOS/Aquamacs Emacs (for architecture i386): Mach-O executable i386
Applications/Aquamacs Emacs.app/Contents/MacOS/Aquamacs Emacs (for architecture ppc): Mach-O executable ppc


sherm--

Web Hosting by West Virginians, for West Virginians: http://wv-www.net
Cocoa programming in Perl: http://camelbones.sourceforge.net


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Determine Application Architecture (From: Thom McGrath <email@hidden>)

  • Prev by Date: Re: Determine Application Architecture
  • Next by Date: Re: Determine Application Architecture
  • Previous by thread: Re: Determine Application Architecture
  • Next by thread: Re: Determine Application Architecture
  • Index(es):
    • Date
    • Thread