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

后端 未结 2 802
花落未央
花落未央 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).

提交回复
热议问题