Xcode 中的 iOS 9 警告 - 此文件设置为为早于项目部署的版本构建。功能可能有限
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/33575252/
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
iOS 9 Warnings in Xcode - This file is set to build for a version older than the project deployment. Functionality may be limited
提问by spenf10
回答by vadian
回答by David
If changing the minimum build target version does not work for you, try inspecting the XIB source file. Right click on the file -> Open As -> Source Code.
如果更改最低构建目标版本对您不起作用,请尝试检查 XIB 源文件。右键单击文件 -> 打开为 -> 源代码。
Look for section near the top, which looks like this:
寻找靠近顶部的部分,如下所示:
<dependencies>
<deployment version="2304" identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="13173"/>
<capability name="Aspect ratio constraints" minToolsVersion="5.1"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
My target build was iOS 9, but my aspect ratio constraint has minToolsVersion 5.1. When I changed it to 9.0 the warning went away.
我的目标版本是 iOS 9,但我的纵横比约束是 minToolsVersion 5.1。当我将其更改为 9.0 时,警告消失了。