架构i386的未定义符号:“_ OBJC_CLASS _ $ _ TLFApplicationHelper”

时间:2015-07-06 09:13:10

标签: ios xcode

我正在研究xCode 6.3。我在我的应用程序上附加了外部库。我这么久就研究过这个问题。我试过整个解决方案。但他们没有帮助。更改方案名称,删除路径,添加/删除体系结构......我收到此错误:

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

我的设置:

有效架构:armv7 armv7s arm64 架构:armv7 arm64 构建活动架构:否

顺便说一下,没有TLFApplicationHelper.m和TLFCustomEvent.m。它们是TLFCustomEvent.h和TLFApplicationHelper.h。

当我将Build Active Architecture Only设置为No时,错误消息就是这样:

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

1 个答案:

答案 0 :(得分:0)

猜测,可能是你缺少链接库所需的一些框架。 您应该将它们作为依赖项添加到podspec中,或者链接主项目中的框架。