zoukankan      html  css  js  c++  java
  • Core Dataeasy出现的错误

    1、2015-08-24 15:52:17.674 Tasks[3189:144763] CoreData: error: -addPersistentStoreWithType:SQLite configuration:(null) URL:file:///Users/zhumin/Library/Developer/CoreSimulator/Devices/09E156EA-B44B-4CCA-9E32-9286D332DDF0/data/Containers/Data/Application/4E9E83E8-DA35-4AE8-81FD-EBD9C09D17D6/Documents/Tasks.sqlite options:(null) ... returned error Error Domain=NSCocoaErrorDomain Code=134100 "The operation couldn’t be completed. (Cocoa error 134100.)" UserInfo=0x7fc84366ed60 {metadata={
        NSPersistenceFrameworkVersion = 519;
        NSStoreModelVersionHashes =     {
            Event = <5431c046 d30e7f32 c2cc8099 58add1e7 579ad104 a3aa8fc4 846e97d7 af01cc79>;
        };
        NSStoreModelVersionHashesVersion = 3;
        NSStoreModelVersionIdentifiers =     (
            ""
        );
        NSStoreType = SQLite;
        NSStoreUUID = "4EE0C579-E3F8-48CC-ACFF-26CBCB386C37";
        "_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 = "4EE0C579-E3F8-48CC-ACFF-26CBCB386C37";
            "_NSAutoVacuumLevel" = 2;
        };
        reason = "The model used to open the store is incompatible with the one used to create the store";

    }

    1、ps:上面的错误方法是相应的数据库没有创建成功。这个要注意我们在写属性指的设置的时候要相应。


    2015-08-24 15:52:17.675 Tasks[3189:144763] Unresolved error Error Domain=YOUR_ERROR_DOMAIN Code=9999 "Failed to initialize the application's saved data" UserInfo=0x7fc843712020 {NSLocalizedFailureReason=There was an error creating or loading the application's saved data., NSLocalizedDescription=Failed to initialize the application's saved data, NSUnderlyingError=0x7fc84366ede0 "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 couldnU2019t be completed. (Cocoa error 134100.)" UserInfo=0x7fc84366ed60 {metadata={     NSPersistenceFrameworkVersion = 519;     NSStoreModelVersionHashes =     {         Event = <5431c046 d30e7f32 c2cc8099 58add1e7 579ad104 a3aa8fc4 846e97d7 af01cc79>;     };     NSStoreModelVersionHashesVersion = 3;     NSStoreModelVersionIdentifiers =     (         ""     );     NSStoreType = SQLite;     NSStoreUUID = "4EE0C579-E3F8-48CC-ACFF-26CBCB386C37";     "_NSAutoVacuumLevel" = 2; }, reason=The model used to open the store is incompatible with the one used to create the store}";
    }
    (lldb)

    2、这个出现错误的程度最高的就是:“用于打开存储的模型和用于创建存储的模型不兼容”
    ps:须要使用Core Data迁移将数据从一个数据模型迁移到另外一个模型。(这个还没有学到)
    如今解决方案:听过删除模拟器生成的app,然后再一次执行,
    强制Core Data创建兼容当前数据模型的新的数据存储。




  • 相关阅读:
    Linux Exploit系列之一 典型的基于堆栈的缓冲区溢出
    [Codeforces Round #433][Codeforces 853C/854E. Boredom]
    Educational Codeforces Round 4
    [Educational Round 3][Codeforces 609F. Frogs and mosquitoes]
    [ACM-ICPC 2018 徐州赛区网络预赛][D. Easy Math]
    Educational Codeforces Round 50
    [Codeforces Round #507][Codeforces 1039C/1040E. Network Safety]
    [Educational Round 3][Codeforces 609E. Minimum spanning tree for each edge]
    Educational Codeforces Round 3
    [Manthan, Codefest 18][Codeforces 1037E. Trips]
  • 原文地址:https://www.cnblogs.com/cynchanpin/p/7101911.html
Copyright © 2011-2022 走看看