SDURLCache
SDURLCache copied to clipboard
ARC forbids explicit message send of 'release'
I am integrating the SDURLCache with AFNetworking in my iOS app. I called below metho in appDidFinishLaunching method #pragma mark - Use Custom URL Cache
-(void)useCustomURLCache
{
SDURLCache *urlCache = [[SDURLCache alloc] initWithMemoryCapacity:1024*1024 // 1MB mem cache
diskCapacity:1024*1024*5 // 5MB disk cache
diskPath:[SDURLCache defaultCachePath]];
urlCache.ignoreMemoryOnlyStoragePolicy = YES;
[NSURLCache setSharedURLCache:urlCache];
}
I am getting below error in SDURLCache.m file
ARC forbids explicit message send of 'release'

Can you help me with this ? Thanks
That needs to be conditionalized for iOS6 dispatch object changes. Feel free to submit a pull request or lower your target to iOS5.
Thanks for reply. I am newbie in ARC & GitHub Sorry. Can you tell me what should be done in order to resolve this ?