Specs satisfying the `Alamofire` dependency were found, but they required a higher minimum deploymen

podfile文件

platform :ios, ‘7.0’
use_frameworks!
target “swift” do
pod 'Alamofire', '~> 4.2.0'
pod 'MJRefresh', '~> 3.1.12'
pod 'SDWebImage', '~> 4.0.0-beta2'
pod 'SVProgressHUD', '~> 2.0.4'
end

用pod install 时 报错

Invalid `Podfile` file: Unsupported platform `iOS`. Platform must be `:ios`, `:osx`, `:tvos`, or `:watchos`..

原因是ios必须小写 'iOS '改成 ‘ios’


[!] Unable to satisfy the following requirements:


- `Alamofire (~> 4.2.0)` required by `Podfile`


Specs satisfying the `Alamofire (~> 4.2.0)` dependency were found, but they required a higher minimum deployment target.

原因是Alamofire4.0.0最低支持9.0 ,把 platform :ios, ‘7.0’ 改成platform :ios, ‘9.0’,就OK 了

以上就是Specs satisfying the `Alamofire (~> 4.2.0)` dependency were found, but they required a higher minimu的全文介绍,希望对您学习和使用ios应用开发有所帮助.


alamofire4.0为什么不支持ios8?

大神说:他们讨论过,他们用了iOS9的一些API,更安全。然后权衡后就放弃了iOS8了。重点是: 他们不会再去支持iOS8了!



你可能感兴趣的:(Specs satisfying the `Alamofire` dependency were found, but they required a higher minimum deploymen)