Flutter遇见的错误记录

338 阅读1分钟

1.Parse Issue (Xcode): Module 'fluttertoast' not found

解决方法:

1:删除podfile 和podfile.lock文件
2:cd ios
3:flutter clean
4:flutter pub get
5:pod install
在podfile文件中去掉“#platform :ios, '9.0'”的“#”符号

2.CDN: trunk Repo update failed/pod install安装卡住的问题

解决方法:

1.翻墙使用终端代理命令
2.换源

3.Searching for inspections failed: undefined method `map' for nil:NilClass

(因为我使用的是mac m1 的芯片出现)在stackover中找到(地址点击)[需要翻墙可查看], 解决方法:

1.
sudo arch -x86_64 gem install ffi
arch -x86_64 pod install