react-native: Error running new AppleTV project
Is this a bug report?
(yes)
Have you read the Contributing Guidelines?
(yes)
Environment
react-native -v
: 0.48.1 (edit by @hramos)node -v
: v6.9.1npm -v
: 3.10.8yarn --version
: 0.24.6
Then, specify:
- Target Platform:
AppleTV
- Development Operating System:
MacOS Sierra 10.12.6
- Build tools:
Xcode 9.0 beta6
Steps to Reproduce
(Write your steps here:)
- create new react native project using react-native init
- run tvOS as target
Expected Behavior
(Simulator opens)
Actual Behavior
Error: ld: library not found for -lReact-tvOS clang: error: linker command failed with exit code 1 (use -v to see invocation)

Reproducible Demo
https://www.dropbox.com/s/cyg71ggmvunficw/zip.zip?dl=0
To reproduce:
- run in Xcode
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Reactions: 1
- Comments: 17 (11 by maintainers)
Commits related to this issue
- Fix issue #15834 (tvOS compile issue in new project) — committed to douglowder/react-native by douglowder 7 years ago
- React sync for revisions ec6691a...55bc393 Summary: This sync includes the following changes: - **[55bc393f7](https://github.com/facebook/react/^Cmmit/55bc393f7 )**: [Flare] Ensure we check for bad p... — committed to facebook/react-native by TheSavior 5 years ago
@dabit3 @tsaiDavid @cantyjeffrey I just did
react-native init TestApp --version facebook/react-native#master
and the tvOS target compiles and runs. So I’m guessing that the fix in #16076 just hasn’t made it into any releases yet. @grabbou @hramos do you know when that fix will show up in the release train?
I see the exact same behavior in RN 0.49.3. Creating project with 0.47.2 worked.
@hramos we can close this issue
Generally a month from hitting master 😃
This particular commit (https://github.com/facebook/react-native/commit/45185947ee5f1672fb00765a8b32a7100fd0c1bd) is part of 0.52.0-rc.0.