Testing 32 bit iOS app on iPhone 5s or 64 bit simulator

后端 未结 2 803
花落未央
花落未央 2021-02-03 14:46

I have an app that uses a third party library. There is a bug in the 64 bit version of the library so I had to revert to the 32 bit version of the framework. I would like to t

相关标签:
2条回答
  • 2021-02-03 15:05

    In Build Settings, change Architectures to $(ARCHS_STANDARD_32_BIT).

    Then choose iPhone Retina (4-inch 64-bit) for the simulator.

    It will build a 32 bit version of your app but run it on the 64 bit simulator. Note that the simulator is running on OS X and OS X doesn't support 32 bit anymore, so we have always been running 32 bit apps on 64 bit hardware in the simulator. It works fine, as long as you don't need some types to be 64 bit (eg: CGFloat is accurate to significantly more decimal places when complied for 64 bit).

    0 讨论(0)
  • 2021-02-03 15:11

    I have met the similar situation but the opposite side.I use Fastlane to get app screen capture, Fastlane tool only can run on simulators,but I found every time:

    Undefined symbol(s) for architecture i386
    

    This is because there is a .a library only support x86_64,So I tried to solve the problem according to the above answer.I changed Architectures to $(ARCHS_STANDARD_64_BIT).

    So I can run the project on the newer simulators with only 64 bit architecture!

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