私は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です:私はバージョンを削除し、ちょうどpod 'Alamofire'
を使用する場合は
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
、それはバージョン4.0.1をインストールします。どうして?
はええ、私は以前のことを確認Cocoapodsアプリからインストールを実行する
。私はCocoapodsアプリと端末をチェックすると両方とも1.2です。 – GoldenJoe