下面是 run 报错信息:
Launching lib/main.dart on iPhone 11 in debug mode...Running pod install...CocoaPods' output:↳PreparingAnalyzing dependenciesInspecting targets to integrateUsing `ARCHS` setting to build architectures of target `Pods-Runner`: (``)Finding Podfile changesA flutter_bmfbaseA flutter_bmfmap- Flutter- bdmap_location_flutter_plugin- connectivity- flutter_kst_plugin- flutter_kx_crypto- package_info- path_provider- permission_handler- shared_preferences- sqflite- url_launcher- webview_flutterFetching external sources-> Fetching podspec for `Flutter` from `Flutter`-> Fetching podspec for `bdmap_location_flutter_plugin` from `.symlinks/plugins/bdmap_location_flutter_plugin/ios`-> Fetching podspec for `connectivity` from `.symlinks/plugins/connectivity/ios`-> Fetching podspec for `flutter_bmfbase` from `.symlinks/plugins/flutter_bmfbase/ios`-> Fetching podspec for `flutter_bmfmap` from `.symlinks/plugins/flutter_bmfmap/ios`-> Fetching podspec for `flutter_kst_plugin` from `.symlinks/plugins/flutter_kst_plugin/ios`-> Fetching podspec for `flutter_kx_crypto` from `.symlinks/plugins/flutter_kx_crypto/ios`-> Fetching podspec for `package_info` from `.symlinks/plugins/package_info/ios`-> Fetching podspec for `path_provider` from `.symlinks/plugins/path_provider/ios`-> Fetching podspec for `permission_handler` from `.symlinks/plugins/permission_handler/ios`-> Fetching podspec for `shared_preferences` from `.symlinks/plugins/shared_preferences/ios`-> Fetching podspec for `sqflite` from `.symlinks/plugins/sqflite/ios`-> Fetching podspec for `url_launcher` from `.symlinks/plugins/url_launcher/ios`-> Fetching podspec for `webview_flutter` from `.symlinks/plugins/webview_flutter/ios`Resolving dependencies of `Podfile`CDN: trunk Relative path: CocoaPods-version.yml exists! Returning local because checking is only perfomed in repo updateCDN: trunk Relative path: all_pods_versions_c_7_9.txt exists! Returning local because checking is only perfomed in repo updateCDN: trunk Relative path: Specs/c/7/9/Reachability/3.2/Reachability.podspec.json exists! Returning local because checking is only perfomed in repo updateCDN: trunk Relative path: all_pods_versions_3_7_9.txt exists! Returning local because checking is only perfomed in repo updateCDN: trunk Relative path: Specs/3/7/9/BaiduMapKit/5.4.0/BaiduMapKit.podspec.json exists! Returning local because checking is only perfomed in repo updateCDN: trunk Relative path: all_pods_versions_f_4_e.txt exists! Returning local because checking is only perfomed in repo updateCDN: trunk Relative path: Specs/f/4/e/FMDB/2.7.5/FMDB.podspec.json exists! Returning local because checking is only perfomed in repo updateCDN: trunk Relative path: Specs/f/4/e/FMDB/2.7.5/FMDB.podspec.json exists! Returning local because checking is only perfomed in repo updateCDN: trunk Relative path: Specs/f/4/e/FMDB/2.7.5/FMDB.podspec.json exists! Returning local because checking is only perfomed in repo updateCDN: trunk Relative path: Specs/c/7/9/Reachability/3.2/Reachability.podspec.json exists! Returning local because checking is only perfomed in repo updateCDN: trunk Relative path: Specs/3/7/9/BaiduMapKit/5.4.0/BaiduMapKit.podspec.json exists! Returning local because checking is only perfomed in repo updateComparing resolved specification to the sandbox manifestA BaiduMapKitA FMDBA FlutterA ReachabilityA bdmap_location_flutter_pluginA connectivityA flutter_bmfbaseA flutter_bmfmapA flutter_kst_pluginA flutter_kx_cryptoA package_infoA path_providerA permission_handlerA shared_preferencesA sqfliteA url_launcherA webview_flutterDownloading dependencies-> Installing BaiduMapKit (5.4.0)> Copying BaiduMapKit from `/Users/sunpc/Library/Caches/CocoaPods/Pods/Release/BaiduMapKit/5.4.0-81380` to `Pods/BaiduMapKit`-> Installing FMDB (2.7.5)> Copying FMDB from `/Users/sunpc/Library/Caches/CocoaPods/Pods/Release/FMDB/2.7.5-2ce00` to `Pods/FMDB`-> Installing Flutter (1.0.0)-> Installing Reachability (3.2)> Copying Reachability from `/Users/sunpc/Library/Caches/CocoaPods/Pods/Release/Reachability/3.2-33e18` to `Pods/Reachability`-> Installing bdmap_location_flutter_plugin (0.0.1)-> Installing connectivity (0.0.1)-> Installing flutter_bmfbase (0.0.1)-> Installing flutter_bmfmap (1.0.0)-> Installing flutter_kst_plugin (0.0.1)-> Installing flutter_kx_crypto (0.0.1)-> Installing package_info (0.0.1)-> Installing path_provider (0.0.1)-> Installing permission_handler (5.0.1+1)-> Installing shared_preferences (0.0.1)-> Installing sqflite (0.0.1)-> Installing url_launcher (0.0.1)-> Installing webview_flutter (0.0.1)- Running pre install hooks[!] The 'Pods-Runner' target has transitive dependencies that include statically linked binaries: (/Users/sunpc/Desktop/kxp_flutter/ios/Pods/BaiduMapKit/BaiduMapKit/thirdlibs/libcrypto.a, /Users/sunpc/Desktop/kxp_flutter/ios/Pods/BaiduMapKit/BaiduMapKit/thirdlibs/libssl.a, /Users/sunpc/Desktop/kxp_flutter/ios/Pods/BaiduMapKit/BaiduMapKit/BaiduMapAPI_Base.framework, /Users/sunpc/Desktop/kxp_flutter/ios/Pods/BaiduMapKit/BaiduMapKit/BaiduMapAPI_Cloud.framework, /Users/sunpc/Desktop/kxp_flutter/ios/Pods/BaiduMapKit/BaiduMapKit/BaiduMapAPI_Map.framework, /Users/sunpc/Desktop/kxp_flutter/ios/Pods/BaiduMapKit/BaiduMapKit/BaiduMapAPI_Search.framework, and /Users/sunpc/Desktop/kxp_flutter/ios/Pods/BaiduMapKit/BaiduMapKit/BaiduMapAPI_Utils.framework)/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.3/lib/cocoapods/installer/xcode/target_validator.rb:84:in `block (2 levels) in verify_no_static_framework_transitive_dependencies'/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.3/lib/cocoapods/installer/xcode/target_validator.rb:74:in `each_key'/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.3/lib/cocoapods/installer/xcode/target_validator.rb:74:in `block in verify_no_static_framework_transitive_dependencies'/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.3/lib/cocoapods/installer/xcode/target_validator.rb:73:in `each'/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.3/lib/cocoapods/installer/xcode/target_validator.rb:73:in `verify_no_static_framework_transitive_dependencies'/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.3/lib/cocoapods/installer/xcode/target_validator.rb:38:in `validate!'/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.3/lib/cocoapods/installer.rb:590:in `validate_targets'/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.3/lib/cocoapods/installer.rb:158:in `install!'/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.3/lib/cocoapods/command/install.rb:52:in `run'/Library/Ruby/Gems/2.6.0/gems/claide-1.0.3/lib/claide/command.rb:334:in `run'/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.3/lib/cocoapods/command.rb:52:in `run'/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.3/bin/pod:55:in `<top (required)>'/usr/local/bin/pod:23:in `load'/usr/local/bin/pod:23:in `<main>'Error output from CocoaPods:↳[!] Automatically assigning platform `iOS` with version `8.0` on target `Runner` because no platform was specified. Please specify a platform for this target in your Podfile. See `https://guides.cocoapods.org/syntax/podfile.html#platform`.Error running pod installError launching application on iPhone 11.
解决:
打开iOS目录下的Podfile,删除掉 use_frameworks! ⚠️一定要在Podfile 全局搜
在重新 执行flutter run 即可
