CocoaPods doesn't work after

2016-03-31  本文已影响26人  穷得瑟M

今天使用cocaPods出现" The command path could not be resolved",由于Mac OS X EI Capitain 将pods的路径改了,具体操作:

1. sudo gem uninstall cocoapods

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

3. sudo chmod +rx /usr/local/bin/

出现错误:

Error fetching http://ruby.taobao.org/:

bad response Not Found 404 (http://ruby.taobao.org/specs.4.8.gz)

移除

gem sources --removehttp://ruby.taobao.org/

新增

gem sources -a https://ruby.taobao.org/

上一篇 下一篇

猜你喜欢

热点阅读