Home > iOS, Xcode > Rename Xcode project

Rename Xcode project

  1. Rename the .pch, .xcodeproj and project’s .plist file.
  2. Delete the build folder.
  3. Open the .xcodeproj folder by using the command ‘show package content’ and open the project.pbxproj file with a text editor. Replace all instances of the old name with the new name.
  4. Rename.
  5. Load the project file in XCode and run Build->Clean All Targets.
  6. Build and Run your project.

If you get the following Warning: The Copy Bundle Resources build phase contains this target’s Info.plist file “YourRenamedInfo.plist”.

  1. Select your project’s .plist file, get info on it. Click on the Targets tab, and uncheck the box (in caes it’s checked).
  2. In XCode’s outline panel (on the left), click on the small arrow next to your target. You should see the Copy Bundle Resources folder in grey. Browse it and delete any reference to both your old and new .plist file if present.
Categories: iOS, Xcode
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: