在 XCode 4.x 中添加项目作为依赖项 [英] Adding project as dependency in XCode 4.x

查看:15
本文介绍了在 XCode 4.x 中添加项目作为依赖项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

随着 XCode 的改进,我在弄清楚如何添加一个 xcodeproj 依赖于另一个时遇到了很多麻烦.以前锻炼很困难,但现在我卡住了.

With the revamp of XCode I am having a lot of trouble working out how to add make one xcodeproj dependent on another. It was hard enough to work out before but now I am just stuck.

如果我将 lib.xcodeproj 拖到 app.xcodeproj 中,它只会显示为项目树中的一个项目,我无法展开它或查看用于链接的构建产品.

If I drag lib.xcodeproj into app.xcodeproj it just shows up as an item in the project tree and I can't expand it or see build products for linking.

谁能给我正确的顺序将 lib.xcodeproj 添加为 app.xcodeproj 的依赖项(即它会在必要时构建并链接到应用程序)

Can someone give me the correct sequence for adding lib.xcodeproj as a dependency to app.xcodeproj (ie it will build if necessary and link to app)

推荐答案

啊啊啊刚刚发现 lib 项目被添加为无用的非扩展项的原因是因为我在另一个窗口中打开了 lib 项目.XCode 没有告诉我这就是问题所在,所以我很幸运地偶然发现了它.

Ahhh just worked out that the reason the lib project was being added as a useless non-expanding item was because I had the lib project open in another window. XCode gave me no indication that this was what the problem was, so I was lucky to stumble across it.

关闭另一个窗口后,我就可以添加 lib 项目,它正确显示为可展开的子树,并且现在可以在应用程序目标依赖项中进行选择.

Once I had closed the other window I was able to add the lib project and it showed up correctly as an expandable subtree, as well as now being visible for selection in the app target dependencies.

这篇关于在 XCode 4.x 中添加项目作为依赖项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆