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

后端 未结 1 1533
无人共我
无人共我 2021-01-16 13:37

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 i

相关标签:
1条回答
  • 2021-01-16 14:15

    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

    0 讨论(0)
提交回复
热议问题