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

Viewed 9746

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.

5 Answers

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

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

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

Hope this also helpful

Deleting the Podfile for boost, and running pod install again

Related