After I add a new group to my project inside the project navigator in Xcode, by right clicking, it always seems to appear somewhere I don't want it - for example, even if I am under App Delegate at the time of right clicking, it will still land right at the top of everything else. How can I add it where I need it to avoid having to move it? Also, I am not sure how to move a group in an efficient manner. When I try to drag and drop a group folder to another spot within my project navigator in Xcode, a green drag and add line appears and it automatically adds a duplicate. I then have to delete the original folder but even so I don't feel comfortable doing so.
How to add and move a group (folder) in Xcode project?
I tested in XCode 7.3 and 8.3: It works OK
- If I create a new group, it is created exactly at the place I selected.
- If a move a file or a group, I get the + green icon, but the file or group are moved, not duplicated.
Which version of XCode do you use ?
How is the duplicate named in your case ?
It gets the same name as the original. It is Xcode version 8.3.3.
That mean that byou have 2 times the exact same name ?
In that case, the second is just a reference to the same file.
Yes, they have the same name.
Is there a smoother way to add or move files without needing to delete one though?
Cannot see any reason why this occurs. As I said, I cannot reproduce the problem in any way. I do not see anything you would be doing wrong.
Could you try to creat a new project and see if it happens also here ?
Then close it, open the existing project, do an option clean, check you have no filter defined ain the navigator panel and try again moving files.
If does not work, you could try reinstall XCode.
If that does not work, file a bug report.
Wish you good luck.