Make sure your development environment meets the following requirements:
Before you begin, make sure you complete the following steps:
If you haven't done so already, install Xcode from the AppStore.
Launch Xcode, and open the file ZegoWhiteboardExample.xcworkspace
.
a. In Xcode, select the menu File > Open.
b. Select the file ZegoWhiteboardExample.xcworkspace
in the unzipped sample code folder, and click Open.
Add your Apple developer account.
a. Select the menu Xcode > Preferences.
b. Click Accounts.
c. In the lower-left corner, click the Add button (+).
d. In the sheet that appears, choose Apple ID, then click Continue.
e. In the next sheet, enter your Apple ID, click Next, enter your password, then click Next.
Change the bundle ID and signing certificate.
a. In Xcode, select the ZegoWhiteboardExample project in the project navigator.
b. Click Signing & Capabilities. Under Signing, choose your team from the Team pop-up menu, and change Bundle Identifier to your own setting.
Modify the ZegoLocalEnvManager.m
file to specify your AppID and AppSign, which are required for initializing the SDK.
Connect the iOS device to your development computer.
In Xcode, click Any iOS Device, and select the iOS device you just connected.
Switch to the folder where the file Podfile
is located, run the command pod install
in the Terminal, and then wait for the command to complete.
Click the Build button to compile and run the sample code.