Xcode如何添加外部项目 [英] Xcode how to add an external project
问题描述
我需要在我的Xcode项目中添加一个外部项目,其原因是我需要在该外部项目静态库上添加目标依赖项。
I need to add an external project to my Xcode project, the reason for this is I need to add a Target Dependency on that external projects static library.
I似乎无法按照我需要的方式添加它,我想这样:
I can't seem to add it in the way I need, I would like it like this:
但是,当我在实际的Xcode项目中添加另一个项目时,却得到了以下内容让我从我的一个项目中探索该项目,因此无法添加所需的依赖项。
However, when I add another project to my actual Xcode project I get the following which doesn't let me explore that project from my one and so I can't add the dependency I need.
请注意,这些屏幕截图来自两个不同的项目,其中一个截图向我展示了我要在我自己的项目中复制,请按预期将多个项目拖入。
Note that these screenshots are from two different projects, and in the one which is showing me what I want to reproduce in my own project, dragging in multiple projects works as expected.
也许我的项目中的某些设置设置有误?我要做的只是从Xcode上获取模板的细节主应用程序。
Maybe I have some settings set up wrong in my project ? All I've done is take a template detail-master application from Xcode.
推荐答案
您做对了。问题是Xcode不能将同一项目打开两次。
You did it right. The problem is that Xcode cannot have the same project opened twice.
在重新打开父项目之前关闭 Serenity.xcodeproj
。
Close Serenity.xcodeproj
before reopening your parent project.
这篇关于Xcode如何添加外部项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!