ios 环境搭建
1.安装 brew
/bin/bash -c "$(curl -fsSL https://gitee.com/ineo6/homebrew-install/raw/master/install.sh)"
2.安装 Watchman
brew install watchman
3.安装 xcode
react native 需要 Xcode10 或者更高的版本
4.CocoaPods
brew install cocoaPods
更换源
# 查看源
gem source -l
# 删除AWS源
gem source --remove http://rubygems.org
# 使用国内源
gem source -a https://gems.ruby-china.com