开发者

missing required architecture i386 in file. Error

开发者 https://www.devze.com 2023-03-18 06:21 出处:网络
I am using a code to make 3d Rotation CATransform3DMakeRotation(M_PI, 0.0f, 0.0f, 1.0f) : If I remove this line from my proj开发者_开发问答ect it works perfectly. But if I add it an error comes i.e

I am using a code to make 3d Rotation

CATransform3DMakeRotation(M_PI, 0.0f, 0.0f, 1.0f) :

If I remove this line from my proj开发者_开发问答ect it works perfectly. But if I add it an error comes i.e

Undefined symbols for architecture i386: "_CATransform3DMakeRotation", referenced

ld: symbol(s) not found for architecture i386 collect2: ld returned 1 exit status

What Should I do to make it work..


I think you have to import QuartzCore framework (choose your application target and then under "link binary with libraries" add that framework)

0

精彩评论

暂无评论...
验证码 换一张
取 消