Testing a 32-bit iOS application on an iPhone 5s or 64-bit simulator

I have an application that uses a third-party library. There is an error in the 64-bit version of the library, so I had to return to the 32-bit version of the framework. I would like to test this release on 5, but from Xcode it will try to build in 64 bits, and due to this 32-bit structure the assembly will fail. I need to release a version, but since I cannot test the 5 or 64 bit simulator, I do not want to do this. So is there a way to get the application on the iPhone or run it on a 64-bit simulator without having to build a 64-bit version?

An iPhone is provided, and I used it to test 64-bit, so this is not a problem.

Thanks in advance

+4
source share
1 answer

In the build settings, change Architecturesto $(ARCHS_STANDARD_32_BIT).

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

It will build a 32-bit version of your application, but run it on a 64-bit simulator. Please note that the simulator works on OS X, and OS X no longer supports 32 bits, so we always worked on 32-bit applications on 64-bit equipment in the simulator. It works fine if you do not need any types that should be 64-bit (for example: CGFloat is more accurate than decimal digits when executing 64-bit).

+3
source

Source: https://habr.com/ru/post/1536200/


All Articles