-
Notifications
You must be signed in to change notification settings - Fork 24.3k
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
Problems with glog (config.h missing) and gflags/gflags.h on Xcode 10 #19774
Comments
I had the same issue but manually triggering configure script Also - If you want to build app for iOS 12 you have to switch path to the active developer directory ( |
I can also confirm this issue appearing when upgrading from RN 0.54 -> 0.56, building using Xcode 10 (or the Xcode 9 Preview Build System). Like @futuun mentioned, this is resolved by manually triggering the configure script. It sounds like the new build system isn't running that step by the time it's build artifacts are needed. Where is the |
In |
EDIT: Turns out this isn't true. |
I dug into this a bit further today, and it seems as though the Using
There is no call to |
Related to supporting XCode 10, it seems like a PR has been already merged on master: #19781 If you could verify if it fix it, we can cherry pick it for 0.56 before moving out of RC |
No, the PR you linked fixes other issue. You can have few versions of Xcode and switch between them, that PR is for making sure that you are using simulator from active version. This issue is connected to new build system (@eliperkins linked WWDC transcript). Not sure if we can have changes that will work with Xcode 10 and will be backward compatible with Xcode 9. |
Hey @futuun thanks for the detailed clarification :) Since XCode 10 is still in Beta 1 I feel like then probably 0.56 won't support it, and if the support for it is a breaking change then it will need to be discussed further (this issue I think is a good starting point for this). |
I'd say the 99% of the issues with the new build system will be backwards compatible. As far as this issue goes, I've spent a few more minutes look at it, and I'm positive that this is failing on the new build system due to Additionally, this seems extremely related to this commit: 5c53f89#diff-db5be184065c4ffa44ee6585f41e6a69 @janicduplessis @javache Can someone with more bash script expertise than myself take a look at |
Also, before
|
Summary: Fixes #19774 I spotted that in Xcode 10 beta `CURRENT_ARCH` is set to string `undefined_arch`. This PR will add fallback based on platform name (simulators are `x86_64` and everything since iPhone 5s is `arm64`). Closes #19841 Differential Revision: D8619897 Pulled By: hramos fbshipit-source-id: ed2ebaca105c6dcb40099f1a4aebe34d0660130c
I'm running into an issue after applying the change to The src files for double-conversion are not finished downloading by the time the compile phase of double-conversion is hit but on a second run of the build target, the build proceeds just fine since the files already exist. |
A simple and quick resolution. Source - https://stackoverflow.com/questions/50718018/xcode-10-error-multiple-commands-produce/50721769 |
repost from: #19529 (comment) I wrote something a bit cleaner for my purposes and installed the fix within the node_modules/react-native package. Normally I would prefer not to modify a node_module directly, but under this circumsance I felt that it was worth it and allowed us to add a simple script in our yarn start script and we get a clean run from a fresh clone.
(maybe its even better inside the node_modules/react-native/node_modules directory?) |
Your suggestion works for me! Thanks~ |
About this question, i have some ideas. https://github.com/wilddylan/ReactNativeRepairMacOsX download $ cp RepairReactNative.sh ~/xxx/xxx/your/react/native/project/dir/
$ chmod +x RepairReactNative.sh
$ ./RepairReactNative.sh |
This might work for people with multiple XCode version I've had this issue for a week or so and i've tried one of the method mentioned above which asked me to copy the glog and other packages from another package where it works (basically already compiled and kept), but this issue started popping up for other projects as well. Digging deeper i found that there was a error in configuring glog, where it was trying to use compiler from Xcode.app Folder. Unfortunately i've to maintain multiple xcode versions and always named them like |
@kmhari Thank you! You saved my life, i was in exactly the same situation and default |
Environment
Description
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.
Reproducible Demo
On macOS Mojave with Xcode 10.
Fails because
'config.h' file not found
onmutex.h
.The text was updated successfully, but these errors were encountered: