创建 Xcode 项目模板我需要知道什么? [英] What do I need to know to create Xcode project templates?

查看:48
本文介绍了创建 Xcode 项目模板我需要知道什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道一些创建 Xcode 项目模板的教程,例如这里的这个:http://robnapier.net/blog/project-templates-364

I know some of the tutorials for creating Xcode project templates, for example this one here: http://robnapier.net/blog/project-templates-364

这是我能找到的最好的.所有其他人基本上都重复相同的信息,或者不再是最新的,或者更糟的是告诉我,即使他们也不知道自己在做什么.链接到此处和其他地方的可能有用的工具不再可用.

This is the best one I could find. All others basically repeat the same info, or are no longer up to date, or worse tell me that even they don't know what they're doing. Possibly useful tools that are linked to here and in other places are no longer available.

我一直遇到障碍,并希望尽可能多地收集有关创建 Xcode 项目模板过程的信息.最重要的最新信息(至少必须与 Xcode 3 或更高版本相关).

I keep running into roadblocks, and would like to gather as much information as possible on the process of creating Xcode project templates. Info that is most importantly up to date (at least it must be relevant for Xcode 3 or higher).

例如,我想看到的是:

  • 描述TemplateChooser.plist 和类似的plist 文件以及这些选项的作用(就我而言,一旦我添加了TemplateChooser.plist,我的项目从 Xcode 项目中消失模板列表)
  • 如何创建引用另一个 .xcodeproj 的项目模板(当我这样做时,另一个 .xcodeproj 出现在项目模板列表中,即使它不使用特殊的命名约定)
  • 可以应用的流程,例如是否可以在从模板创建项目期间运行脚本?这对于将某些文件解压缩到新创建的项目中很有用.

如果您对上述任何问题有答案或建议,我将不胜感激.否则强烈推荐任何指向好的 Xcode 项目模板资源的链接.特别是如果有来自 Apple 的官方文档 - 我还没有找到似乎暗示项目模板未记录的文档.

If you have the answer or suggestions to any of the issues above, I'd appreciate that. Otherwise any link to good Xcode project template resources would be highly recommended. Especially if there is an official documentation from Apple - I haven't found one yet which seems to imply that project templates are undocumented.

推荐答案

XCode 模板信息确实很少.我发现感兴趣的是以下链接(我在该主题上记录了自己,但还没有更进一步):

There is indeed little XCode template info out there. What I have found of interest are the following links (I documented myself on the topic, but haven't yet gone any further):

  • Google 代码搜索 揭示了一些例子,但并不多
  • 特别是,我发现查看 Three20 提供的代码很有趣;他们有一些基本的例子,比如 这里
  • 引用另一个对我有用的项目,所以也许您可以提出一个具体问题,提供更多详细信息?
  • Apple 邮件列表
  • 没有来自 Apple 的官方文档,这可以从 这个查询
  • a Google Code search reveals a few examples, but not much
  • in particular, I found interesting to look at the code provided by Three20; they have some basic examples, like here
  • referencing another project worked for me, so maybe you could open a specific question about that giving more details?
  • there is information scattered on the Apple mailing-lists
  • there is no official documentation from Apple, as is evidenced by the lack of results to this query

如果这不是一个有启发性的简洁答案,我很抱歉.正如你所说,它没有很好的记录,而且来源到处都是.我只是希望我可以突出显示一些地方,以找到您自己的搜索可能未达到的信息:)

I'm sorry if this is not a Enlighting, concise answer. As you said, it's not well documented, and sources are all over the place. I just hope I could highlight some places to find information that your own searches might not have reached :)

这篇关于创建 Xcode 项目模板我需要知道什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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