项目结构中链接框架的放置错误
嗨,
我有一个可能非常简单的问题要问你。根据 Apple 的提示如何链接到框架,我尝试向我的项目添加一些框架。
一切正常,但是框架被添加到我的项目结构的顶部,在我看来,这在某种程度上很烦人,因为已经存在一个框架子文件夹。但是,如果我将链接的“框架”拖放到此文件夹中,该框架在我的目标的“将二进制文件与库链接”窗口中显示为红色。所以 XCode 缺少正确的位置。
有人可以解释一下,如何移动框架或一般在框架子文件夹中添加框架吗?!
感谢您的帮助!
Hi,
I've a maybe really simple question to you. According to Apple's tip how to link to a framework, I tried to add some frameworks to my project.
All works fine, BUT the frameworks are added at the top of my project structure which is, in my opinion, somehow annoying because there exists already a framework subfolder. But if I drag&drop the linked "framework" to this folder, the framework appears red in my target's "Link Binary With Library" window. So XCode is missing the right location.
Can somebody explain me, how to move the framework or in general add the framework in the framework subfolder?!
Thanks for your help!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试关闭 XCode 并重新启动它。我遇到了同样的问题,并做了同样的事情 - 将框架拖到它们所属的“Frameworks”文件夹中。它们变成红色,但是当我关闭并重新打开 Xcode 时,它们不再是红色,并且我能够像往常一样构建和运行。
Try just closing XCode and restarting it. I've had the same problem, and did the same thing you did - dragged the frameworks into the "Frameworks" folder where they belong. They turn red, but when I close and reopen Xcode, they're no longer red, and I'm able to build and run as usual.