From 116f0bba8a9f9cdfe8c45a7d2967190448b137ce Mon Sep 17 00:00:00 2001 From: Watson Date: Mon, 16 Feb 2015 16:52:06 +0900 Subject: [PATCH] [RM-766] fix detecting multiple simulator * Launch simulator version which indicated by SDK version. $ rake device_name='iPhone 5s' * Launch simulator version which indicated by `target` envronment variable. $ rake device_name='iPhone 5s' target=8.1 $ rake device_name='iPhone 5s' target=7.1 --- lib/motion/project/template/ios.rb | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/motion/project/template/ios.rb b/lib/motion/project/template/ios.rb index 162aee25..d53940f6 100644 --- a/lib/motion/project/template/ios.rb +++ b/lib/motion/project/template/ios.rb @@ -133,9 +133,6 @@ task :simulator do App.fail "It is not possible to simulate an SDK version (#{target}) " \ "lower than the app's deployment target (#{deployment_target})" end - if target && ENV['device_name'] - App.fail "It is not possible to specify both `device_name' and `target'" - end target ||= App.config.sdk_version # May be overridden on Xcode <= 5 with the `device_family' option (see below)