Results 1 to 4 of 4

Thread: Updates not reflected on iOS Simulator after rebuild

  1. #1
    Sencha User
    Join Date
    Jun 2012
    Posts
    14
    Vote Rating
    0
      0  

    Default Unanswered: Updates not reflected on iOS Simulator after rebuild

    Hi,

    Not sure if this is a Sencha issue or a Phonegap issue. I am working on a project using Phonegap 2.2.0 & Sencha Touch 2.1. Whenever I make a change in a JS file and rebuild the project using Xcode, in order for the change to be reflected in the iOS simulator I have to uninstall the old version first.

    Is this a known issue? How do I solve it?

    Thanks,
    Tristan

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,323
    Answers
    3884
    Vote Rating
    1294
      0  

    Default

    This doesn't really sound like a Touch issue. Is the app still running? If you tap on the home button twice is the app still there?
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it!

    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha User
    Join Date
    Jun 2012
    Posts
    14
    Vote Rating
    0
      0  

    Default

    Hi Mitchell,

    Thanks for your reply. The issue occurs regardless I whether the app is running, closed but I'm background or shutdown completely.

    It only updates properly if I remove the app first.

    Thanks
    Tristan

  4. #4
    Sencha Premium Member
    Join Date
    Jun 2012
    Posts
    16
    Answers
    1
    Vote Rating
    0
      0  

    Default

    I have gotten inconsistent results from the combination of XCode/PhoneGap/Sencha unless I do this. Sometimes the app would immediately exit in the sim, sometimes the code changes wouldn't be reflected. So my workflow now is to create the Sencha app, and work on it in the browser for a while, then when I get to a testing point, I'll have Sencha cmd build the package. I've got the PhoneGap project pointing it's www directory to the package output directory via a symlink. So when I want to test in the simulator, I switch to XCode, clean the build, then hit run in simulator. It's a little longer, but the Sencha code is decoupled from the XCode project and the PhoneGap code, plus I don't have to spend the extra time wondering why things aren't working right in the simulator when I know the code I just wrote is there.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •