【发布时间】:2021-07-23 14:27:53
【问题描述】:
我不知道我需要什么来解决这个问题。
我在 Xcode 的工作区中运行了 Firebase,我按照 Firebase 的说明进行操作:
import UIKit
import Firebase
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?
func application(_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions:
[UIApplicationLaunchOptionsKey: Any]?) -> Bool {
FirebaseApp.configure()
return true
}
}
但问题是当我运行项目时,模拟是白色的。然后转到 FirApp.m 并说出以下代码。
if (!options) {
[NSException raise:kFirebaseCoreErrorDomain
format:@"`[FIRApp configure];` (`FirebaseApp.configure()` in Swift) could not find "
@"a valid GoogleService-Info.plist in your project. Please download one "
@"from %@.",
kPlistURL];
我在本教程中关注 CodingWithChris --> https://youtu.be/1HN7usMROt8?t=2363
【问题讨论】:
-
我的项目中有 GoogleService-Info.plist,但我再次尝试创建一个新的,看看会发生什么。我会告诉你它是否有效。
-
我应该修复 info.plist 还是 GoogleService-Info.plist?
-
让我看看我们的
-
什么是来自调试器的消息:由于信号 9 而终止
标签: swift xcode firebase swiftui firebase-authentication