Tag: restkit

Making a post to API with RKParams and mapping the response with RKObjectMapping using RestKit

Right now I’m doing a huge refactory to my code and I want to unify the way I’m using Restkit. I had separated ways of making RPC calls to my API server and REST calls. REST calls where made using objectMapping and RPC calls where made with the RKClient. Besides that, I’m using blocks instead […]

RestKit 0.20 — CoreData: error: Failed to call designated initializer on NSManagedObject class

I ran into a new problem that I can’t seem to find a way around… Here is my RestKit code, following the Twitter Core Data example: // // RESTKIT // // restkit object manager NSString *baseURL = @”http://test1.website.com”; RKObjectManager *objectManager = [RKObjectManager managerWithBaseURL:[NSURL URLWithString:baseURL]]; // enable activity indicator [AFNetworkActivityIndicatorManager sharedManager].enabled = YES; // managed object […]

When will completionBlock be called for dependencies in NSOperation

From the docs: The completion block you provide is executed when the value returned by the isFinished method changes to YES. Thus, this block is executed by the operation object after the operation’s primary task is finished or cancelled. I’m using RestKit/AFNetworking, if that matters. I have multiple dependencies in my NSOperation in a OperationQueue. […]

Do a simple json POST using RESTKit

I’m new to iOS development and I’m having trouble making a simple Json POST request. I have a NSDictionary containing an user and password and I want to send those values as a Json to a server and get a response. I had that working without using restkit but I can’t figure out how to […]

Integration of RestKit with Django-Tastypie

This is my first project using RestKit and I am trying to make my simple iOS application synchronize with a set of API served by a Django application using the Tastypie package. My iOS application is based on the Core Data Default Xcode application. I’m trying to retrieve objects from a simple model : Car […]

Restkit has suddenly stopped compiling today

I am using RestKit in my project since a long time, using CocoaPods. Podfile:pod ‘RestKit’, ‘~> 0.26.0′ Today, for unknown reasons, my project doesn’t compile anymore. To the best of my knowledge, i have not changed any project settings or anything. I get the error in RKObjectManager.h: /projects/iphone/Pods/Headers/Public/RestKit/Network/RKObjectManager.h:892:49: Unknown type name ‘AFNetworkReachabilityStatus’; did you mean […]

Iphone app archive – No such file or directory

I am almost ready to release my iphone app. I use restkit for consuming my webservice. When I archive, it fails with this error: cp: /Users/myusername/Library/Developer/Xcode/DerivedData/project-name-/ArchiveIntermediates/project-name/IntermediateBuildFilesPath/UninstalledProducts/include/RestKit: No such file or directory I dragged & dropped restkit into the project. It builds and works fine in debug mode. I am guessing it is unable to locate […]

Restkit on Xcode 4.5 GM does not work on iOS 6 device – file was built for archive which is not the architecture being linked

I have been using Xcode 4.4.1 and Restkit has been working perfectly on Simulator and Device. Since I upgraded to Xcode 4.5 yesterday, Restkit works fine on the Simulator, but when I try to run on my iOS 6 device, I get compile errors; d: warning: ignoring file /Developer/Xcode/DerivedData/App-Name/Build/Products/Debug-iphoneos/libRestKit.a, file was built for archive which […]

Framework (RestKit) not compatible with armv7s

When I try to archive my project for the iPhone 5 (armv7s), it comes with an error which states that RestKit is not compatible with the armv7s architecture. In this project I’m using an old version from RestKit, version 0.9. This version is by default not capable to work with armv7s. Is there a way […]

“Build for archiving” work, “Archive” does not

In my current project I am integrating RestKit library (I don’t know if it matters), trying to deliver the app for testing when I use “Archive” the compiler complains “RestKit/RestKit.h” is not found while building and running the app (even on iPhones, not just the simulator) does not show any problem at all.