Unverified Commit 78cca625 authored by jmagman's avatar jmagman Committed by GitHub

Always install the ephemeral engine copy instead of fetching from CocoaPods specs (#37906)

parent 0a58610c
...@@ -187,6 +187,15 @@ Future<void> main() async { ...@@ -187,6 +187,15 @@ Future<void> main() async {
return TaskResult.failure('Failed to build ephemeral host .app with CocoaPods'); return TaskResult.failure('Failed to build ephemeral host .app with CocoaPods');
} }
final File podfileLockFile = File(path.join(projectDir.path, '.ios', 'Podfile.lock'));
final String podfileLockOutput = podfileLockFile.readAsStringSync();
if (!podfileLockOutput.contains(':path: Flutter/engine')
|| !podfileLockOutput.contains(':path: Flutter/FlutterPluginRegistrant')
|| !podfileLockOutput.contains(':path: Flutter/.symlinks/device_info/ios')
|| !podfileLockOutput.contains(':path: Flutter/.symlinks/package_info/ios')) {
return TaskResult.failure('Building ephemeral host app Podfile.lock does not contain expected pods');
}
section('Clean build'); section('Clean build');
await inDirectory(projectDir, () async { await inDirectory(projectDir, () async {
......
...@@ -4,6 +4,7 @@ flutter_application_path = '../' ...@@ -4,6 +4,7 @@ flutter_application_path = '../'
load File.join(flutter_application_path, '.ios', 'Flutter', 'podhelper.rb') load File.join(flutter_application_path, '.ios', 'Flutter', 'podhelper.rb')
target 'Runner' do target 'Runner' do
install_flutter_engine_pod
install_flutter_plugin_pods flutter_application_path install_flutter_plugin_pods flutter_application_path
end end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment