cocoapodsで「fix failed to connect to github~」というエラーに遭遇した

エラー遭遇

2018/3/13

いつもどおりpod installしようと思ったらこんな表示が...

pod-install.rb
[!] Unable to satisfy the following requirements:

- `SwiftLint` required by `Podfile`
- `SwiftLint (= 0.25.0)` required by `Podfile.lock`

None of your spec sources contain a spec satisfying the dependencies: `SwiftLint, SwiftLint (= 0.25.0)`.

You have either:
 * out-of-date source repos which you can update with `pod repo update` or with `pod install --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.

pod repo updateすると...

pod-repo-update.rb
Updating spec repo `master`
[!] Failed to connect to GitHub to update the CocoaPods/Specs specs repo - Please check if you are offline, or that GitHub is down

😵😵😵😵😵?????

解決法

これに従ったら治りました。

https://medium.com/@ejhsu/fix-failed-to-connect-to-github-to-update-the-cocoapods-specs-specs-repo-error-6005d96c54f2

Sign up for free and join this conversation.
Sign Up
If you already have a Qiita account log in.