【问题标题】:Firebase notifications error on Xcode thread 1 SIGABRTXcode 线程 1 SIGABRT 上的 Firebase 通知错误
【发布时间】:2017-07-18 10:00:05
【问题描述】:
我使用 Ionic 框架创建了一个应用程序。
在 iOS / Xcode 上:当我在 Xcode 上构建(成功)我的应用程序时出现错误。
这个错误在main.m上:
“线程 1:信号 SIGABRT”
这个错误是从哪里来的?如何解决?
在我的所有异常断点“libobjc.A.dylib 中的objc_exception_throw”和“libc++abi.dylib 中的_cxa_thrpw”
此断点强调我的 AppDelegate+FirebasePlugin.m 中的“FIRApp configure];”行
Screen of Xcode
【问题讨论】:
标签:
ios
xcode
firebase
firebase-notifications
【解决方案1】:
您是否忘记将 GoogleService-Info.plist 文件添加到您的项目中,或者您的文件名称与上述不同?
如果您的文件有不同的名称,那么:
NSString *filePath = [[NSBundle mainBundle] pathForResource: yourFileName ofType:@"plist"];
FIROptions *options = [[FIROptions alloc] initWithContentsOfFile:filePath];
[FIRApp configureWithOptions:options];
【解决方案2】:
此错误是由 GoogleService-Info.plist 引起的,因为它是空的。