flutter_realm icon indicating copy to clipboard operation
flutter_realm copied to clipboard

Error when install on IOS

Open DenisMrGnusa opened this issue 4 years ago • 1 comments

I am the first time using realm on iOS and get an error like this?

Unhandled Exception: PlatformException(-1, Object type 'BeritaDb' is not managed by the Realm. If using a custom `objectClasses` / `objectTypes` array in your configuration, add `BeritaDb` to the list of `objectClasses` / `objectTypes`., {
    RLMRealmCoreVersion = "";
    RLMRealmVersion = "3.17.3";
})

I have added the beritadb class RealmSchema.h like below :

#import <Foundation/Foundation.h>
#import <Realm/Realm.h>


@interface BeritaDb : RLMObject

@property NSString *uuid;
@property NSString *id;
@property NSString *judul;
@property NSString *gambar;
@property NSString *tanggal;
@property NSString *tag;
@property NSString *status;
@property NSString *konten;
@property BOOL *saveStatus;
@property BOOL *readStatus;
@property NSString *createdAt;
@property NSString *updatedAt;

@end

Is something wrong with my code?

DenisMrGnusa avatar May 23 '20 08:05 DenisMrGnusa

did you also add an empty implementation in RealmSchema.m?

bbjay avatar May 29 '20 14:05 bbjay