在 XCode 中设置最低 iOS 版本 [英] Setting the Minimum iOS version in XCode

查看:151
本文介绍了在 XCode 中设置最低 iOS 版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对 Xcode 还很陌生,因为我使用 CocoonJS 来构建我的 HTML5 iPhone 游戏,但我想知道如何正确设置最低 iOS 版本.我已将部署目标设置为 8.0,然后进行了清理,然后进行了构建,但是当我提交到应用商店时,它说最低 iOS 版本为 6.0.

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.

我尝试的下一件事是在 info.PList 中手动更新此值,但随后我在 iTunes Connect 中收到一个无效的二进制文件,提示

The next thing I tried was manually updating this value in the info.PListbut then I get an invalid binary in iTunes Connect saying

最低操作系统版本不匹配 - 架构 ('armv7') 二进制文件 ('6.0') 中的最低操作系统版本 (LC_VERSION_MIN_IPHONEOS) 与 Info.plist 中的最低操作系统版本 ('8.0') 不同

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

如何在不搞砸二进制文件的情况下正确更新最低 iOS 版本?我检查了其他线程,但他们都只是说只更新部署目标.谢谢

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

推荐答案

假设您是针对 8.x SDK 构建的,并且您已将部署目标设置为 8.x 或更高版本,这就足够了.

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.

但是,我想您在 Xcode 中将部署目标设置在错误的位置.您需要在 Project 下而不是在 Target 下设置它.或者,如果你有一个 .xcconfig 文件,你可以通过设置

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

如果您没有 .xcconfig,您可以通过打开您的 project.pbxproj 文件并搜索 IPHONEOS_DEPLOYMENT_TARGET<来验证部署目标/code>,并检查它是否设置为您的预期值.

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆