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.

Error ld: library not found for -lRCTGeolocation when trying to build on device

See original GitHub issue

Ask your Question

react-native 0.60 xcode 10.3

I installed the module using npm and now I am getting the same error as I was getting previously -

ld: library not found for -lRCTGeolocation

I tried manually linking it but it still fails. I get this error only when I try to run on my ios device through xcode or cli like react-native run-ios --device "iPhone".

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:8
  • Comments:7

github_iconTop GitHub Comments

9reactions
kristerkaricommented, Sep 18, 2019

I manged to figure out what was causing this error. It was happening because my project’s project.pbxproj was had still some React Native references that should be removed when updating to 0.60.

What I did was to open my project’s .xcworkspace file, then make sure that under the Libraries there are no libraries. So I clicked on the library name (e.g. RCTGeolocation.xcodeproj) and selected Delete and Remove Reference. I did that for every RCT* library under Libraries before updating to 0.60.5.

Here’s how I would recommend to do the update process:

  1. Unlink all third party libraries that your project uses with react-native unlink libraryname.
  2. Open project’s .xcworkspace file and remove references to all remaining libraries under your project’s Libraries (there should be some RCT* ones there still).
  3. Update to 0.60.5 with the diff from Upgrade Helper, e.g. https://react-native-community.github.io/upgrade-helper/?from=0.59.10&to=0.60.5
  4. Make sure that your React Native third party libraries are using the latest versions.
  5. run yarn install in your project’s root.
  6. run cd ios && pod install.
  7. run react-native run-ios and hopefully it works.
2reactions
kristerkaricommented, Sep 12, 2019

I’m running into the same problem when updating React Native from 0.59.10 to 0.60.5.

I also tried manually linkin the package using react-native link @react-native-community/geolocation, but the build is still failing with ld: library not found for -lRCTGeolocation.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error ld: library not found for -lRCTGeolocation when trying to ...
I get this error only when I try to run on my ios device through xcode or cli like react-native run-ios --device "iPhone"...
Read more >
library not found for -lRCTGeolocation - Stack Overflow
I delete the messaging reference from pod file I delete pods folder & podfile.lock file re installed pods, clean the build but didn't...
Read more >
[Solved]-ld: library not found for -lvrunity when building google ...
Coding example for the question ld: library not found for -lvrunity when building google ... I tried building the xcode files from mac-unity...
Read more >
ld: library not found for -lBoring… | Apple Developer Forums
I am trying to build an Xcode achieve, it works when I do it manually on the remote Mac, from Xcode, but when...
Read more >
Library not found for -lBabylonNative in iOS Xcode - Questions
Followed the instructions on GitHub - BabylonJS/BabylonReactNative: Build React Native applications with the power of Babylon Native to run ...
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