sudo gem install Cocoapods

Source: Internet
Author: User
Tags install cocoapods

When using IOS_BAIDUSDK, you need to use the cocoapods, so you need to follow the steps to continue. However, you will encounter some problems in the process:

1. Sudo gem install cocoapods run this error

1 rubertdemacbook-pro:~ rubert$ sudo gem install cocoapods2 /system/library/frameworks/ ruby.framework/versions/2.0/usr/lib/ruby/2.0. 0/universal-darwin14/rbconfig.rb:213in0407773 ERROR:  '  cocoapods'0 in any repository

The answer to the specific question is found in this address.

http://blog.csdn.net/meegomeego/article/details/24005567

http://www.jianshu.com/p/6e5c0f78200a

2. about how to add a command in Podfile:

Pod ' Baidumapkit '

When I execute the touch podfile command directly in the project directory, and then go to the directory to find, and did not find, and then I use the VI command to open this file, paste

Pod ' Baidumapkit ', the command is as follows:

VI Podfile

Press the I key, you can enter (I like the meaning of insert)

All right, press ESC, and then you can't enter it. Then press: Wq Enter.

3. Installation of multiple Xcode causes no download

1rubertdemacbook-pro:~rubert$ pod Setup2/system/library/frameworks/ruby.framework/versions/2.0/usr/lib/ruby/2.0.0/UNIVERSAL-DARWIN14/RBCONFIG.RB:213: Warning:insecure World Writable dir/usr/localinchPATH, Mode0407773 Setting up CocoaPods master repo4[!] /usr/bin/git Clone https://Github.com/cocoapods/specs.git Master--depth=15 6Xcrun:error:active Developer Path ("/applications/xcode-beta.app/contents/developer") does not exist, use ' xcode-Select--SwitchPath/to/xcode.app ' To specify the Xcode so you wish forCommand line developer tools (or see ' Mans xcode-Select`)

In fact, it is simple to execute a single command:

Rubertdemacbook-pro:chengduhidengdangermanage rubert$ sudo xcode-select -switch /applications/ xcode-beta-6.3. App

sudo gem install Cocoapods

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.