Reputation: 31
I am using Restkit for webservice client in ios application..i used cocoapods to install the restkit in my sample project. But it is giving semantic issue, and parsing errors when i am building.
I used this link to install Restkit using cocoapods
https://github.com/RestKit/RestKit/wiki/Installing-restkit-v0.20.x-via-cocoapods
errors are like this
/RKHTTPUtilities.m:69:40: error: unexpected '@' in program
statusCodesToNamesDictionary = @{
/ObjectMapping/RKHTTPUtilities.m: error: unexpected '@' in program
return [RKStatusCodesToNamesDictionary() objectForKey:@(statusCode)];
^
Upvotes: 1
Views: 392
Reputation: 4285
It looks like you're compiling with an older version of Xcode that doesn't support object literals. You can fix this by either updating Xcode, or using an older version of restkit in your podfile like pod "restkit", "~>0.10.3"
.
Upvotes: 1