0
我正在將iOS應用程序遷移到Realm。我有幾個定義過多的關係,如什麼是「不能擁有原產地名稱」在Realm中的意思iOS
@property (nullable) RLMArray<Book> *books;
但是我收到這些錯誤。
Terminating app due to uncaught exception 'RLMException', reason: 'Schema validation failed due to the following errors:
- Property 'User.books' of type 'array' cannot have an origin property name.
本書也是一個帶有userId字段的模型。這個錯誤是什麼意思?我找不到任何參考。
你能分享你的類的完整接口聲明,以及Realm的特殊方法('+ primaryKey','+ requiredProperties','+ linkingObjectsProperties')的任何實現嗎? – bdash