GYBootingProtection icon indicating copy to clipboard operation
GYBootingProtection copied to clipboard

delete Library Directory maybe cause NSUserDefault damage

Open xiaoshaogg opened this issue 8 years ago • 7 comments

delete Library Directory maybe cause NSUserDefault damage

xiaoshaogg avatar Apr 14 '17 03:04 xiaoshaogg

any update?

luoqisheng avatar Jul 12 '18 08:07 luoqisheng

Thanks for report. Would you provide any detail information or demo project about this?

liuslevis avatar Jul 12 '18 08:07 liuslevis

i'm using SwiftyUserDefaults, and after deleting all dirs, NSUserDefault can not work

luoqisheng avatar Jul 12 '18 08:07 luoqisheng

You are free to customize what to delete.

Making it not to delete library dir may solve your problem.

liuslevis avatar Jul 12 '18 09:07 liuslevis

Yes, but userdefault was the most widely used . is there any other solution to clear all dirty data cached

luoqisheng avatar Jul 12 '18 09:07 luoqisheng

Guess SwiftyUserDefaults rely on some folders under Library Directory. You need to find out what folder it is, and avoid to delete these folder.

liuslevis avatar Jul 12 '18 09:07 liuslevis

The problem still exists even when we use NSUserDefaults

luoqisheng avatar Jul 12 '18 11:07 luoqisheng