xCode fails to build new react-native init project due to 'library not found for -lDoubleConversion'

See original GitHub issue

I have initiated a new react-native app with the react-native cli (react-native init newproject). The build works if I then run react-native run-ios but if I open the project in xcode (via the .xcodeproj file in the ios folder) then the build fails due to ‘library not found for -lDoubleConversion’

image

React Native version: System: OS: macOS 10.14.5 CPU: (4) x64 Intel® Core™ i5-7360U CPU @ 2.30GHz Memory: 28.45 MB / 8.00 GB Shell: 5.3 - /bin/zsh Binaries: Node: 12.5.0 - /usr/local/bin/node Yarn: 1.16.0 - /usr/local/bin/yarn npm: 6.9.0 - /usr/local/bin/npm Watchman: 4.9.0 - /usr/local/bin/watchman SDKs: iOS SDK: Platforms: iOS 12.2, macOS 10.14, tvOS 12.2, watchOS 5.2 IDEs: Xcode: 10.2.1/10E1001 - /usr/bin/xcodebuild npmPackages: react: 16.8.6 => 16.8.6 react-native: 0.60.0 => 0.60.0 npmGlobalPackages: react-native-cli: 2.0.1 react-native-log-ios: 1.0.1

Steps To Reproduce

  1. react-native init newproject
  2. open ios/newproject.xcodeproj in xcode and build

Describe what you expected to happen:

Build to fail with warning “library not found for -lDoubleConversion”

Snack, code example, or link to a repository:

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:5
  • Comments:18

github_iconTop GitHub Comments

5reactions
xJkitcommented, Jul 29, 2019

Due to the fact that DoubleConversion is a third-party library, I think you should open your project with .xcworkspace rather than .xcodeproj.

4reactions
irshadpccommented, Jul 9, 2019

@shannonjensen Look like your project never run the ‘pod install’ command.

Do the below steps

  1. go to ios/
  2. run ‘pod install’ or ‘pod update’
  3. open ios/newproject.xcworkspace
Read more comments on GitHub >

github_iconTop Results From Across the Web

ios - library not found for -lDoubleConversion - Stack Overflow
For me, I solved just opening the MyAppName.xcworkspace instead of MyAppName.xcodeproj , and then, building.
Read more >
IOS library not found for -lDoubleConversion #25804 - GitHub
I have tried with 0.59 again then it was working fine. If I create new a project run on Xcode I was getting...
Read more >
library not found for -lDoubleCon… | Apple Developer Forums
After updating XCode to 13.2.1 I'm getting " library not found for -lDoubleConversion" error when trying to "Archive" the project.
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 >
react native 063 ld: library not found for -lDoubleConversion
Since I updated my project to 0.63 whenever i build for profiling the app errors on ld: library not found for -lDoubleConversion.
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