-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build fails with: library not found for -lRNSVG-tvOS #544
Comments
@jd20 did you run |
Sorry, forgot to include that in the instructions above, yes I ran react-native link after adding the package. Actually, pretty sure it's the link command command which is adding the problematic RNSVG-tvOS.a reference to the XCode project. Just edited to include that step. |
+1 ... I am also having this issue -_- |
i think not support with react-native version 0.51.0 |
The library seems to work fine with 0.51.0, just have to remove the RNSVG-tvOS.a reference. Maybe it'd make sense to make a note of this in the installation instructions, unless a fix is coming soon. |
Noob here, @jd20 how do you remove the reference? |
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 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 |
This is caused by a bug in react-native link, fix will be merged soon: facebook/react-native#13783 |
@savovs 👋 |
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:
react-native init
yarn add react-native-svg
react-native link react-native-svg
react-native run-ios
and observe the build error:ld: library not found for -lRNSVG-tvOS
My dependency versions from package.json are:
If I open the XCode project and remove the RNSVG-tvOS.a library under "Recovered References" folder, then build succeeds.
The text was updated successfully, but these errors were encountered: