What does “Receiver type ‘CALayer’ for instance message is a forward declaration” mean here?
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>