我正在使用Cocoapods应用程序。当试图安装当前Alamofire,我得到以下错误:在podfile中指定版本时无法满足要求
Analyzing dependencies
[!] Unable to satisfy the following requirements:
- `Alamofire (~> 4.4)` required by `Podfile`
None of your spec sources contain a spec satisfying the dependency: `Alamofire (~> 4.4)`.
You have either:
* out-of-date source repos which you can update with `pod repo update`.
* mistyped the name or version.
* not added the source repo that hosts the Podspec to your Podfile.
Note: as of CocoaPods 1.0, `pod repo update` does not happen on `pod install` by default
这是我podfile:
project 'MyApp.xcodeproj'
# Uncomment the next line to define a global platform for your project
platform :ios, '10.0'
target 'MyApp' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
# Pods for MyApp
pod 'Alamofire', '~> 4.4'
end
如果我删除的版本,只是用pod 'Alamofire'
,它会安装版本4.0.1。为什么?
是的,我检查了更早。当我检查Cocoapods应用程序和终端时,它都是1.2。 – GoldenJoe