27 Nov 2012 2:45 PM #1
Unanswered: Referencing cordova-2.2.0.js in app.json js object causes app not to start
I am working on a project using Sencha Touch 2.1 wrapped in Phonegap 2.2.0.
If (as advised) I specify the phonegap JS file as a dependency in the app.json file, rather than loading it as a script tag in index.html, upon fresh install to the iOS Simulator, the app starts, but the launch function is not fired. It subsequently works properly after starting it again.
If I remove the app from the simulator and re-install it, the problem always recurs on first execution.
If I remove the reference from app.json and put it as a script tag in index.html, it seems to work properly.
Any ideas as to what is going on here?
30 Nov 2012 7:57 PM #2
I've tried every which way to replicate this but I can't. Do you see this condition when targeting a specific scheme in Xcode? Have you tried to clean the simulator by any/all the following?:
In Xcode, go to Window > Organizer, then delete Derived Data.
In Xcode, use the key sequence Command+Option+Shift+K to clean the build
In iOS Simulator, go to iOS Simulator > Reset Content and Settings...
Have you used weinre in an extra attempt to debug?
Front End Developer
Sencha Touch Screencasts
Vimeo - Sencha Touch Channel
Sencha Cordova Builder enables the automatic creation, building, and running of PhoneGap (Cordova) projects with Sencha Touch.
Am I Sencha Touch Ready? checks your system to determine what you need to do to start Sencha Touch development. If you're having trouble getting up and running, try this out.
Sencha Tools Bridge allows Sencha SDK Tools to co-exist with Sencha Cmd on the same system.