Configuring a default Xcode project set up exactly how you’d like it can be somewhat tedious – and this is where Xcode templates come in, but that won’t help if you want to change an existing project.
Recently I came across a Ruby gem called Liftoff from Thoughtbot that can automatically give an Xcode project some opinionated settings.
The readme states that Liftoff will:
– Add default .gitignore and .gitattributes files. Read more about this in our blog post: Xcode and git: bridging the gap
– Set the indentation level (4 spaces by default. No tabs, the way God intended)
– Treat warnings as errors for release schemes
– Enable Hosey-level warnings at the project level
– Turn on Static Analysis for the project
– Add a build phase shell script that turns “TODO:” and “FIXME:” into warnings
You can install Liftoff with:
And you can find Liftoff on Github here.
To set up the project settings Liftoff uses the xcodeproj gem (source on Github here).
While you might not like all the settings given by Liftoff you can look at the source and see how it’s done.
Submit A Resource
Have you created a useful tutorial, library or tool for iOS development that you would like to get in front of our 300,000+ monthly page views from iOS developers?
You can submit the url here.
The resources we feel will appeal to our readers the most will be posted on the front page.