用os版本找到不支持的apis [英] finding unsupported apis with os version
问题描述
我开发并应用了iPhone。它在os4上工作正常,但它不适用于os3.1。实际上有效,但存在一些问题;在启动屏幕后出现什么屏幕。当我离开应用程序时,我可以看到应用程序已成功打开,但只是在退出时看到。
I've developed and application for iPhone. It works fine on os4 but it does not work on os3.1. In fact works but there are some problems; after splash screen a what screen appears. while I leaving the application I can see the application is opened successfully but just see while exiting.
所以我想知道是否有一个工具说明哪个api与os3有问题0.1?所以我有机会替换它们。
So I wonder if there is a tool which says which apis have problems with os3.1? So I have a chance to replace them.
推荐答案
将项目的Base SDK设置为iphone-os-3-1,然后构建。关于不存在的类,方法和函数的所有错误消息必须指定自iphone-os-3-1以来添加的内容,因为您的项目在iphone-os-4-0 SDK上构建和链接正常。
Set your project's Base SDK to iphone-os-3-1, then build. All the error messages about classes, methods, and functions that don't exist must designate things added since iphone-os-3-1, since your project built and linked fine against the iphone-os-4-0 SDK.
如果您没有iphone-os-3-1 SDK,请尝试使用:
If you don't have the iphone-os-3-1 SDK, try this instead:
- 打开项目的构建设置。
- 找到预处理器宏设置。
- 编辑它并添加
__IPHONE_OS_VERSION_MAX_ALLOWED = 30100
- Open your project's Build Settings.
- Find the "Preprocessor Macros" setting.
- Edit it and add
__IPHONE_OS_VERSION_MAX_ALLOWED=30100
现在,尝试构建。这应该会导致iOS 3.1之后引入的所有内容都被标记为不可用,从而产生与切换到iphone-os-3-1 SDK时相同的错误。
Now, try building. This should cause everything introduced after iOS 3.1 to be labeled unavailable, producing the same errors as if you had switched to the iphone-os-3-1 SDK.
这篇关于用os版本找到不支持的apis的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!