flutter:启动...需要很长时间才能完成

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

我正在我的 Mac Mini M1 上开发一个 flutter 项目。

在我的 flutter 项目中,选择我实际的 iphone (iOS 17.4.1) 作为当前设备,无需调试即可运行Flutter Launching... 永远存在,我的应用程序无法加载。

以下是我的 flutter doctor 输出:

flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.19.4, on macOS 14.4.1 23E224 darwin-arm64, locale en-US)
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 15.3)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2023.2)
[✓] VS Code (version 1.88.1)
[✓] Connected device (3 available)
[✓] Network resources

• No issues found!

重新启动我的 Mac,删除 iOS 设备上的应用程序并重新运行。还是没有帮助。

下面是启动我的项目时的 XCode 控制台输出:

[ERROR:flutter/shell/platform/darwin/graphics/FlutterDarwinContextMetalImpeller.mm(42)] Using the Impeller rendering backend.
10.22.0 - [FirebaseCore][I-COR000005] No app has been configured yet.
10.22.0 - [FirebaseAnalytics][I-ACS023007] Analytics v.10.22.0 started
10.22.0 - [FirebaseAnalytics][I-ACS023008] To enable debug logging set the following application argument: -FIRAnalyticsDebugEnabled (see ...)
10.22.0 - [FirebaseAnalytics][I-ACS044002] The AdSupport Framework is not currently linked. Some features will not function properly. Learn more at ...
10.22.0 - [FirebaseAnalytics][I-ACS800023] No pending snapshot to activate. SDK name: app_measurement
10.22.0 - [FirebaseAnalytics][I-ACS023012] Analytics collection enabled
10.22.0 - [FirebaseAnalytics][I-ACS023220] Analytics screen reporting is enabled. Call Analytics.logEvent(AnalyticsEventScreenView, parameters: [...]) to log a screen view event. To disable automatic screen reporting, set the flag FirebaseAutomaticScreenReportingEnabled to NO (boolean) in the Info.plist
flutter: The Dart VM service is listening on http://0.0.0.0:60075/RUIB-EERxgs=/

如何提高iPhone上启动flutter项目的速度?

ios iphone flutter
1个回答
0
投票

我刚刚发现为什么 Flutter lauching 挂在那里:因为我选择无线运行该应用程序。奇怪的是之前也是无线模式的。

无论如何,现在我通过闪电电缆进行调试。一切似乎都正常。

© www.soinside.com 2019 - 2024. All rights reserved.