繁体   English   中英

Alamofire 是否与 iOS 11.0 兼容?

[英]is Alamofire compatible for iOS 11.0?

我在我的 podfile 中使用它

# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'

target 'MediaUploader' do
  # Comment the next line if you don't want to use dynamic frameworks
  use_frameworks!

  # Pods for MediaUploader
  pod 'SwiftyJSON', '~> 4.0'
  pod 'Alamofire', '~> 5.2'

end

如果我在这里阅读 Alamofire github 的文档。 据说对alamofire的要求是

  1. iOS 10.0+ / macOS 10.12+ / tvOS 10.0+ / watchOS 3.0+
  2. Xcode 11+
  3. Swift 5.1+

但是当我像这样为 iOS 11.0 设置部署时

在此处输入图像描述

我有这样的错误

在此处输入图像描述

似乎最低要求是 iOS 12.0。 我做错了吗? 我可以将 Alamofire 用于 iOS 11.0 吗?

Alamofire 5 与 iOS 11 完美兼容。

Cocoapods 没有考虑您的项目最低部署目标。 (显然 iOS 12 是默认值)

您只需要在Podfile中取消注释此行:

# platform :ios, '9.0'

设置正确的最低部署版本:

platform :ios, '11.0'

并再次运行pod install

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM