react-native: Error running new AppleTV project

Is this a bug report?

(yes)

Have you read the Contributing Guidelines?

(yes)

Environment

  1. react-native -v: 0.48.1 (edit by @hramos)
  2. node -v: v6.9.1
  3. npm -v: 3.10.8
  4. yarn --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:)

  1. create new react native project using react-native init
  2. 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)

screen shot 2017-09-06 at 2 38 40 pm

Reproducible Demo

https://www.dropbox.com/s/cyg71ggmvunficw/zip.zip?dl=0

To reproduce:

  1. 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

Most upvoted comments

@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.