Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

could not find the file app.js

I tried working on my project from a different machine with a different username, but Titanium is still using the old path: file://localhost/Users/[username1]/Projects/Project

Is there a way to make the paths relative or is the only solution for multi-developer projects to place the code outside of the user directory?

— asked May 26th 2010 by Donald Hughes
  • app.js
  • iphone
0 Comments

4 Answers

  • There seems to be a line in the main.m file that sets the constant TI_APPLICATION_RESOURCE_DIR. Apparently this doesn't get regenerated when I re-launch the simulator. Is there a way to force a complete rebuild?

    — answered May 27th 2010 by Donald Hughes
    permalink
    0 Comments
  • I'm having the same problem. Did you ever get this figured out?

    — answered August 14th 2010 by Clifton Labrum
    permalink
    0 Comments
  • You should go to the root of your project, in build/iphone and delete the build folder( so delete the folder myApp/build/iphone/build)

    This will force a full rebuild.

    — answered August 14th 2010 by Dan Tamas
    permalink
    1 Comment
    • Thanks, I had this same problem and this fixed it just fine.

      — commented March 12th 2011 by jamie cross
  • In titanium Alloy you just put your file in "lib" folder and in any page where you want it just write Ti.include('youfilename.js');

    — answered February 26th 2013 by Jayesh Joshi
    permalink
    0 Comments
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.