Linker command failed with Undefined symbols for architecture i386(链接器命令因体系结构 i386 的未定义符号而失败)
本文介绍了链接器命令因体系结构 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 的未定义符号而失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
沃梦达教程
本文标题为:链接器命令因体系结构 i386 的未定义符号而失败


猜你喜欢
- 使用自动布局向 UIScrollView 添加动态大小的视图 2022-01-01
- URL编码Swift iOS 2022-01-01
- 网上有没有好的 UIScrollView 教程? 2022-01-01
- UITextView 内容插图 2022-01-01
- 在 Iphone SDK 的导航栏上添加多个按钮 2022-01-01
- SetOnItemSelectedListener上的微调程序错误 2022-01-01
- GPS状态的广播接收器? 2022-01-01
- 类似于 Mail.app 的 iPad 模态视图控制器? 2022-01-01
- 如何在 iPhone 模拟器中重置 NSUserDefaults 数据? 2022-01-01
- Xcode 7.3 中带有 UILabel 的 UIStackView 2022-01-01