I'm getting this error message in xCode:
-[__NSCFString substringWithRange:]: Range {18446744073709551615, 1} out of bounds; string length 71. This will become an exception for apps linked after 10.10 and iOS 8. Warning shown once per app execution.
I'm trying to find where in my code this is happening.
I have about a dozen substringWithRange methods in my project. I put try catch blocks around all of them:
@try {
substring = [s substringWithRange:NSMakeRange(i, j - i)];
}
@catch (NSException* e) {
NSLog(@"Except: %@", e);
}
None of the catch blocks are being executed.
I tried setting my deployment target to 8.4.
Any help would be great thanks!