Titanium Community Questions & Answer Archive

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

How do you rename a project?

What's the best way to rename a Titanium project? Also, is there a way to order the projects in your Titanium Developer project list?

— asked April 14th 2010 by Christopher Rumpf
  • rename
0 Comments

4 Answers

  • Accepted Answer

    Hi there Christopher

    I found the best way to rename a project is to create a new one and copy/paste the contents of the resources folder. I don't think the order of projects can be altered.

    cheers,
    Chris.

    — answered April 14th 2010 by Chris Reed
    permalink
    0 Comments
  • Clients change their mind about app names a lot and creating a new project and copy + pasting the files across is a pain, especially with remote GitHub repos etc.

    Here's a description of what works for me with Titanium Studio.

    (Make backups and don't blame me if you lose your work trying this…)

    1. Create a new Ti project in studio with the name that you want. e.g. NewName
    2. Open the new project's TiApp.xml and view the XML
    3. Copy the guid
    4. Right click the new project and rename it. e.g. NewNameXXX
    5. Right click your old project and rename it to the new name e.g. oldName->NewName
    6. Edit TiApp.xml and manifest, paste in the new GuiD, comment out the old one if you want to be able to go back.
    7. Force a clean rebuild by deleting projectdir/build/iphone/* and build

    My guess is that the guid ties into Appcelerator's database of apps, and any changes you make to the project's tiapp/manifest files will have no effect on the app's name. I don't know if this DB is local or hosted by Appcelerator.

    I'll be more than happy to be corrected or hear of a better way to do this.

    Hope that helps someone.

    — answered August 1st 2011 by Jeff Antram
    permalink
    0 Comments
  • An approach that worked for us was the following.

    1) Delete the 'iPhone' folder in the 'Build' folder.
    2) Change the App Name in the tiapp.xml file ( <name>APP NAME HERE</name>)
    3) Build

    This should recreate the XCODE project with the new name.

    — answered November 30th 2012 by Jason Coudriet
    permalink
    1 Comment
    • Hi Jason, that approach works. Thanks, you saved me a lot of headaches

      — commented May 11th 2013 by Joris
  • Yep, agree with Chris. That's the same process I use when I want to rename a project.

    If I'm not mistaken there's a sqlite database that Developer uses to keep track of your apps, so I guess if you can find that you might be able to rename and reorder things in there, but not sure it's worth it.

    — answered April 14th 2010 by Dan Giulvezan
    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.