ios - 同时集成PLPlayerKit和PLMediaStreamingKit的报错情况

 长发及腰和我娶你D有毛关系 发布于 2022-10-26 18:56

这是pod进去的版本情况
Analyzing dependencies
Downloading dependencies
Installing HappyDNS (0.3.10)
Installing PLMediaStreamingKit (2.1.3)
Installing PLPlayerKit (2.3.0)
Installing pili-ffmpeg (3.1.0)
Installing pili-librtmp (1.0.5)
Generating Pods project
Integrating client project

pod进去以后模拟器运行没错 真机运行报错 错误情况

Undefined symbols for architecture armv7:
"_PILI_RTMPPacket_Alloc", referenced from:

  _pili_write_flv_tag in libPLMediaStreamingKit.a(push.o)

"_PILI_RTMPPacket_Free", referenced from:

  _pili_write_flv_tag in libPLMediaStreamingKit.a(push.o)

"_PILI_RTMP_Close", referenced from:

  __pili_stream_push_close in libPLMediaStreamingKit.a(push.o)

"_PILI_RTMP_Alloc", referenced from:

  _pili_stream_push_open in libPLMediaStreamingKit.a(push.o)

"_PILI_RTMP_IsConnected", referenced from:

  _pili_write_flv_tag in libPLMediaStreamingKit.a(push.o)

"_PILI_RTMP_Init", referenced from:

  _pili_stream_push_open in libPLMediaStreamingKit.a(push.o)

"_PILI_RTMPPacket_Reset", referenced from:

  _pili_write_flv_tag in libPLMediaStreamingKit.a(push.o)
  _pili_flv_tag_mux in libPLMediaStreamingKit.a(flv_muxer.o)

"_OBJC_CLASS_$_QNNetworkInfo", referenced from:

  objc-class-ref in libPLMediaStreamingKit.a(PLLiveStreamingSession.o)
  objc-class-ref in libPLMediaStreamingKit.a(PLSpeedMeasure.o)
  objc-class-ref in libPLMediaStreamingKit.a(PLStreamingSession.o)
  objc-class-ref in libPLPlayerKitPrv.a(PLPlayer.o)

"_PILI_RTMP_Connect", referenced from:

  _pili_stream_push_open in libPLMediaStreamingKit.a(push.o)

"_PILI_RTMP_ConnectStream", referenced from:

  _pili_stream_push_open in libPLMediaStreamingKit.a(push.o)

"_PILI_RTMP_Version", referenced from:

  -[PLStreamingSession(QoS) postSystemNotify] in libPLMediaStreamingKit.a(PLStreamingSession.o)

"_PILI_RTMP_Free", referenced from:

  _pili_stream_push_open in libPLMediaStreamingKit.a(push.o)
  __pili_stream_push_close in libPLMediaStreamingKit.a(push.o)

"_PILI_RTMP_EnableWrite", referenced from:

  _pili_stream_push_open in libPLMediaStreamingKit.a(push.o)

"_PILI_RTMP_GetReqId", referenced from:

  -[PLStreamingSession(QoS) onStreamStateConnectedNotify] in libPLMediaStreamingKit.a(PLStreamingSession.o)
  -[PLStreamingSession(QoS) onStreamSendMetadata] in libPLMediaStreamingKit.a(PLStreamingSession.o)
  -[PLStreamingSession(QoS) postStreamStateChangedNotify:] in libPLMediaStreamingKit.a(PLStreamingSession.o)
  -[PLStreamingSession(QoS) postStreamEndNotify] in libPLMediaStreamingKit.a(PLStreamingSession.o)
  -[PLStreamingSession(QoS) postStreamStartNotify] in libPLMediaStreamingKit.a(PLStreamingSession.o)
  -[PLStreamingSession(QoS) postStreamErrorNotify:] in libPLMediaStreamingKit.a(PLStreamingSession.o)
  -[PLStreamingSession(QoS) postStreamNotify] in libPLMediaStreamingKit.a(PLStreamingSession.o)
  ...

"_PILI_RTMPError_Free", referenced from:

  _pili_error_from_rtmp_error in libPLMediaStreamingKit.a(push.o)

"_PILI_RTMP_SetupURL", referenced from:

  _pili_stream_push_open in libPLMediaStreamingKit.a(push.o)

"_OBJC_CLASS_$_QNResolver", referenced from:

  objc-class-ref in libPLMediaStreamingKit.a(PLLiveStreamingSession.o)
  objc-class-ref in libPLMediaStreamingKit.a(PLSpeedMeasure.o)
  objc-class-ref in libPLMediaStreamingKit.a(PLStreamingSession.o)
  objc-class-ref in libPLMediaStreamingKit.a(UIDevice+ReportInfo.o)
  objc-class-ref in libPLPlayerKitPrv.a(UIDevice+PLPlayerReportInfo.o)

"_PILI_RTMP_SendPacket", referenced from:

  _pili_write_flv_tag in libPLMediaStreamingKit.a(push.o)

"_OBJC_CLASS_$_QNIP", referenced from:

  objc-class-ref in libPLMediaStreamingKit.a(PLLiveStreamingSession.o)
  objc-class-ref in libPLMediaStreamingKit.a(PLSpeedMeasure.o)
  objc-class-ref in libPLMediaStreamingKit.a(PLStreamingSession.o)
  objc-class-ref in libPLMediaStreamingKit.a(UIDevice+ReportInfo.o)
  objc-class-ref in libPLPlayerKitPrv.a(UIDevice+PLPlayerReportInfo.o)

"_OBJC_CLASS_$_QNDnspodFree", referenced from:

  objc-class-ref in libPLMediaStreamingKit.a(PLLiveStreamingSession.o)
  objc-class-ref in libPLMediaStreamingKit.a(PLSpeedMeasure.o)
  objc-class-ref in libPLMediaStreamingKit.a(PLStreamingSession.o)
  objc-class-ref in libPLPlayerKitPrv.a(PLPlayer.o)

"_OBJC_CLASS_$_QNDnsManager", referenced from:

  objc-class-ref in libPLMediaStreamingKit.a(PLLiveStreamingSession.o)
  objc-class-ref in libPLMediaStreamingKit.a(PLSpeedMeasure.o)
  objc-class-ref in libPLMediaStreamingKit.a(PLStreamingSession.o)
  objc-class-ref in libPLPlayerKitPrv.a(PLPlayer.o)

ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)

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