将框架复制到项目中?
当尝试将框架复制到 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您无法为 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/
您为什么要尝试将 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.