1

The given version is described here: How do I rename a project in Xcode 5?

But, as you can see from the following screenshot^, not everything gets renamed, and if one opens package contents, directory names etc. to try to manually change all the references, the project is broken afterwards, so you have to keep the old project name for sub directories etc., which granted is not a massive problem, but is intensely irritating, and I'm not enjoying being intensely irritated at work.

^ apologies for a screenshot, but there's too much information in it to transcribe to written text. Top two-thirds of screenshot is XCode project, bottom third a Finder window.

enter image description here

Community
  • 1
  • 1
Joseph Beuys' Mum
  • 2,395
  • 2
  • 24
  • 50
  • You might be better off starting from scratch with the new name and then bring the source and interface files over from the old project. That way you know there won't be any residue of the old project and that should calm the irritation. – trojanfoe Feb 23 '16 at 13:13
  • Maybe you're right @trojanfoe, I guess the tumbleweed on this post shows it's the only viable option really. – Joseph Beuys' Mum Feb 23 '16 at 15:40

1 Answers1

0

Renaming projects in xcode in one of the most annoying things in iOS development. I assume you want to rename your app. I faced this problem once and figured out a simple, clean way to do it.

  1. Go back to the point where everything worked.
  2. Open project in xcode and click on the project icon in the project structure( first file)
  3. Go to the info tab
  4. Search for Bundle Name. Most probably it will automatically be set to $(PRODUCT_NAME) which is a shell variable that will set your app name the same as the project name.
  5. Set it to whatever you want your app name to be
  6. Done

Notes :

  • If you use custom URL Schemes this might produce an error when redirecting.
  • ALWAYS git or some other SVN in your projects. This will come in handy in this kind of situations
  • Wassim Seifeddine
    • 1,002
    • 12
    • 25