翩翩IOS应用程序在运行时卡在启动屏幕上。

问题描述 投票:0回答:1

我一直在与一个问题作斗争,现在几个星期,其越来越令人沮丧。我的翩翩安卓apk建立和运行良好的安卓,但我也试过在iOS模拟器上运行,但它一直停留在启动屏幕上,不进一步。

我尝试过的事情。

1)在Xcode中的构建阶段下,将这些文件添加到脚本中。

"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh" embed
"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh" thin

2) 添加了 FirebaseApp.configure() 对我 AppDelegate 文件。

3) 重新安装flutter

4)切换到各种颤动通道

这是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
ios flutter build
1个回答
0
投票

我建议在这种情况下是。

  1. 切换到所需的Flutter频道(如测试版)
  2. 清理项目 flutter clean
  3. 删除ios目录(确保在删除前有备份或git历史记录)。
  4. 在项目目录下重新创建ios项目。flutter create . 在项目目录下运行。这将创建新的iOS项目
  5. 呼叫 flutter pub get

你也可以尝试通过以下方式更新iOS pods。

  1. 通过在ios目录下运行更新pods仓库。pod repo update
  2. 重新安装pods的方法: pod install
© www.soinside.com 2019 - 2024. All rights reserved.