Skip to content

Commit f7663f0

Browse files
NSProgrammermeta-codesync[bot]
authored andcommitted
Fix -Wswitch-enum error
Summary: title Differential Revision: D86487500 fbshipit-source-id: 12bd11c67e1898e699b8f92c3ad10a25e4dee17c
1 parent 58e03b0 commit f7663f0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

FBSimulatorControl/Commands/FBSimulatorProcessSpawnCommands.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ - (instancetype)initWithSimulator:(FBSimulator *)simulator
117117
// This would not be an issue if using simctl directly, as the stdout/stderr of the simctl process would close when the simctl process terminates.
118118
// However, using the simctl approach, we don't get the pid of the spawned process, this is merely logged internally.
119119
// Failing to close this end of the file descriptor would lead to the write-end of any pipe to not be closed and therefore it would leak.
120-
120+
121121
[attachment.stdOut close];
122122
[attachment.stdErr close];
123123
}
@@ -162,6 +162,7 @@ + (BOOL)shouldLaunchStandaloneOnSimulator:(FBSimulator *)simulator mode:(FBProce
162162
return NO;
163163
case FBProcessSpawnModePosixSpawn:
164164
return YES;
165+
case FBProcessSpawnModeDefault:
165166
default:
166167
// Default behaviour is to use launchd if booted, otherwise use standalone.
167168
return simulator.state != FBiOSTargetStateBooted;

0 commit comments

Comments
 (0)