2011-10-16 50 views
2

我試圖讓MGTwitterEngine爲iPhone SDK工作。但得到以下錯誤MGTwitterEngine yajl error

Undefined symbols for architecture i386: 
    "_yajl_alloc", referenced from: 
     -[MGTwitterYAJLParser initWithJSON:delegate:connectionIdentifier:requestType:responseType:URL:deliveryOptions:] in MGTwitterYAJLParser.o 
    "_yajl_parse", referenced from: 
     -[MGTwitterYAJLParser initWithJSON:delegate:connectionIdentifier:requestType:responseType:URL:deliveryOptions:] in MGTwitterYAJLParser.o 
    "_yajl_get_error", referenced from: 
     -[MGTwitterYAJLParser initWithJSON:delegate:connectionIdentifier:requestType:responseType:URL:deliveryOptions:] in MGTwitterYAJLParser.o 
    "_yajl_free_error", referenced from: 
     -[MGTwitterYAJLParser initWithJSON:delegate:connectionIdentifier:requestType:responseType:URL:deliveryOptions:] in MGTwitterYAJLParser.o 
    "_yajl_free", referenced from: 
     -[MGTwitterYAJLParser initWithJSON:delegate:connectionIdentifier:requestType:responseType:URL:deliveryOptions:] in MGTwitterYAJLParser.o 
ld: symbol(s) not found for architecture i386 
collect2: ld returned 1 exit status 

任何想法?預先感謝任何幫助!

回答

0

在您的構建目標中,您需要排除名稱包含「YAJL」的文件。

如果您使用的是Xcode 4,應該可以在您的目標的「構建階段」中的「編譯源代碼」下進行訪問。

+0

謝謝它的作品! –