I'm using Xcode 5.1.1 and AppCode 2.5.2 to develop an iOS 7 application. My project uses a static library which includes this line:
NSData* data = [NSJSONSerialization dataWithJSONObject:dict options:nil error:&err];
When I use simulator, there's no problem with both IDEs. However I get something weird when debug deploying to device. Xcode compiles it nicely without warning (have to say that I did not updated project to latest recommended settings) while AppCode returns me error on that line.
How is this possible? I know that AppCode uses xcodebuild
but I do now know how this differs from the Xcode compiler. Moreover I would know if there's some project setting that allows Xcode to stop on that kind of lines.