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.

ios build fails: library not found for -lRNSVG-tvOS

See original GitHub issue

Build is failing for ios only, configuration seems to work fine on android.

There seems to be a failed ref to RNSVG-tvOS.

React Native v 0.45.1

My installation steps were: npm install react-native-svg --save react-native link react-native run-ios

react-native link output looked successful. when i re-run, the output is:

rnpm-install info Android module react-native-svg is already linked 
rnpm-install info iOS module react-native-svg is already linked 

build fails mid-way, result is:

ld: library not found for -lRNSVG-tvOS
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:16
  • Comments:11

github_iconTop GitHub Comments

22reactions
whiskeysevencommented, Jun 15, 2017

If it helps anyone, I was able to get the build to work by removing the reference to RNSVG-tvOS, found in the last line of the PBXBuildFile section of my project.pbxproj file (ios/projectname/projectname.xcodeproj/project.pbxproj)

Once I removed that line, the build worked as normal.

Not the ideal fix, but a workaround if anyone is blocked by this issue.

3reactions
msandcommented, Jan 17, 2018

This is caused by a bug in react-native link, fix will be merged soon: https://github.com/facebook/react-native/issues/13783

Read more comments on GitHub >

github_iconTop Results From Across the Web

ios build fails: library not found for -lRNSVG-tvOS #366 - GitHub
Build is failing for ios only, configuration seems to work fine on android. There seems to be a failed ref to RNSVG-tvOS.
Read more >
react-native library not found for -lRNSVG-tvOS - Stack Overflow
I know nothing about ios-development and Xcode environment. When i run react-native run-ios i see this error: ld: library not found for ......
Read more >
I am trying to use SwiftSVG framew… | Apple Developer Forums
1. build the SwiftSVGiOS framework. 2. drag the SwiftSVGiOS.framework to my project's Embedded Binaries category. 3. a) drag a view to Main.storyboard.
Read more >
Library not found for -lBabylonNative in iOS Xcode - Questions
We ran “xcodebuild” command but it exited with error code 65. " and when I open Playground.xcworkspace directly in the Xcode 12.5.1 and...
Read more >
Renovate Bot Package Diff
-8,20 +8,20 @@ Lottie is a mobile library for Android and iOS that parses ... echo ERROR: JAVA_HOME is not set and no...
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