使用说明

一、注意事项

  • SDK支持iOS9.0以及以上系统

  • SDK不支持模拟器

  • 使用文档/白板功能时,需要引入第三放库SDWebImage

  • 需要将工程中任意文件.m改为.mm,修改一个文件即可

  • 注意使用互动功能时,需要添加摄像头和麦克风的权限配置

二、报错处理

1、WebRTC.framework/WebRTC的错误

在TARGETS - General - Embedded Binaries下添加VhallLiveBaseApi、VhallSignalDynamic、WebRTC,如图:

iamge

2、does not contain bitcode的错误

在TARGETS - Build Setting - Enable Bitcode 将值改为NO

3、_utf8_nextCharSafeBody", referenced from

Undefined symbols for architecture arm64:
  "_utf8_nextCharSafeBody", referenced from:
      _validate_dispatch_data_partial_string in libVHCFoundation.a(VHSRWebSocket.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

在TARGETS - Build Phases - Link Binary With Libraries下添加库libicucore.tbd

4、std::terminate()", referenced from:

Undefined symbols for architecture arm64:
  "___cxa_begin_catch", referenced from:
      ___clang_call_terminate in libVHCInteractive.a(VhallStream.o)
  "std::terminate()", referenced from:
      ___clang_call_terminate in libVHCInteractive.a(VhallStream.o)
  "___gxx_personality_v0", referenced from:
      -[VhallStream init] in libVHCInteractive.a(VhallStream.o)
      -[VhallStream initLocalStreamWithOptions:attributes:] in libVHCInteractive.a(VhallStream.o)
      -[VhallStream initLocalStreamWithOptions:attributes:videoConstraints:audioConstraints:] in libVHCInteractive.a(VhallStream.o)
      -[VhallStream initLocalStreamVideoConstraints:audioConstraints:] in libVHCInteractive.a(VhallStream.o)
      -[VhallStream initWithStreamId:attributes:signalingChannel:] in libVHCInteractive.a(VhallStream.o)
      -[VhallStream dealloc] in libVHCInteractive.a(VhallStream.o)
      -[VhallStream setSignalingChannel:] in libVHCInteractive.a(VhallStream.o)
      ...
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

将工程中任意文件的.m改为.mm即可,比如将AppDelegate.m改为AppDelegate.mm