react native 'boost/config/user.hpp' file not found

react native xcode 编译错误:

'boost/config/user.hpp' file not found

解决方案:先清除缓存,再重新编译

xcode会重新下载third_party,国内网络会比较慢。

rm -r ~/Library/Caches/com.facebook.ReactNativeBuild
rm -r <your-project>/node_modules/react-native/third_party

记录下手动安装third_party:(未验证)

1.cd node_modules/react-native/scripts && ./ios-install-third-party.sh && cd ../../../

2.cd node_modules/react-native/third-party/glog-0.3.4/ && ../../scripts/ios-configure-glog.sh && cd ../../../../

展示评论