XCode 4.3 Unable to load persistent store UserDictionary.sqlite

本秂侑毒 提交于 2019-11-28 18:29:13

问题


I have been working on an iOS app for some time, all of a sudden I am getting the following crash every time I run the app in the iOS 5.1 Simulator.

The App does not use Core Data and I am not sure what brought this about.

I have deleted the app from the simulator, done Clean, and a rebuild but nothing seems to help.

Unable to load persistent store at URL 'file://localhost/Users/jcottrell/Library/Application%20Support/iPhone%20Simulator/5.1/Library/Keyboard/UserDictionary.sqlite' ({
    metadata =     {
        NSPersistenceFrameworkVersion = 407;
        NSStoreModelVersionHashes =         {
            UserDictionaryEntry = <f0c9025b 602122f9 37a4e274 bdaacec1 b9a66f83 fca5c43b bed5e80a 6baee338>;
        };
        NSStoreModelVersionHashesVersion = 3;
        NSStoreModelVersionIdentifiers =         (
            ""
        );
        NSStoreType = SQLite;
        NSStoreUUID = "43DABF34-7F7E-4FE9-B78D-8AF64292A967";
        "_NSAutoVacuumLevel" = 2;
    };
    reason = "The model used to open the store is incompatible with the one used to create the store";
})

回答1:


I have fixed the problem. I clicked 'iOS Simulator' -> Reset Content and Settings




回答2:


Delete the file you mentioned: /Users/jcottrell/Library/Application%20Support/iPhone%20Simulator/5.1/Library/Keyboard/UserDictionary.sqlite and the accompanying plist. This is a simulator-only problem, so you can ignore it.



来源:https://stackoverflow.com/questions/11040681/xcode-4-3-unable-to-load-persistent-store-userdictionary-sqlite

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!