我尝试使用剑圣可可:
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)
感谢您的回复
