Android Studio 在xcode中因未捕获的NSException类型异常而终止

bcs8qyzn  于 2023-02-24  发布在  Android
关注(0)|答案(1)|浏览(169)

我将flutter项目从Windows PC移到Mac。我在Xcode中运行项目时遇到错误,我也尝试flutter clean,但它不起作用。我搜索了很多,但找不到解决方案。有没有其他方法来制作ipa?

2019-11-13 20:37:15.449711+0500 Naija TV[6295:758910]  - <AppMeasurement>[I-ACS036002] Analytics screen reporting is enabled. Call +[FIRAnalytics setScreenName:setScreenClass:] to set the screen name or override the default screen class name. To disable screen reporting, set the flag FirebaseScreenReportingEnabled to NO (boolean) in the Info.plist
    2019-11-13 20:37:15.742255+0500 Naija TV[6295:758623] FirebaseAdMobPlugin <warning> [FIRApp configure]
    2019-11-13 20:37:15.748279+0500 Naija TV[6295:758623] *** Terminating app due to uncaught exception 'com.firebase.core', reason: '`[FIRApp configure];` (`FirebaseApp.configure()` in Swift) could not find a valid GoogleService-Info.plist in your project. Please download one from https://console.firebase.google.com/.'
    *** First throw call stack:
    (0x1b9f2e190 0x1b91039f8 0x1b9e383b0 0x100d11fec 0x100f3790c 0x100f37644 0x100d0d0c4 0x100d0d73c 0x100d0dabc 0x1e68330f0 0x1e6834854 0x1e6839fe0 0x1e60fd2a4 0x1e610583c 0x1e60fcf28 0x1e60fd818 0x1e60fbb64 0x1e60fb82c 0x1e610036c 0x1e6101150 0x1e6100224 0x1e6104f24 0x1e68385e8 0x1e6434e04 0x1bc8aa9fc 0x1bc8b440c 0x1bc8b3c14 0x1034f8c78 0x1034fc840 0x1bc8e5040 0x1bc8e4cdc 0x1bc8e5294 0x1b9ebff2c 0x1b9ebfeac 0x1b9ebf794 0x1b9eba6d0 0x1b9eb9fc4 0x1bc0bb79c 0x1e683bc38 0x100d0dcac 0x1b997a8e0)
    libc++abi.dylib: terminating with uncaught exception of type NSException
hkmswyz6

hkmswyz61#

该错误明确指出无法找到GoogleService-Info.plist文件

could not find a valid GoogleService-Info.plist in your project. Please download one from https://console.firebase.google.com/.

或者,您可以使用FlutterFire CLI在Flutter应用中设置Firebase。按照本指南,您将不再需要在应用中手动设置plist文件。

相关问题