适用于iOS的Flutter应用在使用Firebase启动时崩溃 [英] Flutter app for iOS crash on startup with Firebase

查看:144
本文介绍了适用于iOS的Flutter应用在使用Firebase启动时崩溃的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经进行了很长时间的研究,还没有找到解决我问题的方法.我正在使用Flutter构建适用于iOS的应用程序,并将该应用程序从Windows机器移至虚拟macOS.现在,当我尝试在Iphone模拟器(Iphone 11 pro Max)上浏览该应用程序时,该应用程序在启动时因以下错误而崩溃:

I have done research for for so long and have not yet found a solution for my issue. I am building an app for iOS using flutter and I moved the app from my windows machine to a virtual macOS. Now when I try to rum the app on the Iphone simulator (Iphone 11 pro Max), the app crashes on startup with this error:

Launching lib/main.dart on iPhone 11 Pro Max in debug mode...
Running Xcode build...
Xcode build done.                                           190,5s
    path: satisfied (Path is satisfied), interface: en0
Configuring the default Firebase app...
    path: satisfied (Path is satisfied), interface: en0
Configured the default Firebase app __FIRAPP_DEFAULT.
    path: satisfied (Path is satisfied), interface: en0
    "currentDataServiceDescriptorChanged:",
    "carrierBundleChange:",
    "cellChanged:cell:",
    "connectionStateChanged:connection:dataConnectionStatusInfo:",
    "signalStrengthChanged:info:"
)
    "currentDataServiceDescriptorChanged:",
    "carrierBundleChange:",
    "cellChanged:cell:",
    "connectionStateChanged:connection:dataConnectionStatusInfo:",
    "signalStrengthChanged:info:"
)
    "currentDataServiceDescriptorChanged:",
    "carrierBundleChange:",
    "cellChanged:cell:",
    "connectionStateChanged:connection:dataConnectionStatusInfo:",
    "signalStrengthChanged:info:"
)
    "currentDataServiceDescriptorChanged:",
    "carrierBundleChange:",
    "cellChanged:cell:",
    "connectionStateChanged:connection:dataConnectionStatusInfo:",
    "signalStrengthChanged:info:"
)
*** First throw call stack:
(
    0   CoreFoundation                      0x00007fff23c7127e __exceptionPreprocess + 350
    1   libobjc.A.dylib                     0x00007fff513fbb20 objc_exception_throw + 48
    2   CoreFoundation                      0x00007fff23c70e49 -[NSException raise] + 9
    3   Runner                              0x000000010c8aadc6 GADApplicationVerifyPublisherInitializedAnalyticsCorrectly + 409
    4   Runner                              0x000000010c85dbc0 GADEnvironmentIsSupported + 4134
    5   libdispatch.dylib                   0x00007fff5223e848 _<…>

有人知道什么可能导致此错误吗?我已经在Xcode中的添加文件中添加了GoogleService-Info.plist ursinne,所以现在我不知道出了什么问题.希望有人能帮助我,不胜感激!

Does anyone know what might be causing this error? I have added the GoogleService-Info.plist ursinne the add file in Xcode so now I don't know what's wrong. I hope anyone can help me and ill be so grateful!

推荐答案

我创建了一个新项目,现在可以使用了.

I created a new project and now it works.

这篇关于适用于iOS的Flutter应用在使用Firebase启动时崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆