简体   繁体   English

React Native 应用程序不会在 IOS 版本 11 和 12 上加载

[英]React Native app doesn't load on IOS versions 11 and 12

When a user opens the app (from a physical device or a simulator) it just shows a blank screen and close (looks like a 0.5s flash, really fast).当用户打开应用程序(从物理设备或模拟器)时,它只会显示一个空白屏幕并关闭(看起来像 0.5 秒 flash,非常快)。

Testing it on browserstack simulator ( https://www.browserstack.com/ ) it works on IOS versions greater or equal to 13, but not in 11 or 12.在 browserstack 模拟器 ( https://www.browserstack.com/ ) 上测试它适用于大于或等于 13 的 IOS 版本,但不适用于 11 或 12。

  • The iOS deployment target of the project is set to 11. All our dependencies also have their iOS deployment targets set to 11 or below;项目的 iOS 部署目标设置为 11。我们所有的依赖项也将其 iOS 部署目标设置为 11 或以下;

  • React Native version: 0.64.1反应本机版本:0.64.1

While debugging it (in browserstack) some errors looks common on all failure devices (all those in IOS version 11 or 12), for example (this is the most common and maybe even the root of the troubles):在调试它时(在浏览器堆栈中),一些错误在所有故障设备(所有 IOS 版本 11 或 12 中的设备)上看起来都很常见,例如(这是最常见的,甚至可能是问题的根源):

<Error>: _WifyCopyUnserialized: Invalid buffer/buffersize
  • Here you can see what happens when we try to open our app (showing half screen to keep the app name hidden):在这里您可以看到当我们尝试打开我们的应用程序时会发生什么(显示半屏以隐藏应用程序名称):

在此处输入图像描述

  • Complete log looks like the following in all failing versions:所有失败版本的完整日志如下所示:

我们来自 browserstack 的日志

Someone there already faced something like it or similar?那里有人已经遇到过类似的事情吗? Any suggestion about actions to be done in this case (app not opening in specific IOS versions?关于在这种情况下要执行的操作的任何建议(应用程序未在特定 IOS 版本中打开?

In my experience, the app not working on the physical devices looks to be an issue with the provisioning profile(especially the entitlements).根据我的经验,无法在物理设备上运行的应用似乎是配置文件(尤其是权利)的问题。

I see that [BrowserStack resigns the application][1] when uploading it to their remote devices, and applies their provisioning profile to the application.我看到[BrowserStack resigns the application][1] ,并将他们的配置文件应用于应用程序。 This could possibly be the reason for the application to work on iOS 13/14&15 on BrowserStack.这可能是应用程序在 BrowserStack 上的 iOS 13/14&15 上运行的原因。

You could reach out to your developer for more details or reach out to BrowserStack at support@browserstack.com.您可以联系您的开发人员了解更多详细信息,或通过 support@browserstack.com 联系 BrowserStack。

The problem was with a problematic version of a package called react-native-share .问题在于 package 的一个有问题的版本,称为react-native-share More details about this: https://giters.com/react-native-share/react-native-share/issues/1095 .有关此的更多详细信息: https://giters.com/react-native-share/react-native-share/issues/1095

Updating this package solved it:)更新这个 package 解决了它:)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM