Primary key property ‘name’ does not exist on object ‘RealmSwiftPermissionRole’

There’s an issue with iOS 13 and Xcode 11 which may cause this problem. All String properties of Realm classes with a default String value set are disregarded somehow.
You can fix this by updating to the latest version (currently 3.20.0) and then on Xcode: Product -> Clean Build Folder.

If you’re using cocoa-pods:

Open your project’s Podfile, and replace RealmSwift line with:

pod 'RealmSwift', '~> 4.4.1'

Then, open terminal on the project’s folder and:

pod repo update
pod install

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)