Ich muss ein Projekt auf Swift 3.0 aktualisieren, das einige Bibliotheken von Cocodpods enthält. Also, ich habe alle mit Cocoapods verbundenen Links entfernt und pod-Datei mit pod-init neu erstellt und einige Versionen der Bibliothek wie Alamorfire aktualisiert.
Aber pod sagte installierenKann Alamofire 4.0 nicht in Xcode 8.0 installieren CocoaPods verwenden
[!] Unable to satisfy the following requirements:
- `Alamofire (~> 4.0)` required by `Podfile`
None of your spec sources contain a spec satisfying the dependency: `Alamofire (~> 4.0)`.
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.
I Deployment Target 9.0 aktualisiert haben und cocoapod 1.1.0
Für Test habe ich neues Projekt angelegt und nur hinzugefügt Alamofire, aber das Ergebnis ist das gleiche. Wenn Sie etwas Erfahrung haben, bitte helfen Sie mir.
Haben Sie versucht, läuft 'pod Repo update'? –
Ja, ich habe aktualisiert. – SeniorCoder
Während der Pod-Repo-Aktualisierung ist der Fehler durch ein unterbrochenes Repository aufgetreten. Ich habe Master Repo und Setup Pod wieder entfernt. Danach funktioniert es gut. Danke. – SeniorCoder