cocoapods 相關(guān)問題
卸載
參考
圖釋
安裝
參考
圖釋
升級(jí)
部分圖釋
使用報(bào)錯(cuò)處理
錯(cuò)誤報(bào)錯(cuò)代碼摘錄 :Xcode 升級(jí)之后新建項(xiàng)目無法使用 CocoaPods ,報(bào)如下錯(cuò)誤代碼蝗肪;解決方法為升級(jí) Cocopoads.
### Report
* What did you do?
* What did you expect to happen?
* What happened instead?
### Stack
CocoaPods : 0.33.1
Ruby : ruby 2.1.1p76 (2014-02-24 revision 45161) [x86_64-darwin12.0]
RubyGems : 2.2.2
Host : Mac OS X 10.8.5 (12F45)
Xcode : 5.1.1 (5B1008)
Ruby lib dir : /Users/maguang/.rvm/rubies/ruby-2.1.1/lib
Repositories : master - https://github.com/CocoaPods/Specs.git @ 547e828b7036ce1220a439e1c53c720410af74b0
### Error
[!] Oh no, an error occurred.
Search for existing github issues similar to yours:
常用終端命令 <持續(xù)更新 ... >
- ruby -v 查看本地ruby版本
- gem sources -l 查看當(dāng)前ruby的源
- gem sources --remove http://rubygems.org 移除源
- gem sources -a https://ruby.taobao.org/ 添加源
- sudo gem update --system gem太老時(shí),用于升級(jí)gem
- sudo gem install cocoapods 安裝 CocoaPods
- pod repo update 快速更新 - 本地資源庫
- pod --version 查看當(dāng)前 CocoaPods 版本
- sudo gem install -n /usr/local/bin cocoapods --pre CocoaPods 版本升級(jí)
- sudo gem cleanup CocoaPods 版本升級(jí)之后,清除已安裝過得所有pods舊版本蠕趁,保留當(dāng)前最新版本