Unverified Commit 91dcfc5d authored by Jonah Williams's avatar Jonah Williams Committed by GitHub

stderr can be null or empty string (#15701)

parent d6bac5fd
...@@ -158,7 +158,7 @@ class Xcode { ...@@ -158,7 +158,7 @@ class Xcode {
// This command will error if additional components need to be installed in // This command will error if additional components need to be installed in
// xcode 9.2 and above. // xcode 9.2 and above.
final ProcessResult result = processManager.runSync(<String>['/usr/bin/xcrun', 'simctl', 'list']); final ProcessResult result = processManager.runSync(<String>['/usr/bin/xcrun', 'simctl', 'list']);
_isSimctlInstalled = result.stderr == null; _isSimctlInstalled = result.stderr == null || result.stderr == '';
} on ProcessException { } on ProcessException {
_isSimctlInstalled = false; _isSimctlInstalled = false;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment