Before running the sample code, make sure your development environment meets the following requirements:
Before you begin, make sure you complete the following steps:
Install Xcode from the AppStore.
Launch Xcode, and open the project file
In Xcode, select the menu File > Open.
ZegoEffectsExample.xcodeproj file in the unzipped sample code folder, and click Open.
Add your Apple developer account.
Select the menu Xcode > Preferences.
Click Accounts .
In the lower-left corner, click the Add button (+).
In the sheet that appears, choose Apple ID, then click Continue.
In the next sheet, enter your Apple ID, click Next, enter your password, then click Next.
Change the bundle ID and signing certificate.
In Xcode, select the ZegoEffectsExample project in the project navigator.
Click Signing & Capabilities. Under Signing, choose your team from the Team pop-up menu, and change Bundle Identifier to your own setting.
Specify the license information (AppID and AppSign), which are required for initializing the SDK.
a. Obtain the AppID and AppSign according to the 2 Prerequisites.
b. To run the Objective-C target ZegoEffectsExampleLegacy, modify the
ZegoLicense.m file in the
Connect the iOS device to your development computer.
In Xcode, click Generic iOS Device in the upper-left corner, and select the iOS device you just connected. Or, you can choose to use a simulator.
Click the Run button to build and run the sample code.