我将支持IOS 5到iOS 4的项目,并有一定的困难。 它使用类AFNetworking
,我的问题是在下面一行:
iOS 5中:(伟大工程)
self.responseJSON =[NSJSONSerialization JSONObjectWithData:self.responseData options:0 error:&error];
由于NSJSONSerialization
没有在iOS 4的支持,我用这个:
self.responseJSON = AFJSONDecode(self.responseData, &error);
是什么让我的错误:
Undefined symbols for architecture i386:
"_AFJSONDecode", referenced from:
-[AFJSONRequestOperation responseJSON] in AFJSONRequestOperation.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)