自定义 XCode 模板?
我想在 XCode 中基于 Apple 模板的修改项目制作自己的 iPhone 应用程序模板。
例如,我想采用一个基于视图的项目,添加一个图像视图并将该项目保存为模板。确实,这只是一个例子。
这可能吗?为何如此?
I would like to make my own iPhone Application Templates in XCode, based on a modified project from the Apple templates.
For example, I would like to take a View Based project, add an Image View and save that project as a template. Really, this is just an example.
Is this possible? How so?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
thyrgle 的答案可能与 2010 年 6 月每个人都在使用 Xcode 3 相关。但是 Xcode 4 中的情况发生了很大变化。也许可以尝试 本教程。甚至这个。
thyrgle's answer may have been relevant in June of 2010 when everyone was using Xcode 3. But things have changed considerably in Xcode 4. Maybe try this tutorial. Or even this one.
有关完整教程,请查看以下内容: http://arstechnica.com/apple/guides/2009/04/cocoa-dev-design-your-own-xcode-project-templates.ars
只需创建一个按照您想要的方式格式化的 Xcode 项目即可。简而言之,只需将新格式化的 Xcode 项目带到此处:/Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode/Project Templates/Application
For a full tutorial look at this: http://arstechnica.com/apple/guides/2009/04/cocoa-dev-design-your-own-xcode-project-templates.ars
And just make an Xcode project that is formatted the way you want it. In short just bring your new formatted Xcode project to here: /Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode/Project Templates/Application
问题很简单,请按照以下步骤进行
步骤 1:
打开 Finder,转到“应用程序”并右键单击 Xcode 以显示包内容。导航到 Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode/Templates/Project Templates/Application
步骤 2:
在那里您可以看到扩展名为 .xctemplate 的文件夹,将其复制。
步骤3:
更改文件夹的名称,运行 Xcode,您可以看到您的名称模板。
第4步:
如果您想自定义模板,请在 .plist 文件中进行更改。
It is simple as Question Follow Below Steps
Step 1:
Open finder, go to Applications and right click on Xcode to show package contents. Navigate to Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode/Templates/Project Templates/Application
Step 2:
There you can see folder with extension .xctemplate copy it.
Step 3:
Change the name of folder run Xcode you can see template of your name.
Step 4:
If you want to customise your template make changes in .plist file.