如果之前你已经装了cocoapods,那么直接cd对应工程目录下,pod install !
下面是我遇到的问题:
1.Error running 'requirements_osx_brew_update_system ruby-2.4.0',showing last 15 lines of /Users/LuohanCC/.rvm/log/1436950973_ruby-2.0.0-p643/update_system.log
解决办法: 在安装rvm时,需要一个软件包的管理器,这里的是Homebrew,这个错误就是没有安装Homebrew,所以需要执行命令:$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)
2.ERROR: '/usr/local/Cellar'isnot writable - itis required for Homebrew, try 'brew doctor' to fix it!
解决办法:执行这3步
$ sudo chgrp -R admin /usr/local
$ sudo chmod -R g+w /usr/local
$ brew update
3.Note: as of CocoaPods 1.0, `pod repo update` does not happen on `pod install` by default.
解决办法:删除工程中的Podfile.lock,再pod intall.
针对更多有关cocoaPods的安装可以参考:http://www.jianshu.com/p/6d8604f0b94c