File xcode 'boost / config / user.hpp' not found

I use Xcode 9, everything was fine. but after I upgraded my version for React-native to 0.46 and upgraded my React to 16.0.0 alpha12. and restart my project, Xcode gives me the error 'boost/config/user.hpp' file not found , I use brew install boost to install boost. but it does the job. Something seems to be wrong with native-native because I can use Xcode to create a new iOS project and it works great, but when I use "init-init initProject" it gives me the same error.

+9
source share
4 answers

Just delete the cache and third_party folder in native-native in node modules

  rm -r ~/.rncache rm -r <your-project>/node_modules/react-native/third_party 
+22
source

I just run the command: npm install and fix the problem ..

+1
source

Hope this is also helpful.

Uninstall Podfile for Podfile and run pod install again

0
source

For those using a reactive version> 0.57

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

Source: https://habr.com/ru/post/1270116/


All Articles