AFNetworking/AFNetworking — Issue #159: Can't find JSONKit when compiling into static library.
Author: kgn
Created: 2011-12-26 01:30:50+00:00
State: open

Hey guys,

I'm working on a project that compiles JSONKit and AFNetworking into a framework for the Mac and static library for iOS. The framework is working great but the static library always returns `nil` because `[data respondsToSelector:_JSONKitSelector]` is false.

There is something I've obviously missed in setting up my static library, could anyone provide any tips on how to get this setup working so AFNetworking can find JSONKit in a static library environment?

Here is the project: [Spectttator](https://github.com/kgn/Spectttator). The example iOS project demonstrates the problem, it works under iOS 5 because `NSJSON` is used, but compiling for earlier versions get no results.

Dave