From 08341aef38ea1281a37febd087e68485dc70102a Mon Sep 17 00:00:00 2001 From: Watson Date: Tue, 26 Feb 2013 11:14:22 +0900 Subject: [PATCH] fix a bug which does not launch iOS simulator when `app.xcode_dir' is specified a path other than the '/Applications' folder --- lib/motion/project.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/motion/project.rb b/lib/motion/project.rb index eb91065a..08afe1e0 100644 --- a/lib/motion/project.rb +++ b/lib/motion/project.rb @@ -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'))