Unable to rename a group folder in Xcode

Viewed 10086

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?

5 Answers

Sometimes it happens.

Workaround:

  1. Quit Xcode.
  2. Launch Xcode. Tada

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.

You cannot rename the folder probably because that folder already exists in that directory.

To solve it:

  1. Select the folder you want to rename, press the right button, press show in finder.
  2. Delete the folder(s) that already have the name you want.
  3. Go to Xcode and try again.
  4. Good luck :)

Some times its not related to xcode, its finder problem, because directory still exists and finder doesn't show that, you can see directory exists by entering ls in terminal.

How to solve this?

Open terminal and navigate to parent directory of desired directory : cd ~/../parent or just right click parent directory and choose New Terminal at Folder Remove desired directory : rm -rf MyGroup Now you can try to create your group with MyGroup name.

Related