如何解决 iOS 项目的 pod 问题 "CocoaPods could not find compatible versions for pod"?

How to solve this pod issue "CocoaPods could not find compatible versions for pod" for iOS project?

我将新的 pods 放入项目 pod 文件并尝试安装。然后我在终端收到这个错误。

[!] CocoaPods could not find compatible versions for pod "xxxxxxxxxxxxxxx":
  In Podfile:
    xxxxxxxxxxxxxxx

Specs satisfying the `xxxxxxxxxxxxxxx` dependency were found, but they required a higher minimum deployment target.

将最低 iOS 版本更新为请求的 podspec 所需的版本。在 Podfile:

中添加类似这样的内容

platform :ios, '13.0'