Nilesh Agrawal
Nilesh Agrawal

Reputation: 3042

How to know if the iOS App you build is for 64 bit.

I am trying to build an iOS Application for 64 bit. How do I know weather it is build for 32 bit or 64 bit ?

Does Mach-O-View can help ? if Yes, where to look for it ? Also is there any command line for it. ?

I reffered this but it does not help me to know weather this it is built or not for 64 bit. https://developer.apple.com/library/ios/documentation/General/Conceptual/CocoaTouch64BitGuide/ConvertingYourAppto64-Bit/ConvertingYourAppto64-Bit.html#//apple_ref/doc/uid/TP40013501-CH3-SW1

Upvotes: 1

Views: 423

Answers (1)

Tarek Hallak
Tarek Hallak

Reputation: 18470

Try this:

#ifdef __LP64__
// NSLog(@"64");
#else
// NSLog(@"32");
#endif

It works for OS X, but I didn't test it for iOS (I don't have an iPhone5S :( ).

Edit:

By the way, it works fine on iPhone Simulator.

enter image description here

Upvotes: 1

Related Questions