【问题标题】:App crashes in simulator when ever keyboard is presented出现键盘时应用程序在模拟器中崩溃
【发布时间】:2012-09-08 03:04:48
【问题描述】:

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

我正在使用 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";

【问题讨论】:

    标签: ios xcode ios-simulator uikeyboard xcode4.4


    【解决方案1】:

    我在这里找到了答案:

    XCode 4.3 Unable to load persistent store UserDictionary.sqlite

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

    【讨论】:

      【解决方案2】:

      这对我有用。您也可以通过选择并单击“iOS 模拟器”-> 重置内容和设置来解决此问题。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2011-03-20
        • 2022-01-06
        • 1970-01-01
        • 2011-10-11
        相关资源
        最近更新 更多