‘AMapSearch-NO-IDFA’ uses the unencrypted ‘http’ protocol to transfer the Pod解决

  • 发表于
  • flutter

错误提示

[!] 'AMapFoundation' uses the unencrypted 'http' protocol to transfer the Pod. Please be sure you're in a safe network with only trusted hosts. Otherwise, please reach out to the library author to notify them of this security issue.

解决方法:

ios/Podfile文件

target 'Runner' do
#use_frameworks! 注释这行
use_modular_headers!

解决方案:注释掉Podfile里的use_framework!,或者使用objc重新创建项目。
原因:0.8.0开始使用Pod远程依赖,高德提供的pod是静态库,而swift默认用的是动态库依赖。