I am trying to use facebook connect and you sare supposed to be able to drag and drop folders but it doesn't work in XCode 4! any ideas?
我正在尝试使用facebook连接,你应该能够拖放文件夹但它在XCode 4中不起作用!有任何想法吗?
Update 1/8/2017: This is still true in Xcode 8.2.1
更新1/8/2017:在Xcode 8.2.1中仍然如此
2 个解决方案
#1
18
Previously:
drag folder from project A to project B.
Now:
1. in project A, right click - show in finder
2. finder - go up a level
3. drag the folder into project B
4. delete unnecessary files inside the newly added folder
以前:将文件夹从项目A拖到项目B.现在:1。在项目A中,右键单击 - 在查找器中显示2.查找器 - 上升到第3级。将文件夹拖到项目B中4.删除新添加的内部不必要的文件夹
Good job, Apple.
PS: And it doesn't work for groups, as @zeeple mentioned in comments.
PS:它不适用于团体,正如@zeeple在评论中提到的那样。
#2
3
Dragging resources between projects in XCode is generally a bad idea in my opinion, even if it is supported. When you drag and drop something in XCode, it doesn't actually create a new copy of that thing, it just adds a new reference to its old location.
在我看来,在XCode中的项目之间拖动资源通常是一个坏主意,即使它是受支持的。当您在XCode中拖放某些内容时,它实际上并不创建该内容的新副本,而只是添加对其旧位置的新引用。
This can be very bad, because now changing the resource in one project will make the same changes appear in the other. The vast majority of the time this is not what you want. SCM further complicates things, because if you add a resource to Project B
by dragging from Project A
and then check in the changes and then some other developer checks out just Project B
, they will be missing the resources that you "added" to Project B
.
这可能非常糟糕,因为现在更改一个项目中的资源会使相同的更改出现在另一个项目中。绝大多数时候这不是你想要的。 SCM进一步使事情复杂化,因为如果通过从项目A拖动然后检入更改然后其他一些开发人员检查项目B来向项目B添加资源,他们将缺少您“添加”到项目B的资源。
So instead of dragging and dropping in XCode, I suggest using the Finder or the command line to explicitly copy your resources into the destination project's source tree. Then in XCode just add the copied files to the project the same way you normally would.
因此,我建议使用Finder或命令行将资源显式复制到目标项目的源树中,而不是在XCode中拖放。然后在XCode中,只需像往常一样将复制的文件添加到项目中。
#1
18
Previously:
drag folder from project A to project B.
Now:
1. in project A, right click - show in finder
2. finder - go up a level
3. drag the folder into project B
4. delete unnecessary files inside the newly added folder
以前:将文件夹从项目A拖到项目B.现在:1。在项目A中,右键单击 - 在查找器中显示2.查找器 - 上升到第3级。将文件夹拖到项目B中4.删除新添加的内部不必要的文件夹
Good job, Apple.
PS: And it doesn't work for groups, as @zeeple mentioned in comments.
PS:它不适用于团体,正如@zeeple在评论中提到的那样。
#2
3
Dragging resources between projects in XCode is generally a bad idea in my opinion, even if it is supported. When you drag and drop something in XCode, it doesn't actually create a new copy of that thing, it just adds a new reference to its old location.
在我看来,在XCode中的项目之间拖动资源通常是一个坏主意,即使它是受支持的。当您在XCode中拖放某些内容时,它实际上并不创建该内容的新副本,而只是添加对其旧位置的新引用。
This can be very bad, because now changing the resource in one project will make the same changes appear in the other. The vast majority of the time this is not what you want. SCM further complicates things, because if you add a resource to Project B
by dragging from Project A
and then check in the changes and then some other developer checks out just Project B
, they will be missing the resources that you "added" to Project B
.
这可能非常糟糕,因为现在更改一个项目中的资源会使相同的更改出现在另一个项目中。绝大多数时候这不是你想要的。 SCM进一步使事情复杂化,因为如果通过从项目A拖动然后检入更改然后其他一些开发人员检查项目B来向项目B添加资源,他们将缺少您“添加”到项目B的资源。
So instead of dragging and dropping in XCode, I suggest using the Finder or the command line to explicitly copy your resources into the destination project's source tree. Then in XCode just add the copied files to the project the same way you normally would.
因此,我建议使用Finder或命令行将资源显式复制到目标项目的源树中,而不是在XCode中拖放。然后在XCode中,只需像往常一样将复制的文件添加到项目中。