0

尝试构建颤振应用程序时,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.
4

1 回答 1

1

Podfile如插件文档中所述,您需要增加您的部署目标

版本 0.7.0+ 使用最新的 ML Kit for Firebase 版本,该版本要求最低部署目标为 9.0。您可以在您的 iOS 项目 Podfile 中添加行 platform :ios, '9.0'。

导航到ios/Podfile(not ) 并通过删除then try buildingPodfile.lock来取消注释第二行。#

于 2020-06-10T11:55:15.630 回答