Is there a way to programmatically determine / determine whether the binary (separately from my application) i386, x86_x64 or both have been compiled? I guess there is a way (obviously), although I really have no idea how to do this. Any suggestions or recommendations would be appreciated, thanks.
EDIT: I found an example on the Apple developer website, although it is written in C and configured to use it more as a command line tool. If anyone knew how to implement it in my objective-c code, that would be extremely useful.
source share