user728651
user728651

Reputation: 21

Creating iPhone Project Template for XCode 4

How does one create a re-usable Project Template for XCode that will show up as an option for me to start development of a new Project?

I've hunted down several web pages and blogs and I can't seem to make this work too well. I've tried a number of instructions around the web but can't get my template to show up in XCode no matter what I do... what's the secret?

Upvotes: 2

Views: 2448

Answers (2)

Max MacLeod
Max MacLeod

Reputation: 26652

Having the template show up in Xcode shouldn't be too difficult. The important thing is for the template files to be in your user template folders location. For example:

/Users/user728651/Library/Developer/Xcode/Templates

Under that folder create a new folder called - for example - "My Templates"

Then, copy one of the default templates across to the new "My Templates" folder. For example, try copying the iOS Master-Detail template from:

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode/Templates/Project Templates/Application/Master-Detail 

to:

/Users/user728651/Library/Developer/Xcode/Templates/My Templates

When you select New Project in Xcode, you will then see:

enter image description here

Also worth a look, with links to more examples is the answer to this question:

Creating sub-groups in XCode 4 Templates

Upvotes: 0

Ayal
Ayal

Reputation: 470

Take a look at this article http://blog.boreal-kiss.net/2011/03/11/a-minimal-project-template-for-xcode-4/. It has an impressive amount of detail on the process of creating an XCode 4 project template. Also, make sure to check out the comment section at the bottom of the article, quiet a few people have added notes and details.

Upvotes: 3

Related Questions