ios - xcode8同时导入PLCameraStreamingKit和PLPlayerKit 真机运行也报错
PHP中文网
PHP中文网 2017-04-18 09:45:15
0
3
503

1,错误提示:
ld: warning: directory not found for option '-L/Users/mac/Desktop/未命名文件夹/AliveVideos/Pods/../ffmpeg/lib'
Undefined symbols for architecture arm64:
"_RTMPError_Free", referenced from:

  _rtmp_error_callback in libPLStreamingKit.a(push.o)
 (maybe you meant: _PILI_RTMPError_Free)

ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
2,导入方式:
target 'AliveVideos' do
pod 'PLCameraStreamingKit'
pod 'PLPlayerKit'
end
3,尝试这样做没有了报错

pod 'PLCameraStreamingKit', '~> 1.8.1'
pod 'PLPlayerKit'
但是这样导入会少几个东西  比如GPUImage,pili-ffmpeg等等

因为用pod也集成过其他三方 以为是冲突  后来新建项目只集成七牛的直播和播放器  还是报同样错误   我已经崩溃了。

已经找了很多了 就是没有找到类似的 我搞不懂 为什么pod集成也会报这样的错

PHP中文网
PHP中文网

认证0级讲师

全部回复(3)
PHPzhong

解决了吗,加我扣扣1953959791,讨论一下

伊谢尔伦

解决了吗,请问

巴扎黑

原因:
PLCameraStreamingKit (1.8.0) 搭配的是 pili-librtmp (1.0.3.1) 使用了GPUImage (0.1.7)
PLCameraStreamingKit (1.8.1) 搭配的是 pili-librtmp (1.0.3.1) 取消掉了GPUImage的使用。理由:GPUImage消耗性能。
PLPlayer 2.3.0 搭配的是 pili-librtmp (1.0.5)
libPLStreamingKit 引用的 RTMPError_Free 在 pili-librtmp 1.0.5 上改成了 PILI_RTMPError_Free
所以造成影响
解决办法:
target 'AliveVideos' do
pod 'PLMediaStreamingKit'
pod 'PLPlayerKit'
end

热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责声明 Sitemap
PHP中文网:公益在线PHP培训,帮助PHP学习者快速成长!