我正在使用包含 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 库中。
有什么建议吗??
提前致谢!!