gpt4 book ai didi

ios - Flutter - iOS 调试崩溃

转载 作者:行者123 更新时间:2023-12-01 17:46:29 25 4
gpt4 key购买 nike

我正在 上调试我的 flutter 应用程序iPhone 5s 使用 VS 代码 但它崩溃了,我不知道如何解决这个错误:

Launching lib/main.dart on iPhone 5s in debug mode...
Running pod install... 40.7s
Running Xcode build...
(This is taking an unexpectedly long time.)
├─Assembling Flutter resources... 58.7s
└─Compiling, linking and signing... 102.4s
Xcode build done. 524.6s
Configuring the default Firebase app...
*** First throw call stack:
(
0 CoreFoundation 0x000000011408d1bb __exceptionPreprocess + 331
1 libobjc.A.dylib 0x000000011362b735 objc_exception_throw + 48
2 CoreFoundation 0x000000011408d015 +[NSException raise:format:] + 197
3 Runner 0x000000010f3b125a +[FIRApp configure] + 138
4 Runner 0x000000010f5837d9 -[FLTFirebaseAnalyticsPlugin init] + 217
5 Runner 0x000000010f58360d +[FLTFirebaseAnalyticsPlugin registerWithRegistrar:] + 173
6 Runner 0x000000010f34d81e +[GeneratedPluginRegistrant registerWithRegistry:] + 126
7 Runner <…>

PS: I was native Android developer before flutter so I don't know how to debug iOS

and I'm using Virtualbox on windows 10 for building iOS apps on macOS Mojave 10.14.3


这是我的 flutter doctor -v结果:
[✓] Flutter (Channel stable, v1.9.1+hotfix.4, on Mac OS X 10.14.3 18D109, locale en-US)
• Flutter version 1.9.1+hotfix.4 at /Users/salah/development/flutter
• Framework revision cc949a8e8b (3 weeks ago), 2019-09-27 15:04:59 -0700
• Engine revision b863200c37
• Dart version 2.5.0

[✗] Android toolchain - develop for Android devices
✗ Unable to locate Android SDK.
Install Android Studio from: https://developer.android.com/studio/index.html
On first launch it will assist you in installing the Android SDK components.
(or visit https://flutter.dev/setup/#android-setup for detailed instructions).
If the Android SDK has been installed to a custom location, set ANDROID_HOME to that location.
You may also want to add it to your PATH environment variable.



[✓] Xcode - develop for iOS and macOS (Xcode 10.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 10.1, Build version 10B61
• CocoaPods version 1.7.5

[!] Android Studio (not installed)
• Android Studio not found; download from https://developer.android.com/studio/index.html
(or visit https://flutter.dev/setup/#android-setup for detailed instructions).

[✓] Connected device (1 available)
• iPhone 5s • D5C44375-4AD0-499F-891B-A2CE044C2EA4 • ios • iOS 12.1 (simulator)

! Doctor found issues in 2 categories.

最佳答案

您只添加了 google-services.json android 的 Firebase 配置文件:

android > app > google-services.json

您需要添加 GoogleService-Info.plist iOS Firebase 配置文件:
ios > Runner > GoogleService-Info.plist

关于ios - Flutter - iOS 调试崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58449896/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com