1.禁用 ARC (Automatic Reference Counting)
Project Info -> Apple LLVM compiler 3.0 - Language -> Objective-C Automatic Referencing Counting, 设置为NO即可。
If you are using Xcode 4.2 or later, new projects are set to use Automatic Reference Counting.
Automatic Reference Counting (ARC) is a compiler-level feature that simplifies the process of managing object lifetimes (memory management) in Cocoa applications. There’s no need to know any more about it now, but later you should read Programming With ARC Release Notes.
否则会出现如下的编译错误提示: