本文介绍了链接器命令因体系结构 i386 的未定义符号而失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!
问题描述
我正在尝试做半页卷曲功能.这是我正在使用的代码:
i am trying to do the half page curl feature. This is the code I am using:
#import <QuartzCore/QuartzCore.h>
CATransition *animation = [CATransition animation];
[animation setDelegate:self];
[animation setDuration:1.0f];
[animation setTimingFunction:UIViewAnimationCurveEaseInOut];
[animation setType:(notCurled ? @"mapCurl" : @"mapUnCurl")];
[animation setRemovedOnCompletion:NO];
[animation setFillMode: @"extended"];
[animation setRemovedOnCompletion: NO];
notCurled = !notCurled;
但是我遇到以下错误
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_CATransition", referenced from:
objc-class-ref in MyMapViewController.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
"_OBJC_CLASS_$_CATransition", referenced from:
objc-class-ref in SJMapViewController.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
我该如何解决?
推荐答案
您的应用程序抱怨找不到 CATransition 符号.
your app is complaining it can not find CATransition Symbol.
您是否将 QuartzCore 框架添加到您的应用程序中?
Did you add the QuartzCore framework to your app?
如果不添加:转到您的目标设置 -> 构建阶段 -> 链接二进制文件 -> 选择 + 按钮并选择 QuartzCore.
If not add it: go to your target settings -> build phases -> link binary -> select the + button and select QuartzCore.
然后将其导入需要使用的地方:
then import it where you need to use it:
#import <QuartzCore/QuartzCore.h>
这篇关于链接器命令因体系结构 i386 的未定义符号而失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!
本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!