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.
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
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With