I had the same problem, here is a list of the changes you need to do to make your xcode 3 templates works with xcode 4 :
First you have to move your templates to a new directory :
/YourUserDirectory/Library/Developer/Xcode/Templates/File Templates
(previously it was /Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode/File Templates)
Then you need to :
- rename your templates from "*.pbfiletemplate" to ".xctemplate"
- rename class.h into
___FILEBASENAME___
.h (the class.m can stay unchanged)
- inside all of your files change «FILEBASENAMEASIDENTIFIER» into
___FILEBASENAMEASIDENTIFIER___
- Additonaly all the key words like «FILENAME», «PROJECTNAME», need to be replaced by
___FILENAME___
, ___PROJECTNAME___
, etc
- «OPTIONALHEADERIMPORTLINE» needs to be replaced by #import "
___FILEBASENAME___.h
"
Hope this helps,
Vincent