Search code examples
objective-ciosxcodedebuggingxcode4

What are ARC restrictions, and how can I remove them?


I just downloaded an Xcode project, and I get all these errors about "ARC Restrictions." What are these, and how can I remove them?


Solution

  • There are basically two versions of memory management in objective-c. ARC and... well, "Not ARC" :-) You probably downloaded a project, which doesn't use ARC already. Simplest way of resolving your problem is to instruct the compiler to treat your sources as "Not ARC". Explained here.

    And here is a good tutorial that should get you started with ARC.