IPhone how to use CAShapeLayer error using armv7

This is probably something really simple, but I had never used CAShapeLayers before, I imported this at the top:

import <QuartzCore / QuartzCore.h>

And the compiler does not complain, but the linker with this error:

  "_OBJC_CLASS_$_CAShapeLayer", referenced from:
      objc-class-ref in myClass.o
ld: symbol(s) not found for architecture armv7

What do I need to import to make this work ?, I use Xcode 4.2 and create for iPhone iOS 4.3.

+5
source share
1 answer

Add QuartzCore.framework to your linked libraries under the target build phases.

CAShapeLayer is part of the QuartzCore framework, so you need to associate this with your Xcode project in order to use it.

+27
source

All Articles