$ sudo pod install
/Users/YSQ/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/gems/2.0.0/gems/claide-0.5.0/lib/claide/command.rb:328:in `help!': [!] You cannot run CocoaPods as root. (CLAide::Help)
CocoaPods, the Objective-C library package manager.
Commands:
* help Show help for the given command.
* init Generate a Podfile for the current directory.
- install Install project dependencies
* ipc Inter-process communication
* lib Develop pods
* list List pods
* outdated Show outdated project dependencies
* push Push new specifications to a spec-repo
* repo Manage spec-repositories
* search Searches for pods
* setup Setup the CocoaPods environment
* spec Manage pod specs
* update Update outdated project dependencies
Options:
--silent Show nothing
--version Show the version of CocoaPods
--no-ansi Show output without ANSI codes
--verbose Show more debugging information
--help Show help banner of specified command
from /Users/YSQ/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/gems/2.0.0/gems/cocoapods-0.32.1/lib/cocoapods/command.rb:46:in `run'
from /Users/YSQ/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/gems/2.0.0/gems/cocoapods-0.32.1/bin/pod:33:in `<top (required)>'
from /Users/YSQ/.rvm/rubies/ruby-2.0.0-p247/bin/pod:23:in `load'
from /Users/YSQ/.rvm/rubies/ruby-2.0.0-p247/bin/pod:23:in `<main>'
sudo rm -fr ~/.cocoapods/repos/master
pod setup
pod repo remove master
pod setup
用上面的代码,原因是cocoapods升级后出现冲突。
如果速度慢的话,且你有gae,给本次的终端设置代理
export http_proxy='http://127.0.0.1:8087'
export https_proxy='http://127.0.0.1:8087'
如果你遇到git证书问题,可以导入gae的证书
git config --global http.sslCAinfo ~/goagent/local/CA.crt
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。