【问题标题】:The document “(null)” requires Xcode 8.0 or later文档“(null)”需要 Xcode 8.0 或更高版本
【发布时间】:2016-10-31 16:50:08
【问题描述】:

我看到 6.0 的类似问题

Building a project in Xcode5.1 that was modified in Xcode 6 GM for testing older versions of iOS

解决方案是查看情节提要源代码并找到将约束设置为边距而不是超级视图的位置并进行更改。我在 8.0 a 中查看了我的源代码并搜索了约束,但没有找到任何约束。

还有什么东西会引发这个错误吗?

【问题讨论】:

  • 请提供更多详细信息。如何说“文档“(null)”需要Xcode 8.0或更高版本)通过在哪个Xcode版本中执行。
  • 我实际上在运行 XC8.1。除了尝试构建它之外什么都不做。

标签: storyboard xcode8


【解决方案1】:

我们可以使用 Xcode 7 解决这个问题,右键单击文件(xib 或故事板)并作为源代码打开。然后搜索( Command + F ): minToolsVersion="8.0" 并将其更改为 7.0。

然后将文件作为 interface builder xib 文件打开。

(来自https://github.com/istornz/iPokeGo/issues/68的参考)

【讨论】:

    【解决方案2】:
        I am also facing this issue, when i open in Xcode  8 and try to open in Xcode  7.  finally i found solution  , fallow below steps.
    
    
        1) Select Storyboard file (iPhone or iPad)
        2) Right click ==> open as source code
        3) change  <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
    to
    
    <capability name="documents saved in the Xcode 7 format" minToolsVersion="7.0"/>
    
        4) Run code it will work
    

    【讨论】:

      【解决方案3】:

      史密斯的回答还不够,您还必须删除该部分

      < device >...< / device >
      

      和部分

      < simulatedMetricsContainer >...< / simulatedMetricsContainer >
      

      【讨论】:

        【解决方案4】:

        我能够通过删除我的派生数据来解决这个问题。仅供参考,在 XC8 中,无法再从“窗口”菜单下的“项目”子菜单访问派生数据,“项目”子菜单已被删除。

        您现在可以在文件 --> 项目设置下找到派生数据。您无法从此处删除,但路径旁边的箭头按钮将在 Finder 中打开文件。您可以从那里删除它。

        【讨论】:

          猜你喜欢
          • 2016-10-17
          • 1970-01-01
          • 1970-01-01
          • 2020-12-11
          • 1970-01-01
          • 1970-01-01
          • 2016-03-28
          • 2017-02-01
          • 1970-01-01
          相关资源
          最近更新 更多