react-native: 'glog/logging.h' file not found
- Review the documentation: https://facebook.github.io/react-native
- Search for existing issues: https://github.com/facebook/react-native/issues
- Use the latest React Native release: https://github.com/facebook/react-native/releases
Environment
React Native Environment Info:
System:
OS: macOS High Sierra 10.13.6
CPU: (4) x64 Intel(R) Core(TM) i7-2620M CPU @ 2.70GHz
Memory: 6.74 GB / 16.00 GB
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 10.13.0 - /usr/local/bin/node
Yarn: 1.12.3 - /usr/local/bin/yarn
npm: 6.4.1 - /usr/local/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
SDKs:
iOS SDK:
Platforms: iOS 12.0, macOS 10.14, tvOS 12.0, watchOS 5.0
IDEs:
Xcode: 10.0/10A255 - /usr/bin/xcodebuild
npmPackages:
react: 16.6.3 => 16.6.3
react-native: 0.58.0-rc.1 => 0.58.0-rc.1
npmGlobalPackages:
react-native-cli: 2.0.1
Description
I just tried to create a new project using react-native init --version=react-native@0.58.0-rc.1
for testings about this issue but i face this problem! I guess this is a regression!
Reproducible Demo
react-native init MyTestingProject --version=react-native@0.58.0-rc.1
cd MyTestingProject/ios
- open
MyTestingProject.xcodeproj
- File / Project Settings… / Build System => Legacy Build System / Done
- Product / Clean
- Product / Clean Build Folder
- Build
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 2
- Comments: 24
I fixed it by deleting the podlock file and doing a pod install, sharing here so that it might help someone
@artechventure I installed Xcode in Applications under
XCode 10.1
directory (with space) and it broke compilation process. Renaming toXCode10.1
fixed the issue.Well, i know this is a weird solution but it works!
I edited
../node_modules/react-native/scripts/ios-install-third-party.sh
and deleted these lines:then i copied the whole
third-party
folder from another project which is"react-native": "0.57.7"
and its working!Please consider that i ran
./configure
andmake
in the project of"react-native": "0.57.7"
too!I guess there’s a problem in the GitHub files!
@hramos (BTW, Happy New Year 😁 🎉 )
Did you try the ole
rm -rf ~/.rncache node_modules/react-native/third-party/*
?You saved my day!!! Thanks
@MohamadKh75 Using Xcode 10.1 and experiencing this.
fix here https://github.com/facebook/react-native/pull/26300
if you get ‘glog/logging.h’ the third party libraries are failing to install. the podspec script launcher is not throwing any error.
if you are on appcenter you need to update the pods on pre-build https://gist.github.com/thisisablock/b57185cc3657d4e0252960a0bd7cf0a9
Same issue happened to me after cancelling build in xcode and running it again (xcode v10.2.1, rn 0.59.10). I used
Product->Clean Build Folder
and puff, it fixed the problem.@KushalDesai1 I’ve also encountered this issue and could not get any of the proposed solutions to work. However, I did find one that did. I copied ios-configure-glog.sh from the react-native@0.57.7 project to my current project react-native@0.59. It turns out that in my case it wasn’t a corrupted install of glog or double-conversion. The issue was with the following code in the script:
Try removing that if it exists in your current project. Hopefully that works for you.
I’d prefer to have some repro steps before reopening.
thanks for reporting, I feel that we can close this then.
I can confirm this issue is resolved in Xcode 10.1 but exist in Xcode 10