ZEGO no longer classifies environments into production environments and testing environments.
Open AppStore, search for "Xcode", download and install it.
Use Xcode to open "ZegoExpressExample.xcodeproj".
Open Xcode and select "File > Open..." in the upper left corner.
Select "ZegoExpressExample.xcodeproj" in the unzipped sample code folder, and click "Open".
Log in to your Apple ID account.
Open Xcode and select "Xcode > Preferences..." in the upper left corner.
Click the "Account" tab, click the "+" in the lower left corner to sign, select to add an Apple ID, and click "Continue".
Enter Apple ID and Password to log in.
Modify the developer certificate and Bundle Identifier.
Open Xcode and click the "ZegoExpressExample" project on the left.
ARGETS. Developers can click the "General" tab to modify the Bundle Identifier of the project according to their needs; click the "Signing & Capabilities" tab to select their own developer certificate.
// Developers can get appID from admin console. // https://console.zego.im/dashboard // for example: 123456789; static unsigned int _appID = <#Enter your appID#>; // Developers should customize a user ID. // for example: @"zego_benjamin"; static NSString *_userID = @"<#Enter your userID#>"; // Developers can get token from admin console. // https://console.zego.im/dashboard // Note: The user ID used to generate the token needs to be the same as the userID filled in above! // for example: @"04AAAAAxxxxxxxxxxxxxx"; static NSString *_token = @"<#Enter your token#>";
Connect the iOS device to the development computer, click "Any iOS Device" in the upper left corner of Xcode to select the iOS device (or simulator).
Click the Build button in the upper left corner of Xcode to compile and run the sample code.
We recommend you run your project on a real device. If your app runs successfully, you should hear the sound and see the video captured locally from your device.
To test out the real-time audio and video features, visit the ZEGO Express Web Demo, and enter the same
RoomID to join the same room. If it runs successfully, you should be able to view the video from both the local side and the remote side, and hear the sound from both sides as well.
In audio-only scenarios, no video will be captured and displayed.
Compile the sample code time report 'The app ID "im.zego.ZegoExpressExample" cannot be registered to your development team. Change your bundle identifier to a unique string to try again.' What should I do?
Refer to the steps of "Modify Developer Certificate and Bundle Identifier" in the above Run the Sample Codes, switch to your own development certificate in "Targets > Signing & Capabilities" and modify "Bundle Identifier" before running.