未定义的体系结构符号 x86_64 iOS

Undefined symbols for architecture x86_64 iOS

我已经使用 cocoapods 安装了成功构建的 upnpx 库。但是当我在我的项目中使用 类 之一后去构建时,我遇到了这个错误:

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

已解决:对我来说,在项目目标的构建设置中将 "Build active architectures only" 设置为 YES 可以解决此问题