• 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
Re: How to get warnings for missing methods in older SDKs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to get warnings for missing methods in older SDKs


  • Subject: Re: How to get warnings for missing methods in older SDKs
  • From: Ben Staveley-Taylor <email@hidden>
  • Date: Sun, 27 Mar 2011 11:57:54 +0100

Agreed -- MACOSX_DEPLOYMENT_TARGET means the minimum version that should be supported. To me that means if I accidentally write code that will not run on that minimum OS because it uses a newer SDK addition, I get a compiler warning at least. Otherwise I have created a product that will not run on MACOSX_DEPLOYMENT_TARGET, which surely is contrary to the purpose of the exercise. And I understand the solutions given by you and other posters in this thread and they're great; I'm just saying that Xcode users should not *need* to jump through these hoops. I think relatively few Xcode users will do it, and mistakes will be made. A good product helps users avoid mistakes, it does not say "RTFM" after it's all gone wrong :-)


On 25 Mar 2011, at 22:42, Chris Suter wrote:

>>
>> There seems to be widespread confusion about this. It strikes me that setting MACOSX_DEPLOYMENT_TARGET to an old version should do what I describe, but I don't imagine I'll get Apple to agree with me.
>
> No, MACOSX_DEPLOYMENT_TARGET means the *minimum* version that should
> be supported, not the maximum. The maximum defaults to the SDK version
> unless you specify it otherwise.

 _______________________________________________
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: How to get warnings for missing methods in older SDKs
      • From: Christiaan Hofman <email@hidden>
References: 
 >How to get warnings for missing methods in older SDKs (From: Ben Staveley-Taylor <email@hidden>)
 >Re: How to get warnings for missing methods in older SDKs (From: Chris Suter <email@hidden>)
 >Re: How to get warnings for missing methods in older SDKs (From: Ben Staveley-Taylor <email@hidden>)
 >Re: How to get warnings for missing methods in older SDKs (From: Chris Suter <email@hidden>)

  • Prev by Date: Re: Xcode 4 Console Pane
  • Next by Date: Re: How to get warnings for missing methods in older SDKs
  • Previous by thread: Re: How to get warnings for missing methods in older SDKs
  • Next by thread: Re: How to get warnings for missing methods in older SDKs
  • Index(es):
    • Date
    • Thread