XCode4 - doesn't allow to drag© group to group
开发者_运维百科I have opened two projects side by side.
I am trying to drag & drop files including project groups from oneProject to another.
XCode4 doesn't copy at all ( It doen't copy groups :( ). What should we do to copy files including groups of it ?
I've had to do this. It's a little labor intensive but if you've managed your physical file structure it's not too bad. What I did was to…
- create the folders in the new project to be the same as the old project
- right-click the folder into which you want to move your files and select "Add Files to [My Project]"
- Navigate to the existing files in the other project that need to go under this folder and select them
- Ensure the "Copy items into destination group's folder (if needed)" is checked
- Click Add.
This will copy the files into the new project folder and add them to the selected folder in Xcode. This is not a perfect way to copy these files since you cannot specifically point to any physical folder that you wish.
If you need to have files in specific physical folder I have had luck with selecting the file, then delete, then select Remove References Only, Move the file(s) to the correct folder, then add the file(s) back in.
Hope this helps, Rob
Here's the best workaround I've found:
- Create a new Workspace
- Add the projects where you want to copy groups from one to the other
- Copy groups between projects!
No need to keep the workspace around afterwards as it's just a pretty dumb container and doesn't affect the projects themselves.
精彩评论