Interface Builder无法打开文档“.xib”。因为它不存在 [英] Interface Builder could not open the document ".xib" because it does not exist
问题描述
我正在按照此处一>。我用大约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?
推荐答案
对我而言,它的工作原理如下:
For me it works like this:
- 选择项目目标
- 从
构建阶段
标签中的文件c>复制捆绑资源 - 将其添加到
构建阶段
选项卡
- 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屋!