Hello使用Realm和RLMSupport for Obj-C / Swift。
添加config.objectClasses
let appGroupIdentifier = "group.APContacts"
let dbFilename = "dbSwiftContacts.realm"
let config = RLMRealmConfiguration()
config.fileURL = FileManager.default.containerURL(forSecurityApplicationGroupIdentifier: appGroupIdentifier)!.appendingPathComponent(dbFilename)
config.objectClasses = [Dog.className()]
config.readOnly = true
RLMRealmConfiguration.setDefault(config)
错误是: This one!
任何人都可以设法使用RLMSupport吗?