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.

"'WKYTPlayerView.h' file not found" during installation (after manual link)

See original GitHub issue

I’ve tried and retried this many times, same error. Currently the steps I’ve taken:

  1. `npm install react-native-youtube -S
  2. Project in Xcode -> Libraries -> Add Files -> node_modules/react-native-youtube/RCTYouTube.xcodeproj
  3. Then the main project -> Build Phases -> Link Binary With Libraries +libRCTYouTube
  4. npm run ios

Then I receive: /Users/danfein/Desktop/reviews/native/node_modules/react-native-youtube/RCTYouTube.h:1:9: fatal error: 'WKYTPlayerView.h' file not found #import "WKYTPlayerView.h" ^~~~~~~~~~~~~~~~~~

Any idea what this may be caused by?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:18 (5 by maintainers)

github_iconTop GitHub Comments

5reactions
eleddiecommented, Jan 3, 2020

For anyone with this issue. I forked the repo and was able to link the library without cocoapods in RN 0.59 just change in your package.json this: "react-native-youtube": "eleddie/react-native-youtube#bdf7bce", Then link and it works fine.

2reactions
Cyberfolkscommented, Oct 25, 2019

im using with react native 59.10 version.

Read more comments on GitHub >

github_iconTop Results From Across the Web

"YTPlayerView.h" file not found when using YouTube-Player ...
Once the pods are installed and u open the .xcworkspace, just hit command+B. Then try. Sometimes pods won't be linked to your project....
Read more >
Embed YouTube Videos in iOS Applications with the YouTube ...
Manually install the library · Open the sample project in Xcode or Finder. · Select YTPlayerView.h , YTPlayerView.m , and the Assets folder....
Read more >
react-native-video - npm
A element for react-native. Latest version: 5.2.1, last published: 3 months ago. Start using react-native-video in your project by running ...
Read more >
Play YouTube videos in swift - Mobikul
Do not forget to save the file. Now run the pod install command on the terminal, this will install the third-party library which...
Read more >
YoutubePlayerView on CocoaPods.org
xcworkspace file in Xcode, not the .xcodeproj file. Manually install the library. The library is also easy to install manually. Either download the...
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