简体   繁体   English

flutter ios 应用程序在测试飞行模式下显示白屏?

[英]flutter ios app shows white screen in testflight mode?

flutter app runs fine in debug mode on simulator but after uploading on app store and running in test flight and after installing to apple device it just shows white screen. flutter 应用程序在模拟器上的调试模式下运行良好,但在应用商店上传并在试飞中运行并安装到苹果设备后,它只显示白屏。 app ` name: lapress description: A new Flutter project. app`名称:lapress描述:一个新的Flutter项目。

https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html

version: 1.1.0+1

environment:
  sdk: ">=2.2.0 <3.0.0"

dependencies:
  flutter:
    sdk: flutter
  flutter_localizations:
    sdk: flutter
  provider: ^4.3.1
  flutter_cupertino_localizations: ^1.0.1
  connectivity: ^0.4.9
  easy_localization: ^1.4.1
  flutter_launcher_icons: ^0.7.5
  shared_preferences: ^0.5.8
  path_provider: ^1.6.27
  url_launcher: ^5.7.10
  sqflite: ^1.3.2+2
  fluttertoast: ^7.1.6


  cupertino_icons: ^0.1.3
  table_calendar: ^2.2.3
  localstorage: ^3.0.2+5
 


dev_dependencies:
  flutter_test:
    sdk: flutter
  datetime_picker_formfield: ^1.0.0
  http: ^0.12.2
  intl_translation: ^0.17.10
  flutter_datetime_picker: ^1.5.0
  

dependency_overrides:
  intl: ^0.17.0-nullsafety.2




flutter:


  uses-material-design: true

 
  assets:
    - image/asset/
    - image/asset/asset_lang/

Welcome to SOF ✨:欢迎来到 SOF ✨:

It actually means there is an error which is not displayed in production (it displays red screen in debug mode, but seems you have no error in debug mode), try displaying error even in production (TestFlight): flutter.dev/docs/testing/errors and stackoverflow.com/a/53640242/305135这实际上意味着有一个错误在生产中没有显示(它在调试模式下显示红屏,但在调试模式下似乎没有错误),即使在生产中也尝试显示错误(TestFlight): flutter.dev/docs/testing /错误stackoverflow.com/a/53640242/305135

Specifically for this, sometimes this helps:为此,有时这会有所帮助:

Xcode (Good to do)
Product -> Clean

IDE/Command-line (Must do to fix)
Flutter clean
flutter build ios --release

Xcode (Have to do anyways)
Archive
Upload App Store

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

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