将flutter版本升级到最新的Flutter 2.2.1后,在ios模拟器上运行app,运行pod install报错
我尝试通过执行以下命令来清理 Pod,但没有解决问题
flutter clean
flutter pub get
rm -Rf ios/Pods
rm -Rf ios/.symlinks
rm -Rf ios/Flutter/Flutter.framework
rm -Rf ios/Flutter/Flutter.podspec
rm ios/Podfile
最后
flutter run
答案 0 :(得分:1)
试试这个: 转到ios文件夹并运行
pod install --repo-update
答案 1 :(得分:1)
以下步骤对我有用:
flutter clean
flutter pub get
flutter pub upgrade
Podfile
、Podfile.lock
和Pods
文件夹flutter clean
flutter run