简体   繁体   English

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

[英]ibtool error when linking storyboard references: The file “Info.plist” couldn't be saved in the folder *.storyboardc

I'm using Xcode 7.0 beta 4, and recently split my single Main.storyboard into a series of storyboards connected by storyboard references (newly available in Xcode 7). 我正在使用Xcode 7.0 beta 4,最近将我的单个Main.storyboard拆分成一系列故事板引用连接的故事板(Xcode 7中新增了)。

When building, I receive the following "Interface Builder Storyboard Linker Error": 构建时,我收到以下“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

How can I make sense of this error? 我怎样才能理解这个错误?


The storyboard references were created by selecting the scenes in the original storyboard and choosing Editor > Refactor to Storyboard... . 通过选择原始故事板中的场景并选择编辑器>重构到故事板...来创建故事板参考。 A previous issue I encountered was that the storyboard linker was throwing a different type of error: 我遇到的上一个问题是故事板链接器抛出了不同类型的错误:

/* 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".

It turned out that using the "Refactor to Storyboard..." command had automatically assigned a Storyboard ID to the storyboard references based on one of the refactored view controller identifiers. 事实证明,使用“Refactor to Storyboard ...”命令已根据重构的视图控制器标识符之一自动为故事板引用分配了Storyboard ID。 This resulted in the situation described by the error (a storyboard reference with the same identifier as a view controller scene's identifier). 这导致了错误描述的情况(具有与视图控制器场景的标识符相同的标识符的故事板引用)。 I removed these identifiers, as I figure you don't need to refer to a storyboard reference from code. 我删除了这些标识符,因为我认为您不需要从代码中引用故事板引用。


Update: 更新:

I have also seen this problem manifest itself as a slightly different error: 我也看到这个问题表现为一个稍微不同的错误:

/* 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

I found a way to get rid of the error while writing this question. 在写这个问题时,我找到了摆脱错误的方法。 I can't say I'm any the wiser as to what it means, however, so any additional insight would be welcome. 但是,我不能说我对它意味着什么更明智,所以任何额外的见解都会受到欢迎。

I re-added the storyboard IDs I had removed to avoid the previous error relating to view controllers sharing the same identifier, but made sure no two were the same. 我重新添加了我删除的故事板ID,以避免以前与视图控制器共享相同标识符有关的错误,但确保没有两个是相同的。 The error no longer shows. 该错误不再显示。

I don't know what the implications of a storyboard identifier are for a storyboard reference, but it seems that the linker would prefer them to have one! 我不知道故事板标识符对于故事板引用的含义是什么,但似乎链接器更喜欢它们有一个! I would have expected a compiler warning/error instead of a linker error if an identifier is required (like when a scene is inaccessible due to a lack of identifier), so I'm currently thinking this is a linker bug that might be ironed out by the final release of Xcode 7. 如果需要标识符(比如由于缺少标识符而无法访问场景),我本来期望编译器警告/错误而不是链接器错误,所以我现在认为这是一个可能被解决的链接器错误通过Xcode 7的最终版本。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 错误:文件“Info.plist”无法打开,因为没有这样的文件 - Error: The file “Info.plist” couldn’t be opened because there is no such file Info.plist 实用程序错误:“Info.plist 无法打开,因为没有这样的文件” - Info.plist Utility Error: “Info.plist couldn't be opened because there is no such file” 错误:无法从文件中读取属性列表:/Info.plist:操作无法完成 - error: unable to read property list from file: /Info.plist: The operation couldn’t be completed 如何解决“错误:无法读取应用程序的 Info.plist(无法加载 DVTFilePath 的信息字典)” - How to resolve "error: Failed to read Info.plist of app (Couldn't load Info dictionary for DVTFilePath)" 读取数据:文件“Info.plist”无法打开,因为没有该文件 - Reading data: The file “Info.plist” couldn't be opened because there is no such file 升级到Xcode 6 Beta 7,现在得到:无法打开文件info.plist,因为没有这样的文件 - Upgraded to Xcode 6 Beta 7 and now getting: the file info.plist couldn't be opened because there is no such file Info.plist文件“没有这样的文件”错误 - Info.plist file “no such file” error Runner/Info.plist:操作无法完成。 (XCBUtil.PropertyListConversionError 错误 2。) - Runner/Info.plist: The operation couldn’t be completed. (XCBUtil.PropertyListConversionError error 2.) 仅在存档时无法删除Info.plist - Info.plist couldn't be removed on archive only 错误:无法删除/ Users / gs / Library / Developer / Xcode / DerivedData-无法删除“ Info.plist” - error: failed to remove /Users/gs/Library/Developer/Xcode/DerivedData - “Info.plist” couldn’t be removed
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM