相关链接:iOS中集成ijkplayer视频直播框架
1.打包IJKMediaFramework.framework框架时,要给合并之后的framework名字,否则会报错
原因:因为合并的时候没有给合并之后的framework名字,所以报下面的错误
fatal error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lipo: can't open input file: /Users/HarrySun/Library/Developer/Xcode/DerivedData/IJKMediaPlayer-bwceunlqwbijwphgxavomcuwiadf/Build/Products/Release-iphoneos/IJKMediaFramework.framework/IJKMediaFramework (No such file or directory)
解决方法:合并的时候给合并之后的framework名字就可以了(加粗字体部分为名字),命令如下:
lipo -create /Users/HarrySun/Library/Developer/Xcode/DerivedData/IJKMediaPlayer-bwceunlqwbijwphgxavomcuwiadf/Build/Products/Release-iphoneos/IJKMediaFramework.framework/IJKMediaFramework /Users/HarrySun/Library/Developer/Xcode/DerivedData/IJKMediaPlayer-bwceunlqwbijwphgxavomcuwiadf/Build/Products/Release-iphonesimulator/IJKMediaFramework.framework/IJKMediaFramework -output /Users/HarrySun/Library/Developer/Xcode/DerivedData/IJKMediaPlayer-bwceunlqwbijwphgxavomcuwiadf/Build/Products/IJKMediaFramework
相关链接:iOS合并.a文件,制作通用静态库
2.工程集成ijkplayer时
按照下图导入依赖库等会报如下错误