更新时间:2024-03-29 GMT+08:00
分享

安装SDK

iOS工程配置

  1. 下载OBS iOS SDK软件包。
  2. 使用Xcode新建工程。
  3. 将OBS.framework添加到工程中,勾选“Copy items if needed”。

  4. 在“TARGETS > Build Settings > Linking > Other Linker Flags”添加如下标识:

    -force_load

    $(SRCROOT)XXX/OBS.framework/OBS

    其中“XXX”代表OBS.framework在工程文件夹下的位置。

  5. 将“TARGETS > Build Settings > Apple Clang – language –Modules > Allow Non-modular includes in Framework Modules”设置成“Yes”。

  6. 在需要用到OBS服务的头文件中导入OBS软件包。

    #import <OBS/OBS.h>

  7. 运行Command+B命令确认OBS.framework编译通过。

Mac OSX工程配置

  1. 下载OBS iOS SDK软件包。
  2. 使用Xcode新建工程。
  3. 将OBS.framework添加到工程中,勾选“Copy items if needed”。

  4. 在“TARGETS > Build Settings > Apple LLVM9.0 – language –Modules > Allow Non-modular includes in Framework Modules”设置成“Yes”。

  5. 设置网络连接。

  6. 在需要用到OBS服务的头文件中导入OBS软件包。

    #import <OBS/OBS.h>

  7. 运行Command+B命令确认OBS.framework编译通过。
分享:

    相关文档

    相关产品