Can't build iphone project in xcode with CATRansform3DMakeRotation
I need to use CATRansform3DMakeRotation function in my project, but when I try to compile I get开发者_如何学Python an build error
Undefined symbols:
"_CATransform3DMakeRotation", referenced from:
if I comment the function out the project builds fine.
Any ideas why is this happening?
Not enough to include the QuartzCore header file, you also have to right click "Frameworks", select "Add Existing Frameworks" and add "QuartzCore.framework". Problem solved :)
You need to add the Quartz Core framework to your target.
Find your main target in the left-hand Xcode "Groups and Files" pane. Double-click it, and in the "General" tab you need to hit the "+" button under the Linked Libraries. Choose "QuartzCode.framework" and hit Add.
Now build and you should be good to go.
精彩评论