【问题标题】:juggernaut cocoa for iphone breaks with Apple Mach-O Linker (id) Erroriphone 的主宰可可因 Apple Mach-O 链接器 (id) 错误而中断
【发布时间】: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)

感谢回复

【问题讨论】:

    标签: iphone cocoa xcode4.3 juggernaut


    【解决方案1】:

    当我看到这个错误时:

     ld: symbol(s) not found for architecture i386
    

    这告诉我 JuggernautClient.m 没有包含在构成您的应用程序目标的文件集合中。转到 JuggernautClient.m 的文件检查器并将其设置为包含在您的构建中。

    这是一张稍有不同的图片,但我是从a related question's answer I also gave. 中挑选出来的

    【讨论】:

      猜你喜欢
      • 2011-10-09
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-02-26
      • 2011-12-06
      • 1970-01-01
      • 2014-04-06
      相关资源
      最近更新 更多