react native踩坑记录

react native 踩坑记录

ios

ruby 换源

1
2
3
gem source --remove https://rubygems.org/
gem source --add https://gems.ruby-china.com/
gem source -l

cocoapods 换源

1
2
3
4
5
6
7
# 使用清华源
cd ~/.cocoapods/repos
pod repo remove master
git clone https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git master

# 添加到podFile第一行
source 'https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git'