Skip to content
This repository has been archived by the owner on Nov 14, 2020. It is now read-only.

Error when install on IOS #14

Open
DenisMrGnusa opened this issue May 23, 2020 · 1 comment
Open

Error when install on IOS #14

DenisMrGnusa opened this issue May 23, 2020 · 1 comment

Comments

@DenisMrGnusa
Copy link

DenisMrGnusa commented May 23, 2020

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
Copy link

bbjay commented May 29, 2020

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants