1

我正在使用包含 Pogo Connect SDK 的 SDK。当我添加 SDK 并构建时,我得到了一些错误。然后我导入了 AVFundation 和 CoreBluetooth 库。在添加 CoreBluetooth 库之前,我收到此错误:

Undefined symbols for architecture armv7:
  "_CBCentralManagerScanOptionAllowDuplicatesKey", referenced from:
      -[T1PogoPenConnectionManager startScan:] in SealSignBSSClientLibrary.a(T1PogoPenConnectionManager.o)
  "_CBCentralManagerOptionShowPowerAlertKey", referenced from:
      -[T1PogoPenConnectionManager initWithDelegate:sender:] in SealSignBSSClientLibrary.a(T1PogoPenConnectionManager.o)
  "_OBJC_CLASS_$_CBUUID", referenced from:
      objc-class-ref in SealSignBSSClientLibrary.a(T1PogoPenConnectionManager.o)
      objc-class-ref in SealSignBSSClientLibrary.a(T1Peripheral.o)
  "_CBConnectPeripheralOptionNotifyOnDisconnectionKey", referenced from:
      -[T1PogoPenConnectionManager connectT1Peripheral:] in SealSignBSSClientLibrary.a(T1PogoPenConnectionManager.o)
  "_OBJC_CLASS_$_CBCentralManager", referenced from:
      objc-class-ref in SealSignBSSClientLibrary.a(T1PogoPenConnectionManager.o)
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)

但是在添加这个库之后,我仍然得到这个错误:

Undefined symbols for architecture armv7:
  "_CBCentralManagerOptionShowPowerAlertKey", referenced from:
      -[T1PogoPenConnectionManager initWithDelegate:sender:] in SealSignBSSClientLibrary.a(T1PogoPenConnectionManager.o)
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)

我一直在寻找解决方案,但我发现这个“CBCentralManagerOptionShowPowerAlertKey”在 CoreBluetooth 库中。

有什么建议吗??

提前致谢!!

4

1 回答 1

6

你得到的错误是因为你试图为 iOS 6 编译你的项目,其中 Core Bluetooth 没有_CBCentralManagerOptionShowPowerAlertKey枚举,而 Pogo 可能使用它。您必须更改为 iOS 7 或移除对该 SDK 的依赖。

于 2013-11-30T10:10:25.060 回答