Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ARC forbids explicit message send of 'release' #20

Open
nfs3250 opened this issue Apr 4, 2013 · 2 comments
Open

ARC forbids explicit message send of 'release' #20

nfs3250 opened this issue Apr 4, 2013 · 2 comments

Comments

@nfs3250
Copy link

nfs3250 commented Apr 4, 2013

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

@steipete
Copy link
Owner

steipete commented Apr 4, 2013

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

@nfs3250
Copy link
Author

nfs3250 commented Apr 4, 2013

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants