Cannot drag a folder from one project to another in xcode4

I am trying to use a facebook connection and you are supposed to be able to drag and drop folders, but this does not work in Xcode 4! any ideas?

Update 1/8/2017: this is still true in Xcode 8.2.1

+8
iphone xcode4
source share
2 answers

Earlier:
drag the folder from project A to project B.

Now:
1. in project A, right-click - show in search
2. Seeker - level up
3. Drag the folder to project B
4. Delete unnecessary files inside the newly added folder


Good job, Apple.

PS: And this does not work for groups like @zeeple mentioned in the comments.

+18
source share

Dragging and dropping resources between projects in Xcode is usually a bad idea, even if it is supported. When you drag something into Xcode, it does not actually create a new copy of this thing, it just adds a new link to its old location.

This can be very bad, because now changing a resource in one project will cause the same changes to appear in another. The vast majority of the time is not what you want. SCM complicates matters even more, because if you add a resource to Project B by dragging it from Project A and then check the changes and then another other developer checks only Project B , they will not have the resources that you β€œadded” to Project B

Therefore, instead of dragging and dropping in Xcode, I suggest using Finder or the command line to explicitly copy your resources to the source tree of the destination project project. Then in Xcode, just add the copied files to the project in the same way as usual.

+3
source share

All Articles