Trying to setup and get going with the RestKit library for a cocoa project (NOT iOS) and have followed the instructions precisely at RestKit Installation on Xcode 4.x as a Git Submodule
The issue now is when I try and run and I get the following issue inside RKObjectManager when RestKit tries to compile for the first time:
defaultMappingQueue = dispatch_queue_create("org.restkit.ObjectMapping", DISPATCH_QUEUE_SERIAL);
Undeclared identifier ‘DISPATCH_QUEUE_SERIAL’ ?!
Any ideas what may be causing this? I’m linking all the correct libraries to the target as stated in the instructions.
DISPATCH_QUEUE_SERIALis only defined on the OS X 10.7+/iOS 5.0+ SDKs. If you’re building with an older SDK, you can passNULLfor the second parameter todispatch_queue_create(). (Private concurrent queues won’t work on older OSs, though.)