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

时间:2018-07-21 09:24:54

标签: ios react-native cocoapods code-push react-native-code-push

我正在尝试使用Microsoft Code Push更新JS捆绑软件,而无需再次将应用程序提交到iTunes。

在调试和发布模式下,应用程序可以通过Code Push成功加载捆绑软件,并在下次启动时安装更新。

与debug / release Xcode应用程序不同,当我存档该应用程序并从TestFlight安装它时,在本机启动屏幕之后,我遇到了白色的空白屏幕。 App Center中不会出现崩溃。

在添加Code Push支持之前我没有使用过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

环境

  • 本机代码推送版本:5.4.0
  • 本机版本:0.53.3
  • iOS / Android / Windows版本:iOS 10.2
  • 这是否可以在调试版本或发行版本上重现?没事,它运作良好
  • 这是在模拟器上还是仅在物理设备上重现?在模拟器上效果很好

0 个答案:

没有答案