mirror of
https://github.com/zhigang1992/RubyMotion.git
synced 2026-05-28 16:14:32 +08:00
only takeOff on the device
This commit is contained in:
@@ -49,7 +49,7 @@ class TestFlightConfig
|
||||
launcher_code = <<EOF
|
||||
# This file is automatically generated. Do not edit.
|
||||
|
||||
if Object.const_defined?('TestFlight')
|
||||
if Object.const_defined?('TestFlight') and !UIDevice.currentDevice.model.include?('Simulator')
|
||||
NSNotificationCenter.defaultCenter.addObserverForName(UIApplicationDidBecomeActiveNotification, object:nil, queue:nil, usingBlock:lambda do |notification|
|
||||
TestFlight.takeOff('#{team_token}')
|
||||
end)
|
||||
|
||||
Reference in New Issue
Block a user