简体   繁体   English

Flutter 应用程序无法在真正的 ios 设备上运行

[英]Flutter app not working on real ios device

Flutter app works perfectly on iOS simulator and android but on a real ios device it gives a white screen error and the app crashes Flutter 应用程序在 iOS 模拟器和 android 上完美运行,但在真正的 Z9E304D4E8DF1B74CFA00991319842

My iOS Simulator Logs (Worked):我的 iOS 模拟器日志(已工作):

2021-11-24 19:26:47.603717+0300 Runner[30853:260546] Metal API Validation Enabled
2021-11-24 19:26:48.033007+0300 Runner[30853:260546] [Firebase/Crashlytics] Version 8.9.0
2021-11-24 19:26:48.732373+0300 Runner[30853:260869] flutter: Observatory listening on http://127.0.0.1:57092/UvnyfKzFO-k=/
2021-11-24 19:26:49.003635+0300 Runner[30853:260782] [boringssl] boringssl_metrics_log_metric_block_invoke(144) Failed to log metrics
2021-11-24 19:26:49.120389+0300 Runner[30853:260790] 8.9.0 - [Firebase/Messaging][I-FCM002022] APNS device token not set before retrieving FCM Token for Sender ID '721569697388'. Notifications to this FCM Token will not be delivered over APNS.Be sure to re-retrieve the FCM token once the APNS device token is set.
2021-11-24 19:26:49.121098+0300 Runner[30853:260790] 8.9.0 - [Firebase/Analytics][I-ACS023007] Analytics v.8.9.0 started
2021-11-24 19:26:49.122288+0300 Runner[30853:260790] 8.9.0 - [Firebase/Analytics][I-ACS023008] To enable debug logging set the following application argument: -FIRAnalyticsDebugEnabled 
2021-11-24 19:26:49.123287+0300 Runner[30853:260790] 8.9.0 - [Firebase/Analytics][I-ACS025036] App Delegate Proxy is disabled
2021-11-24 19:26:50.825098+0300 Runner[30853:260789] 8.9.0 - [Firebase/Analytics][I-ACS800023] No pending snapshot to activate. SDK name: app_measurement
2021-11-24 19:26:51.214160+0300 Runner[30853:260789] 8.9.0 - [Firebase/Analytics][I-ACS023012] Analytics collection enabled
2021-11-24 19:26:51.215016+0300 Runner[30853:260789] 8.9.0 - [Firebase/Analytics][I-ACS023220] Analytics screen reporting is enabled. Call +[FIRAnalytics logEventWithName:FIREventScreenView parameters:] to log a screen view event. To disable automatic screen reporting, set the flag FirebaseAutomaticScreenReportingEnabled to NO (boolean) in the Info.plist
2021-11-24 19:26:51.681151+0300 Runner[30853:260891] [boringssl] boringssl_metrics_log_metric_block_invoke(144) Failed to log metrics
2021-11-24 19:26:52.423968+0300 Runner[30853:260792] [boringssl] boringssl_metrics_log_metric_block_invoke(144) Failed to log metrics
2021-11-24 19:26:54.957122+0300 Runner[30853:260546] Writing analzed variants.
2021-11-24 19:26:54.960010+0300 Runner[30853:260546] Writing analzed variants.

My Real Device Logs (iPhone 7, iPhone 7 Plus):我的真实设备日志(iPhone 7、iPhone 7 Plus):

2021-11-24 19:28:37.480454+0300 Runner[1472:247096] Metal API Validation Enabled
2021-11-24 19:28:37.645543+0300 Runner[1472:247096] [Firebase/Crashlytics] Version 8.9.0
2021-11-24 19:28:37.772118+0300 Runner[1472:247326] [VERBOSE-2:shell.cc(93)] Dart Error: Can't load Kernel binary: Invalid kernel binary format version.
2021-11-24 19:28:37.772214+0300 Runner[1472:247326] [VERBOSE-2:dart_isolate.cc(170)] Could not prepare isolate.
2021-11-24 19:28:37.772511+0300 Runner[1472:247326] [VERBOSE-2:runtime_controller.cc(382)] Could not create root isolate.
2021-11-24 19:28:37.772551+0300 Runner[1472:247326] [VERBOSE-2:shell.cc(576)] Could not launch engine with configuration.
2021-11-24 19:28:37.773459+0300 Runner[1472:247337] flutter: Observatory listening on http://127.0.0.1:63107/l5zqCllUQh8=/
2021-11-24 19:28:37.795951+0300 Runner[1472:247320] 8.9.0 - [Firebase/Analytics][I-ACS023007] Analytics v.8.9.0 started
2021-11-24 19:28:37.796327+0300 Runner[1472:247320] 8.9.0 - [Firebase/Analytics][I-ACS023008] To enable debug logging set the following application argument: -FIRAnalyticsDebugEnabled 
2021-11-24 19:28:37.796769+0300 Runner[1472:247320] 8.9.0 - [Firebase/Analytics][I-ACS025036] App Delegate Proxy is disabled
2021-11-24 19:28:37.813715+0300 Runner[1472:247320] 8.9.0 - [Firebase/Analytics][I-ACS800023] No pending snapshot to activate. SDK name: app_measurement
2021-11-24 19:28:38.110193+0300 Runner[1472:247321] 8.9.0 - [Firebase/Analytics][I-ACS023012] Analytics collection enabled
2021-11-24 19:28:38.110621+0300 Runner[1472:247321] 8.9.0 - [Firebase/Analytics][I-ACS023220] Analytics screen reporting is enabled. Call +[FIRAnalytics logEventWithName:FIREventScreenView parameters:] to log a screen view event. To disable automatic screen reporting, set the flag FirebaseAutomaticScreenReportingEnabled to NO (boolean) in the Info.plist
2021-11-24 19:28:40.191307+0300 Runner[1472:247322] [connection] nw_resolver_start_query_timer_block_invoke [C1] Query fired: did not receive all answers in time for firebaselogging-pa.googleapis.com:443

Flutter Doctor: Flutter 医生:

[✓] Flutter (Channel unknown, 2.2.3, on macOS 11.6.1 20G224 darwin-x64, locale tr-TR)
[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
[✓] Xcode - develop for iOS and macOS
[✓] Chrome - develop for the web
[✓] Android Studio (version 2020.3)
[!] Android Studio (version 2020.3)
    ✗ Unable to find bundled Java version.
[✓] VS Code (version 1.62.3)
[✓] Connected device (4 available)

Probably error log:可能是错误日志:

nw_resolver_start_query_timer_block_invoke [C1] Query fired: did not receive all answers in time for firebaselogging-pa.googleapis.com:443

Thank you!谢谢!

Open Flutter SDK, go to bin/cache and delete all the files then run flutter doctor, then flutter upgrade. Open Flutter SDK, go to bin/cache and delete all the files then run flutter doctor, then flutter upgrade.

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

相关问题 Flutter sqflite 应用程序无法在真正的 ios 设备上运行 - Flutter sqflite app does not working on real ios device Flutter iOS 应用程序在模拟器中完美运行,但在真实设备中无法运行 - Flutter iOS app working perfect in simulator but not in real device Flutter 应用程序未在真实 iOS 设备上运行 - Flutter app is not running on real iOS device 在实际 iOS 设备中运行 flutter 应用程序 [Windows] - Running flutter app in real iOS device [Windows] 无法在调试模式下在真实 ios 设备上运行 flutter 应用程序 - Can't run flutter app on real ios device in debug mode Flutter 应用程序在启动时崩溃(仅 IOS,模拟器和真机都有) - Flutter app crash on startup (only IOS, both simulator and real device) Flutter 应用程序无法在真正的 iOS 设备上运行(白屏) - Flutter app does not work on a real iOS device (white screen) iOS - Unable to Run Flutter App in Real Device iPhone 11. iOS - 15.2, Xcode 13.2.1, It's working in simulator - iOS - Unable to Run Flutter App in Real Device iPhone 11. iOS - 15.2, Xcode 13.2.1 , It's working in simulator Expo 应用程序在 Expo Go 和 iOS 模拟器上工作,但在真实设备上崩溃 - Expo app working on Expo Go and iOS Simulator but crashes on real device iOS 通用应用程序链接在模拟器上工作,而不是在真实设备上 - iOS universal app links working on simulator, not on real device
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM