arc in SDK4.0 added, the combination of arc and non-arc files will be combined with the previous project.
Of course, in both cases:
1. No arc was used for his old project, but the third-party library was introduced using arc.
2. Your new project uses arc, but the introduction of the code does not use arc.
In both cases, the direct affirmation is not compiled. It can be solved by upgrading the old project to use arc, but this approach is sometimes cumbersome.
An easy way to do this is to specify whether a single file will be compiled with arc.
The method is to find the file that needs special processing in the compile source inside the build phase, plus the compile option (Compiler Flags), which is different for both cases.
1. For the first case, add the-FOBJC-ARC option to the source file with the arc
2. For the second case, add-fno-objc-arc
One small step per day.