react-native IOS项目打包的时候卡在 building: double-conversion|Building n of NN tasks ...

原因
罪魁祸首就是这个 ios-install-third-party.sh . 该文件在《/项目/node_modules/react-native/scripts》目录下,翻到最后部分可以看到,它要下载四个文件:
https://github.com/google/glog/archive/v0.3.5.tar.gz
https://github.com/google/double-conversion/archive/v1.1.6.tar.gz
https://github.com/react-native-community/boost-for-react-native/releases/download/v1.63.0-0/boost_1_63_0.tar.gz
https://github.com/facebook/folly/archive/v2018.10.22.00.tar.gz

React-Native的iOS项目打包时遇到building: double-conversion卡住的问题,原因是ios-install-third-party.sh脚本尝试从GitHub下载依赖缓慢。解决方案是手动下载四个依赖文件并存放在~/.rncache/目录中,确保文件名与脚本内一致,以加快building过程。
最低0.47元/天 解锁文章
1938

被折叠的 条评论
为什么被折叠?



