Is there any appropriate way to change workspace name in Xcode?
Seems to me that it works to quit Xcode and manually change the .xcworkspace
file from OLD_NAME.xcworkspace
to NEW_NAME.xcworkspace
.
Xcode 5 was used at the time of writing.
To rename a workspaceOpen the main menu using the menu button in the top left of the app. Open the workspace menu by clicking on the three dots ⋮ next to the workspace you'd like to rename. Select Workspace settings from the menu. Type a new workspace name in the field Name.
Assuming you created an Xcode project, select the main. cpp file from the left side of the project window. Press the Return key to change the name of the file.
First note that this question is about changing the name of an Xcode workspace. The QA is not about changing the name of a project, a project within a workspace, the source folder, or other aspects of naming in the Xcode milieu.
Xcode 11 and further.
Surprisingly, you can now just change the name of the file ! As strange as that seems.
Quit Xcode. You must do this first.
Using your mouse, and keyboard, change the name:
This causes no problem with Swift Package Manager or any other issue.
You now simply open the .xcworkspace file as normal.
One part of a fifteen year old Apple problem resolved!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With