目前主流的解决方案有四种
方案1.
Open Project in XCode
If Xcode > 9 run command react-native upgrade
then
1.Go to File -> Project settings
2.Click the Advanced button
3.Select "Custom" and select "Relative to Workspace" in the pull down
4.Change "Build/Products" to "build/Build/Products"
方案2.
1 .下载 https://sourceforge.net/projects/boost/files/boost/1.63.0/ 然后解压。
2.找到项目文件夹 node_modules/react-native/third-party/boost
3. 用下载下来的文件夹覆盖 此文件
then.
react-native run-ios
enjoy :)
方案3
全部更新 ./rncache 下面的文件包。
cd node_modules/react-native/scripts && ./ios-install-third-party.sh &&cd../../../
cd node_modules/react-native/third-party/glog-0.3.5/ && ../../scripts/ios-configure-glog.sh
作者:飞奔在路上
链接:https://www.jianshu.com/p/43857c713176
來源:简书
简书著作权归作者所有,任何形式的转载都请联系作者获得授权并注明出处。
方案4
react native start then open another terminal react-native run-ios