I am just tring to create a DEFAULT RMRealm but still crashes
Terminating app due to uncaught exception 'RLMException', reason: ''NSMutableArray' is not supported as an RLMObject property. All properties must be primitives, NSString, NSDate, NSData, RLMArray, or subclasses of RLMObject.
Any help please. i dont know how to include it as RLMArray
From what I can gather in your sample, you're trying to serialize a JSON stream and then pass it to Realm. There's unfortunately an NSArray in there somewhere which Realm cannot accept.
Normally it would be necessary for you to manually process the contents of the dictionary to make sure every value in it is compatible with your Realm model. Luckily, there's a third party library available that can handle that for you. I definitely recommend checking out Realm-JSON for this situation. :)
Asked in February 2016Viewed 3,301 timesVoted 7Answered 1 times