sudo gem install cocoapods
pod init
platform :ios, '9.0'target 'App' dopod 'TXLiteAVSDK_Live', :podspec => 'https://liteav.sdk.qcloud.com/pod/liteavsdkspec/TXLiteAVSDK_Live.podspec'end
platform :ios, '9.0'source 'https://github.com/CocoaPods/Specs.git'target 'App' dopod 'TXLiteAVSDK_Live'end
pod install
pod update
.xcworkspace后缀的工程文件,双击打开即可。

TXLiteAVSDK_Live.framework 、TXFFmpeg.xcframework、TXSoundTouch.xcframework及其所需依赖库:AVFoundation.frameworkVideoToolbox.frameworklibz.tbdOpenGLES.frameworkAccelerate.frameworklibsqlite3.0.tbdMetalKit.frameworkCoreTelephony.frameworklibresolv.tbdGLKit.frameworkFoundation.frameworkSystemConfiguration.frameworkAssetsLibrary.frameworklibc++.tbdCoreServices.frameworkCoreMedia.framework

Other Linker Flags。添加 -ObjC。


@import TXLiteAVSDK_Live;
#import "TXLiteAVSDK_Live/TXLiteAVSDK.h"
- [AppDelegate application:didFinishLaunchingWithOptions:] 中)进行如下设置:@import TXLiteAVSDK_Live;@implementation AppDelegate- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {NSString * const licenceURL = @"<获取到的licenseUrl>";NSString * const licenceKey = @"<获取到的key>";// V2TXLivePremier 位于 "V2TXLivePremier.h" 头文件中[V2TXLivePremier setEnvironment:@"GDPR"]; // 设置环境[V2TXLivePremier setLicence:licenceURL key:licenceKey];[V2TXLivePremier setObserver:self];NSLog(@"SDK Version = %@", [V2TXLivePremier getSDKVersionStr]);}@end



文档反馈