Re: How to get warnings for missing methods in older SDKs
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