LaiFengiOS/LFLiveKit

换了台mac跑老react-native项目,手动导入的LFliveKit源码,编译报错

SpringAndMay opened this issue · 0 comments

react-native项目,换了台mac开发,出现环境问题,自己开发的一个框架用了LFLiveKit的源码,编译报错,官方要求的link相关框架已经导入,
ex: Link with required frameworks:
* UIKit
* Foundation
* AVFoundation
* VideoToolbox
* AudioToolbox
* libz
* libstdc++
这样操作后还是不行,报错信息如下:
Undefined symbols for architecture x86_64:
"_PILI_RTMPPacket_Alloc", referenced from:
-[LFStreamRTMPSocket sendPacket:data:size:nTimestamp:] in libXiaoZhi.a(LFStreamRtmpSocket.o)
"_PILI_RTMPPacket_Free", referenced from:
-[LFStreamRTMPSocket sendPacket:data:size:nTimestamp:] in libXiaoZhi.a(LFStreamRtmpSocket.o)
"_AMF_EncodeNamedNumber", referenced from:
-[LFStreamRTMPSocket sendMetaData] in libXiaoZhi.a(LFStreamRtmpSocket.o)
"_AMF_EncodeNamedString", referenced from:
-[LFStreamRTMPSocket sendMetaData] in libXiaoZhi.a(LFStreamRtmpSocket.o)
"_PILI_RTMP_SendPacket", referenced from:
-[LFStreamRTMPSocket sendMetaData] in libXiaoZhi.a(LFStreamRtmpSocket.o)
-[LFStreamRTMPSocket RtmpPacketSend:] in libXiaoZhi.a(LFStreamRtmpSocket.o).......