ios - 应用程序崩溃 "libc++abi.dylib: terminating with uncaught exception of type NSException (lldb)"

标签 ios swift xcode firebase

因此,在谷歌搜索 1 小时后,我仍然无法修复我遇到的这个错误。发生的事情是,每次我去点击我的“注册”按钮,应用程序崩溃,它假设将我重定向到一个不同的 View ,用户可以在其中使用那里的电子邮件和密码注册。我尝试了很多其他用户发布的内容,但似乎都没有用。

错误代码:

2016-11-14 23:30:52.363967 FHCI[4785:1536750] [Firebase/Core][I-COR000019] Clearcut post completed.
2016-11-14 23:30:52.364 FHCI[4785] <Debug> [Firebase/Core][I-COR000019] Clearcut post completed.
2016-11-14 23:30:53.561590 FHCI[4785:1536709] *** Terminating app due to uncaught exception 'com.firebase.core', reason: 'Default app has already been configured.'
*** First throw call stack:
(0x186e4a1c0 0x18588455c 0x186e4a108 0x100107358 0x100107120 0x1000a795c 0x1000a7a40 0x18cca50b0 0x18cca4c78 0x18d668ae4 0x18cfefb08 0x18cff72c4 0x18d010d04 0x18d013e5c 0x18cd97b54 0x18d464b9c 0x18d465d84 0x18d465b8c 0x18d465e5c 0x18ccda484 0x18ccda404 0x18ccc48b8 0x18ccd9cf0 0x18ccd9818 0x18ccd4a60 0x18cca552c 0x18d492a54 0x18d48c4bc 0x186df8278 0x186df7bc0 0x186df57c0 0x186d24048 0x1887aa198 0x18cd102fc 0x18cd0b034 0x1000aa388 0x185d085b8)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb) 

我的代码图片

Storyboard

最佳答案

之前,我也遇到过同样的问题。通过以下解决方案修复它。

解决方案:1

Please make sure FIRApp.configure() the statement executes once throughout the project. If you have written more then one time then you have to remove your second unused statement. It will solve your problem.

解决方案:2

1 ) Remove pod file from project (How to remove pod file)

2 ) Remove Old GoogleService-Info file from the project.

3 ) Download GoogleService-Info and add it into the project.

4 ) Add pods file Again.

5) Put the Below method in Appdelegate file.

override init() {
   super.init()
   FIRApp.configure()
}

关于ios - 应用程序崩溃 "libc++abi.dylib: terminating with uncaught exception of type NSException (lldb)",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40602226/

相关文章:

ios - 使用 TableView 进行 NSData 卸载

ios - 如何按修改日期对 CloudKit 结果进行排序?

ios - 你如何在 swift 中将 int 转换为 double?

ios - CLLocationDistance 不起作用 - 快速

c++ - 从 Xcode 链接到 Boost

ios - 对于发行版,iOS中正确的“Strip Debug Symbols”设置是什么?

ios - 使用 AutoLayout 在 UIScrollView 底部查看

ios - didselectrowatindexpath 基于登录的导航

ios - iOS 11 之前的行操作

ios - 编辑另一个单元格时, Collection View 自动跳转到第一个单元格