Skip to content

Instantly share code, notes, and snippets.

@enriquez
Created June 16, 2015 00:13
Show Gist options
  • Save enriquez/5290f3d749cf6d68783a to your computer and use it in GitHub Desktop.
Save enriquez/5290f3d749cf6d68783a to your computer and use it in GitHub Desktop.
Example Rake tasks for building and testing apps with xctool
desc 'Run Tests'
task :test do
system 'xctool -workspace MyApp.xcworkspace -scheme MyApp -configuration Debug -sdk iphonesimulator run-tests'
end
namespace :myapp do
desc 'Build archive for MyApp Beta'
task :build_beta do
system 'xctool -workspace MyApp.xcworkspace -scheme MyApp -configuration Beta archive'
end
desc 'Build archive for MyApp Release'
task :build_release do
system 'xctool -workspace MyApp.xcworkspace -scheme MyApp -configuration Release archive'
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment