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 的未定义符号而失败


基础教程推荐
猜你喜欢
- 如何在 iPhone 上显示来自 API 的 HTML 文本? 2022-01-01
- 在 gmail 中为 ios 应用程序检索朋友的朋友 2022-01-01
- Android:对话框关闭而不调用关闭 2022-01-01
- 如何在 UIImageView 中异步加载图像? 2022-01-01
- 当从同一个组件调用时,两个 IBAction 触发的顺序是什么? 2022-01-01
- android 应用程序已发布,但在 google play 中找不到 2022-01-01
- 如何让对象对 Cocos2D 中的触摸做出反应? 2022-01-01
- UIWebView 委托方法 shouldStartLoadWithRequest:在 WKWebView 中等效? 2022-01-01
- 如何在没有IB的情况下将2个按钮添加到右侧的UINavigationbar? 2022-01-01
- Kivy Buildozer 无法构建 apk,命令失败:./distribute.sh -m “kivy"d 2022-01-01