Problems with glog (config.h missing) and gflags/gflags.h on Xcode 10 #19772
Labels
Ran Commands
One of our bots successfully processed a command.
Resolution: Locked
This issue was locked by the bot.
Trying to build the initial React Native project is not working on Xcode 10 on Mojave, tested on two machines and had slightly different issues both while compiling glog.
Fails because
'config.h' file not found
onmutex.h
. Manually configuring and making glog fromnode_modules/react-native/third-party/glog-0.3.4
works, but then fails because'gflags/gflags.h' file not found
.If I try to compile on Xcode 9.4, it also fails. The only thing that enabled me to build on either was:
rm -rf ~/.rncache/
rm -rf $PROJECT/node_modules/react-native/third-party/
It is very unstable though, stops working as soon as I reopen Xcode.
I've tested on another machine and had another issue with glog build:
config.log: https://pastebin.com/8M4ybuEp
This machine did not have Xcode installed before. I did install the Command Line Utils.
The text was updated successfully, but these errors were encountered: