[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
This commit is contained in:
Watson
2015-02-16 16:52:06 +09:00
parent 4aab1c8113
commit 116f0bba8a

View File

@@ -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)