create

Created in the root directory of the project using terminal commands, XXX is the name of module

flutter create -i objc -a kotlin -t module xxx
Copy the code

Swift, Java, Objc, Kotlin, of course. If you don’t add the default swift and kotlin;

Extension: flutter create -i swift -a kotlin flutter_example This is the quick create flutter project instruction

After creating the file directory, it looks like this

Configure the Podfile file

flutter_application_path = '.. /test_flutter_module' load File.join(flutter_application_path,'.iOS','Flutter','podhelper.rb') target 'MainProject' do install_all_flutter_pods(flutter_application_path) endCopy the code

When complete, execute pod Install

To run a

Library not loaded: @rpath/ app. framework/App go to Pods-**-frameworks. Sh and add install_framework “${PODS_ROOT}/.. /.. /.. /.. / Flutter, Flutter/ios/Flutter/App. The framework “. Note that both debug and release are added

Reference github.com/flutter/flu…

Configuration info. Plist

    1. Make a copy of the info.plist file and change it toinfo-Debug.plistandinfo-Release.plist

    1. Configure the info.plist Setting in build-setting

    1. Set up theinfo-Debug.plist, add the following two terms
  1. NSBonjourServices  -- _dartobservatory._tcp
  2. NSLocalNetworkUsageDescription - used to Flutter test

How to heat debug

  • AS click the small icon indicated by the arrow (the small blue icon will be displayed if there is no connection. I have already connected the device here)

  • When connected, the console of AS will show that it is connected

  • Breakpoint debugging

To enable breakpoints, first break the point and then select the Frames option

Refer to flutter. Cn/docs/develo…