简体   繁体   English

我可以将Alamofire更新到版本4,并且在我的应用程序中仍然支持iOS 8吗?

[英]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的要求:

  • iOS and tvOS 9.0+, macOS 10.11.0+, watchOS 2.0+ iOS和tvOS 9.0 +,macOS 10.11.0 +,watchOS 2.0+
  • Xcode 8.0+ Xcode 8.0+
  • Swift 3.0+ 迅捷3.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。

Reference 参考

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.

相关问题 如何在我的应用中决定支持最旧的iOS版本? - How can I decide the oldest iOS version to support in my app? 我可以将我的应用程序从所需的较高iOS版本更新为所需的较低iOS版本吗? - Can I update my app from higher iOS version required to lower iOS version required? 我们可以使用iOS 7 SDK并仍支持低于7的iOS版本吗? - Can we use iOS 7 SDK and still support iOS version below 7? 如何将我的 imageResponseSerializer 从 Alamofire 更新到 3.0 版本? - How do I update my imageResponseSerializer from Alamofire to the 3.0 version? 我可以将我的应用程序的支持限制为仅 iOS 13 - Can I limit support of my app to just iOS 13 我可以选择支持iOS 8.4的应用程序吗? - Can I opt that my app support up to iOS 8.4? 我的网络应用仍应在iOS 3.2上支持Safari 4.0.4吗? - Should I still support Safari 4.0.4 on iOS 3.2 for my web app? 如何使我的应用程序获得 ios 15.1 版的批准? - How i can make my app approved for ios version 15.1? 我可以只为我的应用程序使用2套背景图片,但仍支持iPhone 5吗? - Can I use just 2 sets of background pictures for my app and still support iphone 5? 我可以在不添加 storyboard 的情况下更新现有的 iOS 应用程序吗? - Can I update my existing iOS app without adding a storyboard?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM