将框架复制到项目中?

发布于 2024-07-10 00:46:04 字数 269 浏览 13 评论 0原文

当尝试将框架复制到 Xcode 中项目的 Frameworks 文件夹中时,出现错误

无法将 /Developer/Platforms/.../Frameworks/OpenAL.framework 复制到 /Users/.../OpenAL.framework

我之前不小心将同名的错误框架复制到项目中并将其删除,但现在我无法复制正确的内容? 在复制适当的版本之前,如何完全删除错误的版本?

提前致谢!

When attempting to copy a framework into the Frameworks folder of my project in Xcode, I get the error

Could not copy /Developer/Platforms/.../Frameworks/OpenAL.framework to /Users/.../OpenAL.framework

I had accidentally copied the wrong framework with the same name into the project earlier and deleted it, but now I can't copy the correct one in? How do I get totally rid of the wrong version before copying the appropriate version in?

Thanks in advance!

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

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

发布评论

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

评论(2

帥小哥 2024-07-17 00:46:04

您无法为 iPhone 开发添加框架。 相反,您应该添加一个现有框架,然后在(例如)/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS2.1.sdk/System/ 中查找该框架库/框架/

You can't add a new framework for iPhone development. Instead, you should add an existing framework, and go find the framework in (for example) /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS2.1.sdk/System/Library/Frameworks/

假装不在乎 2024-07-17 00:46:04

您为什么要尝试将 OpenAL.framework 复制到您的项目中? 您不需要将框架复制到项目目录中来链接它,并且 OpenAL.framework 由操作系统提供(您可以从它位于 /Developer 下看出。

) ,请注意,iPhone 上不支持第三方框架,只能使用静态库。 我提到这一点是因为您在问题中添加了 iPhone 标签,所以我假设您正在构建一个 iPhone 应用程序。

Why are you trying to copy OpenAL.framework into your project at all? You don't need to copy a framework into your project directory to link against it, and OpenAL.framework is provided by the operating system (as you can tell from it being located under /Developer.)

Also, be aware that third-party frameworks aren't supported on iPhone, you can only use static libraries. I mention this because you added the iPhone tag to your question, so I assume you're building an iPhone application.

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