Created
March 9, 2010 12:13
-
-
Save splhack/326522 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'fileutils' | |
SDKS = %W|iphonesimulator3.1.2 iphoneos3.1.2| | |
CONFIGS = %W|Debug Release| | |
def xcodebuild(action) | |
system "security unlock-keychain $HOME/Library/Keychains/login.keychain" | |
SDKS.each do |sdk| | |
CONFIGS.each do |config| | |
system "xcodebuild -alltargets " + | |
"-configuration #{config} -sdk #{sdk} #{action}" | |
return false if $? != 0 | |
end | |
end | |
true | |
end | |
task :default => ["build"] | |
desc "build" | |
task :build do | |
return false unless xcodebuild "build" | |
end | |
desc "clean" | |
task :clean do | |
FileUtils.rm_rf "build" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment