mirror of
https://github.com/zhigang1992/RubyMotion.git
synced 2026-01-13 17:42:09 +08:00
[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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user