Fix App.framework path in Podfile (#63412)

This commit is contained in:
Jenn Magder
2020-08-12 13:36:12 -07:00
committed by GitHub
parent 2384376f64
commit 6b2ef0df7b
2 changed files with 30 additions and 2 deletions

View File

@@ -191,6 +191,16 @@ Future<void> main() async {
// Android-only, no embedded framework.
checkDirectoryNotExists(path.join(ephemeralIOSHostApp.path, 'Frameworks', 'android_alarm_manager.framework'));
section('Clean and pub get module');
await inDirectory(projectDir, () async {
await flutter('clean');
});
await inDirectory(projectDir, () async {
await flutter('pub', options: <String>['get']);
});
section('Add to existing iOS Objective-C app');
final Directory objectiveCHostApp = Directory(path.join(tempDir.path, 'hello_host_app'));
@@ -241,6 +251,23 @@ Future<void> main() async {
return TaskResult.failure('Failed to build existing Objective-C app .app');
}
checkFileExists(path.join(
objectiveCBuildDirectory.path,
'Host.app',
'Frameworks',
'Flutter.framework',
'Flutter',
));
checkFileExists(path.join(
objectiveCBuildDirectory.path,
'Host.app',
'Frameworks',
'App.framework',
'flutter_assets',
'isolate_snapshot_data',
));
final String objectiveCAnalyticsOutput = objectiveCAnalyticsOutputFile.readAsStringSync();
if (!objectiveCAnalyticsOutput.contains('cd24: ios')
|| !objectiveCAnalyticsOutput.contains('cd25: true')