作者:mobiledu2502907423 | 来源:互联网 | 2023-05-21 15:21
按照reactnative中文官网文档逐步进行.在搭建reactnative环境时,创建reactnative官方demo项目命令npxreact-nativeinitAwesom
按照react native中文官网文档逐步进行.在搭建react native环境时,
创建react native官方demo项目命令
npx react-native init AwesomeProject
卡在Installing cocoapods dependencies步骤
百度搜索后 建议我们更换国内的 pod镜像源,网上大部分推荐使用清华的镜像源
git clone https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git master
我是使用后发现下载速度很慢,非常容易失败.便看了一下清华镜像的网站,发现cocoapods的镜像源有些问题.

后来使用了 gitee的镜像,下载速度很快3-6mb/s
https://gitee.com/mirrors/CocoaPods-Specs.git
之后在ios文件夹运行 pod install 的时候,installing dobleconversion 报错

这是因为访问github库在国外需要过墙, 在我打开vpn后 再pod install 还是超时.. (心态崩溃!)
最后历经苦难,找到了这篇
https://www.jianshu.com/p/a940b092cd6b 博客,抱着试试的态度,(我是使用的第一种方式)
终!于!成!功!了!
在此记录一下,以免在碰到类似情况.
完整设置步骤参考
https://www.jianshu.com/p/412d760bcacd -简书
https://blog.csdn.net/alicelmx/article/details/109000003 -CSDN
https://www.jianshu.com/p/a940b092cd6b -简书(救命稻草,差点被气到去世..)