[XCode] How to create a Xcode project template
来源:互联网 发布:虚拟变量数据案例 编辑:程序博客网 时间:2024/05/16 13:07
Xcode project templates
From IPhone Dev FAQ
- Open a new finder window and navigate to ~/Library/Application Support/Developer/Shared/Xcode/ (note the ~)
- Create a new directory in here called Project Templates/
- Go into the newly created Project Templates/ directory and create a directory for the group your templates will appear in within the new project dialog in Xcode. In this example we will use MyApplication.
- Open a new finder window and navigate to /Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode/Project Templates/Application
- Copy one of the project templates (the one that best meets your needs) from here to the MyApplication directory we just created.
- Rename the copied project template directory to the name you want your template to be called.
- Go into this directory and you'll find an Xcode project called ___PROJECTNAME___.xcodeproj - Open this project like any normal project and edit it to how you want your newly created projects made from this template to be. You can use ___PROJECTNAME___ in files and directory names and in code and it will be replaced with the project name. ___PROJECTNAMEASIDENTIFIER___ can be used for code where you don't want spaces or other characters.
- After setting up your project template how you like, make sure it builds and then go and delete the build directory from the template directory because you don't want it to create that in new projects. Inside the ___PROJECTNAME___.xcodeproj directory you should also delete the username.* files (where username is your username), these contain things like window state and open files information from the last time you edited the project. If you ever edit your template later on, you'll need to delete these files again.
- Finally, change the description of your template in the ___PROJECTNAME___.xcodeproj/TemplateInfo.plist file and optionally change the icons file ___PROJECTNAME___.xcodeproj/TemplateIcon.icns. Search the web for how to edit .icns files, that's not covered here.
You can even add your project template to SVN and Xcode won't copy the .svn directories when it creates a new project. This can make it easy to merge useful changes from projects back into your template.
reference from http://www.iphonedevfaq.com/index.php?title=Xcode_Project_Template
I try to create my project template for my game develop toolkit CloudBox.
This is a very interesting experience.
In my experience,if file name set to ___PROJECTNAMEASIDENTIFIER___ , we must set file property is Relative to Project.
If file is our toolkit, we must set file property is Relative to Enclosing Group.
- [XCode] How to create a Xcode project template
- User Xcode and GCC How to create a C programe
- How to build multiple targets from a single Xcode Project
- Xcode create a openCV c++ project some settting
- create a cocos2d-x-3.0 project in Xcode
- How to create IPA file with XCode 4.3
- How to create multiple targets for Xcode iPhone Projects
- How to add QuartzCore.framework for your project in xcode?
- How to Uninstall Xcode
- How to Uninstall Xcode
- How to: Create a C# Test Project Add-In -wisdom
- How to Create a SharePoint 2010 Project Without SharePoint Server
- How to create good test case template
- How to create universal static libraries on Xcode 4: the traditional wa
- How to create an IPA on Xcode 4.3.2(打包成ipa)
- How to create universal static libraries on Xcode 4: the traditional way
- How to Create a Customer
- how to create a Makefile
- WCF从理论到实践(2):决战紫禁之巅
- Php Mssql操作简单封装支持存储过程
- 采用Window对象shim属性解决IE下flash位于弹出窗口之上遮住窗口问题——此方法对firefox暂未解决
- Java创建对象的方式
- Mysql 备份与恢复
- [XCode] How to create a Xcode project template
- smarty截取字符串
- db2 迁移数据库数据 、导出导入 、 备份
- Metasploit Support
- Linux的openvpn
- 云技术含量的问题
- 几种建站整合包
- c语言中链表的概念和简单的实现
- MySQL 备份和恢复2