美文网首页
Mac 升级flutter flutter_macos_v1.1

Mac 升级flutter flutter_macos_v1.1

作者: Faith_K | 来源:发表于2020-05-07 17:29 被阅读0次

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 终端会刷刷的执行 。

009DD1F7BE380C070D0EB6BC5BEB913B.jpg

3执行完毕

F438AF309EE23015E0B17B46BF65528B.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!

相关文章

网友评论

      本文标题:Mac 升级flutter flutter_macos_v1.1

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