Xcode file and project templates to replace the default ones
- Clone this repository in to your user templates folder:
git clone email@example.com:mobileiq/miq-xcode-templates.git ~/Library/Developer/Xcode/Templates
- When creating a new file/project you'll see a group called MIQ. Use this for creating new files within projects
There's not much documentation that I've found on Xcode projects yet, but this blog post has some good info:
Project templates are getting more complete, and include groups with folders for most of the major groups we want, and it should be obvious from the templates how to add new ones. Unfortunately it's not possible to add an empty group that I've currently found, so this is fudged by adding readme files to empty groups. Please remove these before you make your initial commits.
When adding unit tests to a project that uses core data, the core data test base class is added by default to the tests group.
Currently I've not figured out how to make a MIQ group for project templates, so the MIQ templates have an MIQ prefix.
The group structure for the projects (with associated sub folders) is (or should be, let me know if not):
- View Controllers
Another thing I intend to add is to stop unit tests from being a choice, just add them by default. Not worked that out yet, but unit tests should at least be selected. Please use this and write tests wherever possible.
Something else I'd like to add, but it's very complicated, so haven't managed yet, is for these templates to add a static library target that code gets added to and the unit test bundle and the main app target then link to.
There's a good post here: