Documentation
AI_Vision AI Effects
Documentation
Demo APP
SDK Center
API Center
FAQ
Code Market
Console
Sign Up
Log In
中文站 English
  • Documentation
  • AI Effects
  • Getting started
  • Integrate the SDK

Integrate the SDK

Last updated:2022-07-27 11:33

Prerequisites

Make sure your development environment meets the following requirements:

  • Xcode 5.0 or later
  • An iOS device running on iOS 13.0 or later

Create a new project

  1. Launch Xcode, and in the Welcome to Xcode window, click Create a new Xcode project. Alternatively, choose File > New > Project.

  2. In the sheet that appears, select the iOS platform, then select App under Application, and then click Next.

  3. In the sheet that appears, fill in the text fields and choose options from the pop-up menus to configure your project, then click Next.

    You must enter a Product Name and Organization Identifier to create the bundle identifier that identifies the App in the entire system.

  4. Specify a location to save the project, then click Create.

Import the SDK

  1. Contact the ZEGO team to get the latest version of the SDK. Extract the SDK package after you download it.

    ZEGO provides the SDK in XCFramework format, which supports the arm64 and x86_64 architectures, but does not support the armv7 architecture.

  2. Launch Xcode, then select File > Add Files to “[Project Name]” to add the SDK library files to the project.

  3. Do the following to add the framework file to the project target:
    a. Select the project target.

    b. Click General, then under Frameworks, Libraries, and Embedded Content, click the Add button (+) below the table.

    c. Add ZegoEffects.xcframework to the target, and set Embed to Embed & Sign.

    /Pics/AI_Vision/QuickStarts/integration_macOS_1.png

Add app permissions

Add the following permissions for your app to access the devices according to your app's requirements.

  1. In Xcode, and select the project target.

  2. Select Info, and under Custom iOS Target Properties, click the Add button (+).

    AddPrivacy

  3. Enter the Key as Privacy - Camera Usage Description to add camera permissions.

    /Pics/AI_Vision/QuickStarts/add_Camera_Privacy_ios.png

Related documents

  • How to obtain the SDK stack traces?
  • How to obtain the SDK logs?
  • How to handle the error that occurred when archiving your app in Xcode?
Page Directory
  • Free trial
  • 提交工单
    咨询集成、功能及报价等问题
    电话咨询
    400 1006 604
    Get Consulting
    Scan Wechat QR code