在XCode中设置最低iOS版本 [英] Setting the Minimum iOS version in XCode
问题描述
我对Xcode相当陌生,因为我使用CocoonJS来构建HTML5 iPhone游戏,但是我想知道如何正确地设置最低iOS版本.我已经将部署目标设置为8.0,先进行清理,然后进行构建,但是当我提交到应用商店时,它说最低的iOS版本是6.0.
我接下来尝试尝试在info.PList中手动更新此值,但是随后我在iTunes Connect中收到无效的二进制信息
最小OS版本不匹配-二进制('6.0')的体系结构('armv7')的最低OS版本(LC_VERSION_MIN_IPHONEOS)与Info.plist中的MinimumOSVersion('8.0')不同
如何在不破坏二进制文件的情况下正确更新最低iOS版本?我检查了其他线程,但是它们都只是说要更新部署目标.谢谢
假设您正在针对8.x SDK进行构建,并且已将部署目标设置为8.x或更高版本,就足够了./p>
但是,我想您会在Xcode中将部署目标设置为错误的位置.您需要将其设置在您的 Project 下,而不是您的 Target 下.另外,如果您有.xcconfig
文件,则可以通过设置
IPHONEOS_DEPLOYMENT_TARGET = 8.1
如果没有.xcconfig
,则可以通过打开project.pbxproj
文件并搜索IPHONEOS_DEPLOYMENT_TARGET
并检查其是否设置为期望值来验证部署目标.
I'm fairly new to Xcode as I use CocoonJS to build my HTML5 iPhone game but I want to know how to correctly set the minimum iOS version. I've set my deployment target to 8.0 and did a clean and then a build but when I submit to the app store it says the minimum iOS version is 6.0.
The next thing I tried was manually updating this value in the info.PListbut then I get an invalid binary in iTunes Connect saying
Minimum OS Version Mismatch - The minimum OS version (LC_VERSION_MIN_IPHONEOS) in the binary ('6.0') for architecture ('armv7') differs from the MinimumOSVersion ('8.0') in the Info.plist
How do I update the minimum iOS version correctly without screwing up my binary? I've checked other threads but they all just say to update just the deployment target. Thanks
Assuming you're building against the 8.x SDK, and you have set the deployment target to 8.x or higher, that'll be enough.
However, I'd imagine you set the deployment target the wrong place in Xcode. You'll need to set it under your Project and not under your Target. Alternatively, if you have a .xcconfig
file, you can change it by setting
IPHONEOS_DEPLOYMENT_TARGET = 8.1
If you don't have a .xcconfig
, you can verify the deployment target, by opening your project.pbxproj
file, and search for IPHONEOS_DEPLOYMENT_TARGET
, and check if it's set to your expected value.
这篇关于在XCode中设置最低iOS版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!