我正在使用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