0

我有一个使用了一年多的应用程序,它一直运行良好。突然间,一旦出现键盘,它就开始在模拟器中崩溃。键盘从哪里出现并不重要。该应用程序仍然可以在我的设备上运行。

我正在使用 Xcode 4.4 和 iOS 5.1。几天前我确实在一个单独的目录中安装了 Xcode 4.5,也许这就是导致问题的原因。

这是我在控制台上遇到的错误,有人有解决方案吗?

Unable to load persistent store at URL 'file://localhost/Users/myusername/Library/Application%20Support/iPhone%20Simulator/5.1/Library/Keyboard/UserDictionary.sqlite' ({
metadata =     {
    NSPersistenceFrameworkVersion = 419;
    NSStoreModelVersionHashes =         {
        UserDictionaryEntry = <f0c9025b 602122f9 37a4e274 bdaacec1 b9a66f83 fca5c43b bed5e80a 6baee338>;
    };
    NSStoreModelVersionHashesVersion = 3;
    NSStoreModelVersionIdentifiers =         (
        ""
    );
    NSStoreType = SQLite;
    NSStoreUUID = "9CF44513-5DA9-4BB7-B88E-9C705D1874A5";
    "_NSAutoVacuumLevel" = 2;
};
reason = "The model used to open the store is incompatible with the one used to create the store";
})
2012-09-14 19:10:05.988 MyAppName[62761:4d13] Unable to load persistent store at URL     'file://localhost/Users/myusername/Library/Application%20Support/iPhone%20Simulator/5.1/Library/Keyboard/UserDictionary.sqlite' ({
metadata =     {
    NSPersistenceFrameworkVersion = 419;
    NSStoreModelVersionHashes =         {
        UserDictionaryEntry = <f0c9025b 602122f9 37a4e274 bdaacec1 b9a66f83 fca5c43b bed5e80a 6baee338>;
    };
    NSStoreModelVersionHashesVersion = 3;
    NSStoreModelVersionIdentifiers =         (
        ""
    );
    NSStoreType = SQLite;
    NSStoreUUID = "9CF44513-5DA9-4BB7-B88E-9C705D1874A5";
    "_NSAutoVacuumLevel" = 2;
};
reason = "The model used to open the store is incompatible with the one used to create the store";
})
2012-09-14 19:10:05.990 MyAppName[62761:4d13] Unable to load persistent store at URL 'file://localhost/Users/myusername/Library/Application%20Support/iPhone%20Simulator/5.1/Library/Keyboard/UserDictionary.sqlite' ({
metadata =     {
    NSPersistenceFrameworkVersion = 419;
    NSStoreModelVersionHashes =         {
        UserDictionaryEntry = <f0c9025b 602122f9 37a4e274 bdaacec1 b9a66f83 fca5c43b bed5e80a 6baee338>;
    };
    NSStoreModelVersionHashesVersion = 3;
    NSStoreModelVersionIdentifiers =         (
        ""
    );
    NSStoreType = SQLite;
    NSStoreUUID = "9CF44513-5DA9-4BB7-B88E-9C705D1874A5";
    "_NSAutoVacuumLevel" = 2;
};
reason = "The model used to open the store is incompatible with the one used to create the store";
4

2 回答 2

2

我在这里找到了答案:

XCode 4.3 无法加载持久存储 UserDictionary.sqlite

我只需要重置模拟器。该问题可能是由安装 Xcode 4.5 引起的。

于 2012-09-15T00:09:52.007 回答
0

This work for me. You can also fixed this problem by selecting and clicking 'iOS Simulator' -> Reset Content and Settings.

于 2013-01-25T06:26:08.433 回答