pod install fails due to glog
See original GitHub issueWhen running pod install in my project, it fails with the error:
error: C compiler cannot create executables

React Native version: 0.60.0
System:
OS: macOS 10.15
CPU: (4) x64 Intel(R) Core(TM) i7-7567U CPU @ 3.50GHz
Memory: 4.15 GB / 16.00 GB
Shell: 5.7.1 - /bin/zsh
Binaries:
Node: 8.16.0 - ~/.nvm/versions/node/v8.16.0/bin/node
Yarn: 1.16.0 - ~/.yarn/bin/yarn
npm: 6.9.1 - ~/.nvm/versions/node/v8.16.0/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
SDKs:
iOS SDK:
Platforms: iOS 13.0, DriverKit 19.0, macOS 10.15, tvOS 13.0, watchOS 6.0
Android SDK:
Android NDK: 19.2.5345600
IDEs:
Android Studio: 3.4 AI-183.6156.11.34.5692245
Xcode: 11.0/11M362v - /usr/bin/xcodebuild
npmPackages:
react: 16.8.6 => 16.8.6
react-native: 0.60.0 => 0.60.0
npmGlobalPackages:
eslint-plugin-react-native: 3.7.0
I can also reproduce this when not using the beta SDK:
System:
OS: macOS 10.15
CPU: (4) x64 Intel(R) Core(TM) i7-7567U CPU @ 3.50GHz
Memory: 4.04 GB / 16.00 GB
Shell: 5.7.1 - /bin/zsh
Binaries:
Node: 8.16.0 - ~/.nvm/versions/node/v8.16.0/bin/node
Yarn: 1.16.0 - ~/.yarn/bin/yarn
npm: 6.9.1 - ~/.nvm/versions/node/v8.16.0/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
SDKs:
iOS SDK:
Platforms: iOS 12.2, macOS 10.14, tvOS 12.2, watchOS 5.2
Android SDK:
Android NDK: 19.2.5345600
IDEs:
Android Studio: 3.4 AI-183.6156.11.34.5692245
Xcode: 10.2.1/10E1001 - /usr/bin/xcodebuild
npmPackages:
react: 16.8.6 => 16.8.6
react-native: 0.60.0 => 0.60.0
npmGlobalPackages:
eslint-plugin-react-native: 3.7.0
Steps To Reproduce
I found this issue when running pod install in my pre-existing project that I have upgraded to RN 0.60. But, I can reproduce the exact same error when running react-native init test and the error occurs when it gets to pod install
Describe what you expected to happen:
The script not to crash and pod install to finish running
Snack, code example, or link to a repository:
Just do react-native init test and it gives the error
Issue Analytics
- State:
- Created 4 years ago
- Reactions:14
- Comments:81
Top Results From Across the Web
OS pod install error. Module glog cannot be installed
This error would be caused by installing another version of xcode. So after installing the new version restart your system and ...
Read more >[Node/Yarn Issue] On CocoaPods installing glog (0.3.5) error ...
When i used CocoaPods, i met problem. When yarn install Installing glog (0.3.5), there was a problem. Yarn tried installing glog (0.3.5) error, ......
Read more >[Solved]-Pod Install Fails Due to Glog-React Native
Pod Install Fails Due to Glog · OS pod install error. · How to fix pod install error glog is too old or...
Read more >RN on M1 -- what am I doing wrong? : r/reactnative
Nope, even that creates an error as it can not install the pods. Looks like Flipper-Glog doesn't want to be installed on M1....
Read more >How to fix “pod install” error in React Native on Mac M1
Even though you followed the official React Native docs step-by-step, you witness a build error in the pod install step. A quick Google...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
As per https://github.com/facebook/react-native/issues/18408#issuecomment-386696744 (thanks @YuryKorovko !)
Fixed!
Seems to be an issue with Xcode after a new install. I resolved this issue on my machine by:
This assumes you’ve already got command line tools installed.
You may be able to achieve the same result from xcode-select on the command line, but I didn’t try that.