Flutter篇 iOS运行错误

flutter报错: [!] Automatically assigning platform `iOS` with version `8.0` on target `Runner` becaus

在这里插入图片描述

  • 解决:
    在这里插入图片描述
  • 现在版本更新了,应该大部分9.0
platform :ios, '9.0'

 

错误:[!] CocoaPods could not find compatible versions for pod "xxx":In snapshot (Podfile.lock):

Analyzing dependencies
[!] CocoaPods could not find compatible versions for pod "SDWebImage":
  In snapshot (Podfile.lock):
    SDWebImage (= 5.1.0)
 
  In Podfile:
    SDWebImage
 
None of your spec sources contain a spec satisfying the dependencies: `SDWebImage, SDWebImage (= 5.1.0)`.
 
You have either:
 * out-of-date source repos which you can update with `pod repo update` or with `pod install --repo-update`.
 * mistyped the name or version.
 * not added the source repo that hosts the Podspec to your Podfile.
 
Note: as of CocoaPods 1.0, `pod repo update` does not happen on `pod install` by default.

解决办法:.xcworkspace和Podfile.lock文件删除,重新pod install。 

 

错误:CocoaPods 【warning: Insecure world writable dir /usr/local/bin in PATH, mode 040777】

/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/universal-
darwin19/rbconfig.rb:229: warning: Insecure world writable dir /usr/local/bin in PATH, mode 040777

解决

终端执行命令

sudo chmod go-w /usr/local/bin

 错误:Error running pod install

解决方法:终端 进入iOS项目,执行命令:pod install

错误:运行pod install,[!] The 'Pods-xxx' target has frameworks with conflicting names: amapfoundationkit.framework and amaplocationkit.framework.

解决方法:依赖包冲突了,比如Flutter开发加载iOS的依赖包,在实现定位功能中,amap_location_fluttify 插件和amap_location插件产生冲突了,根据自身条件删除其中一个。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值