mogol / flutter_realm

Realm via Platform Channels
https://pub.dev/packages/flutter_realm
MIT License
115 stars 18 forks source link

Error when install on IOS #14

Open DenisMrGnusa opened 4 years ago

DenisMrGnusa commented 4 years ago

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?

bbjay commented 4 years ago

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