链接故事板引用时出现ibtool错误:文件"Info.plist"无法保存在文件夹*.storyboardc中

Stu*_*art 5 xcode storyboard ios ibtool

我正在使用Xcode 7.0 beta 4,最近将我的单个Main.storyboard拆分成一系列故事板引用连接的故事板(Xcode 7中新增了).

构建时,我收到以下"Interface Builder Storyboard Linker Error":

/* com.apple.ibtool.errors */
: error: The file “Info.plist” couldn’t be saved in the folder “Pages.storyboardc”.
    Underlying Errors:
        Description: The operation couldn’t be completed. Not a directory
        Failure Reason: Not a directory
Run Code Online (Sandbox Code Playgroud)

我怎样才能理解这个错误?


故事板参考是通过选择原始故事板中的场景并选择编辑器>重构到故事板...来创建的.我遇到的上一个问题是故事板链接器抛出了不同类型的错误:

/* com.apple.ibtool.errors */
: error: Deploying Storyboard References to iOS 8.0 requires that your storyboards do not
         share any view controller identifiers. Browser.storyboard and Pages.storyboard
         both contain a view controller with identifier "PagesViewController".
Run Code Online (Sandbox Code Playgroud)

事实证明,使用"Refactor to Storyboard ..."命令已根据重构的视图控制器标识符之一自动为故事板引用分配了Storyboard ID.这导致了错误描述的情况(具有与视图控制器场景的标识符相同的标识符的故事板引用).我删除了这些标识符,因为我认为您不需要从代码中引用故事板引用.


更新:

我也看到这个问题表现为一个稍微不同的错误:

/* com.apple.ibtool.errors */
: error: “<StoryboardReferenceID>.nib” couldn’t be removed.
    Underlying Errors:
        Description: The operation couldn’t be completed. Not a directory
        Failure Reason: Not a directory
Run Code Online (Sandbox Code Playgroud)

Stu*_*art 4

我在写这个问题时找到了一种消除错误的方法。然而,我不能说我更了解它的含义,因此欢迎任何额外的见解。

我重新添加了已删除的故事板 ID,以避免之前与共享相同标识符的视图控制器相关的错误,但确保没有两个是相同的。该错误不再显示。

我不知道故事板标识符对故事板引用有何影响,但链接器似乎更希望他们拥有一个!如果需要标识符(例如当场景由于缺少标识符而无法访问时),我预计会出现编译器警告/错误而不是链接器错误,所以我目前认为这是一个可能会得到解决的链接器错误Xcode 7 的最终版本。