Interface Builder无法打开文档“.xib”。因为它不存在 [英] Interface Builder could not open the document ".xib" because it does not exist

查看:135
本文介绍了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?

推荐答案

对我而言,它的工作原理如下:

For me it works like this:


  • 选择项目目标

  • 构建阶段标签中的文件c>复制捆绑资源

  • 将其添加到构建阶段选项卡

  • select project target
  • remove the file from the build phases tab in copy bundle resources
  • re add it to the build phases tab

这篇关于Interface Builder无法打开文档“.xib”。因为它不存在的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆