-
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: Build input file double-conversion cannot be found #21168
Comments
I was having a similar issue, in my case, just accepting the xcode license solved all issues. |
Support for XCode 10 is not fully tested yet - please refer to #19573 to know what's the current status. That said if accepting the license is the solution please close this issue. |
I have the same errors with an existing project, building in XCode or from React Native CLI. Probably not a licence issue. |
I was facing a similar issue after upgrading. To solve it I ran the following commands: $ cd node_modules/react-native/scripts && ./ios-install-third-party.sh && cd ../../../
$ cd node_modules/react-native/third-party/glog-0.3.5/ && ../../scripts/ios-configure-glog.sh && cd ../../../../ Now Xcode builds fine. |
Do you have to run those commands on new projects too @mattijsf? Or projects created after you have XCode 10 installed "just work"? |
In my case this answer helped Had to remove info plist files from specified location, there are couple caveats in XCode 10 that are not necessarily react-native specific. |
I'm seeing the same too. @mattijsf's solution did allow iOS to compile, however as a side effect, I then saw the following errors when trying to run the Android version:
Clearing down node_modules and re-running @kelset In response to your question above - this happened both on an old project created before XCode 10 was installed and a new project created after XCode 10 was installed. It happens on both RN 0.56 and 0.57. |
@chrisbianca This happened to me on existing project, try to remove your node modules, clear watchman cache and yarn / npm cache to re-install everything (maybe even try clearing lock files if you can). After I did all that, third party issue wen't away. This issue has more info: #14382 |
@kelset I have the same problem after I bootstrap a new project using
|
It feels to me this issue is impacted by some parallel build / racing condition... I can repeat the following script 10x but I get the same error every time:
However if execute The same thing can be said with opening the project for the first time in Xcode (without using |
Thanks @mattijsf, solution worked for me as well. Project originally created with Xcode 9, now compiles correctly with 10 after executing those two scripts. You can execute them directly btw, no need to # From project root
$ node_modules/react-native/scripts/ios-install-third-party.sh
$ node_modules/react-native/third-party/glog-0.3.5/configure |
@ChrisChares I discovered that running the bare
|
We had this same issue. We downgraded Xcode to 9.4.1 and it appears to have fixed the build error above. |
I used this:
and this: and I am working fine |
Hi, just providing some feedback based on my experience:
Cheers! |
not work for me, this error
kill my app. |
My solution, add the code to my
|
I actually found that Xcode 10 has a new build system that affects how / when scripts are executed during the Build Phase. I had similar problems in Xcode 10 with other internal projects which generate files during the build phase. For those projects and react-native I found that switching to the Legacy Build Systems solved the problem where the dependencies (third-party / glog etc) are not correctly generated on the first build. To switch to the legacy build system do the following:
Note that the project changes won't be picked up by git because |
Hey @mattijsf thanks for all the investigation you have been doing, you are being really helpful in finding out how to fix it 👏 Side question:
Is it a Xcode project level setting or a general XCode setting? Meaning, would it be a "good enough" workaround for people updating to XCode 10 until we find the root cause? |
@kelset It is a project / workspace setting. Once the settings is changed within Xcode a file is written to: <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>BuildSystemType</key>
<string>Original</string>
</dict>
</plist> (the path will be different for workspaces) I also tried applying that setting to only |
Just created a brand new project, I ran into this issue on the Simulator, for me the solution was:
Ran with no problems. Closed down Xcode 10 IDE and went back to CLI: |
This one fixed the problem for me. Special thanks here => StackOverflow |
@mattijsf 's suggestion worked for me, it can be found in the xcode ui via:
Temporary workaround of course 👀 |
I'm on 54.4 and this works |
not work for me at all. rollback to xcode 9.4 and wait the official fix.
|
|
Close everything and restart your system and then run it will work. I was facing the same issue after that it worked. |
I tried everything on this thread however I still cannot get it to run. |
I also met this problem after upgrading my Xcode to version 10. Clean RN cache $ rm -rf ~/.rncache Re-install the deps
Then install the third-party $ cd node_modules/react-native/scripts
$ ./ios-install-third-party.sh Run the commands below if glog installation failed. $ cd ../third-party/glog-0.3.x
$ ./configure It works for me, I hope it helps for you. |
@kirkcola Have you tried building your project on Generic iOS Device or a Physical device? I would like to know if that works. |
Did the job in my case. React-Native 0.55.4 |
@mattijsf Yeah, I've tested on a physical device running iOS12. |
Re: #21168 (comment) That doesn't actually work when building for device because this script needs to be used: https://github.com/facebook/react-native/blob/v0.57.0/scripts/ios-configure-glog.sh to configure glog right and add a config file. Also, something is wrong with path handling, so you can't call Here's a version that works for me: if [ ! -d "node_modules/react-native/third-party" ]; then
cd node_modules/react-native ; ./scripts/ios-install-third-party.sh ; cd ../../
cd node_modules/react-native/third-party/glog-0.3.5/ ; ../../scripts/ios-configure-glog.sh ; cd ../../../../
fi |
Thank you all of your job (with @mattijsf) However i think it should be $ pwd
# node_modules/react-native
$ find . -name 'configure' -type f
// before configuring
./scripts/third-party/glog-0.3.x/configure
// after configuring
./scripts/third-party/glog-0.3.x/configure
./third-party/glog-0.3.x/configure |
Thank you (with @mattijsf) |
I wrote a step by step GIST that encapsulates several of these steps. For me, with the following versions running:
this is the simplest / quickest way to get up and running with a new project Hope this is helpful to some of you: https://gist.github.com/findmory/52facd61b492b13f0c7f67db4cf79012 |
Duplicate of #20774 |
Still having build problems after upgrading to Xcode 10. |
@filipepratalima It means that your library RNDeviceInfo is not linked properly. Please check how to link it manually here: |
Environment
Description
The cli is broken once you have installed xcode 10. Creating any new project will render the same issue (compilation failure) as it seems to be failing compiling double conversion as illustrated below:
Reproducible Demo
react-native init awesomeApp
cd awesomeApp && react-native run-ios
Workaround for new projects
Once the project has been initialised, kill facebook's team identifiers with
Running
react-native run-ios
this time should work.The text was updated successfully, but these errors were encountered: