關於Cocoapods安裝的小細節錯誤

一、ERROR:  While executing gem ... (Errno::EPERM)
    Operation not permitted - /usr/bin/fuzzy_match

sudo gem install -n /usr/local/bin cocoapods

二、Updating local specs repositories

git

pod update 試了還能夠用
pod install  被牆了,請你們換成pod install --verbose --no-repo-update


三、出現Setting up CocoaPods master repo,半天沒有任何反應。緣由無他,由於那堵牆阻擋了cocoapods.org。。。
gitcafe和oschina都是國內的服務器,能夠用它們CocoaPods索引庫的鏡像:
$ pod repo remove master
$ pod repo add master https://gitcafe.com/akuandev/Specs.git
$ pod repo update
若是想用oschina的鏡像也能夠把第二條命令 換成 http://git.oschina.net/akuandev/Specs.git 便可 第二條命令執行的時候會比較耗時,這個時候要去把整個specs倉庫clone一下,下載到 ~/.cocoapods裏; cd  到該目錄裏,用du -sh *命令來查看文件大小,每隔一會看看,最終大小是190多M。
相關文章
相關標籤/搜索