Only try to get build settings if the Xcode project exists (#61979)

This commit is contained in:
Jenn Magder
2020-07-22 18:22:38 -07:00
committed by GitHub
parent fe781e7e78
commit fe670c04cc
2 changed files with 9 additions and 1 deletions

View File

@@ -521,7 +521,7 @@ class IosProject extends FlutterProjectPlatform implements XcodeBasedProject {
Map<String, Map<String, String>> _buildSettingsByScheme;
Future<XcodeProjectInfo> projectInfo() async {
if (!existsSync() || !globals.xcodeProjectInterpreter.isInstalled) {
if (!xcodeProject.existsSync() || !globals.xcodeProjectInterpreter.isInstalled) {
return null;
}
return _projectInfo ??= await globals.xcodeProjectInterpreter.getInfo(hostAppRoot.path);