stderr can be null or empty string (#15701)

This commit is contained in:
Jonah Williams
2018-03-19 10:53:04 -07:00
committed by GitHub
parent d6bac5fd4a
commit 91dcfc5dd2

View File

@@ -158,7 +158,7 @@ class Xcode {
// This command will error if additional components need to be installed in
// xcode 9.2 and above.
final ProcessResult result = processManager.runSync(<String>['/usr/bin/xcrun', 'simctl', 'list']);
_isSimctlInstalled = result.stderr == null;
_isSimctlInstalled = result.stderr == null || result.stderr == '';
} on ProcessException {
_isSimctlInstalled = false;
}