Interface Builder 无法打开文档“.xib";因为它不存在 [英] Interface Builder could not open the document ".xib" because it does not exist
本文介绍了Interface Builder 无法打开文档“.xib";因为它不存在的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在按照此处列出的步骤对应用进行本地化一个>.我已经用大约 45 个 .xib 成功实现了这一点,而其中只有 4 个给了我这个错误:
I am localizing an app, following the steps listed here. I have successfully achieved that with around 45 .xib's, while just 4 of them gives me this error:
Interface Builder 无法打开文档.xib",因为它不存在."
"Interface Builder could not open the document ".xib" because it does not exist."
当我将它们从原来的位置移开时.我尝试将它们从 Project/Classes/Example.xib 位置移动到 Project/en.lproj/Example.xib 上的本地化位置.
when I move them from their original position. I try to move them from their Project/Classes/Example.xib position to the localized one on Project/en.lproj/Example.xib.
为什么这个 .xib 文件不能移动?
Why can't this .xib files be moved?
推荐答案
对我来说是这样的:
- 选择项目目标
- 从
copy bundle resources
中的build phase
选项卡中删除文件 - 将其添加到
构建阶段
选项卡
- select project target
- remove the file from the
build phases
tab incopy bundle resources
- re add it to the
build phases
tab
这篇关于Interface Builder 无法打开文档“.xib";因为它不存在的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文