Making Changes without Relaunching the Emulator (iOS)

You must Login before you can answer or comment on any questions.

I've recently moved all my code to the CommonJS standard suggested in the latest docs.

Question: Before doing so, I could make changes in my app without an emulator relaunch. Now, it seems I have no choice but to re-launch to see any recent changes in the emulator.

I miss saving this step for minor changes. Anything I am potentially doing wrong here?

Ben

— asked 9 months ago by Ben Hill
0 Comments

1 Answer

Accepted Answer

CommonJS modules are loaded once and cached.

Have a look at this project - TiShadow - if you want to do rapid app development.

— answered 9 months ago by David Bankier
answer permalink
2 Comments
  • David's answer is the best solution I know, and one that we personally use in our firm.

    If you were using url: mysource.js to create your windows in the past, then those were loaded and reloaded each time that particular window was created/recreated by loading the alias to your projects source files.

    — commented 9 months ago by Stephen Feather

  • Alloy+commonJS = bleeding edge, commonJS = newest, commonNamespace = old, url: = oldest

    — commented 9 months ago by Stephen Feather

Your Answer

Think you can help? Login to answer this question!