【问题标题】:Xcode 10 - Interface Builder could not open the document Main.storyboard" because it does not existXcode 10 - Interface Builder 无法打开文档 Main.storyboard”,因为它不存在
【发布时间】:2019-05-22 09:06:09
【问题描述】:

我刚刚导入了我在 2018 年 5 月使用旧版本 Xcode 完成的旧项目,似乎无法解决此问题。附件是我得到的问题的屏幕截图。我到处搜索并尝试了很多东西,但似乎没有任何效果。 p.s.我刚刚将 Swift 升级到 4.2。

【问题讨论】:

  • 在您的项目文件列表中,您可以看到白色(存在)、红色(找不到路径)的文件,或者看不到它(不在项目中)。最后,关闭+重新打开 Xcode 并清理 DerivedData。

标签: xcode import storyboard main builder


【解决方案1】:

我刚刚想通了。

返回一些存储在云中的工作后,我遇到了相同的 Main.storyboard 和 LaunchScreen.storyboard 错误。

由于某种原因,当从云端导入文件/文件夹时,会在 Main.storyboard 和 LaunchScreen.storyboard 文件中添加 .xml 后缀。

The following image shows the files stored on Google Drive

And then after download

只需删除 .xml 后缀并清理即可。

【讨论】:

  • 同样的问题。谢谢威尔:)
猜你喜欢
  • 2012-02-16
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2016-03-17
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多