简体   繁体   中英

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. app ` name: lapress description: A new Flutter project.

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 ✨:

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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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