Libc++Abi.Dylib: Terminating With Uncaught Exception of Type Nsexception (Lldb)

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

CMYR - "his could also happen if you've wired up a button to an IBAction that doesn't exist anymore (or has been renamed)"

If you're running into this problem make sure that you go to Main.storyboard, RIGHT click on the yellow box icon (view controller) at the top of the phone outline and DELETE the outlet(s) with yellow flags.

What happens in instances like this is you probably named an action, then renamed it. You need to delete the old name and if that was the only issue will start right up in sim!

Sample Image

FBLogin libc++abi.dylib: terminating with uncaught exception of type NSException

I missed to add APP_ID in the following config in info.plist After adding app_ID, the app connected to FB.

<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleURLSchemes</key>
<array>
<string>fb{APP_ID}</string>
</array>
</dict>
</array>

libc++abi.dylib segue error with uncaught exception of type NSException

  1. Maybe you need to add UINavigationViewController like Initial View Controller?

Sample Image

Or you need override this method and setup some required data on second controller?

override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
if (segue.identifier == "home_to_quiz") {
let dectinationView = segue.destination as! YourCustomViewController
dectinationView.dataContainer = self.dataContainer
}
}

Addition


  1. Here are a few moments where something could go wrong:

    • Class of your UIViewController must be Inherit From Target

Sample Image

  • Try to delete your Selector (home_to_quiz:) in Storyboard. Do you implement a selector method inside a controller?

Swift Firebase Notifications libc++abi.dylib: terminating with uncaught exception of type NSException

Remove reference of your "GoogleService-Info.plist" file and again add it using add to file option...

for more watch it carefully



Related Topics



Leave a reply



Submit