【问题标题】:Failed to run application in Xcode无法在 Xcode 中运行应用程序
【发布时间】:2015-02-09 02:02:14
【问题描述】:

我试图在 Xcode 中运行我的第一个应用程序。但是,我收到以下错误。我不知道如何解决它。我将不胜感激。

 2015-02-08 19:48:05.540 App[6029:512830] CoreData: error: -addPersistentStoreWithType:SQLite configuration:(null) URL:file:///Users/xyz/Library/Developer/CoreSimulator/Devices/E8DB0A0F-1F32-453B-84E5-04F6FACEA21B/data/Containers/Data/Application/42230FDC-4FB5-40F2-A3AE-1B35251D0FBF/Documents/Wag.sqlite options:(null) ... returned error Error Domain=NSCocoaErrorDomain Code=134100 "The operation couldn’t be completed. (Cocoa error 134100.)" UserInfo=0x7fe4a0c36fe0 {metadata={
NSPersistenceFrameworkVersion = 519;
NSStoreModelVersionHashes =     {
    Event = <5431c046 d30e7f32 c2cc8099 58add1e7 579ad104 a3aa8fc4 846e97d7 af01cc79>;
};
NSStoreModelVersionHashesVersion = 3;
NSStoreModelVersionIdentifiers =     (
    ""
);
NSStoreType = SQLite;
NSStoreUUID = "9CDA976B-9D96-47E7-97C0-A6FA3A8002C2";
"_NSAutoVacuumLevel" = 2;
}, reason=The model used to open the store is incompatible with the one used to create the store} with userInfo dictionary {
metadata =     {
    NSPersistenceFrameworkVersion = 519;
    NSStoreModelVersionHashes =         {
        Event = <5431c046 d30e7f32 c2cc8099 58add1e7 579ad104 a3aa8fc4 846e97d7 af01cc79>;
    };
    NSStoreModelVersionHashesVersion = 3;
    NSStoreModelVersionIdentifiers =         (
        ""
    );
    NSStoreType = SQLite;
    NSStoreUUID = "9CDA976B-9D96-47E7-97C0-A6FA3A8002C2";
    "_NSAutoVacuumLevel" = 2;
};
reason = "The model used to open the store is incompatible with the one used to create the store";
}
2015-02-08 19:48:05.541 Wag[6029:512830] Unresolved error Error Domain=YOUR_ERROR_DOMAIN Code=9999 "Failed to initialize the application's saved data" UserInfo=0x7fe4a0c18410 {NSLocalizedFailureReason=There was an error creating or loading the application's saved data., NSLocalizedDescription=Failed to initialize the application's saved data, NSUnderlyingError=0x7fe4a0c37060 "The operation couldn’t be completed. (Cocoa error 134100.)"}, {
NSLocalizedDescription = "Failed to initialize the application's saved data";
NSLocalizedFailureReason = "There was an error creating or loading the application's saved data.";
NSUnderlyingError = "Error Domain=NSCocoaErrorDomain Code=134100 \"The operation couldn\U2019t be completed. (Cocoa error 134100.)\" UserInfo=0x7fe4a0c36fe0 {metadata={\n    NSPersistenceFrameworkVersion = 519;\n    NSStoreModelVersionHashes =     {\n        Event = <5431c046 d30e7f32 c2cc8099 58add1e7 579ad104 a3aa8fc4 846e97d7 af01cc79>;\n    };\n    NSStoreModelVersionHashesVersion = 3;\n    NSStoreModelVersionIdentifiers =     (\n        \"\"\n    );\n    NSStoreType = SQLite;\n    NSStoreUUID = \"9CDA976B-9D96-47E7-97C0-A6FA3A8002C2\";\n    \"_NSAutoVacuumLevel\" = 2;\n}, reason=The model used to open the store is incompatible with the one used to create the store}";
 }

【问题讨论】:

  • 请在您的问题中添加导致此错误的实际代码。
  • 我认为它与xcdatamodel有关。但是,我不知道如何解决这个问题。
  • 没有一些代码,错误无法理解。使用一些断点来找出在代码中产生此错误的位置。

标签: ios xcode mobile


【解决方案1】:

如果您在安装应用后编辑您定义的模型,可能会导致此崩溃。尝试删除您的应用,然后重新安装并再次朗姆酒。

【讨论】:

猜你喜欢
  • 2012-06-22
  • 2014-11-07
  • 2014-12-16
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2017-01-18
  • 2014-10-25
相关资源
最近更新 更多