我正在尝试在具有iMessage扩展程序的iOS应用中使用Firebase。我已添加GoogleService-Info.plist
文件,并且我可以在主机应用中正确使用Firebase。
但是,当我在iMessage应用扩展程序中包含以下代码时:
override func willBecomeActive(with conversation: MSConversation) {
super.willBecomeActive(with: conversation)
if(FIRApp.defaultApp() == nil){
FIRApp.configure()
}
}
应用程序在运行时崩溃并出现以下错误
Could not locate configuration file: 'GoogleService-Info.plist'.
*** Terminating app due to uncaught exception 'com.firebase.core', reason:
'[FIRApp configure] could not find a valid GoogleServices-Info.plist in your project.
Please download one from https://console.firebase.google.com/.'
在iMessage应用扩展程序中使用Firebase需要做什么?