Questions tagged [realm-ios]

9 questions
3
votes
1 answer

'RLMException', reason: 'Table has no columns'

I have checked the related article with this problem. Issue in adding data in Realm in iOS It seems only issue the previous post that folks were not adding dynamic to variables. that is not my case. I am not finding any other reason at all why it…
Alok C
  • 2,787
  • 3
  • 25
  • 44
1
vote
1 answer

SwiftUI Previews w/Mock Realm

I am running into a problem trying to use an in memory realm configuration with previews. When the preview executes it returns an error. The diagnostics gives the following error: MessageError: Connection interrupted I have the following class…
Cosmtar
  • 516
  • 5
  • 14
1
vote
0 answers

Realm linear migration of removed Object

I am facing a migration of a Realm backed object for a large and long running app. The object has gone through several property migrations in its lifespan and has recently been removed from the app altogether. As Realm migrations happen in a linear…
Daniel Bowden
  • 988
  • 1
  • 10
  • 23
0
votes
0 answers

Entity RelationShip diagram for Realm Database

Is there any possible to have a Entity RelationShip diagram for Realm Database. If yes, then whats the recomended tool. else, what is the reason..? I tried some online tools and it is based on SQL DB only.
0
votes
1 answer

Realm object with dictionary of [String: Any] to save the JSON value in the property

Player Object Model In the Player Model, I want to save the JSON response so that I will get any new computed properties in the future without changing the schema. But here, I'm getting the error to save the json of type [String: Any]. Any…
0
votes
0 answers

Memory leaks in Realm SDK used in iOS swift

I was working on an iOS project where Realm sdk was used. When I checked the leaks instrument of Xcode, it kept on giving me memory leaks on creation of Realm instance. Then I created a very simple demo app using swiftui and Realm. I looked into…
0
votes
2 answers

How to rename realm object in iOS

I am using realm in our iOS and Android app. For some reason i want to rename one of my realm object. Initially we name the object Demo and now I want to change it to RealmDemo In android we achieved it by using @RealmClass…
coder1087
  • 115
  • 1
  • 2
  • 9
0
votes
1 answer

iOS - App crash on changing a REALM object property

I am using RealmSwift in a project. I have a model as below @objc final class Diary : Object, Codable { @objc dynamic public var id: Int = 1 @objc dynamic public var notes: String = "" } public func persistDiary(){ let realm =…
jegadeesh
  • 875
  • 9
  • 22
-1
votes
1 answer

Cannot get Realm result for objects filtered by the latest (nsdate) value of a property of a collection property swift (the example is clearer)

I Have the following model class Process: Object { @objc dynamic var processID:Int = 1 let steps = List() } class Step: Object { @objc private dynamic var stepCode: Int = 0 @objc dynamic var stepDateUTC: Date? = nil var…