Install a minimum version of iOS in Xcode

I am new to Xcode since I use CocoonJS to build my iPhone5 HTML5 game, but I want to know how to properly install the minimum version of iOS. I set the deployment target to 8.0 and did a clean and then build, but when I submit to the application store, it says the minimum version is iOS 6.0.

The next thing I tried is to manually update this value in info.PListbut file, then I get an invalid binary in iTunes Connect, saying

Minimum OS version mismatch - the minimum OS version (LC_VERSION_MIN_IPHONEOS) in binary ("6.0") for architecture ("armv7") is different from MinimumOSVersion ("8.0") in Info.plist

How to update the minimum version of iOS correctly without twisting your binary? I checked other topics, but they all just say to update only the deployment target. Thanks

+6
source share
1 answer

Assuming you build against the 8.x SDK, and you set the deployment target to 8.x or higher, that will be enough.

However, I would suggest that you set the deployment target to an Xcode location. You will need to install it under your Project, and not under your goal. Alternatively, if you have a .xcconfig file, you can modify it by setting

 IPHONEOS_DEPLOYMENT_TARGET = 8.1 

If you do not have .xcconfig , you can check the deployment target by opening the project.pbxproj file and search for IPHONEOS_DEPLOYMENT_TARGET and check if it is set to your expected value.

+4
source

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


All Articles