Use -configuration instead of -scheme for building release code.

pro tip: Xcode schemes are stored as userdata by default.
This commit is contained in:
Corey Johnson 2012-03-30 09:23:44 -07:00
parent d9ec570a18
commit ed2a102c85

View File

@ -7,7 +7,7 @@ BUILD_DIR = '/tmp/atom-build'
desc "Build Atom via `xcodebuild`"
task :build => :"verify-prerequisites" do
output = `xcodebuild -scheme atom-release SYMROOT=#{BUILD_DIR}`
output = `xcodebuild -configuration Release SYMROOT=#{BUILD_DIR}`
if $?.exitstatus != 0
$stderr.puts "Error #{$?.exitstatus}:\n#{output}"
exit($?.exitstatus)