【问题标题】:Pod install shows the error like required a higher minimum deployment targetPod install 显示错误,例如需要更高的最小部署目标
【发布时间】:2020-05-07 13:17:40
【问题描述】:

我想更新 pod 'AFNetworking', '~> 4.0.1' ,但是我的终端显示以下错误,例如 pod install 命令运行时

Specs satisfying the `AFNetworking/NSURLSession (= 4.0.1), AFNetworking/NSURLSession (~> 3.0)` dependency were found, but they required a higher minimum deployment target.

我的 podfile 如下所示

pod 'AFOAuth2Manager', '~> 3.0'
pod 'AFNetworking', '~> 4.0.1'

如何解决这个错误?

【问题讨论】:

    标签: ios objective-c iphone xcode afnetworking


    【解决方案1】:

    AFNetworking 4.x 版本只能支持 iOS 9 及以上。您的项目应具有 iOS 9 或更高版本的部署目标。

    【讨论】:

    • 我已经在我的 podfile 中添加了版本平台:ios,'10.0'。仍然得到同样的错误
    • 你的项目设置中设置的部署目标是什么?
    • 还要检查框架项目设置中的目标。依赖框架也应该设置为 9.0 或更高版本
    • 我也在目标窗格中选择了 xcode.General->Deployment Info->Deployment Target->10.0
    猜你喜欢
    • 2020-04-01
    • 2016-09-18
    • 1970-01-01
    • 2021-03-25
    • 2021-04-29
    • 1970-01-01
    • 1970-01-01
    • 2014-04-07
    • 1970-01-01
    相关资源
    最近更新 更多