【发布时间】:2020-11-07 05:15:21
【问题描述】:
对于故事板,我们可以在 Interface Builder 的 File Inspector 中设置“Builds for”值。有一个默认值 Deployment Target 在我的情况下是不正确的。 (但我希望它是正确的,而不必设置它,因为我们正在为每个构建创建整个 Xcode 项目。)
情节提要文件有以下内容:
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="15706"/>
<capability name="Named colors" minToolsVersion="9.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
如果我改变了
<deployment identifier="iOS"/>
到
<deployment version="4352" identifier="iOS"/>
我得到了适合我的情况的正确版本(iOS 11.0)。
但是如果我的构建目标是11.0,为什么默认是10.3。 (事实上,10.3 没有出现在任何项目文件中。)我可以避免显式设置值吗?
【问题讨论】:
标签: xcode storyboard interface-builder uistoryboard