Prevent "install XCode" dialog when flutter doctor is run (#6164)
fixes https://github.com/flutter/flutter/issues/6163
This commit is contained in:
@@ -28,6 +28,10 @@ class XCode {
|
||||
|
||||
try {
|
||||
_xcodeSelectPath = runSync(<String>['xcode-select', '--print-path']);
|
||||
if (_xcodeSelectPath == null || _xcodeSelectPath.trim().isEmpty) {
|
||||
_isInstalled = false;
|
||||
return;
|
||||
}
|
||||
_isInstalled = true;
|
||||
|
||||
_xcodeVersionText = runSync(<String>['xcodebuild', '-version']).replaceAll('\n', ', ');
|
||||
|
||||
Reference in New Issue
Block a user