Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]: requireNativeComponent: "RCTVideo" was not found in the UIManager #3737

Closed
ZakirBangash opened this issue May 6, 2024 · 25 comments
Closed
Labels

Comments

@ZakirBangash
Copy link
Contributor

ZakirBangash commented May 6, 2024

Version

React-native-video 6.0.0-rc.0
React Native 0.71.14

What platforms are you having the problem on?

IOS

Architecture

Old architecture

What happened?

When video component start mounting, we are getting this error, folks have suggested to remove this line use_frameworks! :linkage => :static , but we don't think it would be safe to remove, as we are using firebase , and firebase recommends through it's doc to have this line

Reproduction

Install 6.0.0-rc.0
Run IOS,
when video start mounting , we are getting this error

@ZakirBangash
Copy link
Contributor Author

Screenshot 2024-05-06 at 12 42 15 PM

@baddda
Copy link

baddda commented May 6, 2024

It seems the issue came up with this PR.
#3631

@baddda
Copy link

baddda commented May 6, 2024

Removing Podfile.lock and running pod install shows the following error:

Specs satisfying the `react-native-video (from `../node_modules/react-native-video`)` dependency were found, but they required a higher minimum deployment target.

Adding platform :ios, '13.0' to your project Podfile, setting Minimum Deployment to 13 in Xcode and setting iOS Deployment Target to 13 fixes the issue for me.

@ZakirBangash
Copy link
Contributor Author

Are you using firebase? if you are using you would have this line use_frameworks! :linkage => :static in podFile, I saw somewhere where folk suggested to remove this, but no luck with me, can you confirm did you have this in podFile

@ZakirBangash
Copy link
Contributor Author

ZakirBangash commented May 6, 2024

Thank you @freeboub for your suggestions , I did remove flipper configuration and remove use_frameworks! :linkage => :static then I can't able to build the app, it give me error undefined symbol facebook::jsi::HostObject,

Let me share my podFile.

@ZakirBangash
Copy link
Contributor Author

@freeboub
Copy link
Collaborator

freeboub commented May 6, 2024

Removing Podfile.lock and running pod install shows the following error:

Specs satisfying the react-native-video (from ../node_modules/react-native-video) dependency were found, but they required a higher minimum deployment target.

Adding platform :ios, '13.0' to your project Podfile, setting Minimum Deployment to 13 in Xcode and setting iOS Deployment Target to 13 fixes the issue for me.

@baddda do you correctly remove the lines from your podfile ?
see: https://react-native-video.github.io/react-native-video/updating

@freeboub
Copy link
Collaborator

freeboub commented May 6, 2024

@ZakirBangash I will try to add firebase in the sample app.
BTW: are you able to reproduce with a very basic sample ? If yes, it would be usefull to provide it

@jeandiasl
Copy link

I also use Firebase and managed to solve the problem by adding this snippet in PODFILE to replace the minimum version for compilation.

MIN_IOS_OVERRIDE = '13.0'
if Gem::Version.new(MIN_IOS_OVERRIDE) > Gem::Version.new(min_ios_version_supported)
min_ios_version_supported = MIN_IOS_OVERRIDE
end

existing code

platform :ios, min_ios_version_supported

@ZakirBangash
Copy link
Contributor Author

ZakirBangash commented May 7, 2024

@jeandiasl thank you bro it worked for me too 🙌
cc: @freeboub

@KrzysztofMoch
Copy link
Member

So this is not an library issue - library requires now iOS >= 13.0 (I think from RN 0.73 this is also required) so you need to bump this in your app

@vadim-snitkovsky
Copy link

Removing Podfile.lock and running pod install shows the following error:

Specs satisfying the react-native-video (from ../node_modules/react-native-video) dependency were found, but they required a higher minimum deployment target.

Adding platform :ios, '13.0' to your project Podfile, setting Minimum Deployment to 13 in Xcode and setting iOS Deployment Target to 13 fixes the issue for me.

THANK YOU!!!! This fixed it for us. Let's add this to documentation.

@KrzysztofMoch
Copy link
Member

I will add this to docs (in updating section) and maybe to README

@shahjahanpak
Copy link

platform :ios, '13.0' yields this list of errors with react [email protected], [email protected].
Screenshot 2024-05-21 at 5 05 53 PM

@freeboub
Copy link
Collaborator

platform :ios, '13.0' yields this list of errors with react [email protected], [email protected].
Screenshot 2024-05-21 at 5 05 53 PM

Which xcode version do you use ?

@shahjahanpak
Copy link

14.2

@freeboub
Copy link
Collaborator

@shahjahanpak You need to update your xcode !

@prajwal0231
Copy link

I am facing this issue in android, not iOS

@ayushkumarbhadani
Copy link

I am facing this issue in android, not iOS

Me too!

@prajwal0231
Copy link

I am facing this issue in android, not iOS

Me too!

Hey, this issue was coming because of mismatch of react-native-video version with react-native. In Expo, we cant update the required version ourselves, but in native build environment, I set the following versions and it started working smoothly.
"react": "^18.2.0",
"react-native": "^0.72.1",
"react-native-video": "^5.2.1",
"react-native-svg": "13.9.0"

@hpanwar521
Copy link

I am facing this issue in android my react native version is 0.73.5 and react-native-video version is 6.4.5 how can I solve this please help

@freeboub
Copy link
Collaborator

@hpanwar521 @prajwal0231 can you provide a sample reproducing the issue ?

@Ariiio
Copy link

Ariiio commented Aug 29, 2024

Facing the same issue on android

@hpanwar521
Copy link

I resolved the issue related to RCTVideo not being found in UIManager. Initially, I was performing a Gradle sync, but react-native-video was not showing up in the dependencies:

Screenshot 2024-08-30 at 8 14 39 AM

I was repeatedly encountering this error. To resolve it, I closed all applications, shut down Android Studio, removed the project from recent files, and then reopened the project from scratch. This allowed the dependencies to be properly mapped, and react-native-video started appearing in the packages. After creating a fresh build, the project started working fine. The issue is now resolved.

@natemartins
Copy link

I also use Firebase and managed to solve the problem by adding this snippet in PODFILE to replace the minimum version for compilation.

MIN_IOS_OVERRIDE = '13.0' if Gem::Version.new(MIN_IOS_OVERRIDE) > Gem::Version.new(min_ios_version_supported) min_ios_version_supported = MIN_IOS_OVERRIDE end

existing code

platform :ios, min_ios_version_supported

This works, but when you run pod update or pod install, you get this warning at the end

[!] Automatically assigning platform `iOS` with version `15.6` on target `Gotedo` because no platform was specified. Please specify a platform for this target in your Podfile. See `https://guides.cocoapods.org/syntax/podfile.html#platform`

To fix this warning update as follows:

Existing Code

MIN_IOS_OVERRIDE = '13.0'
if Gem::Version.new(MIN_IOS_OVERRIDE) > Gem::Version.new(min_ios_version_supported)
min_ios_version_supported = MIN_IOS_OVERRIDE
end

Updated Code

MIN_IOS_OVERRIDE = '13.0'
if Gem::Version.new(MIN_IOS_OVERRIDE) > Gem::Version.new(min_ios_version_supported)
platform :ios, min_ios_version_supported = MIN_IOS_OVERRIDE
end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

13 participants