开发者

iPhone - Compiling on older SDK : __IPHONE_OS_VERSION_MAX_ALLOWED values

开发者 https://www.devze.com 2023-04-02 04:24 出处:网络
I need test some stuff with prepro开发者_运维问答cessor tests to ensure backward compatibility for my app.

I need test some stuff with prepro开发者_运维问答cessor tests to ensure backward compatibility for my app.

To do this, I must use __IPHONE_OS_VERSION_MAX_ALLOWED >= xxx but does someone know where I can find the values to test for each existing SDK ?


If you command-click on __IPHONE_OS_VERSION_MAX_ALLOWED (in Xcode) you'll see the current definition (in AvailabilityInternal.h) for the current SDK and the older SDK.

They are basically __IPHONE_4_3, __IPHONE_4_2, __IPHONE_4_1, __IPHONE_4_0, __IPHONE_3_0, etc.

0

精彩评论

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

关注公众号