only takeOff on the device

This commit is contained in:
Laurent Sansonetti
2012-02-03 14:36:50 +01:00
parent 96362304de
commit d2c140cefd

View File

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