无法加载捆绑包中的 NIB [英] Could not load NIB in bundle
问题描述
我正在尝试将 Janrain Engage 作为自定义模块与 Appcelerator Titanium 集成.我创建了一个示例模块并将 JREngage 文件夹拖到示例模块 xcodeproj 中,如 Jainrain 的文档中所示.
I am trying to integrate Janrain Engage as custom module with Appcelerator Titanium. I have created a sample module and dragged the JREngage folder to the sample module xcodeproj as indicated in the Jainrain's documentation.
现在我向这个项目发出构建命令,然后执行./build.py
,最后我执行titanium run
命令.它在模拟器中以空白屏幕启动应用程序并立即崩溃并抛出以下错误.
Now I give build command to this project, then execute the ./build.py
and then finally I execute the titanium run
command. It launches the application in simulator with a blank screen and immediately crashes throwing the following error.
由于未捕获的异常NSInternalInconsistencyException"而终止应用程序,原因:无法在包中加载 NIB:"NSBundle (已加载)',名称为'JRProvidersController''
Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Could not load NIB in bundle: 'NSBundle </Users/abhilash/Library/Application Support/iPhone Simulator/4.2/Applications/CA167346-4091-4E16-B841-955D1D391713/test.app> (loaded)' with name 'JRProvidersController''
为什么会发生这个错误?
Why could this error be occurring?
推荐答案
在文件检查器中访问 .xib 文件的属性,属性Target Membership"选中选择框,然后您的 xib 文件与您的目标链接
Visit the properties of the .xib files in the file inspector,the property "Target Membership" pitch on the select box, then your xib file was linked with your target
这篇关于无法加载捆绑包中的 NIB的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!