I added a new group from selection today in Xcode containing several files. For some reason, this has consisted for a while, I am unable to name or rename the group folder.
Has this happened to anyone else before, if so have you come across a fix?
Xcode creates a new function, and highlights its name so you can rename it. If the lines of code reference parameters, Xcode includes those in the parameter list for the new function. To rename a parameter, Command-click it and choose Edit All in Scope, or Control-click it and choose Refactor > Rename.
Select your target from TARGETS(in left navigation bar) and double click, then rename it.
Xcode displays a project-rename dialog that contains all the items that can be renamed in your project. Leave your application selected in the dialog and deselect all other items as shown in Figure 2, then click Rename to perform the rename operation.
To rename the scheme, you can click on the active scheme and then click on Manage Scheme : When you click on it, you will have the following pop up: Double click/Press enter on the old scheme to make the field editable, change the name to your new project name and click close.
What have you tried to do in order to rename it?
The contextual menu (right click) does not provide a rename option. Therefore I either
OR
Sometimes it happens.
Workaround:
For anyone that has my issue: Check your files in Finder. I had a folder that was already using that name. Delete that folder and it will allow you to change name.
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