链接器错误:未定义的符号,未找到的符号 [英] Linker error: undefined symbols, symbols not found

查看:404
本文介绍了链接器错误:未定义的符号,未找到的符号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我收到这些Apple Mach-O Linker错误,我不知道如何阅读这些内容。在我的项目中导入CLCredentialHeader.h和CLCredentialHeader.m后出现这些错误。

I'm getting these Apple Mach-O Linker errors and I don't know how to read these things. I got these error after importing "CLCredentialHeader.h" and "CLCredentialHeader.m" in my project.

Undefined symbols for architecture armv7:
  "_OBJC_CLASS_$_SFHFKeychainUtils", referenced from:
      objc-class-ref in CLCredentialHandler.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)


推荐答案

确保 SFHFKeychainUtils.m 出现在构建目标的编译源构建阶段中。有时,在Xcode中向项目添加文件不会将所有实现文件添加到适当的目标。

Make sure that SFHFKeychainUtils.m appears in the "Compile Sources" Build Phase for your build target. Sometimes, adding files to a project in Xcode doesn't add all implementation files to the appropriate targets.

这篇关于链接器错误:未定义的符号,未找到的符号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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