xcode 目标完整性 - mac os 部署目标比 sdk 警告更新
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/5047526/
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
Target integrity - mac os deployment target newer than sdk warning
提问by Alex
i was add a new target in my existing project. Everything work fine, but... this warning is become. Mac OS X Deployment Target '10.6' is newer than SDK 'iOS 4.2' in target snow iphone Anybody knows how i can disable it?
我在现有项目中添加了一个新目标。一切正常,但是......这个警告变成了。Mac OS X 部署目标“10.6”比目标雪 iphone 中的 SDK“iOS 4.2”更新 有谁知道我如何禁用它?
回答by Sez
XCode4 is different and I had trouble finding this option. Here is how to do it - to access the Base SDK for the project, select the project (blue xcode icon) in the navigator top-left; select project properties (not targets) in the next pane; then select "Build Settings".
XCode4 是不同的,我很难找到这个选项。这是如何做到的 - 要访问项目的 Base SDK,在导航器左上角选择项目(蓝色 xcode 图标);在下一个窗格中选择项目属性(不是目标);然后选择“构建设置”。
I tried to post a screenshot but apparently I need to earn more "reputation points" first...
我试图张贴截图,但显然我需要先获得更多的“声望点”......
回答by Shaan Singh
I know this is an old question, but I ran across the same issue and want to provide help. The warning means your version of Xcode is using an SDK older than your deployment target. For example, you have Xcode 6.2 but are deploying for iOS 8.3. You would need to update Xcode to version 6.3 to resolve that error. Another option is to simply download the SDK manually from the Apple Developer center.
我知道这是一个老问题,但我遇到了同样的问题并想提供帮助。该警告意味着您的 Xcode 版本正在使用比您的部署目标更旧的 SDK。例如,您有 Xcode 6.2,但正在为 iOS 8.3 进行部署。您需要将 Xcode 更新到 6.3 版才能解决该错误。另一种选择是简单地从 Apple 开发人员中心手动下载 SDK。
回答by Jim
Right-click on your target and select Get Info
. Go to the Build
tab and ensure that the Base SDK
setting is Latest iOS
.
右键单击您的目标并选择Get Info
。转到Build
选项卡并确保Base SDK
设置为Latest iOS
。
回答by Max
go to target settings and make sure that Base SDK is set to the latest one. Also check the deployment target.
转到目标设置并确保将 Base SDK 设置为最新的。还要检查部署目标。