What does "Receiver type 'CALayer' for instance message is a forward declaration" mean here?

Solution 1:

I was able to duplicate your problem. This is what fixed it for me.

Add QuartzCore.framework to your project and this line to your .m file.

#import <QuartzCore/QuartzCore.h>