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.
- Open Source Project Providing An API For Manipulating Xcode Projects
- Tool: SOAP Based Web Services Made Easy On The iOS Platform
- Tool Allowing You To Build Mac Executables From iOS Simulator Builds
- Easily Get Non-ARC Enabled Open Source Libraries Working In ARC Enabled Projects
- Mini Xcode Plugin For Working Without The Gigantic Xcode Toolbar
Original article: Tool: A Ruby Based CLI For Automatically Reconfiguring Existing Xcode Projects
©2013 iOS App Dev Libraries, Controls, Tutorials, Examples and Tools. All Rights Reserved.





