[英]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的要求是
但是当我像这样为 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.