Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Changed project name in Xcode causing naming error

My old name consisted of a camel case type name similar to this

MyApp

I then changed it to

Myapp 'notice the A is now non-caps'

I changed this by clicking MyApp name in the navigator menu and changing it, up came a help box asking me to do system wide changes I clicked YES!

but now when I build this application its saying the name of my app is:

Myapp-temp-caseinsensitive-rename

I am now wondering how do I get rid of the -temp-caseinsensitive-rename portion?

like image 228
HurkNburkS Avatar asked Oct 11 '12 21:10

HurkNburkS


People also ask

Can you rename an Xcode project?

Select the project you want to rename in the “Project Navigator” which can be found on the left side of the Xcode view. On the right-hand side of the window, select the “File Inspector”. The name of your project should be in there under “Identity and Type”, change it to “NEW” and press Enter.

How do I change the project name and target name in Xcode?

Select the project from the project navigator to open the project editor and see a list of the app's targets. To rename a target, select it, press the Return key, and enter the new name. If all you want to do is rename the app, you're finished.

How to change app name in Xcode?

5 For changing application name only(that will display along with app icon) in xcode 4 or later: Click on your project file icon from Groups & Files panel, choose Target -> Build Settings -> Packaging -> Product Name. Click on the row, a pop-up will come, type your new app name here.

How do I change the name of my project in iOS?

Click on your project file icon from Groups & Files panel, choose Target -> Build Settings -> Packaging -> Product Name. Click on the row, a pop-up will come, type your new app name here. For changing Project name only(that will display along with project icon) in xcode 4 or later:

How do I change the project name of a scheme?

To rename the scheme, you can click on the active scheme and then click on Manage Scheme: Double click/Press enter on the old scheme to make the field editable, change the name to your new project name and click close. NOTE: Don't worry about changing the pod schemes.

How do I change the project name of a pod?

To do this, click on the folder and press Enter to rename the folder: To rename the scheme, you can click on the active scheme and then click on Manage Scheme: Double click/Press enter on the old scheme to make the field editable, change the name to your new project name and click close. NOTE: Don't worry about changing the pod schemes.


Video Answer


2 Answers

Check the product name in build settings and make sure everywhere it is Myapp. If that is done,

  • Close your project -> go to finder.
  • Right click on your .xcodeproject file and click on show package contents.
  • Then right click on your project.pbxproj and open it in some text editor.
  • Then search for Myapp-temp-caseinsensitive-rename and manually rename it.
  • Save it after changing and then reopen the project.

Make sure you have taken a back up of your project before doing this.

like image 198
iDev Avatar answered Sep 22 '22 08:09

iDev


I had a similar issue, but it only affected a Target that got affixed with "case-insensitive-rename". If you have a similar situation, just do the following (using XCode 5):

1) click on your project in the left. 2) expand to see all your targets by clicking the tiny button

step 2 - tiny expand button

3) rename affected Target(s).

step 3 - rename

4) Save project. Then for OCD brownie points, open your project in a text editor and do a ctrl-f for any "insensitive" or similar to ensure everything's resolved.

like image 35
Vivek Gani Avatar answered Sep 24 '22 08:09

Vivek Gani