Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Determine if an executable (or library) is 32 or 64 bit

Is it possible to get information about any binary on OS X to determine if it's a 32 bit or 64 bit binary?

I played with the 'otool' command but can't find this kind of information.

like image 796
jideel Avatar asked Dec 21 '09 18:12

jideel


1 Answers

Use the file command instead of otool. It will list all the architectures in the binary. On Intel Macs i386 is 32 bit and x86_64 is 64 bit.

like image 179
Grant Lammi Avatar answered Sep 16 '22 16:09

Grant Lammi