Updating Pod is not Working
Finally I found solution from satoshi-iwaki.
This error occurs because
GitHub invalidated vulnerable SSL / TSL on 2018/23.
1. Install (or update) Homebrew.
$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
$ brew update
2. Install (or update) OpenSSL.
$ brew install openssl
$ brew upgrade openssl
In the log at the time of installation openssl
because the path of the output, in the street PATH
wo .bash_profileso
as to set in.
If you need to have this software first in your PATH run:
echo 'export PATH="/usr/local/opt/openssl/bin:$PATH"' >> ~/.bash_profile
$ source ~/.bash_profile
3. Check the version.
$ which openssl
/usr/local/opt/openssl/bin/openssl
$ openssl version
OpenSSL 1.0.2n 7 Dec 2017
4. Make sure you can access with TLSv 1.2.
$ openssl s_client -connect api.github.com:443
gives log like this.
5.Installing Ruby
Since I want to install Ruby separately from Ruby on the system, I install it so that it can be switched rbenv.
$ brew install rbenv ruby-build
$ echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile
$ echo 'if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi' >> ~/.bash_profile
$ source ~/.bash_profile
6.Check the version of Ruby to install.
$ rbenv install --list
gives list of Available versions.
Install Ruby.
$ rbenv install 2.1.0
Switch the version.
$ rbenv global 2.1.0
7. Install CocoaPods.
$ gem install cocoapods -n /usr/local/bin
If you want to check pods version
$ pod --version
Confirm that pod update ends normally.
$ pod update
`pod repo update` does not happen error in CocoaPods
You might have a broken Specs repository. Cocoapods suggest you delete your local copies and reclone. Try:
$ sudo rm -fr ~/.cocoapods/repos/master
And then:
$ pod setup
I'd also recommend running:
sudo rm -fr ~/Library/Caches/CocoaPods/
before you run pod setup to clear the cache.
Here's their link: http://blog.cocoapods.org/Repairing-Our-Broken-Specs-Repository/
Unable to install pods using a legacy Cocoapods version
As iHulk states in his comment:
Use source "https://github.com/CocoaPods/Old-Specs"
at top of your pod file
Pod install is staying on Setting up CocoaPods Master repo
You could try running in verbose mode:
pod install --verbose
That'll show you what cocoa pods are up to:
Setting up CocoaPods master repo
Cloning spec repo `master` from `https://github.com/CocoaPods/Specs.git` (branch `master`)
$ /usr/bin/git clone 'https://github.com/CocoaPods/Specs.git' master
Cloning into 'master'...
(as suggested here)
For me the above step took quite a long time as the repo (Dec 2016) is now 1.1 GB
Your project does not explicitly specify the CocoaPods master specs repo warning when running pod install
Run the command pod repo remove master
Related Topics
How to Debug an iOS Extension (.Appex)
Clear Background for Form Sections in Swiftui
How to Disable Rotation in React Native
iOS - Parse Issues in Nsobjcruntime, Nszone, and Nsobject
Adding Google Maps as Subview Crashes iOS App with Exc_Bad
Uibutton That Resizes to Fit Its Titlelabel
How to Make Post Nsurlrequest with 2 Parameters
Capture Redirect Url in Wkwebview in iOS
Type 'Any' Has No Subscript Members (Firebase)
Can Not Save File Inside Tmp Directory
What Is a "Delegate" in Objective C's iPhone Development
How to Check Internet Connection in Alamofire
Module Compiled with Swift 4.2.1 Cannot Be Imported by the Swift 5.0 Compiler