Re: Would you expect to see a warning about things that aren't supported in the deployment target OS?
Re: Would you expect to see a warning about things that aren't supported in the deployment target OS?
- Subject: Re: Would you expect to see a warning about things that aren't supported in the deployment target OS?
- From: Chris Hanson <email@hidden>
- Date: Wed, 18 Apr 2012 09:41:49 -0700
On Apr 17, 2012, at 2:37 PM, G S wrote: My question is: What is the point of setting the deployment target, if there's no feedback that results from it?
Setting the Deployment Target affects linkage.
Symbols (such as globals, classes, and so on) are annotated with availability macros indicating when they were introduced. If you set the Deployment Target to an earlier value than when a particular symbol was introduced, the symbol is weakly linked and nil when running on an OS earlier than then.
Weak-linked symbols are slightly more expensive to fix up at load time, so it’s important to only have those symbols marked for weak linkage that can actually be weak on the OSes on which your code can run.
-- Chris
|
_______________________________________________
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