简体   繁体   English

如何将一个项目添加到另一个项目(Xcode)

[英]How to add one project to another(Xcode)

I wright english very bad,but I hope you'l try to help me) There is a problem: have one project that contains another 2 projects(that contains classes I using in main project),when try to compile-there are many fails,because main project couldn't find classes from that projects. 我怀疑英语非常糟糕,但我希望你试着帮助我)有一个问题:有一个项目包含另外两个项目(包含我在主项目中使用的类),当尝试编译时 - 有很多失败,因为主项目无法从该项目中找到类。 I tried to add them from build phases->link binary with files-but it doesn't help me( Help me please with this problem!Thank you! 我试图从构建阶段添加它们 - >链接二进制文件 - 但它对我没有帮助(请帮我解决这个问题!谢谢!

In Xcode 4, this is done through Workspaces. 在Xcode 4中,这是通过工作区完成的。 This is a fairly big topic, so I will just link you to Apple's high-level document and a blog post that walks through the process of setting one up. 这是一个相当大的主题,因此,我只将您链接到Apple的高级文档和一个博客文章,其中逐步介绍了设置过程。

Apple doc: http://developer.apple.com/library/ios/#featuredarticles/XcodeConcepts/Concept-Workspace.html 苹果文档: http : //developer.apple.com/library/ios/#featuredarticles/XcodeConcepts/Concept-Workspace.html

Walkthrough: http://cocoamanifest.net/articles/2011/06/library-management-with-xcode-workspaces.html 演练: http//cocoamanifest.net/articles/2011/06/library-management-with-xcode-workspaces.html

Good luck! 祝好运!

尝试将它们添加为Target Dependencies。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM