Information Technology Reference
In-Depth Information
Because the templates are limited, customization is highly recommended. After your first few projects, you can
review your code, see which features are reused regularly, and add them to the equivalent template.
CAUTION
Whenever you update Xcode, the standard template directories are overwritten. Whether you're using edited tem-
plates or a collection of custom templates, you must keep copies in a folder outside the /Developer directory and
copy them back by hand after every update. If you don't, your edits are destroyed. (In theory you should be able to
keep custom templates in ~/Library/Application Support/Developer/ Shared/Xcode/Project Tem-
plates , but this feature isn't working the first release of Xcode 4.)
Summary
This chapter looked at the Xcode templates and introduced a simple template-based build sequence. It ex-
amined the features of the different template types and explored the application templates for both iOS and OS
X in some detail. It also explained how to modify the templates to improve them and create useful and full-fea-
tured starting points for further development.
Search WWH ::




Custom Search