mirror of
https://github.com/zhigang1992/RubyMotion.git
synced 2026-04-24 04:46:05 +08:00
fix 'rake spec' to always exit() based on the return code, to workaround race conditions with the new iOS 6 simulator
This commit is contained in:
@@ -93,7 +93,7 @@ task :simulator => ['build:simulator'] do
|
||||
# Launch the simulator.
|
||||
xcode = App.config.xcode_dir
|
||||
env = xcode.match(/^\/Applications/) ? "DYLD_FRAMEWORK_PATH=\"#{xcode}/../Frameworks\":\"#{xcode}/../OtherFrameworks\"" : ''
|
||||
env << ' NO_FOREGROUND_SIM=1' if App.config.spec_mode
|
||||
env << ' SIM_SPEC_MODE=1' if App.config.spec_mode
|
||||
sim = File.join(App.config.bindir, 'sim')
|
||||
debug = (ENV['debug'] ? 1 : (App.config.spec_mode ? '0' : '2'))
|
||||
App.info 'Simulate', app
|
||||
|
||||
Reference in New Issue
Block a user