Flutter 引用第三方插件 报‘xxx/xxx-Swift.h‘file not found

问题一、 'xxx/xxx-Swift.h’file not found

示例图

解决方案

在Podfile 文件添加 use_frameworks!

问题二、target has transitive dependencies that include statically linked binaries

// error
[!] The 'Pods-Runner' target has transitive dependencies that include statically linked binaries: (/Users/xxx/project/ios/Pods/AMapSearch/AMapSearchKit.framework)

解决方案

找到对应的第三方
对应路径: pod/xxx.podspec
添加 : == s.static_framework =t rue ==

示例图二

示例图三

编译

修改完毕后 ,重新pod install 编译,问题解决!

猜你喜欢

转载自blog.csdn.net/gjm_123/article/details/107408839