无法在捆绑中加载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
然后最后执行钛运行
命令。它在带有空白屏幕的模拟器中启动应用程序并立即崩溃,抛出以下错误。
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< / Users / abhilash / Library / Application Support / iPhone Simulator / 4.2 / Applications / CA167346-4091-4E16-B841-955D1D391713 / test.app> (已加载)'名称'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屋!