Prevent "install XCode" dialog when flutter doctor is run (#6164)

fixes https://github.com/flutter/flutter/issues/6163
This commit is contained in:
Dan Rubel
2016-10-02 12:23:03 -04:00
committed by GitHub
parent b4e379ad6c
commit 08d788099b

View File

@@ -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', ', ');