尝试使用 iOS 本机 API 连接到 Worklight 时,我在 Xcode 中遇到错误:
[ERROR] Worklight: +[WLCookieManager persistentStoreCoordinator]:326::Unresolved error creating persistent store Error Domain=NSCocoaErrorDomain Code=134130 "The operation couldn’t be completed. (Cocoa error 134130.)" UserInfo=0x1e59d0d0 {URL=/iPhone%20Simulator/6.1/Applications/2C2E0482-7F42-4574-B998-A9FB5479F4B1/Library/Application%20Support/Cookies.sqlite, metadata={
NSPersistenceFrameworkVersion = 419;
NSStoreModelVersionHashes = {
Cookie = <3c2e440d 9fb3ea81 60146cf8 2bcb8ffe 10b2df20 0d907eea 018c6ade eeefb9c7>;
UserDictionaryEntry = <f0c9025b 602122f9 37a4e274 bdaacec1 b9a66f83 fca5c43b bed5e80a 6baee338>;
};
NSStoreModelVersionHashesVersion = 3;
NSStoreModelVersionIdentifiers = (
""
);
NSStoreType = SQLite;
NSStoreUUID = "0F344BFF-833C-4009-9867-13973A5291F1";
"_NSAutoVacuumLevel" = 2;
}, reason=Can't find model for source store}, {
URL = "file:///iPhone%20Simulator/6.1/Applications/2C2E0482-7F42-4574-B998-A9FB5479F4B1/Library/Application%20Support/Cookies.sqlite";
metadata = {
NSPersistenceFrameworkVersion = 419;
NSStoreModelVersionHashes = {
Cookie = <3c2e440d 9fb3ea81 60146cf8 2bcb8ffe 10b2df20 0d907eea 018c6ade eeefb9c7>;
UserDictionaryEntry = <f0c9025b 602122f9 37a4e274 bdaacec1 b9a66f83 fca5c43b bed5e80a 6baee338>;
};
NSStoreModelVersionHashesVersion = 3;
NSStoreModelVersionIdentifiers = (
""
);
NSStoreType = SQLite;
NSStoreUUID = "0F344BFF-833C-4009-9867-13973A5291F1";
"_NSAutoVacuumLevel" = 2;
};
reason = "Can't find model for source store";
}
当我尝试调用此行时会发生这种情况:
[[WLClient sharedInstance] wlConnectWithDelegate:connectListener];
它工作正常,我能够毫无问题地连接到我的 Worklight 服务器,但现在它一直抛出此错误。我所做的唯一更改是尝试从应用程序中显示一个对话框。还原此更改后,我仍然收到错误消息。