cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Filip Maj (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-2074) Could not find Nib in bundle for iPad in Simulator
Date Mon, 17 Dec 2012 19:20:17 GMT

    [ https://issues.apache.org/jira/browse/CB-2074?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13534189#comment-13534189
] 

Filip Maj commented on CB-2074:
-------------------------------

Response
----

Hi,

Im running version

0.1.13

I've seen this happen before with some other tools and the project templates apple provide
have only recently been updated it seems. The most reliable way to deal with it is to just
remove the attributes altogether especially as it means that cocoa touch can use its usual
rules to resolve the xib. id expect most people to deal with screen size in cordova; every
project is different though.
                
> 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

Mime
View raw message