iphone 的主宰可可因 Apple Mach-O 链接器 (id) 错误而中断
Posted
技术标签:
【中文标题】iphone 的主宰可可因 Apple Mach-O 链接器 (id) 错误而中断【英文标题】:juggernaut cocoa for iphone breaks with Apple Mach-O Linker (id) Error 【发布时间】:2012-06-21 23:58:58 【问题描述】:我尝试使用剑圣可可:
https://github.com/fpotter/juggernaut-cocoa
将此行添加到我的代码中:
JuggernautClient *client = [[JuggernautClient alloc] initWithHost:@"myhost" port:1740];
[client subscribe:[NSString stringWithFormat:@"/reports/%@/new", current_unit.unit_id]];
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(didReceiveMessage:)
name:JuggernautDidReceiveMessageNotification
object:nil];
我收到以下错误:
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_JuggernautClient", referenced from:
objc-class-ref in MapViewController.o
"_JuggernautDidReceiveMessageNotification", referenced from:
-[MapViewController viewDidLoad] in MapViewController.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
感谢回复
【问题讨论】:
【参考方案1】:当我看到这个错误时:
ld: symbol(s) not found for architecture i386
这告诉我 JuggernautClient.m 没有包含在构成您的应用程序目标的文件集合中。转到 JuggernautClient.m 的文件检查器并将其设置为包含在您的构建中。
这是一张稍有不同的图片,但我是从a related question's answer I also gave. 中挑选出来的
【讨论】:
以上是关于iphone 的主宰可可因 Apple Mach-O 链接器 (id) 错误而中断的主要内容,如果未能解决你的问题,请参考以下文章
模块RNPaypalWrapper错误Apple-Mach-O链接器反应本机错误