Make sure your development environment meets the following requirements:
Launch Xcode, and in the Welcome to Xcode window, click Create a new Xcode project. Alternatively, choose File > New > Project.
In the sheet that appears, select the iOS platform, then select App under Application, and then click Next.
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.
Specify a location to save the project, then click Create.
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.
Launch Xcode, then select File > Add Files to “[Project Name]” to add the SDK library files to the project.
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
.
Add the following permissions for your app to access the devices according to your app's requirements.
In Xcode, and select the project target.
Select Info, and under Custom iOS Target Properties, click the Add button (+).
Enter the Key as Privacy - Camera Usage Description
to add camera permissions.