iOS:架构 i386 的未定义符号

iOS: Undefined symbols for architecture i386

我正在尝试实施 ios-oauthconsumer 但我收到此错误:

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

我尝试添加此 solution 之后的文件,但 Xcode 将文件重新添加到项目中。例如:

你们中有人知道我可以将文件添加到 "Compile Sources" 而无需重新添加文件的方法吗?

非常感谢你的帮助。

确保每个需要链接的源文件都是目标的 Compile Sources 部分的一部分。您可以通过在导航器窗格中选择您的项目(如屏幕截图所示)并展开此处显示的部分来验证这一点:

Xcode Compile Sources

您还可以通过选择文件并在 xcode 的 Utilities 窗格中查看它们的目标成员资格来验证这一点。

Target Membership