I've run into something odd in AppCode 2016.1.1. I don't remember this as an issue prior to the 2016 release.
If I have the following:
NSString *temp = @"test";
The temp variable gets red-flagged as non-resolvable, and code completion will not call it up.
If I prefix the declaration with const
, the flag clears and the variable is resolvable.
const NSString *temp = @"test";
Anyone know why this is? I thought NSString was inherently const
, so I shouldn't have to do this. Maybe it's a new inspection that's enforcing some code magic that I'm not familiar with.
Non-pointer variables work fine.