1
我有一個通過cocoapods安裝Realm的swift項目。我在終端上通過rm path/to/realm/database
意外刪除了領域數據庫。每當我運行應用程序,我收到以下錯誤:重建領域數據庫
'RLMException', reason: 'open() failed: No such file or directory'
我的問題是,我如何重建領域數據庫?
我有一個通過cocoapods安裝Realm的swift項目。我在終端上通過rm path/to/realm/database
意外刪除了領域數據庫。每當我運行應用程序,我收到以下錯誤:重建領域數據庫
'RLMException', reason: 'open() failed: No such file or directory'
我的問題是,我如何重建領域數據庫?
這發生在我身上,一陣子回來!基本上,只需重置您正在測試的您的IOS模擬器。
點擊「iPhone模擬器」菜單,然後選擇「重置內容和設置」
讓我知道,如果這個工程...
傑森,你的意思是你刪除的文件的境界? – weePee
正確。你的答案奏效。 – jason328