简体   繁体   English

iOS react-native-code-push 应用程序在调试/发布模式下工作,但带有存档的 TestFlight 应用程序的白屏

[英]iOS react-native-code-push app working in debug / release mode but white screen with archived TestFlight app

I'm trying to use Microsoft Code Push to update the JS bundle without submitting the app to iTunes again.我正在尝试使用 Microsoft 代码推送来更新 JS 包,而无需再次将应用程序提交到 iTunes。

On debug and release mode, the app can successfully load the bundle via Code Push and install updates at the next startup.在调试和发布模式下,应用程序可以通过代码推送成功加载包并在下次启动时安装更新。

Unlike the debug / release Xcode app, when I archive the app and install it from TestFlight, I'm experiencing a white blank screen just after the native splashscreen.与调试/发布 Xcode 应用程序不同,当我归档应用程序并从 TestFlight 安装它时,我在本机启动画面之后遇到了一个白色的空白屏幕。 No crashes appears in the App Center. App Center 中没有出现崩溃。

I didn't used Cocoapod before adding Code Push support so I don't trust the Podfile and I'm a total newbie on this part.在添加代码推送支持之前,我没有使用 Cocoapod,所以我不信任 Podfile,我在这方面完全是新手。

Podfile播客文件

# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'

target 'MyApp' do
  # Uncomment the next line if you're using Swift or would like to use dynamic frameworks
  # use_frameworks!

  # Pods for MyApp
  pod 'yoga', path: '../node_modules/react-native/ReactCommon/yoga'
  pod 'DoubleConversion', :podspec => '../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec'
  pod 'Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec'
  pod 'GLog', :podspec => '../node_modules/react-native/third-party-podspecs/GLog.podspec'
  pod 'React', path: '../node_modules/react-native', subspecs: [
    'DevSupport',
  ]
  pod 'AppCenter/Crashes', '~> 1.7.1'
  pod 'AppCenter/Analytics', '~> 1.7.1'
  pod 'AppCenterReactNativeShared', '~> 1.6.0'
  pod 'CodePush', :path => '../node_modules/react-native-code-push'

  platform :ios, '9.0'
  target 'MyAppTests' do
    inherit! :search_paths
    # Pods for testing
  end

end

target 'MyApp-tvOS' do
  # Uncomment the next line if you're using Swift or would like to use dynamic frameworks
  # use_frameworks!

  # Pods for MyApp-tvOS

  target 'MyApp-tvOSTests' do
    inherit! :search_paths
    # Pods for testing
  end

end

Environment环境

  • react-native-code-push version: 5.4.0 react-native-code-push 版本:5.4.0
  • react-native version: 0.53.3反应原生版本:0.53.3
  • iOS/Android/Windows version: iOS 10.2 iOS/Android/Windows 版本:iOS 10.2
  • Does this reproduce on a debug build or release build?这会在调试版本或发布版本上重现吗? Nop, it's working perfectly不,它完美地工作
  • Does this reproduce on a simulator, or only on a physical device?这是在模拟器上重现还是仅在物理设备上重现? Works great on simulator在模拟器上效果很好

I had a similar problem I just resolved with my test flight build.我有一个类似的问题,我刚刚用我的试飞版本解决了这个问题。 I was able to deploy my app to my device locally with the react-native run-ios command and receive codepush updates, but whenever I released the build for testflight, that app did not receive the updates.我能够使用 react-native run-ios 命令在本地将我的应用程序部署到我的设备并接收 codepush 更新,但是每当我发布 testflight 的构建时,该应用程序都没有收到更新。 The problem was my that my codepush target version did not match the version in XCode, you can fix this by changing the version under General -> Identity -> Version to match the target versions in code push.问题是我的 codepush 目标版本与 XCode 中的版本不匹配,您可以通过更改 General -> Identity -> Version 下的版本以匹配 code push 中的目标版本来解决此问题。 Or you can also change in CodePush the deployed target version to match the one from XCode.或者您也可以在 CodePush 中更改部署的目标版本以匹配来自 XCode 的版本。

Additionally you can configure the codepush target version in your deploy command by the -t flag and version number.此外,您可以通过 -t 标志和版本号在部署命令中配置 codepush 目标版本。 appcenter codepush release-react -t '0.1.0' ...

暂无
暂无

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

相关问题 反应本机应用程序在调试模式下工作,但在 ios 上不工作发布模式 - react native app works on debug mode, but not works release mode on ios IOS:React Native -> Code push (app-center),更改不反映 react-native:“0.70.6”和“react-native-code-push”:“^7.0.5” - IOS: React Native -> Code push (app-center ), changes does not reflect with react-native: "0.70.6" and "react-native-code-push": "^7.0.5" flutter ios 应用程序在测试飞行模式下显示白屏? - flutter ios app shows white screen in testflight mode? React Native:推送通知冻结了iOS(白屏)上的应用程序 - React Native: Push notification is freezing up the app on iOS (White Screen) React Native 应用程序在 TestFlight Release 上崩溃 - React Native app crashing on TestFlight Release React Native 应用程序在发布模式下崩溃,但在调试模式下工作正常 - React Native app crashes in release mode but works fine in debug mode Flutter ios 应用程序在发布模式下显示白屏? - Flutter ios app show White screen in release mode? 构建发布 React Native 时,应用程序 iOS 卡在空白屏幕上 - App iOS stuck on blank white screen when build release React Native React Native Ios发行版应用程序挂在白屏上,一段时间后崩溃,而在正常构建中完美运行 - React Native Ios release app hangs on white screen and crashes after sometime while works perfectly on normal build iOS应用在调试模式下崩溃,在发布模式下工作 - iOS app crashing in debug mode, working in release mode
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM