English 中文(简体)
链接错误:没有界定的符号,没有发现符号
原标题:Linker error: undefined symbols, symbols not found

我拿到这些果马-OLinker的错误,我不知道如何阅读这些事情。 我在项目进口“CLCredential Header.h”和“CLCredential Header.m”之后就发现这些错误。

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)
最佳回答

确保在“电源”中为你的建筑目标建设阶段。 有时,在Xcode中增加一个项目的档案,并没有在适当目标中增加所有执行档案。

问题回答

有时,我从另一个项目中抽出一个班子,忘记在播的窗口中标上“达到目标”。 我认为这是一个非常合理的问题。 错误信息也不是非常直观的。 这种办法在XCode易于点击该项目,并点击“Build Phases”,然后打开“Compile Source”称“+”。 这里有些情况更说所有话。

因此,如果错误看起来如此,它就告诉我数据Access类别没有界定。

“entergraph

我承认,这是我刚刚被拖走的一类,并投到了该项目中。 我在我的项目中增加数据。

enter image description here

最初,我本可以通过标明“对目标的补充”加以避免。

“entergraph

If above answers does not work for you then check you have added Security framework. If not then add it in Build Phase section of Targets. Should be fine then :)





相关问题
How to change out-of-focus text selection color in Xcode?

Okay, I ll bite. I ve got really pleasant code/window colors set up in Xcode. Ordinarily, my selection color is very visible. When I am doing a project search and iterating through the results, ...

Iphone NSTimer Issue

Hi I am new to objective c. I am trying to make an app for iphone. I have a button on my view, and the click on which the function playSound is called. This is working properly. It does plays the ...

Include a .txt file in a .h in C++?

I have a number of places where I need to re-use some template code. Many classes need these items In a .h could I do something like: #include <xxx.txt> and place all of this code in the ....

Iterating over string/strlen with umlauted characters

This is a follow-up to my previous question . I succeeded in implementing the algorithm for checking umlauted characters. The next problem comes from iterating over all characters in a string. I do ...

Xcode open two editor windows with same file

Is it possible to open the same file in two separate windows in Xcode. I can open a file in one window and the same file in the main Xcode editor window, but I wanted two separate fulltime editor ...

Forcing code signing refresh in Xcode

In our environment, we share resources across multiple projects and platforms. When building for iPhone, only a subset of those resources are needed. Since that subset is still considerable, we have ...

热门标签