Search code examples
iphonemobiletitaniumappcelerator

Appcelerator Titanium Mobile: app.js not found


I created an app with Appcelerator's Titanium Mobile on my home machine. The path was /Users/[myusername]/Projects/ProjectName.

I checked my code into Mercurial.

The next day, at my office computer, I cloned the Mercurial repo, and then added the existing app. I tried to run it in the simulator and received the error:

could not find the file app.js.

I looked at the log and noticed that the path it was looking for was the path on my home computer, not the path on my office computer.

What can I do to make my app run on two different computers? I imagine that if I created a new app and then copied my code into it, it would probably work on the office machine. But if I checked my code in, and got latest at home it would probably be broken there.


Solution

    1. Open tiapp.xml

    2. Remove the line. f01a795a-46e7-4627-8558-465e5998c99d

    3. Do a full rebuild

    4. Bring guid tag back (just to make sure you still have it on tiapp.xml)

    5. Do a full rebuild again.

    Here's the source:

    http://www.limechalk.com/blog/fix-runtime-error-when-running-appcelerator-app-on-android-emulator/