From 7e47efdfa9bea40ff84345e55e479b01c630b5a4 Mon Sep 17 00:00:00 2001 From: Khushal Agarwal Date: Thu, 19 Oct 2023 11:51:17 +0530 Subject: [PATCH 1/4] docs: add troubleshooting guide for react-native-video error with xCode 17 iOS --- .../docs/reactnative/basics/troubleshooting.mdx | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/docusaurus/docs/reactnative/basics/troubleshooting.mdx b/docusaurus/docs/reactnative/basics/troubleshooting.mdx index 7ee77335d0..f1268c0742 100644 --- a/docusaurus/docs/reactnative/basics/troubleshooting.mdx +++ b/docusaurus/docs/reactnative/basics/troubleshooting.mdx @@ -405,3 +405,19 @@ This is likely due to ProGuard removing reanimated 2 related classes. If you're On newer MacBooks with the Apple M1 SoC, there are a few required steps that need to be followed for an app to build. The user [aiba](https://github.com/aiba) has written [a guide](https://github.com/aiba/react-native-m1) to make the necessary changes to your project. The iOS build version can be changed to suit your needs, but keep in mind to change the version to the same major and minor version consistently throughout the guide. + +## React Native Video failing with Xcode 17 + +When building apps on RN CLI and while using XCode 17, with react-native-video on iOS, the build fails with the following error: + +``` +The compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions +``` + +To temporarily fix this, you can follow the solution as per mentioned in the description of [this issue on GitHub](https://github.com/react-native-video/react-native-video/issues/3154). + +Alternatively, you can apply [this patch](https://github.com/react-native-video/react-native-video/files/11932302/react-native-video%2B6.0.0-alpha.6.patch) using the [patch-package](https://www.npmjs.com/package/patch-package) library to the package `react-native-video`. + +:::note +This shall be fixed soon with the new alpha release of the package `react-native-video`. +::: \ No newline at end of file From a3ae8ee27e14c769e67f494bf1ebd418e8dca2ba Mon Sep 17 00:00:00 2001 From: Khushal Agarwal Date: Thu, 19 Oct 2023 11:55:32 +0530 Subject: [PATCH 2/4] fix: vale linting issues --- docusaurus/docs/reactnative/basics/troubleshooting.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docusaurus/docs/reactnative/basics/troubleshooting.mdx b/docusaurus/docs/reactnative/basics/troubleshooting.mdx index f1268c0742..f5fd744ddd 100644 --- a/docusaurus/docs/reactnative/basics/troubleshooting.mdx +++ b/docusaurus/docs/reactnative/basics/troubleshooting.mdx @@ -408,7 +408,7 @@ The iOS build version can be changed to suit your needs, but keep in mind to cha ## React Native Video failing with Xcode 17 -When building apps on RN CLI and while using XCode 17, with react-native-video on iOS, the build fails with the following error: +When building apps on RN CLI and while using Xcode 17, with react-native-video on iOS, the build fails with the following error: ``` The compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions From 7b905ae8cf626c3385812d3ad6abcc1c20d71470 Mon Sep 17 00:00:00 2001 From: Khushal Agarwal Date: Thu, 19 Oct 2023 12:20:31 +0530 Subject: [PATCH 3/4] fix: linting issues --- docusaurus/docs/reactnative/basics/troubleshooting.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docusaurus/docs/reactnative/basics/troubleshooting.mdx b/docusaurus/docs/reactnative/basics/troubleshooting.mdx index f5fd744ddd..d4eff4ee55 100644 --- a/docusaurus/docs/reactnative/basics/troubleshooting.mdx +++ b/docusaurus/docs/reactnative/basics/troubleshooting.mdx @@ -420,4 +420,4 @@ Alternatively, you can apply [this patch](https://github.com/react-native-video/ :::note This shall be fixed soon with the new alpha release of the package `react-native-video`. -::: \ No newline at end of file +::: From 52e626102ec72bdbdf3a0d1e854627e3bb95849e Mon Sep 17 00:00:00 2001 From: Vishal Narkhede Date: Fri, 20 Oct 2023 14:57:48 +0200 Subject: [PATCH 4/4] docs: fix troubleshooting docs --- docusaurus/docs/reactnative/basics/troubleshooting.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docusaurus/docs/reactnative/basics/troubleshooting.mdx b/docusaurus/docs/reactnative/basics/troubleshooting.mdx index d4eff4ee55..f8159378a2 100644 --- a/docusaurus/docs/reactnative/basics/troubleshooting.mdx +++ b/docusaurus/docs/reactnative/basics/troubleshooting.mdx @@ -408,7 +408,7 @@ The iOS build version can be changed to suit your needs, but keep in mind to cha ## React Native Video failing with Xcode 17 -When building apps on RN CLI and while using Xcode 17, with react-native-video on iOS, the build fails with the following error: +Following error is a known issue with using xcode 17 and react-native-video dependency. ``` The compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions