You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by "Filip Maj (JIRA)" <ji...@apache.org> on 2012/12/17 20:20:17 UTC
[jira] [Created] (CB-2074) Could not find Nib in bundle for iPad in
Simulator
Filip Maj created CB-2074:
-----------------------------
Summary: Could not find Nib in bundle for iPad in Simulator
Key: CB-2074
URL: https://issues.apache.org/jira/browse/CB-2074
Project: Apache Cordova
Issue Type: Bug
Components: CLI
Affects Versions: 2.2.0
Reporter: Filip Maj
Assignee: Filip Maj
Fix For: 2.3.0
Hi,
Ive hit this a few times recently, Im running xCode 4.5.2 with all other settings default
I start with the following steps to set up a 'vanilla' ios project
{code}
$ cordova create testproj
$ cd testproj
$ cordova platform add ios
$ cd /Dev/testproj/ios // location of my cordova project
$ open HelloCordova.xcodeproj // default name
{code}
Then
if i launch the app as in the iPhone simulator 6.0 it (mostly) runs first time
if i launch the app in the iPad simulator 6.0 i get a SIGABRT with a break on main with an error that says
"Could not load NIB in bundle"
having looked more deeply into this, it is because there is a blank entry for nib file in the plist file - this is known to cause an issue in some case : NOTE: I do have colleagues who do not hit this straight away.
Anyway, to resolve this problem (after digging around in the scripts) i went to this file
{{/usr/local/lib/node_modules/cordova/lib/ios/bin/templates/project/__TESTING__/__TESTING__-Info.plist}}
and removed these two elements from the bottom of the file
{code}
<key>NSMainNibFile</key>
<string></string>
<key>NSMainNibFile~ipad</key>
<string></string>
{code}
i can create as many ios platform apps as i want now and they run in either simulator without hitch. Just as a note, its worth creating a blank "universal" app and looking in the app delegate to see what apple do now with the nibs (and also note that they no longer use those to settings (that i removed above) in the plist file.
I hope this helps someone.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira