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
React Native link adds tvOS library targets to the ios target #13783
Comments
Ah, bummer. |
Also perhaps @Kureev? |
I have the same problem, I had to remove |
The issue is in this code https://github.com/facebook/react-native/blob/master/local-cli/link/ios/registerNativeModule.js#L36-L40 It calls We need to handle those things in a way that we link tvOS with tvOS and iOS with iOS (and other targets in the future as well). I'll be looking into that later this week - if anyone wants to start earlier, you can hit me up on slack.callstack.io and will be happy to help. |
I am starting work on this issue and hopefully a nice solution lands soon :) |
FYI: I have been working on this for past two weeks from time to time - the issue turned out to be quite complex and requires few changes to |
Im stuck with this. ANy help? |
Hi, do we need to have tvOS? How do we remove it from the project? |
@grabbou any update on this? Is there anything I can do to help? |
Yeah! Would love to pair and brainstorm few ideas out - do you think we could follow up on Slack and get this done? It's going to be a big rewrite of internals but it's quite needed. |
@dlowder-salesforce were you still planning to extract tvOS to be hosted out of tree? |
@matthargett extracting tvOS is something that can hopefully be done eventually, but will take some time. For now, I'm just planning to fix the tvOS-specific issues, and work with @grabbou on cleaning up the CLI internals. |
@dlowder-salesforce what as a user do I need to do to get this fix? (great Chain React video btw) |
@TheoGit this worked for me: react-native-device-info/react-native-device-info#258 (comment) replace |
@AnkitDesai I just got it to work - thanks! @dlowder-salesforce I have the simulator running now and look forward to having created an Apple TV App with React Native |
@TheoGit thanks for the kind words.... to get my fix directly you can use
in your package.json, or you can wait for this branch to get merged to a release version. |
@dlowder-salesforce thanks! I'm working on a big project and will visiting often - I also saw the rn-tvos-example-2048 project if you think that will help |
@dlowder-salesforce any idea when this branch will merge? |
@grabbou will be reviewing the PR for this shortly. |
…#13783) Summary: Fix issues with the react-native CLI when linking iOS and tvOS libraries to a project created with `react-native init`. (facebook#13783) Verified the changes against test project at https://github.com/dlowder-salesforce/react-native-link-test. Both `react-native link react-native-svg` and `react-native unlink react-native-svg` work correctly on this project. Added new unit test for the new file added to `local-cli/link/ios`. [CLI] [BUGFIX] `react-native link` has been fixed to correctly link iOS and tvOS targets. [IOS] [BUGFIX] `react-native link` has been fixed to correctly link iOS and tvOS targets. Closes facebook#17231 Differential Revision: D6837567 Pulled By: hramos fbshipit-source-id: 234d3d3966ae1b89cd16a37c95d303553f7ba5f5
To everyone else who is lading here and doesn't see answer on how to solve this. You can manually delete library-tvOS.a in Xcode -> [Your iOS build target] -> Build Phrases -> Link Binary with Libraries. |
Or, manually add it if it wasn't added by `link` (this is literally what we
just stumbled upon internally)
…On Tue, 5 Feb 2019 at 15:26 Kapil Gorve ***@***.***> wrote:
To everyone else who is lading here and doesn't see answer on how to solve
this.
You can manually delete library-tvOS.a in Xcode -> [Your iOS build target]
-> Build Phrases -> Link Binary with Libraries.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#13783 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACWcxjqCOYbfZWubRiT_hXiA1SSoZMqGks5vKZSdgaJpZM4NQ_89>
.
|
Description
In adding a tvOS target to the react-native-vector-icons library,
react-native link
inadvertently adds the tvOS target to the normal ios target causing the app to fail to runReproduction Steps and Sample Code
Described here: oblador/react-native-vector-icons#461
Solution
React Native link needs to properly link the ios and tvOS library targets with the right target
Additional Information
The text was updated successfully, but these errors were encountered: