针对 iPhoneOS 2.2.1
我不相信我正在使用任何 3.0 特定的 API,但不知何故,每当我编译时,我都会收到一条警告“此项目使用仅在 iPhone SDK 3.0 及更高版本中可用的功能”,然后是一堆错误。如果我将 Base SDK 更改为 3.0,则会出现警告 &错误消失了,但是我当然不能以操作系统 2.2.1 为目标,
我看到这是来自 project_Prefix.pch 文件,我假设该文件是在 XCode 最初创建项目时创建的。我不明白这个文件是如何被包含的,但我相信这是问题的根源。我尝试删除它,但构建根本无法编译。
我需要以某种方式重新生成这个文件吗?
I don't believe that I am using any 3.0 specific APIs, but somehow whenever I compile I get a warning "This project uses features only available in iPhone SDK 3.0 and later", and then a bunch of errors. If I change the Base SDK to 3.0, the warning & errors go away, but then of course I cannot target OS 2.2.1
I see that this is coming from the project_Prefix.pch file, which I assume was created when the XCode initially created the project. I don't see how this file gets included, but I believe this is the source of the problem. I tried removing it, but then the build won't compile at all.
Do I need to regenerate this file somehow?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我真傻——我实际上使用的是 3.0 API。我有以下问题:
删除此行解决了问题。
Silly me- I was in fact using a 3.0 API. I had the following:
Removing this line fixed the problem.
我不相信 project_Prefix.pch 是该文件,但如果您想重新生成它,只需删除它或更好地对您的项目进行清理。
您遇到哪些错误?这应该会告诉您正在使用哪个 3.0 特定 API。
I don't believe the project_Prefix.pch is the file, but if you want to regenerated it just delete it or better yet do a clean on your project.
What are the errors you are getting? That should tell you which 3.0 specific API you are using.