我正在尝试让MGTwitterEngine适用于iPhone SDK。但是出现以下错误

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

任何想法?在此先感谢您的帮助!

最佳答案

在构建目标中,您需要排除名称包含“YAJL”的文件。

如果您使用的是Xcode 4,则可以在目标的“构建阶段”中的“编译源代码”下进行访问。

10-08 04:25