0

Whenever I import Firebase and do FIRApp.configure() in AppDelegate, it crashes my app. Moreover, it crashes class AppDelegate: UIResponder, UIApplicationDelegate (Thread 1: signal SIGABRT) and it reports like this:

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

I haven't worked even with storyboards.

Could you please help me to fix this crash?

demongolem
  • 9,474
  • 36
  • 90
  • 105
Cowboy
  • 49
  • 5
  • We cant really help you until you provide with more info on your issue :) – Dravidian Nov 06 '16 at 08:23
  • Whenever I import Firebase and FIRApp.configure() into AppDelegate.swift, it crashes my app. Moreover, it crashes class AppDelegate: UIResponder, UIApplicationDelegate (Thread 1: signal SIGABRT) and it reports like this. libc++abi.dylib: terminating with uncaught exception of type NSException (lldb). Could you please help me to fix this crash? I really need your help. Best Regards, – Cowboy Nov 06 '16 at 09:10
  • Another thing, I want to tell you that I didn't work on Mainstoryboard. – Cowboy Nov 06 '16 at 09:12
  • Post the crash log here. So, that it is easy to check. – Sachin Vas Nov 08 '16 at 15:01
  • 1
    Possible duplicate of [libc++abi.dylib: terminating with uncaught exception of type NSException (lldb)](http://stackoverflow.com/questions/26442414/libcabi-dylib-terminating-with-uncaught-exception-of-type-nsexception-lldb). Though the OP is saying it only happens after he imports Firebase. I *personally* think the crash has nothing to do with firebase... – mfaani Nov 09 '16 at 18:27
  • @Honey So what do u think? Could u tell me how to fix it? – Cowboy Nov 09 '16 at 23:37

2 Answers2

0
  • Check whether you have copied GoogleService-Info.plist to the project.
  • Also try enabling keychain sharing under capabilities in Xcode.
rajtharan-g
  • 432
  • 5
  • 14
  • I have copied GoogleService-info.plist to the project, but when I downloaded GoogleService-info.plist from Firebase to my computer file name Unknown. This, I renamed it to GoogleService-info.plist and copied to the project. Can it be the problem? – Cowboy Nov 08 '16 at 14:11
  • Is the GoogleService-info.plist readable and structured format. – Sachin Vas Nov 08 '16 at 14:53
  • libc++abi.dylib: terminating with uncaught exception of type NSException (lldb) – Cowboy Nov 09 '16 at 00:14
0

When you select GoogleService-Info.plist in the Project Navigator, make sure that Target Membership is checked for your target.

enter image description here

Paul Beusterien
  • 27,542
  • 6
  • 83
  • 139
  • Are you able to successfully run with FIRApp.configure() in an empty app? – Paul Beusterien Nov 11 '16 at 22:05
  • I know the reason now. First, I downloaded GoogleService-info.plist with unknown file, and I copied to the app and renamed it to GoogleService-info.plist. So it crashes. – Cowboy Nov 11 '16 at 23:36