簡體   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

我正在嘗試使用 Microsoft 代碼推送來更新 JS 包,而無需再次將應用程序提交到 iTunes。

在調試和發布模式下,應用程序可以通過代碼推送成功加載包並在下次啟動時安裝更新。

與調試/發布 Xcode 應用程序不同,當我歸檔應用程序並從 TestFlight 安裝它時,我在本機啟動畫面之后遇到了一個白色的空白屏幕。 App Center 中沒有出現崩潰。

在添加代碼推送支持之前,我沒有使用 Cocoapod,所以我不信任 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

環境

  • react-native-code-push 版本:5.4.0
  • 反應原生版本:0.53.3
  • iOS/Android/Windows 版本:iOS 10.2
  • 這會在調試版本或發布版本上重現嗎? 不,它完美地工作
  • 這是在模擬器上重現還是僅在物理設備上重現? 在模擬器上效果很好

我有一個類似的問題,我剛剛用我的試飛版本解決了這個問題。 我能夠使用 react-native run-ios 命令在本地將我的應用程序部署到我的設備並接收 codepush 更新,但是每當我發布 testflight 的構建時,該應用程序都沒有收到更新。 問題是我的 codepush 目標版本與 XCode 中的版本不匹配,您可以通過更改 General -> Identity -> Version 下的版本以匹配 code push 中的目標版本來解決此問題。 或者您也可以在 CodePush 中更改部署的目標版本以匹配來自 XCode 的版本。

此外,您可以通過 -t 標志和版本號在部署命令中配置 codepush 目標版本。 appcenter codepush release-react -t '0.1.0' ...

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM