el capitan的Cocoapods

时间:2015-09-23 08:34:29

标签: ios objective-c terminal cocoapods osx-elcapitan

我只是将我的OSX更新为El Capitan。现在当我想更新我的PodFile时,我收到了这个错误:

pod: command not found

这里有任何帮助吗?

4 个答案:

答案 0 :(得分:17)

/ usr / local / bin中的安装完美无缺:

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

但只有添加附加权限才能访问

sudo chmod -R 755 /usr/local/bin

答案 1 :(得分:15)

binstub已不再安装到>> param = slicesample([1 2 3 4 5 6 7], N, 'pdf', @f) param = 0.2897 3.2341 2.9016 4.3718 3.7444 4.9612 7.3525 0.3242 4.7909 1.4022 3.0182 5.1264 2.6466 6.5270 1.6639 5.5771 0.4790 3.3013 2.6992 2.3913 6.5019

如果您要从Yosemite升级,只需卸载cocoapods(/usr/bingem uninstall cocoapods),然后运行以下命令:

sudo gem uninstall cocoapods

答案 2 :(得分:6)

在El Capitan 10.11上运行Cocoapods时,它对我有用;

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

答案 3 :(得分:-2)

同样的事情发生在我身上,$sql = "SELECT * FROM location WHERE ((country LIKE '%".$search."%') OR (city LIKE '%".$search."%') OR (state LIKE'%".$search."%') OR (address LIKE'%".$search."%') OR (zipcode LIKE'%".$search."%'))"; 解决了这个问题