mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
stderr can be null or empty string (#15701)
This commit is contained in:
parent
d6bac5fd4a
commit
91dcfc5dd2
@ -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;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user