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

使用open in new window

更换源

# 查看源
gem source -l

# 删除AWS源
gem source --remove http://rubygems.org

# 使用国内源
gem source -a https://gems.ruby-china.com

5.下载模拟器并安装

下载模拟器链接地址open in new window

安装指南open in new window

Contributors: masecho