Search code examples
iosios6automatic-ref-countingreference-counting

ios - 'autorelease is unavailable' errors and 'ARC forbids explicit message send of autorelease' errors


I had an app that was working just fine. And then I tried to embed the navigation controller into a tabbarcontroller and next thing I know I started getting these errors during compiling.

Would anyone know why these happen? Did some setting get unchecked or checked by accident?

Thanks, Alex


Solution

  • Seems your previously working code did not use ARC, now you tried to embed it into code which uses ARC ... Refactor your code using "Edit->Convert->Convert to Object-C ARC"