Image Unit template broken in Xcode 4.2?

1 view
Skip to first unread message

Ben Syverson

unread,
Nov 14, 2011, 3:29:48 PM11/14/11
to Quartz Dev List
Hi all,

I just opened up Xcode 4.2 in Lion and created a new Image Unit from the template. Compiling it fails with errors in runtime.h:
Automatic Reference Counting Issue
Pointer to non-const type 'Protocol *' with no explicit ownership

Switching the compiler from Apple LLVM 3.0 to LLVM GCC 4.2 solves the problem.

Obviously a bug, but does anyone know what causes it?

Ben


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartz-dev mailing list (Quart...@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartz-dev/quartz-dev-garchive-50095%40googlegroups.com

This email sent to quartz-dev-g...@googlegroups.com

Kyle Sluder

unread,
Nov 14, 2011, 3:53:55 PM11/14/11
to Ben Syverson, Quartz Dev List
On Mon, Nov 14, 2011 at 12:29 PM, Ben Syverson <b...@bensyverson.com> wrote:
> Hi all,
>
> I just opened up Xcode 4.2 in Lion and created a new Image Unit from the template. Compiling it fails with errors in runtime.h:
> Automatic Reference Counting Issue
> Pointer to non-const type 'Protocol *' with no explicit ownership
>
> Switching the compiler from Apple LLVM 3.0 to LLVM GCC 4.2 solves the problem.
>
> Obviously a bug, but does anyone know what causes it?

The message "Automatic Reference Counting Issue" should be a clear
indicator that the problem is that the template hasn't been updated to
comply with ARC. If you turn off ARC in the compiler settings, or fix
the code so it's ARC-compliant, the error will go away.

--Kyle Sluder

Reply all
Reply to author
Forward
0 new messages