Taking the pain out of scripting and automating xcode builds.
Xcoder is a ruby wrapper around various Xcode tools as well as
providing project and workspace parsing and partial write
support. Xcoder also supports manipulation of keychains,
packaging and uploading artifacts to Testflight and provisioning
profile management.  Full documentation can be found here:
http://rayh.github.com/xcoder/   Xcoder assumes you are using
XCode 4.6 on Mountain Lion and ruby 1.9. You may have some
degree of success with lesser versions, but they are not
intentionally supported.  Example Usage  You will need to
install the gem:  gem install xcoder  and then require the gem
in your project/rakefile/etc  require 'xcoder'  Load a project
Finding all projects from the current directory down
Xcode.find_projects.each {|p| puts p.name }  Find a
configuration for a target on a project   Building a
configuration  builder = config.builder # Building uses the
targets's default sdk, which you can override: builder.build
:sdk => :iphone