How to detect if a Cocoa application is 32 bit or 64bit ?
+6
A:
In Terminal, type
file ApplicationBinary
If it says Mach-O 64-bit executable x86_64
, then it is 64-bit, if it says Mach-O executable i386
then it is 32-bit, etc.
KennyTM
2010-02-03 12:31:12
Hi Kenny,I tried this, it says /Applications/Address Book.app: directory I tried file /Applications/Address\ Book.app
Dhanaraj
2010-02-03 12:54:52
Hi Kenny,I should have tried file /Applications/Address\ Book.app/Contents/MacOS/Calico /a.app/Contents/MacOS/Address\ BookIt worked.Thanks.
Dhanaraj
2010-02-03 12:58:28
+1
A:
The /Applications/Address Book.app is a directory. To find the actual executable, you need to cd to /Applications/Address Book.app/Contents/MacOS and run the file command on the Address Book executable in that directory (eg. file "Address Book").
Steve
2010-02-03 13:00:08