Updated on 2025-04-03 GMT+08:00

Installing the SDK

Preparing a Development Environment

Download the latest version of Xcode from the Xcode's official website.

iOS Project Configuration

  1. Download the OBS iOS SDK software package by referring to SDK Download Links.
  2. On Xcode, create a project.
  3. Add OBS.framework to the project and select Copy items if needed.

  4. Choose TARGETS > Build Settings > Linking > Other Linker Flags and add the flag:

    -force_load

    $(SRCROOT)/XXX/OBS.framework/OBS

    XXX indicates the path of OBS.framework in the project folder.

  5. Choose TARGETS > Build Settings > Apple Clang - Language - Modules and set Allow Non-modular Includes In Framework Modules to Yes.

  6. Import the OBS header file when needed.

    #import <OBS/OBS.h>

  7. Run command+B to check whether OBS.framework passes the compilation.

FAQ

Mac OSX Project Configuration

  1. Download the OBS iOS SDK software package by referring to SDK Download Links.
  2. On Xcode, create a project.
  3. Add OBS.framework to the project and select Copy items if needed.

  4. Choose TARGETS > Build Settings > Apple LLVM9.0 - Language - Modules and set Allow Non-modular Includes In Framework Modules to Yes.

  5. Set network connections.

  6. Import the OBS header file when needed.

    #import <OBS/OBS.h>

  7. Run command+B to check whether OBS.framework passes the compilation.