Vend Flutter module App.framework as a local CocoaPod pod to be installed by a host app (#36793)

This commit is contained in:
Jenn Magder
2019-07-30 09:58:39 -07:00
committed by GitHub
parent 47eeaac1a0
commit bd47a31e32
17 changed files with 327 additions and 246 deletions

View File

@@ -1,9 +1,8 @@
platform :ios, '9.0'
# Prevent Cocoapods from embedding a second Flutter framework and causing an error with the new Xcode build system.
install! 'cocoapods', :disable_input_output_paths => true
flutter_application_path = '../hello'
load File.join(flutter_application_path, '.ios', 'Flutter', 'podhelper.rb')
target 'Host' do
flutter_application_path = '../hello'
eval(File.read("#{flutter_application_path}/.ios/Flutter/podhelper.rb"))
install_all_flutter_pods flutter_application_path
end