Xcode 6 does not warn on use of iOS8 only method when deployment target is iOS7
Xcode 6 does not warn on use of iOS8 only method when deployment target is iOS7
- Subject: Xcode 6 does not warn on use of iOS8 only method when deployment target is iOS7
- From: David Hoerl <email@hidden>
- Date: Fri, 26 Sep 2014 09:27:14 -0400
I have a fairly strong recollection that I **use** to get warned if I
tried to use a new API method when the Deployment target was set to an
older release.
I tested my app on iOS8, worked fine, crashed in QA - turns out I
inadvertantly pulled in a newer method on NSString (I guessed at a name,
command completion filled it in for me).
// From CMD-click - (BOOL)containsString:(NSString *)aString
NS_AVAILABLE(10_10, 8_0);
NSString *foo = @"FOO";
if([foo containsString:@"OO"]) {
NSLog(@"WOW");
}
Xcode 6 and 6.1 compile this just fine, no error or warning. I entered
rdar://18459505, but hoping that someone can tell me the error of my
ways, and what magic option that when set re-enables the old behavior.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden