2012-06-19 2 views
0

Я попытался с помощью Джаггернаут какао:Джаггернаут какао для iphone порывает с Apple, Mach-O компоновщика (ID) Ошибка

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) 

благодарность за ответ

ответ

0

Когда я вижу эту ошибку:

ld: symbol(s) not found for architecture i386 

, что говорит мне JuggernautClient.m не включаются в набор файлов, что делает ваше приложение целевой. Перейдите в File Inspector для JuggernautClient.m и установите его для включения в вашу сборку.

It would look something like this:

Это немного другое изображение, но я поднял ее из a related question's answer I also gave.