我有一個通過cocoapods安裝Realm的swift項目。我在終端上通過rm path/to/realm/database意外刪除了領域數據庫。每當我運行應用程序,我收到以下錯誤: 'RLMException', reason: 'open() failed: No such file or directory'
我的問題是,我如何重建領域數據庫?
Inside Doctor class,我有RealmList - specializationList。 public class Doctor extends RealmObject {
@PrimaryKey
private String doctorId;
private FullName fullName;
private Age age;