Error 1. While executing gem no such name
Reason for error: The Gem URL is blocked.
WORKAROUND: Set https://ruby.taobao.org/details Reference http://www.cnblogs.com/lidongxu/p/5147015.html
Error 2. You don't have a write permissions for the ...
Cause of error: You do not have permissions on your behalf.
Workaround: You have to invoke the superuser sudo input command sudo gem install cocoapods details visible http://www.cnblogs.com/lidongxu/p/5147015.html
Error 3. Operation not permitted
Cause of error: problem with path
Workaround: sudo gem install cocoapods-n ~/software/ruby details Visible http://www.cnblogs.com/lidongxu/p/5147015.html
Error 4. /usr/bin/git Clone ' Https://github.com/CocoaPods/Specs
Error reason: The Xcode path was not found.
Workaround 1: Execute sudo xcode-select-switch/applications/xcode.app/contents/developer (-switch Add the Developer folder path to the contents of your Xcode.app package, followed by a space in the back of the-switch)
Xcode.app package content how to see
Workaround 2: Open Xcode command Plus, go to settings and then, in locations, command line tools to select a bit.
Error 5. Pod Install or pod update stuck in the analyzing dependencies's not moving.
Error reason: The Cocoapods spec repository is upgraded when the above two commands are executed
Workaround: Add a parameter to omit this step, and the speed will be increased a lot. The commands to add parameters are as follows:
Pod Install--verbose--no-repo-update
Pod Update--verbose--no-repo-update
Error 6. Existing Podfiel found in directory
Error Reason: Podfile file is already in this path
ERROR 7. Could not automatically select an Xcode project
Error reason: The project cannot find the Xcode path (the project is on a USB stick or hard drive?). )
Workaround: Drag the project to the computer
Error 8. Pod not found
Workaround: sudo gem install -n /usr/local/bin cocoapods
[Cocoapods]cocoapods Problem Solving