Xcode4 - does not allow to drag and copy a group to a group

I opened two projects side by side.

I am trying to drag files, including project groups from one project to another.

Xcode4 does not copy at all (it does not copy groups :(). What should we do to copy files, including its groups?

enter image description here

+4
source share
2 answers

I had to do it. It's a little time consuming, but if you manage your physical file structure, it is not so bad. What I did was ...

  • create folders in a new project just like an old project
  • right-click the folder where you want to move the files, and select "Add files to [My project]"
  • Browse to existing files in another project that need to go under this folder and select them
  • Make sure that the "Copy items to destination group folder (if necessary)" checkbox is selected
  • Click Add.

This will copy the files to the new project folder and add them to the selected folder in Xcode. This is not an ideal way to copy these files, since you cannot point to any physical folder that you need.

If you need to have files in a specific physical folder, I was lucky to select a file and then delete, then select "Delete only links", move the file to the desired folder, then add the file back to.

Hope this helps, Rob

+2
source

Here is the best workaround I found:

  • Create New Workspace
  • Add projects where you want to copy groups from one to another
  • Copy groups between projects!

You do not need to save the workspace after that, since it is just a rather dumb container and does not affect the projects themselves.

+1
source

All Articles