今天新建的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再編譯就可以了
參考鏈接:http://www.reibang.com/p/9e78029ac0c2?utm_campaign=maleskine&utm_content=note&utm_medium=seo_notes&utm_source=recommendation