我研究了这么久,还没有找到解决我的问题的方法。我正在使用 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 添加文件,所以现在我不知道出了什么问题。我希望任何人都可以帮助我,我将不胜感激!