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.

Linker fails with ld: library not found for -lRNDeviceInfo

See original GitHub issue

Summary

Version 0.21.4
Affected OS MacOS Sierra
OS Version 10.12.6

Current behavior

when building the project for release:

xcodebuild "-project" "ios/FleetFox.xcodeproj" "-scheme" "FleetFox" "-configuration" "Release" "archive" "-verbose" | xcpretty

The linker fails with:

ld: library not found for -lRNDeviceInfo

Expected behavior

It should build without errors. Downgrading the package to 0.21.1 fixes the problem.

Issue Analytics

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

github_iconTop GitHub Comments

49reactions
br4nnigancommented, Jul 3, 2018

just the usual rn fuckery

14reactions
gongmingqm10commented, Mar 29, 2018

I got the same problem when I updated to the latest version. You can fix it by opening to project in xcode. And navigate to the library folder in the left panel of your xcode. And then remove the old DeviceInfo.xcodeproj and add it manually from the related node_modules.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Linker fails with ld: library not found for -lRNDeviceInfo #378
I got the same problem when I updated to the latest version. You can fix it by opening to project in xcode. And...
Read more >
ld: library not found for -lRCTBlob clang: error - Stack Overflow
I have solved the issue by removing all react-native library linking from xCode by following these steps,. Open Project.xcworkspace file in ...
Read more >
xcode 9 ld: library not found for … | Apple Developer Forums
When trying to build the project where I added it as a dependency, I receive the following error: ld: library not found for...
Read more >
macOS* Big Sur error 'ld: library not found' - Intel
Solution for 'ld: library not found' error on macOS* Big Sur. ... As a result, the linker runs successfully. -L/......./Developers/... and -lpthread -lm ......
Read more >
Linker error when upgrading from React Native v0.59 to v0.63
The error came from the iOS build: ld: library not found for -lBVLinearGradient. and a bunch of warnings for all dependencies comming from...
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