[英]Can I update Alamofire to version 4 and still support iOS 8 in my app?
I have a conclution and since I am a beginner, I just want to get it confirmed by someone else. 我有一个结论,由于我是初学者,所以我只想得到其他人的确认。
In my iOS app (Swift 2.2, Xcode 7) that must support iOS 8, I use Alamofire for server communication. 在必须支持iOS 8的iOS应用(Swift 2.2,Xcode 7)中,我使用Alamofire进行服务器通信。 Now my conclusion is that I will not be able to migrate the app to Xcode 8 and Swift 2.3 or 3.0, since I then have to use Alamofire version 4 and that version doesn´t suport iOS 8. So my app has to keep Alamofire version 3 which means that it has to stay Swift 2.2 and Xcode 7. Did i understand this correctly?
现在的结论是,我将无法将该应用程序迁移到Xcode 8和Swift 2.3或3.0,因为那时我必须使用Alamofire版本4,并且该版本不支持iOS8。因此,我的应用程序必须保留Alamofire版本3表示必须保留Swift 2.2和Xcode7。我是否正确理解这一点?
Alamofire 4 requirements: https://github.com/Alamofire/Alamofire/blob/master/Documentation/Alamofire%204.0%20Migration%20Guide.md Alamofire 4要求: https : //github.com/Alamofire/Alamofire/blob/master/Documentation/Alamofire%204.0%20Migration%20Guide.md
Alamofire 3 requirements: https://github.com/Alamofire/Alamofire/blob/master/Documentation/Alamofire%203.0%20Migration%20Guide.md Alamofire 3要求: https : //github.com/Alamofire/Alamofire/blob/master/Documentation/Alamofire%203.0%20Migration%20Guide.md
No you can't Alamofire 4.0 requirements: 不,您不能满足Alamofire 4.0的要求:
If you would like to use Alamofire on iOS 8 or macOS 10.9, use the latest tagged 3.x release which supports both Swift 2.2 and 2.3. 如果您想在iOS 8或macOS 10.9上使用Alamofire,请使用最新的加标签的3.x版本,该版本同时支持Swift 2.2和2.3。
Alamofire 4.0 Migration Guide said, Alamofire 4.0迁移指南说,
If you would like to use Alamofire on iOS 8 or macOS 10.9, use the latest tagged 3.x release which supports both Swift 2.2 and 2.3.
如果您想在iOS 8或macOS 10.9上使用Alamofire,请使用最新的加标签的3.x版本,该版本同时支持Swift 2.2和2.3。
So, if you want to update to Xcode 8, you can convert your project to Swift 2.3 and use Alamofire 3.5.0 . 因此,如果要更新到Xcode 8,可以将项目转换为Swift 2.3并使用Alamofire 3.5.0 。 This release supports Swift 2.3 and iOS 8+.
此版本支持Swift 2.3和iOS 8+。
试试我的叉子https://github.com/tonyli508/AlamofireDomain ,我提取了针对iOS 8的最新更改和禁用的流请求功能。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.