问题描述
我开始研究 Xcode 4 的 custum 项目模板.我发现了这两个链接:- http://blog.boreal-kiss.net/2011/03/11/a-minimal-project-template-for-xcode-4/- http://snipt.net/yonishin/about-xcode-4-project-模板
I started to work on a custum project template for Xcode 4. I found this two links : - http://blog.boreal-kiss.net/2011/03/11/a-minimal-project-template-for-xcode-4/ - http://snipt.net/yonishin/about-xcode-4-project-template
它有助于开始,但我无法实现以下内容:- 添加另一个 Xcode 项目作为目标依赖项,- 将一个组添加到另一个组中.
It helps to start but I do not manage to implement things like : - add another Xcode project as a target dependency, - add a group into another group.
知道如何做这些事情,或者我可以在哪里找到一些文档吗?
Any idea how to do such things, or where I could find some documentations ?
问候,昆汀
推荐答案
无耻的插件:
我花了大约 70 个小时通过反复试验尽可能地记录 Xcode 4 模板系统.它有 70 页以及几个示例模板.我收取少量费用,因为它涉及面广,而且我投入了大量时间.
I've put in roughly 70 hours to document the Xcode 4 template system as good as is possible with trial and error. It's 70 pages plus several example templates. I charge a small fee for it because it's extensive and I put a lot of time into it.
我最感兴趣的是找到一种将其他 Xcode 项目添加到项目模板的方法,这实际上开始了文档工作.
I was most interested in figuring a way to add other Xcode projects to a project template, that actually got the documentation effort started.
不幸的是,我的所有测试都指向一个结论:Apple 从未打算让项目模板使用或创建额外的项目引用.您可以将 .xcodeproj 文件添加到项目模板中,但遗憾的是,新的项目模板格式不允许您复制文件而不将它们添加到新创建的项目中.从本质上讲,我会说创建引用其他 Xcode 项目的项目模板是可能的,但不是以令人满意的方式(说:新创建的项目的用户没有手动清理).至少对我来说不是.
Unfortunately, all my tests did point to one conclusion: Apple never intended for project templates to use or create additional project references. You can add a .xcodeproj file to the project template, but the new project template format unfortunately doesn't allow you to copy files without adding them to the newly created project. In essence I would say that creating project templates referencing other Xcode projects may be possible but not in a satisfactory way (speak: no manual cleanup by user of the newly created project). At least not to me.
这篇关于你知道它是否存在一些关于 Xcode 4 项目模板的文档吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!