ruby2.0.0 安装cocoapods 失败处理方法


感觉是bundle的版本太老了,当前通过RVM安装的Bundler的版本是1.1.5
安装XCode 4.4有没有问题?没有问题的话在XCode4.4里面将Command Line Tools装好以后,升级一下RVM,然后安装Ruby 1.9.3-p194吧。

rvm implode

就可以把rvm连同ruby一起卸载调,然后

curl -L https://get.rvm.io | bash -s stable --ruby

就可以一键将RVM,Ruby2.0.0p247连同Bundler一起装好。

重要!
[b]sudo FLAGS="-F /System/Library/Frameworks" gem install cocoapods -- --with-ldflags="-F/System/Library/Frameworks"[/b]

没有上面这部必然要出错

然后
gem install cocoapods


猜你喜欢

转载自lizhuang.iteye.com/blog/1921952