Cocoapods安装步骤1、升级Ruby环境终端输入:$gem update --system此时会出现ERROR: While executing gem ... (Gem::FilePermissionError)You don‘t have write ...
Cocoapods安装步骤
1、升级Ruby环境
终端输入:$gem update --system
此时会出现
ERROR: While executing gem ... (Gem::FilePermissionError)
You don‘t have write permissions for the /Library/Ruby/Gems/2.0.0 directory.
zijingMacBook-Pro:~ shiyunlei$ sudo gem update —system
这个是因为你没有权限去更新Ruby
这个时候你可以在终端使用:$sudo gem update —system来进行升级
这个时候表示Ruby升级完成。
2、安装CocoaPods时我们要访问cocoapods.org,该网站可能被我们大天朝墙了,这样下载安装可能会是龟速,幸好我们可以用淘宝的Ruby镜像来访问该网站,方法如下:
1、gem sources --remove https://rubygems.org/
2、gem sources -a http://ruby.taobao.org/
可以使用下面的命令(红色部分)查看是否更换镜像成功(如下图所示):å
海外公司注册、海外银行开户、跨境平台代入驻、VAT、EPR等知识和在线办理:https://www.xlkjsw.com
原标题:Cocoapods 安装详细教程
关键词:
*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们:
admin#shaoqun.com
(#换成@)。