Creating new Xcode projects
From IPhone Dev FAQ
(Redirected from New Project Checklist)
When you create a new project there are a few things you need to do to get it set up correctly. This checklist helps you to remember what they all are, if anything is missing, please add to it.
Contents |
Using Source Control
- Create a new repository using whatever you use
- Add the repository info under SCM->Repositories
Info.plist
- If you want the status bar to be hidden add: UIStatusBarHidden, set its type to boolean and check the box to make it true.
- Edit the Bundle Identifier to set your bundle prefix domain.
- Create an icon file called Icon.png and add it to Resources, set the Icon file value to Icon.png
- Create a first-show image called Default.png and add it to Resources
Project Settings
- Compress .png files - Switch off if desired.
- Set the correct repository.
- Add a CFlag for debug configurations -D_DEBUG or whatever you prefer.
Source Code
- Add something to ProjectName_Prefix.pch that depends on your _DEBUG define that enables you to have two versions of NSLog and any other functions you only want to run in debug builds. Something like this:
#ifdef _DEBUG #define DEBUG_ONLY(code) code #else #define DEBUG_ONLY(code) #endif
