xcode iPhone OS 与应用部署版本不匹配
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/31814722/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
iPhone OS does not match app deployment version
提问by Guan Nan Yao
I am using the Xcode 7.0 beta, trying to use iBeacon thing. I don't have developer account, but heard the beta can run apps on your device. But when I was trying to run the program, device OS version is lower than deployment target my phone is iPhone 5 ios 8.4 which is the most new version. however the deployment target is IOS 9.0. How can i fix this problem.
我正在使用 Xcode 7.0 beta,尝试使用 iBeacon 的东西。我没有开发者帐户,但听说测试版可以在您的设备上运行应用程序。但是当我尝试运行该程序时,设备操作系统版本低于部署目标我的手机是最新版本的 iPhone 5 ios 8.4。但是部署目标是IOS 9.0。我该如何解决这个问题。
回答by Andrea
There are always two solutions when faced with this:
面对这种情况,总是有两种解决办法:
- Set the deployment target lower in Xcode
- Use a device that matches the deployment target in the project.
- 在 Xcode 中设置较低的部署目标
- 使用与项目中部署目标匹配的设备。
1: To set the deployment target, go to the General settings for your app. In the "Deployment Info" section, change the "Deployment Target" field to at least 8.4 (since that is the device you are using), or lower if you have more devices you want to test on.
1:要设置部署目标,请转到您的应用程序的常规设置。在“部署信息”部分,将“部署目标”字段更改为至少 8.4(因为这是您正在使用的设备),如果您有更多要测试的设备,请更改为更低。
2: To update your device to a beta release of iOS, you'll need to go through your Apple developer account (doesn't have to be a paid account) and follow the instructions there to upgrade.
2:要将您的设备更新到 iOS 的 Beta 版,您需要通过您的 Apple 开发者帐户(不必是付费帐户)并按照那里的说明进行升级。
Note: upgrading your primary device (like your ONLY PHONE) to a beta is generally a risky/terrible idea. Option #1 is really the one you want :)
注意:将您的主要设备(如您的唯一电话)升级到测试版通常是一个冒险/可怕的想法。选项 #1 真的是你想要的 :)
回答by Chetan Rajagiri
Make sure that even all other targets including Pods deployment target is matched with you project deployment version, in order to avoid any kind of bizarre issues.
确保包括 Pods 部署目标在内的所有其他目标都与您的项目部署版本匹配,以避免任何奇怪的问题。