开发者

Using newer OS X SDKs in the App Store while compiling for an older version

If I were to compile an application for OS X 10.x to submit to the App Store, would it be allowed for me to use -respondsToSelector, NSClassFromString(), etc. in order to conditionally use new APIs that are present in newer versions of Mac OS X while still compiling for an older versi开发者_开发知识库on? Or would that be considered private API use?


Provided you're not linking against a beta version of the OS then what you have described is a perfectly valid pratice.

Obviously you'll want to compile against the latest version of the SDK, but you will also have to set your deployment target SDK to be the oldest version that you wish to support.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜