Reputation: 197
I am using a project without ARC. I am trying to install RestKit on to the project. I tried following instructions given in the following links: https://github.com/RestKit/RestKit/blob/master/README.md http://www.raywenderlich.com/13097/intro-to-restkit-tutorial
But I am getting following errors
The errors happen on following lines: 1. Unexpected @ in the program:
NSArray *attributeNames = [userInfoValue isKindOfClass:[NSArray class]] ? userInfoValue : @[ userInfoValue ];
Is this a valid Obj C syntax first of all.
NSAttributeDescription *attribute = [entity attributesByName][attributeName];
attributeName is a CFStringRef
Has any one faced these issues. Please inform me the fix.
Upvotes: 0
Views: 320
Reputation: 6617
This is do to the use of Objective-C literal subscript access to the attribute property.
What version of Xcode are you building against and with what base SDK? Under Xcode 4.5.2 with a base SDK of 6.0 it compiles without an issue.
Upvotes: 1