【问题标题】:AlamofireObjectMapper not supporting ios8 when updating to swift 3?更新到 swift 3 时 AlamofireObjectMapper 不支持 ios8?
【发布时间】:2016-09-26 13:18:31
【问题描述】:

我尝试将我的项目更新到 Swift 3,我的项目也支持 ios8。

在尝试更新 cocoapods 时,我遇到了 AlamofireObjectMapper 需要更高部署目标的问题。

在更改为 ios9 时,pod 安装没有任何错误,但我仍然想支持 ios8。

任何人都可以帮助解决这个问题吗?

提前致谢。

【问题讨论】:

    标签: ios8 alamofire swift3 objectmapper


    【解决方案1】:

    编辑 Alamofire 4.1.0

    对 iOS 8.0 和 macOS 10.10 的支持又回来了!


    恐怕你不能在不放弃对 iOS 8 的支持的情况下更新到 Swift 3。原因是 Alamofire 的 Swift 3 版本是 4.0,开发人员决定放弃对 iOS 8.0 的支持。原因可以在这里找到:https://github.com/Alamofire/Alamofire/issues/1367#issuecomment-235803404

    因此,您可以使用最新的 Swift 2.3 版本的 Alamofire (3.5.1) 和 AlamofireObjectMapper 继续支持 iOS 8,或者放弃对 iOS 8 的支持。

    【讨论】:

    • 好吧,github.com/Alamofire/Alamofire 在这里他们声明:要求 iOS 8.0+ / macOS 10.10+ / tvOS 9.0+ / watchOS 2.0+ Xcode 8.1+ Swift 3.0+
    • 你是对的,他们已经添加了对 iOS 8 的支持,因为 Apple 似乎正在放弃 Swift 2.3。更新我的答案。
    猜你喜欢
    • 2017-04-09
    • 1970-01-01
    • 1970-01-01
    • 2018-10-24
    • 1970-01-01
    • 1970-01-01
    • 2014-12-09
    • 2019-10-13
    • 2016-09-09
    相关资源
    最近更新 更多