添加MediaPlayer.framework后,XCode找不到foundation.h或UIKit.h

发布于 2024-11-09 15:45:40 字数 182 浏览 4 评论 0原文

一旦我将 MediaPlayer.framework 添加到新程序中,XCode 就彻底崩溃了。在支持文件下,PROJECTNAME-Prefix.phc 开始对 #import 和 #import 进行红色标记

为什么要这样做?我尝试创建一个新项目并重新添加框架,但即使这就是我所做的一切,它在第一次失败的构建中给出了 4 个错误。

As soon as I add the MediaPlayer.framework into a new program, XCode absolutely shits its pants. Under supporting Files, PROJECTNAME-Prefix.phc starts red-flagging both #import and #import

Why is it doing this? I have tried to create a new project and re-adding the Framework, but even if that is all I have done, it gives 4 errors on the first failed build.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

北城孤痞 2024-11-16 15:45:40

如果您使用的是 xcode4,请不要在项目中滑动框架:它会编辑框架搜索路径并执行您所描述的错误。
尝试删除项目“构建设置”中的框架搜索路径,并使用“目标”“构建阶段”“将二进制文件链接到库”来添加框架。

希望它有帮助,并对我糟糕的英语表示歉意。

if you are using xcode4 don't slide the framework in the project: it edit the framework search path and do the error you describe.
Try deleting the framework search path in project "build setting" and for adding the framework use "target" "build phase" "link binary with library".

hope it help and sorry for my poor english.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文