FROM : Sherm Pendley
DATE : Mon Jul 24 19:56:07 2006
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
DATE : Mon Jul 24 19:56:07 2006
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
| Related mails | Author | Date |
|---|---|---|
| Thom McGrath | Jul 24, 19:50 | |
| I. Savant | Jul 24, 19:53 | |
| Sherm Pendley | Jul 24, 19:56 | |
| I. Savant | Jul 24, 19:56 | |
| Dan Treiman | Jul 24, 20:01 | |
| Sherm Pendley | Jul 24, 20:03 | |
| I. Savant | Jul 24, 20:22 | |
| Gregory Weston | Jul 25, 02:27 |






Cocoa mail archive

