Tool: A Ruby Based CLI For Automatically Reconfiguring Existing Xcode Projects

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:

gem install liftoff

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.

DeliciousTwitterFacebookRedditLinkedInEmail

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.

Leave a Reply

Your email address will not be published. Required fields are marked *