File Sharing
  • Platform
  • Framework / Engine
  • iOS
  • Android
  • macOS
  • Windows
  • Linux
  • Web
  • WeChat Mini Program

Integration

Update Time:2021-04-25 20:24

1 Prerequisites

2 Prepare the Environment

  • Xcode 6.0 or above.
  • iOS device or simulator with iOS 8.0 or above (recommended to use a real device).
  • The iOS device is connected to the Internet.

3 Integrated SDK

3.1 Install Xcode

  • Open the AppStore, search for Xcode, download and install it.

3.2 Log in to Apple ID Account

  • Open Xcode, select Xcode > Preference in the upper left corner, click the Account tab, click the + sign in the lower left corner, and select Add Apple ID.

  • Enter Apple ID and password to log in.

3.3 Import SDK

The SDK library file contains two folders iphoneos and iphoneos_simulator, the differences are as follows:

  1. iphoneos is only used for real-device debugging. The user needs to use ZegoDocsView.framework under this file when it is finally released, otherwise it may be called back by Apple;
  2. iphonos_simulator contains libraries for debugging on real devices and simulators. If you use the simulator to debug during the development process, you need to import ZegoDocsView.framework in this folder. But when it is finally released, switch back to the framework under the iphoneos file.

In the following setting steps, please select the framework file that meets the development requirements.

  • Manually copy the SDK dynamic library files to the project directory.
  • Open Xcode and use [Add Files to "xxx" (xxx is the user's project name)] to add the SDK dynamic library files to the project.
  • In Xcode, select TARGET > General > Frameworks, Libraries, and Enbedded Content, add ZegoDocsView.framework, and set to "Embed to Embed & Sign".
  • Open Xcode, select TARGET > General > Deployment Target, set 8.0 or above.