• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Xcode 6 does not warn on use of iOS8 only method when deployment target is iOS7
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Xcode 6 does not warn on use of iOS8 only method when deployment target is iOS7
      • From: Fritz Anderson <email@hidden>
  • Prev by Date: Running Unit-Tests without Xcode?
  • Next by Date: Re: Xcode 6 does not warn on use of iOS8 only method when deployment target is iOS7
  • Previous by thread: Running Unit-Tests without Xcode?
  • Next by thread: Re: Xcode 6 does not warn on use of iOS8 only method when deployment target is iOS7
  • Index(es):
    • Date
    • Thread