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

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

问题描述

随着XCode的改进,我有很多麻烦,要做出如何添加一个xcodeproj依赖于另一个。如果我将lib.xcodeproj拖到app.xcodeproj中,它只会显示为项目中的一个项目,这是很困难的,但现在我只是被困住了。



树,我不能扩展它或看到构建产品链接。



有人可以给我正确的序列来添加lib.xcodeproj作为app.xcodeproj的依赖(即它会建立,如果必要,链接到应用程序)

解决方案

Ahhh刚刚提出,lib项目被添加为无用的不扩展项目的原因是因为我的lib项目打开另一个窗口。 XCode给了我没有迹象表明这是什么问题,所以我很幸运地绊倒了。



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


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.

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.

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)

解决方案

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.

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天全站免登陆