1:在iOS項目targets Runner的Build Settings中將CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES設置為true。
2:在Podfile文件中將

fd971dc8-926b-40e8-ae5f-b80dee572f47.png
改為

4e3de6ea-18da-4bbc-ac27-12814a7d696e.png
3:修改Xcode項目設置
打開 ios/Runner.xcworkspace
選擇 Runner target
進入 Build Settings
搜索 "Allow Non-modular Includes"
設置 "Allow Non-modular Includes in Framework Modules" 為 YES