add check that xcode project configuration is not missing (#31621)
This commit is contained in:
@@ -319,7 +319,7 @@ abstract class IOSApp extends ApplicationPackage {
|
||||
return null;
|
||||
}
|
||||
if (!project.exists) {
|
||||
// If the project doesn't exist at all the existing hint to run flutter
|
||||
// If the project doesn't exist at all the current hint to run flutter
|
||||
// create is accurate.
|
||||
return null;
|
||||
}
|
||||
@@ -327,6 +327,10 @@ abstract class IOSApp extends ApplicationPackage {
|
||||
printError('Expected ios/Runner.xcodeproj but this file is missing.');
|
||||
return null;
|
||||
}
|
||||
if (!project.xcodeProjectInfoFile.existsSync()) {
|
||||
printError('Expected ios/Runner.xcodeproj/project.pbxproj but this file is missing.');
|
||||
return null;
|
||||
}
|
||||
return BuildableIOSApp(project);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user