Xcode compile error: 'boost/config/user.hpp' file not found"

There is always an compiled error when running xcode with react-native recently:

Lexical or Preprocessor Issue Group:
...node_modules/react-native/third-party/boost_1_63_0/boost/config.hpp:30:12: 'boost/config/user.hpp' file not found


Current solution is to download new boost, extract it and then overwrite it in the react-native/third-party folder. It works but too slowly, you need to copy over 100MB files.

I try to just copy config folder, but seems not work. This problem has been occured in several projects.

The last solution is clean the cache:

rm -rf ~/.rncache
rm -rf node_modules/react-native/third-party

Comments

Popular posts from this blog

Error [ERR_UNSUPPORTED_ESM_URL_SCHEME]: Only file and data URLs are supported by the default ESM loader.