This probably something really simple, but I have never used CAShapeLayers before, I imported this at the top:
import < QuartzCore/QuartzCore.h >
And the compiler is not complaining, but the linker is 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 am using Xcode 4.2 and building for iPhone iOS 4.3.
Add QuartzCore.framework to your linked libraries under the target's Build Phases.
CAShapeLayer is a part of the QuartzCore framework, so you need to link that to your Xcode project in order to use it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With