如果部署目标<基本SDK? [英] How to check if not available methods are used if deployment target < base sdk?

查看:84
本文介绍了如果部署目标<基本SDK?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道当部署目标不如基本SDK时如何检查代码是否不调用不可用的方法?

I would like to know how you check that your code do not call not available methods when the deployment target is inferior to base SDK ?

可以运行SDK等于部署目标的设备上的应用程序,但我搜索了一种更加自动的方法。有什么想法吗?

It is possible to run the application on a device with the SDK equal to deployment target, but I search a way more 'automatic'. Any idea ?

致谢,
Quentin

Regards, Quentin

推荐答案


  1. 做我发现的最好方法:使用旧的SDK编译代码:) 可以提供帮助的链接

我认为这个问题已经解决与下一步

I think this question is releated with next

我相信苹果总有一天会允许通过简单定义 #define __IPHONE_OS_VERSION_MAX_ALLOWED __IPHONE_3_0

I belive that someday Apple allow to compile project for old SDK by simple defining #define __IPHONE_OS_VERSION_MAX_ALLOWED __IPHONE_3_0

upd:我找到了解决方案< a href = https://stackoverflow.com/a/8919108/751932>此处

upd: I found solution here

4.3 5.0和5.1 SDK在尝试重新定义此宏后无法编译

4.3 5.0 and 5.1 SDK just fail to compile after trying to redefine this macro

这篇关于如果部署目标&lt;基本SDK?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆