1. #1
    Sencha User
    Join Date
    Jun 2012
    Posts
    14
    Vote Rating
    0
    tsheal is on a distinguished road

      0  

    Default Unanswered: Referencing cordova-2.2.0.js in app.json js object causes app not to start

    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?

    Thanks,
    Tristan

  2. #2
    Sencha User bricemason's Avatar
    Join Date
    Jan 2008
    Location
    Upstate NY
    Posts
    280
    Vote Rating
    44
    Answers
    49
    bricemason has a spectacular aura about bricemason has a spectacular aura about bricemason has a spectacular aura about

      0  

    Default


    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?

    http://people.apache.org/~pmuellr/we....5.0/Home.html

    Brice
    Brice Mason
    Front End Developer
    Modus Create

    @bricemason
    bricemason.com

    Sencha Touch Screencasts
    Vimeo - Sencha Touch Channel

    Github Projects:
    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.

Thread Participants: 1