I'm converting a project that supports ios 5 to ios 4 and having some difficulties.
It uses the class AFNetworking
and my problem is in the following line:
iOS 5: (works great)
self.responseJSON =[NSJSONSerialization JSONObjectWithData:self.responseData options:0 error:&error];
Because NSJSONSerialization
isn't supported in iOS 4 I'm using this:
self.responseJSON = AFJSONDecode(self.responseData, &error);
What gives me the 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)