使用PogoConnect SDK时_CBCentralManagerOptionShowPowerAlertKey

 素人1963_497 发布于 2023-02-13 19:23

我使用的是包含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库中.

有什么建议??

提前致谢!!

1 个回答
  • 您得到的错误是因为您正在尝试为iOS 6编译您的项目,其中Core Bluetooth没有_CBCentralManagerOptionShowPowerAlertKey枚举,而Pogo可能会使用它.您必须更改为iOS 7或将该依赖项转移到该SDK.

    2023-02-13 19:25 回答
撰写答案
今天,你开发时遇到什么问题呢?
立即提问
热门标签
PHP1.CN | 中国最专业的PHP中文社区 | PNG素材下载 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有