flutter_realm
flutter_realm copied to clipboard
Error when install on IOS
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?
did you also add an empty implementation in RealmSchema.m
?