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.

Build fails with: library not found for -lRNSVG-tvOS

See original GitHub issue

This looks like the same issue as #387, and was fixed in 5.3.1, but I’m seeing this build error even with newer versions of react-native-svg. Repo steps:

  1. Create a new project with react-native init
  2. Run yarn add react-native-svg
  3. Run react-native link react-native-svg
  4. Run react-native run-ios and observe the build error: ld: library not found for -lRNSVG-tvOS

My dependency versions from package.json are:

  "dependencies": {
    "react": "16.0.0",
    "react-native": "0.51.0",
    "react-native-svg": "^6.0.1-rc.1"
  },

If I open the XCode project and remove the RNSVG-tvOS.a library under “Recovered References” folder, then build succeeds.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:14
  • Comments:10

github_iconTop GitHub Comments

30reactions
jd20commented, Jan 4, 2018

Open the XCode project form your project’s ios folder, hit the Project Navigator button top left, and look for the folder “Recovered References”. Select the item RNSVG-tvOS.a, and hit delete, it will be removed from the project. Then you can try to build again (either Cmd+B from XCode or react-native run-ios from command line), you might need to do a Build > Clean first if it’s still not working (Cmd+K in XCode).

I don’t have an exact screenshot, but here’s something close:

screen shot 2018-01-03 at 7 19 51 pm

If you don’t see the item under Recovered References, make sure you ran react-native link, that’s what creates it.

7reactions
vladinator1000commented, Jan 4, 2018

Removing it from here did the trick screen shot 2018-01-04 at 3 34 59 am

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error "library not found for" after putting application in AdMob
Sometimes: Unplug your device and first build the project. It will generate libraries and then you will be able to run in device....
Read more >
Link Nimble fails due to library not found for -lswiftXCTest #945
I have read CONTRIBUTING and have done my best to follow them. What did you do? Build my project for testing for testing.,...
Read more >
xcode14:Library not loaded: /usr/l… | Apple Developer Forums
The underlying issue creating these crashes on older OS versions is resolved in Xcode 14.1 RC, available today. For apps built using any...
Read more >
iOS & tvOS Xcode Fails: 'Library not found for -liPhone-lib'
After updating my project (macOS, iOS, tvOS) to Unity 2019.2.13f1, it built to macOS fine without issue but once converted to iOS and...
Read more >
Build error ; library not found - ROS Answers
(gpd folder is not library but the source folder.) But again the same error. I checked How to find libraries on the cmake...
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