Don't default bridge by default on Xcode 9
Summary: This isn't necessary any more, so it can be removed. The underlying bridge connection also needs fixing. Reviewed By: antiarchit Differential Revision: D5226868 fbshipit-source-id: aef18a30f0d7f2bac9ed50800bd2e579d84cd78b
This commit is contained in:
Родитель
38d8b76379
Коммит
49eeda1997
|
@ -68,7 +68,15 @@
|
|||
|
||||
- (BOOL)shouldConnectBridge
|
||||
{
|
||||
return ((self.options & FBSimulatorBootOptionsConnectBridge) == FBSimulatorBootOptionsConnectBridge) || self.shouldUseDirectLaunch;
|
||||
// If the option is flagged it should be used.
|
||||
if ((self.options & FBSimulatorBootOptionsConnectBridge) == FBSimulatorBootOptionsConnectBridge) {
|
||||
return YES;
|
||||
}
|
||||
// In some versions of Xcode 8, it was possible that a direct launch without a bridge could mean applications would not launch.
|
||||
if (!FBControlCoreGlobalConfiguration.isXcode9OrGreater && self.shouldUseDirectLaunch) {
|
||||
return YES;
|
||||
}
|
||||
return NO;
|
||||
}
|
||||
|
||||
#pragma mark Scale
|
||||
|
|
Загрузка…
Ссылка в новой задаче