XCode 4 Adding a Sub Project

倖福魔咒の 提交于 2019-12-18 10:45:07

问题


I am looking at somebody else's project and they have another project embedded under 'Other Sources'. When I click on the project it shows me the build settings etc, and I can expand all the source underneath.

I want to do the same thing, but when I drag an xcodeproj file into my project I don't get the build settings or any of the source shown like in this other project. How do I do this?

Thanks Ray


回答1:


Just be sure that your added project is not open in another Xcode window.

BTW this is still valid with Xcode 7.2 beta.




回答2:


Sorry to revamp the old question, but I just got the absolute answer for this problem.... maybe this can help the other....

To add Sub-Project to current project, It just simply drag the .xcodeproj from finder to xcode, place it in your project...

BUT... there is something must be done before doing this.... JUST OPEN ONE XCODE INSTANCE.... So, close the other instance when dragging .xcodeproj to xcode....

If you drag it while opening few xcode instance (opening few project at once), the .xcodeproj that you dragged can't be expanded and not just what you want...

hope this can help the other....

Regards




回答3:


When you drag the new project to the source list in Xcode, make sure you drop it on top of the project header (the thing that you click to get to the build settings and targets).



来源:https://stackoverflow.com/questions/5784561/xcode-4-adding-a-sub-project

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!