I have previously wrote about how to rename a project in XCode. But this time we’ll talk about how to rename the source folder of any project. Renaming the project in XCode only rename within XCode, but it does not rename the folder in the filesystem.
Follow the steps below to rename the source folder of your project –
- Close XCode.
- Rename the source folder.
- Right click the project bundle .xcodeproj file and select “Show Package Contents” from the context menu. Open the .pbxproj file with any text editor.
- Search and replace any occurrence of the original folder name with the new folder name.
- Save the file.
- Open XCode project.