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 ?
我正在尝试构建一个64位的iOS应用程序。我怎么知道它是32位还是64位的?
Does Mach-O-View can help ? if Yes, where to look for it ? Also is there any command line for it. ?
Mach-O-View有用吗?如果是,去哪里找呢?它也有任何命令行。吗?
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
我已经回答过这个问题了,但是它并不能帮助我知道它是64位的还是64位的。https://developer.apple.com/library/ios/documentation/General/Conceptual/CocoaTouch64BitGuide/ConvertingYourAppto64-Bit/ConvertingYourAppto64-Bit.html / / apple_ref / doc / uid / TP40013501-CH3-SW1
1 个解决方案
#1
1
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 :( ).
它适用于OS X,但我没有对iOS进行测试(我没有iPhone5S:())。
Edit:
编辑:
By the way, it works fine on iPhone Simulator.
顺便说一下,它在iPhone模拟器上运行良好。
#1
1
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 :( ).
它适用于OS X,但我没有对iOS进行测试(我没有iPhone5S:())。
Edit:
编辑:
By the way, it works fine on iPhone Simulator.
顺便说一下,它在iPhone模拟器上运行良好。