question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't run tvOS target for newly generated RN project

See original GitHub issue

Description

Basic iOS target runs successfully I’ve created basic RN project with the help of react-native-cli and tried to run tvOS target, but got the following issue:

AppleTvSample/node_modules/react-native/ReactCommon/jschelpers/Value.cpp:3:10: 'folly/json.h' file not found

!!!RNTester application fails for the tvOS target too with the error above

Reproduction Steps

> react-native init sample_program
> cd sample_program
> open ios/sample_program.xcodeproj
> change Run Target to tvOS. Run it

Sample Code

AppleTvSample

Solution

Can’t say for sure, because i’m not so familiar with XCode and Objective-C

Additional Information

  • React Native version: 0.45.1
  • react-native-cli: 2.0.1
  • Platform: tvOS
  • Development Operating System: macOS 10.11.6
  • Build tools: Xcode 8.2.1

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:10
  • Comments:22 (1 by maintainers)

github_iconTop GitHub Comments

7reactions
altaywtfcommented, Jun 23, 2017

@vrudikov, @speedandfunction-anri, @speedandfunction-helen, @knot123 hi guys.

it’s confusing as hell but creating and ejecting an app with create-react-native-app resolved this one for me.

  • npm i create-react-native-app -g
  • create-react-native-app MyAwesomeProject
  • cd MyAwesomeProject
  • npm run eject

lulz 😅

3reactions
miladebadicommented, Jun 23, 2017

@altayaydemir I tried but same error appears.

‘folly/json.h’ file not found

Read more comments on GitHub >

github_iconTop Results From Across the Web

npx react-native run-ios doesn't work after initializing the project
How to fix: · Go to your project folder root and open the /ios directory. cd ios · Open your Podfile and change...
Read more >
Configuring a new target in your project - Apple Developer
When you embed a new target inside an app, Xcode creates a dependency between the app and target if the scheme's Find Implicit...
Read more >
react-native-tvos - npm Package Health Analysis - Snyk
New projects created this way will automatically have properly configured Apple TV targets created in their XCode projects. To use this NPM package...
Read more >
Running On Simulator - React Native
Once you have your React Native project initialized, you can run npx react-native run-ios inside the newly created project directory.
Read more >
Get Started with React Native - Visual Studio App Center
You're using a React Native project that runs React Native 0.34 or later. · You're targeting devices that are running on Android Version...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found