Yeah Yeah - 1 year ago 279
Swift Question

App crashing "libc++abi.dylib: terminating with uncaught exception of type NSException (lldb)"

So after 1 hour of googling I still can't fix this error I'm getting. Whats happening is that every time I go to click my "Sign Up" button the app crashes, its suppose to redirect me to a different view where the user can sign up with there email and password. Any help would be amazing I tried many things other users have posted but none of them seem to be working.

error code:

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

Picture of my code

Story board

Answer Source

I have faced same issue.

Please do follow below step, I am sure it will help you.

Solution:1 Please make sure FIRApp.configure() statement execute once through out the project. If you have write more then one time then you have to remove your Unused statement. It will solved your problem.

If above solution is not work for you then try Given below solution


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

2 ) Remove Old GoogleService-Info file from project.

3 ) Download GoogleService-Info and add into project.

4 ) Add pods file Again.

5) Put Below method in Appdelegate file.

   override init() {
        // Firebase Init

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download