Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

I'm using Xcode 9, everything was fine. but after I upgrade my React-native version to 0.46, and upgrade my React to 16.0.0 alpha12. and re-run my project, Xcode gives me an error 'boost/config/user.hpp' file not found, I use brew install boost to install boost. but it doest work. It seems like something wrong with react-native, because I can use Xcode to create a new iOS project and works fine, but when I use 'react-native init newProject', It gives me the same error.

like image 988
mengdi Avatar asked Jul 23 '17 08:07

mengdi


4 Answers

Just remove the cache and the third_party folder in react-native in node modules

 rm -r ~/.rncache
 rm -r <your-project>/node_modules/react-native/third_party
like image 111
Shamin Meerankutty Avatar answered Sep 21 '22 17:09

Shamin Meerankutty


For those who are using react-native version > 0.57

rm -r ~/Library/Caches/com.facebook.ReactNativeBuild
rm -r <your-project>/node_modules/react-native/third_party
like image 21
Fakhruddin Abdi Avatar answered Sep 17 '22 17:09

Fakhruddin Abdi


I just run the command : npm install and fixed the issue..

like image 27
Amir Alagic Avatar answered Sep 18 '22 17:09

Amir Alagic


for me it was key to remove the ios/Podfile.lock file after removing the ios/Pods/ folder

like image 45
David Schumann Avatar answered Sep 21 '22 17:09

David Schumann