开发者

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

开发者 https://www.devze.com 2023-02-13 03:27 出处:网络
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 th

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

精彩评论

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

关注公众号