DCloud_iOS_CLP
DCloud_iOS_CLP
  • 发布:2018-12-17 16:36
  • 更新:2019-12-02 11:57
  • 阅读:2667

iOS离线打包 - LivePusher直播推流插件配置

分类:5+ SDK

LivePusher直播推流配置

添加LivePusher直播推流插件

注: Linker Flags、framework添加方法参考该文档

  1. 依次添加下列Linker Flags: -llibLivePush。
  2. 添加下列库:
    liblibLivePush.a
    libDCUniGPUImage.a
    "UPLiveSDKDll.framework",
    "AVFoundation.framework",
    "QuartzCore.framework",
    "OpenGLES.framework",
    "AudioToolbox.framework",
    "VideoToolbox.framework",
    "Accelerate.framework",
    "CoreMedia.framework",
    "CoreTelephony.framework",
    "SystemConfiguration.framework",
    "CoreMotion.framework",
    "libc++.dylib",
    "libbz2.1.0.dylib",
    "libiconv.dylib",
    "libz.dylib"
    注意:如果是自定义组件模式下的live-pusher组件,需要再加上libDCUniLivePush.a库
    3."UPLiveSDKDll.framework"这个库是动态库并且不支持模拟器,需要添加到如下图所示的地方:
0 关注 分享

要回复文章请先登录注册

小权

小权

回复 DCloud_iOS_CLP :
配置对了,已经了解。直播推流库不支持X86_64吧
2019-12-02 11:57
DCloud_iOS_CLP

DCloud_iOS_CLP (作者)

回复 小权 :
你确定配置对了吗?都配置什么了? 另外这个模块不支持模拟器
2019-12-02 11:15
小权

小权

回复 DCloud_iOS_CLP :
你好,添加直播推流相关的库之后报错:ld: warning: ignoring file /Users/tanhaiyan/Desktop/app_SafetyGxsldy/SDK/libs/UPLiveSDKDll.framework/UPLiveSDKDll, missing required architecture x86_64 in file /Users/tanhaiyan/Desktop/app_SafetyGxsldy/SDK/libs/UPLiveSDKDll.framework/UPLiveSDKDll (2 slices)
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_AudioProcessor", referenced from:
objc-class-ref in liblibLivePush.a(UPAudioCapture.o)
"_OBJC_CLASS_$_UPAVStreamer", referenced from:
objc-class-ref in liblibLivePush.a(UPAVCapturer.o)
"_OBJC_CLASS_$_UPAVPlayer", referenced from:
objc-class-ref in liblibLivePush.a(UPAudioCapture.o)
"_OBJC_CLASS_$_RtcManager", referenced from:
objc-class-ref in liblibLivePush.a(UPAVCapturer.o)
"_OBJC_CLASS_$_UPLiveSDKLogger", referenced from:
objc-class-ref in liblibLivePush.a(UPAVCapturer.o)
请问还有做什么配置?
2019-12-01 19:51
DCloud_iOS_CLP

DCloud_iOS_CLP (作者)

回复 505757015@qq.com :
feature.plist 文件里 加了 LivePusher节点吗
2019-01-18 18:45
505757015@qq.com

505757015@qq.com

回复 DCloud_iOS_CLP :
您好,非常感谢您的回复!我添加了那个liblibLivePush.a之后会报下面的那个错误(ld: library not found for -llibLivePush
clang: error: linker command failed with exit code 1 (use -v to see invocation)),如果我不添加这个,xcode运行的时候正常,但是直播的时候提示我打包时未添加livePusher模块,
2019-01-18 18:33
DCloud_iOS_CLP

DCloud_iOS_CLP (作者)

回复 505757015@qq.com :
在SDK文件夹下面的Libs文件夹下找下这个库: liblibLivePush.a,然后引入到工程里
2019-01-18 17:41
505757015@qq.com

505757015@qq.com

按照如上配置一直报错:
Ld /Users/imac/Library/Developer/Xcode/DerivedData/BJY-eopumukumyagzwafpsrshiijgczm/Build/Products/Debug-iphoneos/BJY.app/BJY normal arm64 (in target: BJY)
cd /Users/imac/Desktop/BJY
export IPHONEOS_DEPLOYMENT_TARGET=9.0
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.1.sdk -L/Users/imac/Library/Developer/Xcode/DerivedData/BJY-eopumukumyagzwafpsrshiijgczm/Build/Products/Debug-iphoneos -L/Users/imac/Library/Developer/Xcode/DerivedData/BJY-eopumukumyagzwafpsrshiijgczm/Build/Products/Debug-iphoneos/CocoaLumberjack -L/Users/imac/Library/Developer/Xcode/DerivedData/BJY-eopumukumyagzwafpsrshiijgczm/Build/Products/Debug-iphoneos/LBXAlertAction -L/Users/imac/Library/Developer/Xcode/DerivedData/BJY-eopumukumyagzwafpsrshiijgczm/Build/Products/Debug-iphoneos/MJExtension -L/Users/imac/Desktop/BJY/BJY/Classes/5+Lib -L/Users/imac/Desktop/BJY/BJY/Classes/5+Lib/mwSDK -F/Users/imac/Library/Developer/Xcode/DerivedData/BJY-eopumukumyagzwafpsrshiijgczm/Build/Products/Debug-iphoneos -F/Users/imac/Desktop/BJY/Pods/NIMSDK/NIMAVChat -F/Users/imac/Desktop/BJY/Pods/NIMSDK/NIMSDK -F/Users/imac/Desktop/BJY/BJY/Classes/5+Lib -F/Users/imac/Desktop/BJY -filelist /Users/imac/Library/Developer/Xcode/DerivedData/BJY-eopumukumyagzwafpsrshiijgczm/Build/Intermediates.noindex/BJY.build/Debug-iphoneos/BJY.build/Objects-normal/arm64/BJY.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -rpath -Xlinker @loader_path/Frameworks -Xlinker -rpath -Xlinker @executable_path/Frameworks -miphoneos-version-min=9.0 -dead_strip -Xlinker -object_path_lto -Xlinker /Users/imac/Library/Developer/Xcode/DerivedData/BJY-eopumukumyagzwafpsrshiijgczm/Build/Intermediates.noindex/BJY.build/Debug-iphoneos/BJY.build/Objects-normal/arm64/BJY_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -fobjc-arc -fobjc-link-runtime -ObjC -lCocoaLumberjack -lLBXAlertAction -lMJExtension -lc++ -lsqlite3.0 -lz -framework AVFoundation -framework AudioToolbox -framework CoreMedia -framework CoreTelephony -framework Foundation -framework NIMAVChat -framework NIMSDK -framework NMC -framework SystemConfiguration -framework UIKit -framework VideoToolbox -ObjC -llibLivePush -framework UPLiveSDKDll -framework CoreVideo -framework CoreMotion -framework SystemConfiguration -framework CoreTelephony -framework CoreMedia -framework Accelerate -framework VideoToolbox -framework AudioToolbox -framework OpenGLES -framework QuartzCore -framework AVFoundation -liconv -lbz2.1.0.5 -lz.1.2.5 -lc++ -lsqlite3.0 -lz -framework ImageIO -framework WebKit -framework Security -framework CFNetwork -framework CoreLocation -framework CoreFoundation -framework CoreGraphics -framework AdSupport -lresolv -llibVideo -llibShare -lxml2 -llibStorage -liconv.2 -lstdc++.6.0.9 -licucore -framework MediaPlayer -lWeChatSDK_pay -llibPush -framework CoreAudio -llibOauth -llibZip -lopencore-amrnb -llibCamera -lalixpayment -llibPayment -framework CoreAudioKit -framework Foundation -framework UIKit -lmp3lame -lWXOauth -lweixinShare -framework storage -framework AssetsLibrary -lMiPushSDK -framework AlipaySDK -framework AddressBook -framework QuickLook -framework UPLiveSDKDll -framework StoreKit -framework GTSDK -llibMedia -framework MessageUI -framework MobileCoreServices -lwxpay -framework JavaScriptCore -lXiaomiPush -lMagicWindowSDK -llibPDRCore -llibNavigator -llibIO -lcoreSupport -llibNativeUI -llibUI -lPods-BJY -Xlinker -dependency_info -Xlinker /Users/imac/Library/Developer/Xcode/DerivedData/BJY-eopumukumyagzwafpsrshiijgczm/Build/Intermediates.noindex/BJY.build/Debug-iphoneos/BJY.build/Objects-normal/arm64/BJY_dependency_info.dat -o /Users/imac/Library/Developer/Xcode/DerivedData/BJY-eopumukumyagzwafpsrshiijgczm/Build/Products/Debug-iphoneos/BJY.app/BJY

ld: library not found for -llibLivePush
clang: error: linker command failed with exit code 1 (use -v to see invocation)
貌似哪个库没有找到,但是上面文档中所有的framework我全都导入了,还是报这个错误,请问如何解决
2019-01-18 16:44