"'WKYTPlayerView.h' file not found" during installation (after manual link)
See original GitHub issueI’ve tried and retried this many times, same error. Currently the steps I’ve taken:
- `npm install react-native-youtube -S
- Project in Xcode -> Libraries -> Add Files ->
node_modules/react-native-youtube/RCTYouTube.xcodeproj - Then the main project -> Build Phases -> Link Binary With Libraries +libRCTYouTube
- 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:
- Created 4 years ago
- Comments:18 (5 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

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.im using with react native 59.10 version.