flutter_macos_v1.12.13+hotfix.8-stable 升级 flutter_macos_1.17.0-stable
1执行 flutter upgrade 报错
Your flutter checkout has local changes that would be erased by upgrading. If you want to keep these changes, it is recommended that you stash them via "git stash" or else commit the changes to a local branch. If it is okay to remove local changes, then re-run this command with --force.
2根据提示换成命令 flutter upgrade --force 终端会刷刷的执行 。
![](https://img.haomeiwen.com/i1306100/a19d25ae7fa88730.jpg)
3执行完毕
![](https://img.haomeiwen.com/i1306100/83ad256c78762b22.jpg)
4运行安卓可以直接跑起来没问题,运行ios 报错,ios 需要pod install 执行pod install 报错如下。大概意思就是在pod install的时候查找某个库没有找到,可以使用排除法来找,首先
4打开pubspec.yaml 把里面你引入的三方库先注释了,然后 cd 到ios 目录 执行 pod install,看看是否会成功如果成功。我这里是成功的,有次可判断是某个库出了问题,然后可以批量解开注释排查下是哪个库的问题,然后去pub官网查看是否有最新的替换下。我这里出现问题的库是 multi_image_picker
multi_image_picker 插件是集成的 iOS原声库[BSImagePicker],然后还一直pod不下来就报错。可以尝试翻墙试一下
――― TEMPLATE END ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
[!] Oh no, an error occurred.
Search for existing GitHub issues similar to yours:
https://github.com/CocoaPods/CocoaPods/search?q=743%3A+unexpected+token+at+%27%27&type=Issues
If none exists, create a ticket, with the template displayed above, on:
https://github.com/CocoaPods/CocoaPods/issues/new
Be sure to first read the contributing guide for details on how to properly submit a ticket:
https://github.com/CocoaPods/CocoaPods/blob/master/CONTRIBUTING.md
Don't forget to anonymize any private data!
网友评论