应用程序中未加载 XIB 进行本地化?
我在我的应用程序中使用英语和法语本地化。
当我使用 french
更新 XIB 时,它会生成两个 XIB,并且在该 XIB 的属性中显示其到 fr.lproj
文件夹的路径,Sampler/fr.lproj /MainWindow.xib
它被制作为不同 XIB 的不同位置的文件夹 en.lproj 和 fr.lproj
对于 Mainwindow,它位于 Sampler/fr.lproj/MainWindow.xib
对于其他文件,它位于 Sampler/Classes/fr.lproj/About.xib
但是当我运行应用程序时显示异常,
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Could not load NIB in bundle: 'NSBundle </Users/Library/Application Support/iPhone Simulator/4.3/Applications/3A0C67D1-F197-432A-9D9B-1086D0252E1C/Sampler.app> (loaded)' with name 'MainWindow''
这有什么问题?
I am using localization for english and french language in my app.
When I update XIB with french
it makes two XIBs and it is showing its path to fr.lproj
folder also in properties of that XIB,Sampler/fr.lproj/MainWindow.xib
It being made folders en.lproj and fr.lproj
in different place for different XIBs as
for Mainwindow it is in Sampler/fr.lproj/MainWindow.xib
for other files it is inSampler/Classes/fr.lproj/About.xib
But when I run the app is shows exception
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Could not load NIB in bundle: 'NSBundle </Users/Library/Application Support/iPhone Simulator/4.3/Applications/3A0C67D1-F197-432A-9D9B-1086D0252E1C/Sampler.app> (loaded)' with name 'MainWindow''
what is wrong with this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
尝试按照链接中给出的 6 个步骤进行操作如下所示:
Try to follow the 6 steps given in the link which are as follows:
检查您的笔尖是否已为您正在构建的目标启用。
Check your nib is enabled for the target you are building.