美文网首页
flutter ios 更改插件版本出现Error: Cocoa

flutter ios 更改插件版本出现Error: Cocoa

作者: jxiang112 | 来源:发表于2024-09-10 16:49 被阅读0次

问题:flutter ios 更改插件版本出现Error: CocoaPods's specs repository is too out-of-date to satisfy dependencies (笔者出现问题场景:是更改极光认证插件版本出现的问题)
解决方案:
1、清除缓存:工程目录下,运行命令:flutter clean
2、删除Podfile.lock文件: 工程目录 -> ios -> 删除Podfile.lock (习惯养成记——最好先将此文件进行备份,再删除,防止意外发生)
3、重新安装ios依赖:工程目录 -> ios ,运行命令:pod install, 会重新生成Podfile.lock文件
4、重新编译或者重新打包:工程目录下,运行命令:flutter build 或者 flutter run 或者 flutter build spa

相关文章

网友评论

      本文标题:flutter ios 更改插件版本出现Error: Cocoa

      本文链接:https://www.haomeiwen.com/subject/doduljtx.html