I am trying to compile old iPhone application project using new LLVM 3.0 compiler. I am getting this error:
Automatic Reference Counting Issue: cast of C pointer type 'CGColorRef' (aka 'struct CGColor *') to Objective-C pointer type 'id' requires a bridged cast [4]
for code:
UIColor *color1, *color2, *color3, *color4;
....
NSArray *colors = [NSArray arrayWithObjects:(id)color1.CGColor, color2.CGColor, color3.CGColor, nil];
This code compiles without problems in older LLVM GCC 4.2 compiler. What is the cause of that? What are the most important things to learn when migrating to the LLVM 3.0 compiler?