-
Notifications
You must be signed in to change notification settings - Fork 24.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Xcode 10.1 : node_modules/react-native/third-party/glog-0.3.5/src/base/mutex.h:105:10: 'config.h' file not found #22521
Comments
same issue ... please give any solutions ... I am using react native upgrade version like react-native v0.57.7 |
It's weird but this may be caused by |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Summary: Fixes #22521 The current approach has an issue with white spaces when compiling in Xcode 10.1 ![space](https://user-images.githubusercontent.com/615282/49782648-07836f80-fd52-11e8-952f-b93f8c593c60.png) Change back to relative path fixes this issue Pull Request resolved: #22598 Differential Revision: D13421446 Pulled By: hramos fbshipit-source-id: 688157b2e951399059cb6c95e2a6ce8d176e9b9c
Summary: Fixes #22521 The current approach has an issue with white spaces when compiling in Xcode 10.1 ![space](https://user-images.githubusercontent.com/615282/49782648-07836f80-fd52-11e8-952f-b93f8c593c60.png) Change back to relative path fixes this issue Pull Request resolved: #22598 Differential Revision: D13421446 Pulled By: hramos fbshipit-source-id: 688157b2e951399059cb6c95e2a6ce8d176e9b9c
I have a resolved this issue in my side, here is the steps:
|
@pengcao1 This should already be fixed in 0.57.8. Try that version first. If the issue persists please open a new issue and give more detailed information. |
Thank you for your suggestion. After research, I found that I can solve this problem by the following methods. |
@sunnylqm yes, maybe you're right. but, I think nobody would upgrade to 0.57.8 for resolving only this issue. that make risks... |
@pengcao1 Patch version is quite safe to update, which I think is a common sense. Otherwise how people fix things? And what do people update for? If not for resolving issues? |
Even on react native 0.57.8 this issue still appear, when successfull |
@ajijoyo Open a new issue with detailed information |
check if any folder has a space between the names. For example if your folder of your project is "My Projects" the config.h file can not be regreat when run-ios or run on the Xcode. Also make sure that your command line tools on the Preferences->Locations is the latest Xcode. This works for me perfect |
Summary: Fixes facebook#22521 The current approach has an issue with white spaces when compiling in Xcode 10.1 ![space](https://user-images.githubusercontent.com/615282/49782648-07836f80-fd52-11e8-952f-b93f8c593c60.png) Change back to relative path fixes this issue Pull Request resolved: facebook#22598 Differential Revision: D13421446 Pulled By: hramos fbshipit-source-id: 688157b2e951399059cb6c95e2a6ce8d176e9b9c
Environment
React Native Environment Info:
System:
OS: macOS 10.14.1
CPU: (4) x64 Intel(R) Core(TM) i5-5257U CPU @ 2.70GHz
Memory: 65.37 MB / 8.00 GB
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 10.14.1 - /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.1, macOS 10.14, tvOS 12.1, watchOS 5.1
IDEs:
Android Studio: 3.2 AI-181.5540.7.32.5014246
Xcode: 10.1/10B61 - /usr/bin/xcodebuild
npmPackages:
react: 16.6.1 => 16.6.1
react-native: 0.57.7 => 0.57.7
npmGlobalPackages:
react-native-cli: 2.0.1
Description
When I use Xcode to build this project, I meet the error
('config.h' file not found)
.Follow the steps below to reproduce the problem.
react-native init newRN
InTerminal
.'config.h'
file not foundnode_modules/react-native/third-party/glog-0.3.5/src/
ByFinder
Terminal
in this project , inputcd node_modules/react-native/third-party/glog-0.3.5
../../scripts/ios-configure-glog.sh
InTerminal
node_modules/react-native/third-party/glog-0.3.5/src/
ByFinder
Xcode
node_modules/react-native/third-party/glog-0.3.5/src/
ByFinder
react-native 0.57.4
, the problem will not happen. I think the latest React Native release includes some bugs.The text was updated successfully, but these errors were encountered: