最近换了M1,进行开发flutter,遇到了很多问题,做个记录
运行在iOS虚拟机时出现了下列问题,查了好久,找到了一个还算稳定的解决方法。
Class AMSupportURLConnectionDelegate is implemented in both ?? (0x1f66de518) and ?? (0x1160d82b8). One
of the two will be used. Which one is undefined.
1.项目根目录下
flutter clean
2.cd ios
arch -x86_64 sudo gem install ffi
3.flutter pub get
4.pod install
可能需要梯子
5.flutter run
如果有些库不支持空安全,还是会报错,我屏蔽后就可以了。