There is a lot of code out in the wild that uses automatic reference counting (ARC). You'll see this error when trying to build such a project with Xcode: "NSAutoreleasePool is unavailable"
You can disable ARC on an existing project in build settings.
- Click on the project, in the left hand window of Xcode.
- Select the target.
- Select the Build Settings tab at the top.
- Search for "Objective-C Automatic Reference Counting"
- Change to yes or no depending on what you want.
No comments:
Post a Comment