cocoapods安装应用

使用sudo gem install cocoapods提示错误“ERROR: While executing gem ... (Errno::EPERM)”

1,卸载cocoapods:

> gem list
> sudo gem uninstall cocoapods
> sudo gem uninstall cocoapods-core

2,重新安装cocoapod

> sudo gem install cocoapods
如果还有错误使用以下语句
> sudo gem install -n /usr/local/bin cocoapods

3,验证方法

> pod
--出现帮助信息--

相关推荐