tags:

views:

78

answers:

2

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
Hi Kenny,I tried this, it says /Applications/Address Book.app: directory I tried file /Applications/Address\ Book.app
Dhanaraj
Hi Kenny,I should have tried file /Applications/Address\ Book.app/Contents/MacOS/Calico /a.app/Contents/MacOS/Address\ BookIt worked.Thanks.
Dhanaraj
+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