简体   繁体   中英

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 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM