Thread 1: signal SIGABRT with let realm = try! Realm() after XCode 11 Upgrade

(Fily) #1

For years I have been using a global variable for my Realm declaration in the AppDelegate as follow.

let realm = try! Realm()

class AppDelegate: UIResponder, UIApplicationDelegate {

I just upgraded from XCode 10.2 to XCode 11 and now I’m getting a Thread 1: signal SIGABRT error in line let realm = try! Realm()

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


I’m using the same Swift version (4.2).

Any idea why it would work on XCode 10.2 but not in XCode 11?

FYI - Running pod install shows Using Realm (3.14.2), Using RealmSwift (3.14.2)


(Fily) #2

FYI - Updated Realm to 3.18 (pod ‘RealmSwift’, ‘~> 3.18’), cleaned the build folder and it worked.