arled
arled

Reputation: 2690

Upgraded React Native and now getting glog/logging.h file not found

I've upgraded React Native from 0.52 to 0.59 I'm aware this is a massive jump but I thought might as well go for it, and now getting glog/logging.h file not found.

I'm also aware that there are similar questions on here. But I've literally tried everything out there and I just can't seem to get this issue fixed.

Here's one of the things that I've tried:

cd node_modules/react-native/scripts && ./ios-install-third-party.sh && cd ../../../

cd node_modules/react-native/third-party/glog-0.3.4/ && ../../scripts/ios-configure-glog.sh && cd ../../../../

Anyone would think this would solve it right? I've left no stone unterned and it just doesn't want to go away. Fun!

enter image description here

Upvotes: 3

Views: 3323

Answers (1)

Andrew Hoyer
Andrew Hoyer

Reputation: 811

Found a reference to the XCode app name having spaces here:

https://github.com/facebook/react-native/issues/19774

I also found that as I was using multiple versions, I had "XCode 10.1.app". When I changed it to XCode.app (and run something like sudo xcode-select --switch /Applications/Xcode.app to update the XCode path), my app built without this problem or any of the others I'd experienced to date with glog.

Upvotes: 1

Related Questions