Error ld: library not found for -lRCTGeolocation when trying to build on device
See original GitHub issueAsk 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:
- Created 4 years ago
- Reactions:8
- Comments:7
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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 theLibraries
there are no libraries. So I clicked on the library name (e.g.RCTGeolocation.xcodeproj
) and selectedDelete
andRemove Reference
. I did that for everyRCT*
library underLibraries
before updating to 0.60.5.Here’s how I would recommend to do the update process:
react-native unlink libraryname
..xcworkspace
file and remove references to all remaining libraries under your project’sLibraries
(there should be someRCT*
ones there still).yarn install
in your project’s root.cd ios && pod install
.react-native run-ios
and hopefully it works.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 withld: library not found for -lRCTGeolocation
.