簡體   English   中英

Flutter iOS 應用程序在啟動時崩潰 Firebase

[英]Flutter app for iOS crash on startup with Firebase

我已經做了很長時間的研究,但還沒有找到解決我問題的方法。 我正在使用 flutter 為 iOS 構建一個應用程序,並將該應用程序從我的 windows 機器移至虛擬 macOS。 現在,當我嘗試在 Iphone 模擬器 (Iphone 11 pro Max) 上運行該應用程序時,該應用程序在啟動時崩潰並出現此錯誤:

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 添加文件,所以現在我不知道出了什么問題。 我希望任何人都可以幫助我,我將不勝感激!

我創建了一個新項目,現在它可以工作了。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM