react native ios搭建开发环境遇到的问题
下载Rvm
//下载gpg
brew install gpg
//安装gpg key
gpg --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
//下载rvm
\curl -sSL https://get.rvm.io | bash -s stable
//根据提示
* To start using RVM you need to run `source /Users/lingchanghudong/.rvm/scripts/rvm`
in all your open shell windows, in rare cases you need to reopen all shell windows.
//终端执行这一段
source /Users/lingchanghudong/.rvm/scripts/rvm
//查看是否安装成功,出现版本号即成功
rvm -v
查看react native指定ruby版本
建议安装与react native 所需的的ruby版本
https://github.com/facebook/react-native/blob/main/template/_ruby-version