flutter ios 更改插件版本出现Error: CocoaPods's specs repository is too out-of-date to satisfy dependencies

问题: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

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容