question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ld: library not found for -lDoubleConversion

See original GitHub issue

After pod install I get this error ld: library not found for -lDoubleConversion in XCode build. The same problem occurs when I reinstall and try to change its version,I tried RN 0.54, 0.53, 0.52

Environment:
  OS: macOS High Sierra 10.13.4
  Node: 7.4.0
  Yarn: 1.5.1
  npm: 4.0.5
  Watchman: 4.9.0
  Xcode: Xcode 9.3.1 Build version 9E501
  Android Studio: 3.0 AI-171.4443003

Packages: (wanted => installed)
  react: ^16.4.0 => 16.4.0
  react-native: ^0.55.4 => 0.55.4

ERROR:

Ld /Users/user/Library/Developer/Xcode/DerivedData/XXX-gkwpiviidvtyhrbqohsmmhdjdyjr/Build/Products/Release-iphonesimulator/XXX.app/XXX normal x86_64
    cd /Users/user/project/react-native/XXX/ios
    export IPHONEOS_DEPLOYMENT_TARGET=11.3
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk -L/Users/user/Library/Developer/Xcode/DerivedData/XXX-gkwpiviidvtyhrbqohsmmhdjdyjr/Build/Products/Release-iphonesimulator -L../node_modules/react-native-baidu-map/ios/lib/thirdlibs -F/Users/user/Library/Developer/Xcode/DerivedData/XXX-gkwpiviidvtyhrbqohsmmhdjdyjr/Build/Products/Release-iphonesimulator -F/Users/user/project/react-native/XXX/ios/../node_modules/react-native-baidu-map/ios/lib -filelist /Users/user/Library/Developer/Xcode/DerivedData/XXX-gkwpiviidvtyhrbqohsmmhdjdyjr/Build/Intermediates.noindex/XXX.build/Release-iphonesimulator/XXX.build/Objects-normal/x86_64/XXX.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -mios-simulator-version-min=11.3 -dead_strip -Xlinker -object_path_lto -Xlinker /Users/user/Library/Developer/Xcode/DerivedData/XXX-gkwpiviidvtyhrbqohsmmhdjdyjr/Build/Intermediates.noindex/XXX.build/Release-iphonesimulator/XXX.build/Objects-normal/x86_64/XXX_lto.o -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -fobjc-link-runtime -ObjC -lDoubleConversion -lFolly -lGoogle-Maps-iOS-Utils -lReact -lc++ -lglog -lreact-native-google-maps -lreact-native-maps -lstdc++ -lyoga -lz -framework Accelerate -framework CoreData -framework CoreGraphics -framework CoreLocation -framework CoreTelephony -framework CoreText -framework GLKit -framework GoogleMaps -framework GoogleMapsBase -framework GoogleMapsCore -framework ImageIO -framework JavaScriptCore -framework OpenGLES -framework QuartzCore -framework SystemConfiguration -framework UIKit -ObjC -lc++ -Xlinker -sectcreate -Xlinker __TEXT -Xlinker __entitlements -Xlinker /Users/user/Library/Developer/Xcode/DerivedData/XXX-gkwpiviidvtyhrbqohsmmhdjdyjr/Build/Intermediates.noindex/XXX.build/Release-iphonesimulator/XXX.build/XXX.app-Simulated.xcent /Users/user/Library/Developer/Xcode/DerivedData/XXX-gkwpiviidvtyhrbqohsmmhdjdyjr/Build/Products/Release-iphonesimulator/libdouble-conversion.a /Users/user/Library/Developer/Xcode/DerivedData/XXX-gkwpiviidvtyhrbqohsmmhdjdyjr/Build/Products/Release-iphonesimulator/libRCTOrientation.a -lcrypto -lssl -framework BaiduMapAPI_Cloud -framework BaiduMapAPI_Radar -framework BaiduMapAPI_Search -framework BaiduMapAPI_Map -framework BaiduMapAPI_Base -framework BaiduMapAPI_Location -framework BaiduMapAPI_Utils -lstdc++.6.0.9 -framework CoreTelephony -lsqlite3.0 -framework Security -framework CoreGraphics -framework SystemConfiguration -framework OpenGLES -framework QuartzCore -framework CoreLocation /Users/user/Library/Developer/Xcode/DerivedData/XXX-gkwpiviidvtyhrbqohsmmhdjdyjr/Build/Products/Release-iphonesimulator/libRCTBaiduMap.a /Users/user/Library/Developer/Xcode/DerivedData/XXX-gkwpiviidvtyhrbqohsmmhdjdyjr/Build/Products/Release-iphonesimulator/libRNI18n.a /Users/user/Library/Developer/Xcode/DerivedData/XXX-gkwpiviidvtyhrbqohsmmhdjdyjr/Build/Products/Release-iphonesimulator/libBVLinearGradient.a /Users/user/Library/Developer/Xcode/DerivedData/XXX-gkwpiviidvtyhrbqohsmmhdjdyjr/Build/Products/Release-iphonesimulator/libSplashScreen.a /Users/user/Library/Developer/Xcode/DerivedData/XXX-gkwpiviidvtyhrbqohsmmhdjdyjr/Build/Products/Release-iphonesimulator/libRCTPushNotification.a /Users/user/Library/Developer/Xcode/DerivedData/XXX-gkwpiviidvtyhrbqohsmmhdjdyjr/Build/Products/Release-iphonesimulator/PocketSVG.framework/PocketSVG /Users/user/Library/Developer/Xcode/DerivedData/XXX-gkwpiviidvtyhrbqohsmmhdjdyjr/Build/Products/Release-iphonesimulator/libRCTBlob.a /Users/user/Library/Developer/Xcode/DerivedData/XXX-gkwpiviidvtyhrbqohsmmhdjdyjr/Build/Products/Release-iphonesimulator/libRCTAnimation.a /Users/user/Library/Developer/Xcode/DerivedData/XXX-gkwpiviidvtyhrbqohsmmhdjdyjr/Build/Products/Release-iphonesimulator/libReact.a /Users/user/Library/Developer/Xcode/DerivedData/XXX-gkwpiviidvtyhrbqohsmmhdjdyjr/Build/Products/Release-iphonesimulator/libRCTAnimation.a /Users/user/Library/Developer/Xcode/DerivedData/XXX-gkwpiviidvtyhrbqohsmmhdjdyjr/Build/Products/Release-iphonesimulator/PocketSVG.framework/PocketSVG /Users/user/Library/Developer/Xcode/DerivedData/XXX-gkwpiviidvtyhrbqohsmmhdjdyjr/Build/Products/Release-iphonesimulator/libRCTActionSheet.a /Users/user/Library/Developer/Xcode/DerivedData/XXX-gkwpiviidvtyhrbqohsmmhdjdyjr/Build/Products/Release-iphonesimulator/libRCTGeolocation.a /Users/user/Library/Developer/Xcode/DerivedData/XXX-gkwpiviidvtyhrbqohsmmhdjdyjr/Build/Products/Release-iphonesimulator/libRCTImage.a /Users/user/Library/Developer/Xcode/DerivedData/XXX-gkwpiviidvtyhrbqohsmmhdjdyjr/Build/Products/Release-iphonesimulator/libRCTLinking.a /Users/user/Library/Developer/Xcode/DerivedData/XXX-gkwpiviidvtyhrbqohsmmhdjdyjr/Build/Products/Release-iphonesimulator/libRCTNetwork.a /Users/user/Library/Developer/Xcode/DerivedData/XXX-gkwpiviidvtyhrbqohsmmhdjdyjr/Build/Products/Release-iphonesimulator/libRCTSettings.a /Users/user/Library/Developer/Xcode/DerivedData/XXX-gkwpiviidvtyhrbqohsmmhdjdyjr/Build/Products/Release-iphonesimulator/libRCTText.a /Users/user/Library/Developer/Xcode/DerivedData/XXX-gkwpiviidvtyhrbqohsmmhdjdyjr/Build/Products/Release-iphonesimulator/libRCTVibration.a /Users/user/Library/Developer/Xcode/DerivedData/XXX-gkwpiviidvtyhrbqohsmmhdjdyjr/Build/Products/Release-iphonesimulator/libRCTWebSocket.a -lRCTARKit -lRNBlur -lReactNativeNavigation -lPods-XXX -Xlinker -dependency_info -Xlinker /Users/user/Library/Developer/Xcode/DerivedData/XXX-gkwpiviidvtyhrbqohsmmhdjdyjr/Build/Intermediates.noindex/XXX.build/Release-iphonesimulator/XXX.build/Objects-normal/x86_64/XXX_dependency_info.dat -o /Users/user/Library/Developer/Xcode/DerivedData/XXX-gkwpiviidvtyhrbqohsmmhdjdyjr/Build/Products/Release-iphonesimulator/XXX.app/XXX
ld: library not found for -lDoubleConversion
clang: error: linker command failed with exit code 1 (use -v to see invocation)

I try to find a lot of places, and I rarely encounter this error. I don’t know where the problem might be.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:6

github_iconTop GitHub Comments

29reactions
gianpajcommented, Jun 3, 2018

I manage to solve this issue.

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

e.g. open .xcworkspace not the onova.xcodeproj

2reactions
stoneWebcommented, Jun 4, 2018

I’m sure I’m open .xcworkspace.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ios - library not found for -lDoubleConversion - Stack Overflow
I tried to build on XCode but ld: library not found for -lDoubleConversion error occurs. I could build react-native run-ios .
Read more >
IOS library not found for -lDoubleConversion #25804 - GitHub
I do get this bug of -lDoubleConversion library not found. ... When I do a clean react-native init, then try to build it...
Read more >
ld: library not found for -lDoubleConversion React Native 0.59
iOS : ld : library not found for -lDoubleConversion React Native 0.59 [ Beautify Your Computer : https://www.hows.tech/p/recommended.html ] ...
Read more >
Library not found for -lDoubleConversion : r/reactnative - Reddit
I'm getting the error just by creating a new project with "react-native init" and running the app from Xcode. RN version: 0.60.3.
Read more >
Xcode - ld: library not found for -lDoubleConversion
Here's how you fix this issue · Open XCode and press: Cmd + 1 · Click on your project in the left panel...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found