Reputation: 188
In all of my stupidity I've notice I misspelled my own project. I'm honestly scared to rename it in Mac due to certain filepaths referencing folders that now do not exist. Is there an easy way to rename a project?
Upvotes: 7
Views: 6893
Reputation: 86
I've found myself in these situations many times and this is what has helped me without any issues. https://github.com/shabbirh/Xcode-Project-Renamer
There are many options out there, a few works, others don't.
Follow this and you can enjoy a cold or hot drink instead of fighting with the Xcode rename process.
gem install xcode-project-renamer
And then lookup for the ProjectToBeRenamed.xcodeproj
file
cd yourParentProject/
xcode-project-renamer ProjectToBeRenamed NewProjectName
# Verbose information here.
# at the end you would see
Done.
I hope this helps others.
Upvotes: 2
Reputation: 15013
I've posted this as an answer elsewhere, but this works like it should...
This is a four step change. And is a real pain
Step 0 - Backup your existing project
Step 1 - Rename the project.
Step 2 - Rename the Scheme
Step 3 - Rename the folder with your assets
Step 4 - Rename the Build plist data
FINALLY you are done and can rebuild (Apple-key+shift+k clean, Apple-Key+b then build)
Upvotes: 3
Reputation: 7963
To change Project name go through this scenario.
Select target
Select Build Settings
Search product name here
Then Change the new App name here
please note that the XCODE project name will not change but when you run the App name will be change
Upvotes: 0
Reputation: 7145
If you've just started it's easiest to just create a new project with the correct name, then delete the old one. We (I) do this all the time.
Upvotes: 0
Reputation: 3996
Try refactoring, It should work fine, if it doesn't refactoring creates a snapshot instantly.
so try it out, if it blows up restore, and create a new project, and migrate to the new one slowly (as @troop231) mentioned.
good luck!
Upvotes: 5