enormego / EGOCache

Fast Caching for Objective-C (iPhone & Mac Compatible)
MIT License
1.33k stars 290 forks source link

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

Closed BeiXiao closed 7 years ago

BeiXiao commented 7 years ago

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

xusion commented 7 years ago

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

buttcmd commented 7 years ago

It seems bug in SDK not from EGOCache.

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

xusion commented 7 years ago

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

xusion commented 7 years ago

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

shnhrrsn commented 7 years ago

Closing this out as it's an OS bug: https://encrypted.google.com/search?hl=en&q=%22Month%2013%20is%20out%20of%20bounds%22