我可以/如何從崩潰的 MobileNotes 應用程式中恢復資料?

我可以/如何從崩潰的 MobileNotes 應用程式中恢復資料?

我的 MobileNotes 應用程式(iPhone 內建的 Notes 應用程式)已進入某種不一致的狀態,現在在啟動時崩潰。

我想從中恢復我的筆記(並讓應用程式再次運行,但這是次要的)。有沒有人看過這個,和/或成功恢復他們的資料?

啟動應用程式會提供以下堆疊追蹤/崩潰資料:

Jul  5 11:15:08 unknown MobileNotes[777] <Error>: *** Terminating app due to uncaught exception 'NSObjectInaccessibleException', reason: 'CoreData could not fulfill a fault for '0x14e620 <x-coredata://77E0D73C-42FB-4F50-A269-6459285C2296/Note/p180>''
    *** First throw call stack:
    (0x357dc88f 0x37b83259 0x361264f3 0x36125d5b 0x36125c0b 0x20dc3 0x33270efb 0x3326ffd9 0x3326f763 0x34723 0x1a103 0x33213f37 0x3573b1fb 0x3260baa5 0x3260b6bd 0x3260f843 0x3260f57f 0x32637911 0x326378e3 0x3325510f 0x33242b33 0x33210ac3 0x33210567 0x3320ff3b 0x373cf22b 0x357b0523 0x357b04c5 0x357af313 0x357324a5 0x3573236d 0x3324186b 0x3323ecd5 0x15e67 0x1564c)
Jul  5 11:15:08 unknown UIKitApplication:com.apple.mobilenotes[0xf629][777] <Notice>: terminate called throwing an exception
Jul  5 11:15:09 unknown ReportCrash[778] <Notice>: Formulating crash report for process MobileNotes[777]
Jul  5 11:15:09 unknown com.apple.launchd[1] <Warning>: (UIKitApplication:com.apple.mobilenotes[0xf629]) Job appears to have crashed: Abort trap: 6
> 
Jul  5 11:15:09 unknown SpringBoard[15] <Warning>: Application 'Notes' exited abnormally with signal 6: Abort trap: 6
Jul  5 11:15:09 unknown ReportCrash[778] <Notice>: Saved crashreport to /var/mobile/Library/Logs/CrashReporter/MobileNotes_2012-07-05-111508_braglearbgle.plist using uid: 0 gid: 0, synthetic_euid: 501 egid: 0

有關完整的崩潰日誌,請參閱這裡

答案1

假設您已越獄,您可以存取位於 /var/mobile/Library/Notes/notes.sqlite 的 Notes 資料庫。在這個資料庫中,有趣的表是 ZNOTE 和 ZNOTEBODY。 ZNOTE 表包含註解的標題(您在註解中鍵入的第一行)和表格檢視中顯示的簡短摘要等。 ZNOTEBODY 表包含 HTML 格式的註解正文。

假設該資料庫已損壞,我建議備份該資料庫,然後將其刪除。如果資料庫不存在,應用程式通常會重新建立資料庫,但並非總是如此(因此我關於進行備份的聲明)。

如果這仍然無法解決您的問題,您可以嘗試手動編輯資料庫,找到資料庫的新副本(可能來自相應的 ipsw),或者,如果所有其他方法都失敗,則進行還原。只要您備份該資料庫,您仍然可以透過查看 ZNOTEBODY 表來讀取註解。每行都包含在 a 中<div>並以 結尾<br>

相關內容