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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 08:10:07  来源:igfitidea点击:

iOS 9 Warnings in Xcode - This file is set to build for a version older than the project deployment. Functionality may be limited

iosxcodestoryboard

提问by spenf10

I just updated my mac to the newest OS and Xcode to the newest version and now I have this warning and I have no idea who to get rid of it or what it really means?

我刚刚将我的 mac 更新到最新的操作系统和 Xcode 到最新版本,现在我收到了这个警告,我不知道该由谁来摆脱它或者它的真正含义是什么?

Could someone explain it to me?

有人可以向我解释一下吗?

enter image description here

在此处输入图片说明

Thanks

谢谢

回答by vadian

Select Main.storyboardin the project navigator, press ??1to show the Identity Inspector and change Builds forfor something suitable

Main.storyboard在项目导航器中选择,按下??1以显示身份检查器并更改Builds for为合适的内容

enter image description here

在此处输入图片说明

回答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 时,警告消失了。