Build fails with: library not found for -lRNSVG-tvOS
See original GitHub issueThis 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:
- Create a new project with
react-native init
- Run
yarn add react-native-svg
- Run
react-native link react-native-svg
- 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:
- Created 6 years ago
- Reactions:14
- Comments:10
Top 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 >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 FreeTop 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
Top GitHub Comments
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:
If you don’t see the item under Recovered References, make sure you ran
react-native link
, that’s what creates it.Removing it from here did the trick