[Cocoapods]cocoapods Problem Solving

Source: Internet
Author: User
Tags install cocoapods

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.