设备:Mac air M3 2024
环境:
Mac 14.4.1
Flutter 3.19.5
Android Studio 2023.2
前年的一个项目,因为苹果要求4.29号后不能使用XCode15之前版本发布应用,于是进行升级
Android 版本打包正常,在pod install的时候,提示:
CocoaPods could not find compatible versions for pod "Flutter":
于是将ios/Podfile中Plateform:ios后面的版本号由11改为12,重新执行
rm -rf ios/Pods
rm ios/Podfile.lock
flutter clean
pod repo update
结果这个组件OK了,由于ios版本提升,另外还有几个组件的版本兼容出现了问题,后续一个个手工根据相互兼容的版本进行了调整
最后pod update 成功后,再到XCode中进行编译
结果意外的又收获了一系列的错误:
Unalbe to load contents of file list :'/Target Support Files/Pods-Runner....之类的信息
于是通过下列指令清除原有关联信息,重新下载插件
pod deintegrate
pod install
再次进行编译,顺利通过~~