fix a bug which does not launch iOS simulator when `app.xcode_dir' is specified a path other than the '/Applications' folder

This commit is contained in:
Watson
2013-02-26 11:14:22 +09:00
parent dcc952ba31
commit 08341aef38

View File

@@ -92,7 +92,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 = "DYLD_FRAMEWORK_PATH=\"#{xcode}/../Frameworks\":\"#{xcode}/../OtherFrameworks\""
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'))