[英]Flutter IOS app stuck at Launch Screen while run
I have been battling with an issue for weeks now and its getting frustrating.几个星期以来,我一直在与一个问题作斗争,它变得令人沮丧。 My flutter android apk builds and runs well on android but I also tried running on iOS emulator but it has been stuck on the launch screen and doesn't go further.
我的 flutter android apk 在 android 上构建并运行良好,但我也尝试在 iOS 模拟器上运行,但它一直停留在启动屏幕上并且没有进一步运行 go。
Things I have tried.我尝试过的事情。
1) Added these files to script under build phases in Xcode. 1) 在 Xcode 的构建阶段下将这些文件添加到脚本中。
"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh" embed
"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh" thin
2) Added FirebaseApp.configure()
to my AppDelegate
file. 2) 将
FirebaseApp.configure()
添加到我的AppDelegate
文件中。
3) Reinstalled flutter 3)重装flutter
4) Switched to various flutter channels 4)切换到各种flutter频道
This is the error from Xcode:这是来自 Xcode 的错误:
2020-04-24 15:02:34.421613+0100 Kashbase[23884:5243353] Failed to find assets path for "Frameworks/App.framework/flutter_assets"
2020-04-24 15:02:34.774843+0100 Kashbase[23884:5243704] flutter: Observatory listening on http://127.0.0.1:62748/_bDwywAMqhg=/
2020-04-24 15:02:34.943017+0100 Kashbase[23884:5243695] [VERBOSE-2:engine.cc(127)] Engine run configuration was invalid.
2020-04-24 15:02:34.943706+0100 Kashbase[23884:5243695] [VERBOSE-2:shell.cc(437)] Could not launch engine with configuration.
2020-04-24 15:02:35.027558+0100 Kashbase[23884:5243628] 6.18.0 - [Firebase/Messaging][I-FCM001000] FIRMessaging Remote Notifications proxy enabled, will swizzle remote notification receiver handlers. If you'd prefer to manually integrate Firebase Messaging, add "FirebaseAppDelegateProxyEnabled" to your Info.plist, and set it to NO. Follow the instructions at:
https://firebase.google.com/docs/cloud-messaging/ios/client#method_swizzling_in_firebase_messaging
to ensure proper integration.
2020-04-24 15:02:35.083060+0100 Kashbase[23884:5243625] 6.18.0 - [Firebase/Analytics][I-ACS031025] Analytics screen reporting is enabled. Call +[FIRAnalytics setScreenName:setScreenClass:] to set the screen name or override the default screen class name. To disable screen reporting, set the flag FirebaseScreenReportingEnabled to NO (boolean) in the Info.plist
2020-04-24 15:02:35.084616+0100 Kashbase[23884:5243625] 6.18.0 - [Firebase/Analytics][I-ACS023007] Analytics v.60300000 started
2020-04-24 15:02:35.085987+0100 Kashbase[23884:5243625] 6.18.0 - [Firebase/Analytics][I-ACS023008] To enable debug logging set the following application argument: -FIRAnalyticsDebugEnabled
2020-04-24 15:02:35.884479+0100 Kashbase[23884:5243728] 6.18.0 - [Firebase/Analytics][I-ACS800023] No pending snapshot to activate. SDK name: app_measurement
2020-04-24 15:02:36.240827+0100 Kashbase[23884:5243628] 6.18.0 - [Firebase/Analytics][I-ACS800003] Registered an SDK that has already registered. Default flags will be overwritten. SDK name: app_measurement
2020-04-24 15:02:36.274854+0100 Kashbase[23884:5243628] 6.18.0 - [Firebase/Analytics][I-ACS800023] No pending snapshot to activate. SDK name: app_measurement
2020-04-24 15:02:36.686320+0100 Kashbase[23884:5243628] 6.18.0 - [Firebase/Analytics][I-ACS023012] Analytics collection enabled
What I recommend in such case is to:在这种情况下我的建议是:
flutter clean
flutter clean
项目flutter create.
flutter create.
run inside the project directory.flutter pub get
flutter pub get
You can also try to update the iOS pods by:您还可以尝试通过以下方式更新 iOS pod:
pod repo update
pod repo update
pod install
pod install
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.