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