下面是 run 报错信息:

    1. Launching lib/main.dart on iPhone 11 in debug mode...
    2. Running pod install...
    3. CocoaPods' output:
    4. Preparing
    5. Analyzing dependencies
    6. Inspecting targets to integrate
    7. Using `ARCHS` setting to build architectures of target `Pods-Runner`: (``)
    8. Finding Podfile changes
    9. A flutter_bmfbase
    10. A flutter_bmfmap
    11. - Flutter
    12. - bdmap_location_flutter_plugin
    13. - connectivity
    14. - flutter_kst_plugin
    15. - flutter_kx_crypto
    16. - package_info
    17. - path_provider
    18. - permission_handler
    19. - shared_preferences
    20. - sqflite
    21. - url_launcher
    22. - webview_flutter
    23. Fetching external sources
    24. -> Fetching podspec for `Flutter` from `Flutter`
    25. -> Fetching podspec for `bdmap_location_flutter_plugin` from `.symlinks/plugins/bdmap_location_flutter_plugin/ios`
    26. -> Fetching podspec for `connectivity` from `.symlinks/plugins/connectivity/ios`
    27. -> Fetching podspec for `flutter_bmfbase` from `.symlinks/plugins/flutter_bmfbase/ios`
    28. -> Fetching podspec for `flutter_bmfmap` from `.symlinks/plugins/flutter_bmfmap/ios`
    29. -> Fetching podspec for `flutter_kst_plugin` from `.symlinks/plugins/flutter_kst_plugin/ios`
    30. -> Fetching podspec for `flutter_kx_crypto` from `.symlinks/plugins/flutter_kx_crypto/ios`
    31. -> Fetching podspec for `package_info` from `.symlinks/plugins/package_info/ios`
    32. -> Fetching podspec for `path_provider` from `.symlinks/plugins/path_provider/ios`
    33. -> Fetching podspec for `permission_handler` from `.symlinks/plugins/permission_handler/ios`
    34. -> Fetching podspec for `shared_preferences` from `.symlinks/plugins/shared_preferences/ios`
    35. -> Fetching podspec for `sqflite` from `.symlinks/plugins/sqflite/ios`
    36. -> Fetching podspec for `url_launcher` from `.symlinks/plugins/url_launcher/ios`
    37. -> Fetching podspec for `webview_flutter` from `.symlinks/plugins/webview_flutter/ios`
    38. Resolving dependencies of `Podfile`
    39. CDN: trunk Relative path: CocoaPods-version.yml exists! Returning local because checking is only perfomed in repo update
    40. CDN: trunk Relative path: all_pods_versions_c_7_9.txt exists! Returning local because checking is only perfomed in repo update
    41. CDN: trunk Relative path: Specs/c/7/9/Reachability/3.2/Reachability.podspec.json exists! Returning local because checking is only perfomed in repo update
    42. CDN: trunk Relative path: all_pods_versions_3_7_9.txt exists! Returning local because checking is only perfomed in repo update
    43. CDN: trunk Relative path: Specs/3/7/9/BaiduMapKit/5.4.0/BaiduMapKit.podspec.json exists! Returning local because checking is only perfomed in repo update
    44. CDN: trunk Relative path: all_pods_versions_f_4_e.txt exists! Returning local because checking is only perfomed in repo update
    45. CDN: trunk Relative path: Specs/f/4/e/FMDB/2.7.5/FMDB.podspec.json exists! Returning local because checking is only perfomed in repo update
    46. CDN: trunk Relative path: Specs/f/4/e/FMDB/2.7.5/FMDB.podspec.json exists! Returning local because checking is only perfomed in repo update
    47. CDN: trunk Relative path: Specs/f/4/e/FMDB/2.7.5/FMDB.podspec.json exists! Returning local because checking is only perfomed in repo update
    48. CDN: trunk Relative path: Specs/c/7/9/Reachability/3.2/Reachability.podspec.json exists! Returning local because checking is only perfomed in repo update
    49. CDN: trunk Relative path: Specs/3/7/9/BaiduMapKit/5.4.0/BaiduMapKit.podspec.json exists! Returning local because checking is only perfomed in repo update
    50. Comparing resolved specification to the sandbox manifest
    51. A BaiduMapKit
    52. A FMDB
    53. A Flutter
    54. A Reachability
    55. A bdmap_location_flutter_plugin
    56. A connectivity
    57. A flutter_bmfbase
    58. A flutter_bmfmap
    59. A flutter_kst_plugin
    60. A flutter_kx_crypto
    61. A package_info
    62. A path_provider
    63. A permission_handler
    64. A shared_preferences
    65. A sqflite
    66. A url_launcher
    67. A webview_flutter
    68. Downloading dependencies
    69. -> Installing BaiduMapKit (5.4.0)
    70. > Copying BaiduMapKit from `/Users/sunpc/Library/Caches/CocoaPods/Pods/Release/BaiduMapKit/5.4.0-81380` to `Pods/BaiduMapKit`
    71. -> Installing FMDB (2.7.5)
    72. > Copying FMDB from `/Users/sunpc/Library/Caches/CocoaPods/Pods/Release/FMDB/2.7.5-2ce00` to `Pods/FMDB`
    73. -> Installing Flutter (1.0.0)
    74. -> Installing Reachability (3.2)
    75. > Copying Reachability from `/Users/sunpc/Library/Caches/CocoaPods/Pods/Release/Reachability/3.2-33e18` to `Pods/Reachability`
    76. -> Installing bdmap_location_flutter_plugin (0.0.1)
    77. -> Installing connectivity (0.0.1)
    78. -> Installing flutter_bmfbase (0.0.1)
    79. -> Installing flutter_bmfmap (1.0.0)
    80. -> Installing flutter_kst_plugin (0.0.1)
    81. -> Installing flutter_kx_crypto (0.0.1)
    82. -> Installing package_info (0.0.1)
    83. -> Installing path_provider (0.0.1)
    84. -> Installing permission_handler (5.0.1+1)
    85. -> Installing shared_preferences (0.0.1)
    86. -> Installing sqflite (0.0.1)
    87. -> Installing url_launcher (0.0.1)
    88. -> Installing webview_flutter (0.0.1)
    89. - Running pre install hooks
    90. [!] 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)
    91. /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'
    92. /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.3/lib/cocoapods/installer/xcode/target_validator.rb:74:in `each_key'
    93. /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'
    94. /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.3/lib/cocoapods/installer/xcode/target_validator.rb:73:in `each'
    95. /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'
    96. /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.3/lib/cocoapods/installer/xcode/target_validator.rb:38:in `validate!'
    97. /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.3/lib/cocoapods/installer.rb:590:in `validate_targets'
    98. /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.3/lib/cocoapods/installer.rb:158:in `install!'
    99. /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.3/lib/cocoapods/command/install.rb:52:in `run'
    100. /Library/Ruby/Gems/2.6.0/gems/claide-1.0.3/lib/claide/command.rb:334:in `run'
    101. /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.3/lib/cocoapods/command.rb:52:in `run'
    102. /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.3/bin/pod:55:in `<top (required)>'
    103. /usr/local/bin/pod:23:in `load'
    104. /usr/local/bin/pod:23:in `<main>'
    105. Error output from CocoaPods:
    106. [!] 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`.
    107. Error running pod install
    108. Error launching application on iPhone 11.

    解决:

    打开iOS目录下的Podfile,删除掉 use_frameworks! ⚠️一定要在Podfile 全局搜

    在重新 执行flutter run 即可