即使有,Xcode 也找不到 Bolts 框架 [英] Xcode cannot find Bolts framework even there is

查看:32
本文介绍了即使有,Xcode 也找不到 Bolts 框架的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 1 个月后重新打开了一个 xCode 项目.我试图编译,但我遇到了这个错误:

I reopened a xCode project after 1 month. I tried to compile, but I run into this error:

链接器命令失败,退出代码为 1(使用 -v 查看调用)"

"linker command failed with exit code 1 (use -v to see invocation)"

请看下图:

Xcode 似乎无法找到 Bolts Framework,即使它在项目目录中.我试图删除并重新添加它,但它没有用.我还检查了框架搜索路径,但它是正确的.

It seems that Xcode is not able to find Bolts Framework even if it is inside the project directory. I tried to delete and re-add it but it didn't work. I checked also the Framework search path but it is correct.

有什么建议吗?提前致谢

Any suggestion? Thanks in advance

推荐答案

如果您已经链接了 -ObjC,请验证构建阶段的链接二进制文件部分中是否包含 Bolts.如果是,请尝试从项目中删除框架并重新添加它们,再次下载框架,但不要将其复制到您的项目文件夹中.

If you already have -ObjC linked, verify if Bolts is included in your Link Binary with Libraries section of the Build Phases. If it is, try to remove the frameworks from the project and re-adding them, download the frameworks again, but without copying it to your project folder.

如果它仍然不起作用,请尝试在您的项目中使用 CocoaPods 并将其添加到您的 Podfile 中:

If it still doesn't work, try using CocoaPods in your project and add this to your Podfile:

pod 'Bolts'

这篇关于即使有,Xcode 也找不到 Bolts 框架的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆