-
Notifications
You must be signed in to change notification settings - Fork 361
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
setObject not working #7
Comments
@cyril94440 that's an error reported by the system when writing the object to disk. Can you give more information? A small sample program showing the issue? What version of PINCache are you using, or even better, what is the last commit? |
Hi,
|
I am using the Parse-NSCoding repo. |
@cyril94440 The error is an error occurring when setting the file modification date. It's returned by the system. If I were debugging this, I'd put a breakpoint at the top of setFileModificationDate in PINDiskCache and see what is getting passed into setAttributes. If it's not immediately obvious what the issue is, can you paste what date and fileURL are in the case where it errors? |
Nothing strange :/ 2015-07-16 16:25:21 +0000 file:///var/mobile/Containers/Data/Application/5189A230-65E2-4DDD-927F-27817C3711AA/Library/Caches/com.pinterest.PINDiskCache.PINCacheShared/alreadyMatchUsers |
Hmm, are you using the cache from an extension or watch extension? Do you have multiple cache's with the same name? |
I am using group for sharing files with the watch extension.
|
@cyril94440 PINCache does not yet support running in multiple processes at once (i.e. phone app and watch app) yet see #2 It could indeed be the OS 'protecting' access to group files. I'm not sure :( I'd happily accept a pull request to implement the feature requested in the above github issue. |
Hi,
I am not able to save an object.
The log shows : PINDiskCache.m (303) ERROR: The operation couldn’t be completed. (Cocoa error 4.)
The text was updated successfully, but these errors were encountered: