Reputation: 1158
I am getting an error in Xcode when trying to connect to Worklight using the iOS native API:
[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";
}
This happens when I try to call this line:
[[WLClient sharedInstance] wlConnectWithDelegate:connectListener];
It was working fine and I was able to connect to my Worklight server without any issue, but now it keeps throwing this error. The only change I made was to try and show a dialog from the application. After reverting this change I still get the error.
Upvotes: 0
Views: 467
Reputation: 3027
This happens when all of the files required aren't built into your app bundle. In the build target for your application make sure that all the (non-source) files that are part of the worklight native SDK appear in the 'Copy Files' section. Here is a link to the docs
Upvotes: 1
Reputation: 761
Did you changed something in your web app that the application is now trying to save a cookie? Or getting one passed to it. It looks like WL is trying to store a cookie and that's not going well. Can you isolate the part of the app where this is triggered? Does it compile. Take a look at how this code is probably being used:
http://mobile.tutsplus.com/tutorials/iphone/core-data_schema-versioning-and-lightweight-migrations/ http://46424.com/question/133999#.USJnGVprP4Y
Upvotes: 0