【问题标题】:iOS: CocoaPods could not find compatible versions for pod "xxx"iOS:CocoaPods 找不到 pod "xxx" 的兼容版本
【发布时间】:2021-03-19 10:14:51
【问题描述】:

今天更新CocoaPads的时候,突然遇到如下问题,感觉pch文件根本不行。记录在这里:

当我尝试在我的 Swift 5 项目中更新或安装 pod 时遇到了这个问题

[!] CocoaPods could not find compatible versions for pod "SKActivityIndicatorView":
  In Podfile:
    SKActivityIndicatorView (~> 1.0.0)

Specs satisfying the `SKActivityIndicatorView (~> 1.0.0)` dependency were found, but they required a higher minimum deployment target.

You have either:

out-of-date source repos which you can update with pod repo update or with pod install --repo-update.
mistyped the name or version.
not added the source repo that hosts the Podspec to your Podfile.*

[!] Automatically assigning platform `iOS` with version `9.3` on target `SocialStatus` because no platform was specified. Please specify a platform for this target in your Podfile. See `https://guides.cocoapods.org/syntax/podfile.html#platform`.

我该如何解决这个错误?

【问题讨论】:

    标签: ios swift xcode cocoapods podfile


    【解决方案1】:

    根据此错误,您需要增加 xcode 中的最小部署目标。它表明您的应用程序与哪个 iOS 版本兼容。

    选择项目名称 -> 选择目标(项目名称) -> 检查部署信息 -> 选择以下目标。 您可以查看我的屏幕截图以了解更改部署目标。

    或者您也可以从 pod 中删除此版本规范

    pod 'SKActivityIndicatorView' (~> 1.0.0)
    

    pod 'SKActivityIndicatorView'
    

    【讨论】:

      猜你喜欢
      • 2019-01-17
      • 2021-01-07
      • 1970-01-01
      • 2020-07-29
      • 2021-07-21
      • 2019-05-07
      • 2021-07-20
      • 2021-12-14
      • 2021-09-04
      相关资源
      最近更新 更多