If your existing application (MyApp) doesn’t
already have a Podfile, run pod init in the
MyApp directory to create one. 
You can find more details on using 
CocoaPods in the CocoaPods getting started guide.

Add the following lines to your Podfile:

    
    
flutter_application_path = '../my_flutter'
load File.join(flutter_application_path, '.ios', 'Flutter', 'podhelper.rb')

For each Podfile target that needs to
embed Flutter, call install_all_flutter_pods(flutter_application_path).

    
    
target 'MyApp' do
  install_all_flutter_pods(flutter_application_path)
end

In the Podfile’s post_install block, call flutter_post_install(installer).