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.

iOS Install Guide | React Native 60.5

See original GitHub issue

This is the only procedure that worked for me when installing this library. It solves:

  • Invariant Violation: requireNativeComponent:“ReactYoutube” was not found in UIManager
  • Blank white thumbnail, video wont play
  • Archiving build error
  • Random build errors on iOS

If the readme isn’t working for you, give this a try…

Procedure

  1. npm install react-native-youtube --save

  2. In Xcode, add RCTYouTube.xcodeproj to Libraries

  3. Build Phases > Link Binary With Libraries > add libRCTYouTube.a

  4. Click on the RCTYouTube Library, mark the Pods header search path as recursive Screen Shot 2019-10-06 at 4 22 31 PM

  5. Open your Podfile, add pod "YoutubePlayer-in-WKWebView", "~> 0.3.3" or whatever the latest version is of https://github.com/hmhv/YoutubePlayer-in-WKWebView then run:

cd ios
pod update
  1. After running pod update, make sure in Xcode, Pods > Pods folder > YoutubePlayer-in-WKWebView is there and in Products libYoutubePlayer-in-WKWebView.a is there also. Screen Shot 2019-10-05 at 7 28 23 PM
  • 7.1 If it doesn’t show in Xcode after pod update close Xcode, delete the Pods folder and podfile.lock and do pod update again.

Now click Run in Xcode. It’ll use the manually linked RCTYouTube library coupled with the WKWebView dependency as a pod.

Time to solve: 2 days

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:18
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
neilgambcommented, Jun 25, 2020

Thank you! this worked for me on a "react-native": "^0.57.0", app

1reaction
nic-thomsoncommented, Dec 4, 2019

@jordangrant Thanks for taking the time to put this together your description worked perfectly for me. I owe you a beer!

Read more comments on GitHub >

github_iconTop Results From Across the Web

iOS Install Guide | React Native 60.5 · Issue #401 - GitHub
This is the only procedure that worked for me when installing this library. It solves:.
Read more >
Setting up the development environment - React Native
This page will help you install and build your first React Native app.
Read more >
Developer's Guide to Installing React Native for iOS
Step 1. Install Pendo SDK · 1. In the application folder, run the following command: Using NPM: · 2. In the iOS folder,...
Read more >
How to Install React Native on Mac? Step by Step Guide
Step 1. Install Homebrew : · Step 2. Install Node.js : · Step 3. Install watchmen : · Step 4. Install React Native...
Read more >
Getting Started - React Native Elements
Installing React Native Elements depends on your type of react native project. ... an ios/android directory), then follow these installation instructions: ...
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