jakenberg
jakenberg

Reputation: 2113

RestKit: RKClient not recognized by Xcode project

I am using/implementing RestKit into my project at the moment, and I've followed the github wiki to install everything correctly. Everything is there and working properly. The application builds and runs great. I'm just trying to make a HTTP GET request now by first setting up the RKClient, but my project doesn't seem to recognize RKClient even though I've imported the <RestKit/Restkit.h> file in the header of the file.

I'm beginning to think that the RKClient class is deprecated or something because every other class seems to be there as expected.

I've tried looking everywhere and really ensuring that I've followed the instructions to setup RestKit properly, and yet I'm still stuck on the first line!! (Initializing the RKClient).

Another possibility is that I'm doing this all wrong. I just implemented the library, so I'm just playing around with it. But if I'm not doing a HTTP GET request the right way, please guide me the right direction.

Thanks!!

Upvotes: 2

Views: 1022

Answers (1)

TheWhiteRabbit
TheWhiteRabbit

Reputation: 15768

From RestKit 0.20.x onwards RKClient is not part of RestKit. You can use HTTP Client like :

   [RKObjectManager myObjManager].HTTPClient

See This Link

Upvotes: 6

Related Questions