enormego/EGOCache

warning: Month 13 is out of bounds //In Xcode9, iOS11

BeiXiao opened this issue · 5 comments

because NSDate in _cacheInfo write to plist file
[_cacheInfo writeToFile:cachePathForKey(_directory, @"EGOCache.plist") atomically:YES];
hope fix it
Thanks

今天早上我也遇到这个问题,找了几个小时才定位到是这个库的问题。

It seems bug in SDK not from EGOCache.

Everything looks like it's working fine although i can see the log too.

注释这句[_cacheInfo writeToFile:cachePathForKey(_directory, @"EGOCache.plist") atomically:YES];就不会出现这个提示Month 13 is out of bounds。
然后作者早点修复一下。

我发现问题是在plist保存nsdate时发生的。我把保存的nsdate转为nsstring,就不会出现这个提示。但我不清楚这样做会不会出现性能上的差异。