SDURLCache icon indicating copy to clipboard operation
SDURLCache copied to clipboard

ARC forbids explicit message send of 'release'

Open nfs3250 opened this issue 12 years ago • 2 comments

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' Screen Shot 2013-04-04 at 1 20 57 PM

Can you help me with this ? Thanks

nfs3250 avatar Apr 04 '13 07:04 nfs3250

That needs to be conditionalized for iOS6 dispatch object changes. Feel free to submit a pull request or lower your target to iOS5.

steipete avatar Apr 04 '13 07:04 steipete

Thanks for reply. I am newbie in ARC & GitHub Sorry. Can you tell me what should be done in order to resolve this ?

nfs3250 avatar Apr 04 '13 08:04 nfs3250