我希望 Xcode 5 有更好的文档,但我找不到任何合适的描述使用工作区的最佳实践,所以..
I wish there was better documentation for this for Xcode 5 but I couldn't find anything decent describing best practices for working with workspaces, so..
在具有多个项目(几个框架,1 个应用程序)的工作区中,是否可以让 Xcode仅在需要时构建所有依赖项目(即发现更改)无需包含所有依赖项目中的所有项目?
In a workspace with several projects (couple frameworks, 1 app) is it possible to have Xcode build all dependent projects only when required (i.e. changes found) w/o having to include all projects in all dependent projects?
我宁愿只让项目中的框架依赖于它,而不是在其中包含 5-6 个子项目,因为这只是 导航视图中的一团糟 -
子项目中的文件一直显示在搜索结果中,NavView 中的子项目会因任何原因在项目中展开..
I'd rather like to just have the frameworks in the project depending on it instead of having 5-6 sub projects in it as this is just a mess in the Navigation View -
files inside sub-projects show up in search results all the time, sub-projects in the NavView expand for whatever reason within projects..
但是,如果不包含特定项目所依赖的项目,如果其中一个依赖项发生了变化,我无法找到让 Xcode 5 自动重新构建框架的方法.
However, w/o including projects a particular project depends on I couldn't find a way to have Xcode 5 re-build the frameworks automatically if one of the dependencies has changed.
这个解决方案是为了解决另一个问题,但也许它可以满足您的需求.
This solution was intended for another problem, but maybe it fills your needs.
将子项目添加到工作区后:
After adding your subproject to the workspace:
现在您正在为您的目标使用选择的库.对需要此子项目的每个目标重复这些步骤.希望有帮助!对我来说它确实是因为我之前无法设法向它添加依赖项......
Now you are using the chosen library for your target. Repeat those steps for every target which needs this subproject. Hope that helps! For me it did because i could not manage to add dependencies to it before...
问候,汤姆特
这篇关于带有子项目和项目依赖项的 Xcode 工作区触发构建的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!