当尝试构建一个flutter应用程序时,codemagic显示了下面的错误。
Error output from CocoaPods:
↳
[!] Automatically assigning platform `iOS` with version `8.0` on target `Runner` because no platform was specified. Please specify a platform for this target in your Podfile. See `https://guides.cocoapods.org/syntax/podfile.html#platform`.
Error running pod install
Build failed :|
Failed to build for iOS
这款应用程序在android系统上运行良好
我还注意到以下错误:
[!] CocoaPods could not find compatible versions for pod "firebase_ml_vision":
In Podfile:
firebase_ml_vision (from `.symlinks/plugins/firebase_ml_vision/ios`)
Specs satisfying the `firebase_ml_vision (from `.symlinks/plugins/firebase_ml_vision/ios`)` dependency were found, but they required a higher minimum deployment target.
您需要按照插件文档中的说明,在podfile
中增加部署目标
版本0.7.0+使用最新的ML Kit for Firebase版本,该版本要求最低部署目标为9.0。 您可以在您的iOS项目podfile中添加platform:iOS,'9.0'这一行。
导航到iOS/podfile
(而不是podfile.lock
),通过删除#
取消对第二行的注释,然后再次尝试生成。