In iOS programming, if the member variable is an object, we need to manage the member variable memory, otherwise it will cause a memory leak. That is, we are going to do a manual memory release of the member variables.
Obviously, it's the arc problem. Error reason: the "use Automatic Reference counting" option was selected when the project was created, but the release method of the object was called. What is arc? ARC is a new feature of iOS 5, called arc (Automatic referencecounting). Simply put, it is the code that automatically joins the Retain/release, and the code that originally needed to manually add a reference count to handle memory management can be automatically completed by the compiler. This mechanism is started in iOS 5/mac OS X 10.7 and can be used with Xcode4.2. The simple understanding of arc is that by specifying the syntax, the compiler (LLVM3.0) automatically generates the reference count of the instance when the code is compiled to manage part of the code. One thing, ARC is not a GC, it's just a code static analysis (Staticanalyzer) tool.
WORKAROUND: Select the project name to be selected, double-click, and enter Build setting
Change the middle objective-c Automatic Reference counting to No
OC in ARC forbids explicit message send of release error