Installing the SDK
Preparing a Development Environment
Download the latest version of Xcode from the Xcode's official website.
iOS Project Configuration
- Download the OBS iOS SDK software package by referring to SDK Download Links.
- On Xcode, create a project.
- Add OBS.framework to the project and select Copy items if needed.
- 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.
- Choose TARGETS > Build Settings > Apple Clang - Language - Modules and set Allow Non-modular Includes In Framework Modules to Yes.
- Import the OBS header file when needed.
#import <OBS/OBS.h>
- Run command+B to check whether OBS.framework passes the compilation.
Mac OSX Project Configuration
- Download the OBS iOS SDK software package by referring to SDK Download Links.
- On Xcode, create a project.
- Add OBS.framework to the project and select Copy items if needed.
- Choose TARGETS > Build Settings > Apple LLVM9.0 - Language - Modules and set Allow Non-modular Includes In Framework Modules to Yes.
- Set network connections.
- Import the OBS header file when needed.
#import <OBS/OBS.h>
- Run command+B to check whether OBS.framework passes the compilation.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.