Solution: 'release' is unavailable: not available in automatic reference counting mode - iphone | Coding Cluster - using asp.net, c#, mvc 4, iphone, php, ios, javascript, in asp.net mvc 3 & more
 

Solution: 'release' is unavailable: not available in automatic reference counting mode - iphone

Saturday

iphone: 'retain , release' is unavailable: not available in automatic reference counting mode:
                                                                              When I working with iphone memory leak related issues in iOS 4 and building projects in XCode 4.2.x,  I've encounter the build error like "'release' is unavailable: not available in automatic reference counting mode". And I got the following solution from the net.
                                                                           The default setting for iOS projects have a build setting named "Objective-C Automatic Reference Counting" set to 'Yes'. Simply set this to 'No' and the reference counting error will go away.(see the image bellow).




You have another one option...

Remove all retain release  autorelease NSAutoReleasePools and retainCount calls, since ARC makes them for you. With the exception of NSAutoReleasePools They have been replaced by @autorelease{}.

The second option has been automated by apple.

0 comments:

Post a Comment

Share your thoughts here...

 
 
 

RECENT POSTS

Boost

 
Blogger Widgets