2018-12-05

Error fetching https://gems.ruby-china.org/: bad response Not Found 404 (https://gems.ruby-china.org/specs.4.8.gz)

https://gems.ruby-china.org/ 访问不了

域名改为

https://gems.ruby-china.com/

所以替换 ruby-china 提供镜像,正确的操作是:

$ sudo gem update --system

$ gem sources --remove https://rubygems.org/

$ gem sources --remove https://ruby.taobao.org/ //如果安装了淘宝的镜像

//等有反应之后再敲入以下命令

gem sources -a https://gems.ruby-china.com/

为了验证你的Ruby镜像是并且仅是ruby-china,可以用以下命令查看:

$ gem sources -l

*** CURRENT SOURCES ***

https://gems.ruby-china.com

终端输入
sudo gem update –system
显示如下错误
ERROR: While executing gem … (Gem::FilePermissionError)
You don’t have write permissions for the /usr/bin directory.

重新输入下面
sudo gem install -n /usr/local/bin sass
sudo gem install -n /usr/local/bin cocoapods

sudo gem install -n /usr/local/bin generamba(generamba是安装插件的名称)

iOS之报错“Cannot create __weak reference in file using manual reference counting”解决办法

解决的办法:在Build Settings--------->Aplle Clang - Language - Objectibe-C------------->Weak Reference In Manual Retain Release 设置为YES。

你可能感兴趣的:(2018-12-05)