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

ld: library not found for -lDoubleConversion for React Native 0.60.4 #26348

Closed
ldco2016 opened this issue Sep 5, 2019 · 12 comments
Closed

ld: library not found for -lDoubleConversion for React Native 0.60.4 #26348

ldco2016 opened this issue Sep 5, 2019 · 12 comments
Labels
Bug Stale There has been a lack of activity on this issue and it may be closed soon.

Comments

@ldco2016
Copy link

ldco2016 commented Sep 5, 2019

I continue to get a library not found for -lDoubleConversion.

This is my podfile:

platform :ios, '9.0'
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'

abstract_target 'defaults' do
  # Pods for NFIBEngage
  pod 'React', :path => '../node_modules/react-native/'
  pod 'React-Core', :path => '../node_modules/react-native/React'
  pod 'React-DevSupport', :path => '../node_modules/react-native/React'
  pod 'React-fishhook', :path => '../node_modules/react-native/Libraries/fishhook'
  pod 'React-RCTActionSheet', :path => '../node_modules/react-native/Libraries/ActionSheetIOS'
  pod 'React-RCTAnimation', :path => '../node_modules/react-native/Libraries/NativeAnimation'
  pod 'React-RCTBlob', :path => '../node_modules/react-native/Libraries/Blob'
  pod 'React-RCTImage', :path => '../node_modules/react-native/Libraries/Image'
  pod 'React-RCTLinking', :path => '../node_modules/react-native/Libraries/LinkingIOS'
  pod 'React-RCTNetwork', :path => '../node_modules/react-native/Libraries/Network'
  pod 'React-RCTSettings', :path => '../node_modules/react-native/Libraries/Settings'
  pod 'React-RCTText', :path => '../node_modules/react-native/Libraries/Text'
  pod 'React-RCTVibration', :path => '../node_modules/react-native/Libraries/Vibration'
  pod 'React-RCTWebSocket', :path => '../node_modules/react-native/Libraries/WebSocket'

  pod 'React-cxxreact', :path => '../node_modules/react-native/ReactCommon/cxxreact'
  pod 'React-jsi', :path => '../node_modules/react-native/ReactCommon/jsi'
  pod 'React-jsiexecutor', :path => '../node_modules/react-native/ReactCommon/jsiexecutor'
  pod 'React-jsinspector', :path => '../node_modules/react-native/ReactCommon/jsinspector'
  pod 'yoga', :path => '../node_modules/react-native/ReactCommon/yoga'

  pod 'DoubleConversion', :podspec => '../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec'
  pod 'glog', :podspec => '../node_modules/react-native/third-party-podspecs/glog.podspec'
  pod 'Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec'

  pod 'RNDeviceInfo', :path => '../node_modules/react-native-device-info'

  target 'PROD'
  target 'DEV'
  target 'QA'
  target 'UA'
  target 'IN'
  target 'NFIBEngageTests'
  target 'NFIBEngage-tvOS'
  target 'NFIBEngage-tvOSTests'

  use_native_modules!

end

I have run out of ideas of why Xcode does not see DoubleConversion. It is there. Its in my Linked Frameworks and Libraries in the General tab and its in Link Binary With Libraries inside of Build Phases tab.

I believe the DoubleConversion library is set up correctly in Podfile, but Xcode is looking for DoubleConversion instead of double-conversion.

React Native version:

SDKs:
  iOS SDK:
    Platforms: iOS 12.1, macOS 10.14, tvOS 12.1, watchOS 5.1
  Android SDK:
    API Levels: 23, 25, 26, 27, 28
    Build Tools: 23.0.1, 26.0.2, 27.0.3, 28.0.3
    System Images: android-28 | Google Play Intel x86 Atom
IDEs:
  Android Studio: 3.5 AI-191.8026.42.35.5791312
  Xcode: 10.1/10B61 - /usr/bin/xcodebuild
npmPackages:
  @react-native-community/cli: 2.9.0 => 2.9.0
  react: 16.8.6 => 16.8.6
  react-native: 0.60.4 => 0.60.4
npmGlobalPackages:
  react-native-cli: 2.0.1
  react-native-git-upgrade: 0.2.7

Steps To Reproduce

  1. open NFIBEngage.xcodeproj
  2. Run Clean
  3. Run Build

You can use this repo to reproduce:
https://github.com/ldco2016/NFIBEngage

@ldco2016 ldco2016 added the Bug label Sep 5, 2019
@raghav-mylagary
Copy link

raghav-mylagary commented Sep 5, 2019

Related to #25804

@sraodev
Copy link

sraodev commented Nov 30, 2019

I manage to solve this issue.

Make sure you make the build after opening workspace in XCode.

e.g. open .xcworkspace not the .xcodeproj

@Billmike
Copy link

Billmike commented Jan 2, 2020

I spent the last five days stuck on this, trying out everything suggested on the internet. This is what finally worked for me. (Before proceeding, make sure
pod 'DoubleConversion', :podspec => '../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec' is included in your podfiles

1. Delete Podfile.lock
2. cd ios
3. pod deintegrate
4. pod install
5. cd ..
6. rm -rf node_modules && yarn
7. Add use_frameworks! to your Podfile

Run react-native-run-ios or Build with Xcode by opening the xcworkspace file in your ios directory. Hope this helps someone!

@outluch
Copy link

outluch commented Feb 1, 2020

Had the same problem, but build succeeded after this:
react-native-maps/react-native-maps#2829 (comment)

@Maxoos
Copy link

Maxoos commented Feb 13, 2020

If you're here from google (and a note to myself as I might forget), make sure the IOS version in podsfile AND project AND any test targets that you may have are the same. Otherwise it simply will not complete the release/archive.

@alexisbronchart
Copy link

I now have this issue after updating to 0.62.0 (it was fine before).
It doesn't seem to happen if I remove use_frameworks! from my Podfile, however I absolutely need it for some dependencies. Any ideas?

@stale
Copy link

stale bot commented Jul 3, 2020

Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as a "Discussion" or add it to the "Backlog" and I will leave it open. Thank you for your contributions.

@stale stale bot added the Stale There has been a lack of activity on this issue and it may be closed soon. label Jul 3, 2020
@stale
Copy link

stale bot commented Jul 11, 2020

Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information.

@stale stale bot closed this as completed Jul 11, 2020
@Lekhrajk
Copy link

I am getting same error tried everything but nothing works
I am using RN 0.64

@hugoh59
Copy link

hugoh59 commented May 17, 2021

Me too but with AppAuth.

@yongpengW
Copy link

I am getting same error tried everything but nothing works
I am using RN 0.64

I am also RN 64, did you solve the problem? I have tried everything above

@chenweigh
Copy link

the same problem for 0.65

@facebook facebook locked as resolved and limited conversation to collaborators Oct 4, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug Stale There has been a lack of activity on this issue and it may be closed soon.
Projects
None yet
Development

No branches or pull requests