iOS5をサポートするプロジェクトをiOS4に変換していますが、いくつか問題があります。それはクラスAFNetworking
を使用し、私の問題は次の行にあります:
iOS 5 :(うまく機能します)
self.responseJSON =[NSJSONSerialization JSONObjectWithData:self.responseData options:0 error:&error];
iOS 4ではサポートされていないためNSJSONSerialization
、私はこれを使用しています。
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)