When trying to build a flutter app codemagic is displaying the error below.
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
The app builds ok on android
I also noticed the following errors:
[!] 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.
You need to increase you deployment target in your Podfile
as stated in the plugin's documentation
Versions 0.7.0+ use the latest ML Kit for Firebase version which requires a minimum deployment target of 9.0. You can add the line platform:ios, '9.0' in your iOS project Podfile.
Navigate to ios/Podfile
(not Podfile.lock
) and uncomment the second line by removing the #
then try building again.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.