Skip to content
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

fatal error: 'double-conversion/double-conversion.h' file not found during upgrade from rn version 0.59.8 to 0.60.5 #26405

Closed
knight-hub opened this issue Sep 11, 2019 · 11 comments
Labels
Bug Resolution: Locked This issue was locked by the bot.

Comments

@knight-hub
Copy link

I was using the React Native upgrade helper to upgrade from React Native Version 0.59.8 to 0.60.5. After changing all non Android specific files building the project failed with the hint: fatal error: 'double-conversion/double-conversion.h' file not found. A Podfile already existed in the project before upgrading React Native and was modified in the process: Podfile_New.txt,
Podfile_Old.txt

Interestingly changing the line #include <double-conversion/double-conversion.h> to #include <DoubleConversion/double-conversion.h> in ios/Pods/Folly/folly/Conv.h seems to solve this problem, however other errors are then triggered. Also this does not feel like a 'real' solution.

React Native version:

System:
OS: macOS 10.14.6
CPU: (4) x64 Intel(R) Core(TM) i5-5257U CPU @ 2.70GHz
Memory: 51.46 MB / 16.00 GB
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 11.14.0 - /usr/local/bin/node
npm: 6.9.0 - /usr/local/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
SDKs:
iOS SDK:
Platforms: iOS 12.4, macOS 10.14, tvOS 12.4, watchOS 5.3
IDEs:
Android Studio: 3.4 AI-183.5429.30.34.5452501
Xcode: 10.3/10G8 - /usr/bin/xcodebuild
npmPackages:
@react-native-community/cli: 1.10.0 => 1.10.0
react: 16.8.6 => 16.8.6
react-native: 0.60.5 => 0.60.5
npmGlobalPackages:
react-native-cli: 2.0.1

@knight-hub knight-hub added the Bug label Sep 11, 2019
@RZzero
Copy link

RZzero commented Sep 11, 2019

Having the same issue.

@Dagorik
Copy link

Dagorik commented Sep 12, 2019

Same issue.

@kenMarquez
Copy link

I'm solving that with :

  • removing use_frameworks! from your Podfile
  • close xCode
  • rm -rf ~/library/developer/xcode/deriveddata
  • rm -rf ~/.rncache
  • rm -rf node_modules && yarn install && cd ios && rm -rf Pods && pod install && cd ..
  • clean and run

@knight-hub
Copy link
Author

Thank you @kenMarquez, your steps solved the problem for me! I skipped the first step (because I never had use_frameworks! in my Podfile) and then executed the remaining 5 steps. After that I only had to unlink a few dependencies and the build was successful.

@waheedakhter
Copy link

@kenMarquez I need to use use_frameworks since I am using react-native-applozic-chat library and that requires this thing. what would be the solution for me?

@AdrianMrn
Copy link

@waheedakhter did you find a solution for this?

@kenMarquez
Copy link

kenMarquez commented Oct 17, 2019

@waheedakhter @AdrianMrn If you upgrade your RN version to 0.61.0 in that version solve the problems with the frameworks

image

You can also download manually the library and paste into the Frameworks folder and don't forget add in Link Binary With Libraries

@AdrianMrn
Copy link

@kenMarquez Thanks, I'm upgrading now 🤞

@CVRamana
Copy link

CVRamana commented Jan 7, 2020

I'm solving that with :

  • removing use_frameworks! from your Podfile
  • close xCode
  • rm -rf ~/library/developer/xcode/deriveddata
  • rm -rf ~/.rncache
  • rm -rf node_modules && yarn install && cd ios && rm -rf Pods && pod install && cd ..
  • clean and run

If i remove the use_frameworks from the pod file then it give the firebaseMessaging Error =>Protobuf/Any.h not found and to solve this i have to write use_frameworks! in the pod file

so finally iam in the loop of this Error..

@CVRamana
Copy link

CVRamana commented Jan 7, 2020

@waheedakhter @AdrianMrn If you upgrade your RN version to 0.61.0 in that version solve the problems with the frameworks

image

You can also download manually the library and paste into the Frameworks folder and don't forget add in Link Binary With Libraries

Please provide the full solution

@AugustoAleGon
Copy link

@kenMarquez Solution works. I had the same problem with use framework. So I just upgrade to RN 0.61.5.
@CVRamana just take a look to rn-diff-purge.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

9 participants