add check that xcode project configuration is not missing (#31621)
This commit is contained in:
@@ -294,6 +294,15 @@ void main() {
|
||||
|
||||
expect(iosApp, null);
|
||||
}, overrides: overrides);
|
||||
|
||||
testUsingContext('returns null when there is no Runner.xcodeproj/project.pbxproj', () async {
|
||||
fs.file('pubspec.yaml').createSync();
|
||||
fs.file('.packages').createSync();
|
||||
fs.file('ios/Runner.xcodeproj').createSync(recursive: true);
|
||||
final BuildableIOSApp iosApp = IOSApp.fromIosProject((await FlutterProject.fromDirectory(fs.currentDirectory)).ios);
|
||||
|
||||
expect(iosApp, null);
|
||||
}, overrides: overrides);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user