我已将 Realm.framework 和 RealSwift.framework 添加到项目中。和“导入领域”虽然我收到了这个错误:
RLMRealm' 没有成员 'setDefaultRealmPath'
let directory: NSURL = NSFileManager.defaultManager().containerURLForSecurityApplicationGroupIdentifier("group.it.fancypixel.Done")!
let realmPath = (directory.path! as NSString).stringByAppendingPathComponent("db.realm")
RLMRealm.setDefaultRealmPath(realmPath)
任何想法我似乎都无法在任何地方看到解决方案,因为它是如此新。
提前致谢。