今天新建的Flutter项目打包iOS版本 flutter build ios 时,Cocoapods报错:
[!] CocoaPods could not find compatible versions for pod "images_picker": In Podfile: images_picker (from `.symlinks/plugins/images_picker/ios`) Specs satisfying the `images_picker (from `.symlinks/plugins/images_picker/ios`)` dependency were found, but they required a higher minimum deployment target.
报错原因就是未找到 images_picker SDK,其他项目中也有引用,所以不可能找不到的。
网上查阅后找到原因:
podfile中支持的iOS版本低于开源库指定的版本造成的。
修改项目中ios->Podfile
platform :ios, '10.0' //之前是9,改为10再编译就可以了
参考链接:https://www.jianshu.com/p/9e78029ac0c2?utm_campaign=maleskine&utm_content=note&utm_medium=seo_notes&utm_source=recommendation