AlamofireObjectMapper在更新到swift 3时不支持ios8? [英] AlamofireObjectMapper not supporting ios8 when updating to swift 3?

查看:239
本文介绍了AlamofireObjectMapper在更新到swift 3时不支持ios8?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I tried to update my project to Swift 3, my project has support for ios8 as well.

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

While trying to update the cocoapods, I am getting issue that AlamofireObjectMapper requires higher deployment target.

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

On changing to ios9 the pods install without any error, but I still want to support ios8.

可以有谁可以帮忙解决这个问题?

Can anyone help on how this can be achieved?

提前致谢。

推荐答案

编辑Alamofire 4.1.0

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

Support for iOS 8.0 and macOS 10.10 is back!

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

You cannot update to Swift 3 without dropping support for iOS 8, I'm afraid. The reason is that the Swift 3 version of Alamofire is 4.0 and the developers have decided to drop support for iOS 8.0. The reasons can be found here : https://github.com/Alamofire/Alamofire/issues/1367#issuecomment-235803404

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

Therefore you can continue supporting iOS 8 by using the latest Swift 2.3 release of Alamofire (3.5.1) and AlamofireObjectMapper or drop support for iOS 8.

这篇关于AlamofireObjectMapper在更新到swift 3时不支持ios8?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆