Setting up cocoapods master repo stuck
1. That’s because of the mirror image of Taobao( https://ruby.taobao.org/ )It’s no longer available. So now we use the latest supported Ruby image( https://gems.ruby-china.org/ )
Command line required:
$gem sources -r https://rubygems.org/ (remove the old version of the image. If you don’t know what image is currently used on your computer, you can use $gem sources – L to view it)
$gem sources – A https://gems.ruby-china.org/ (add available images)
$gem sources – L
2. When pod setup enters the setting up cocoapods master repo, it means that it is downloading. At this time, you can open a new terminal window, enter the command line “Cd ~ /. Cocoapods /”, jump to the cocoapods folder, and execute “Du – sh *” to check the size of the folder being downloaded
3. When it appears as follows
[!] An error occurred while performing `git pull` on repo `master`.
[!]/usr/bin/git pull –ff-only
This error should mean that there is something wrong with this node. Then try to delete the node of cocoapods and add another node. Maybe it’s OK
Reason: the branch of cocoapods does not support the latest Xcode version
Solution: delete the master branch and create a new one
sudo rm -fr ~/.cocoapods/repos/master
Then: pod setup
Similar Posts:
- Quick resolution of gem install redis error
- Pod Install Error: Operation not permitted – /usr/bin/pod
- [Solved] Kali beef-xss startup error: cannot load such file — rubyeventmachine (LoadError)
- MAC Install homebrew Error: Failed to connect to raw.githubusercontent.com port 443: Connection refused error:
- Failed to build gem native extension encountered while installing sass
- CocoaPods could not find compatible versions for pod [How to Solve]
- IDEA Could Not pull Codes to Local Error: Can’t Update No tracked branch configured for branch master or the branch doesn’t exist.
- Git pull does not specify an error message for the branch
- [Solved] Execute the redis command redis-trib.rb to view the cluster information error: cannot load such file — redis (LoadError)
- Git Pull Error: Please specify which branch you want to merge with.