


Please ensure that the development environment meets the following technical requirements:
Please go to Console Management Console to register an account and apply for the AppID and AppSign required to initialize the SDK. For the application process, please refer to ZEGO Admin Console User Manual.
Open the AppStore
, search for Xcode
, download and install it.
Use Xcode to open ZegoExpressExample-iOS-OC.xcodeproj
.
a. Open Xcode and select File
> Open...
in the upper left corner
b. Select ZegoExpressExample-iOS-OC.xcodeproj
in the unzipped sample code folder, and click Open
.
Log in to your Apple ID account.
a. Open Xcode and select Xcode
> Preference
in the upper left corner.
b. Click the Account
tab, click the +
sign in the lower left corner, select to add an Apple ID, and click Continue
.
c. Enter Apple ID and password to log in.
Modify the developer certificate and Bundle Identifier.
a. Open Xcode and click the ZegoExpressExample-iOS-OC
project on the left.
b. Click the Signing & Capabilities
tab and select your own developer certificate in the Team
.
The downloaded sample code lacks the AppID and AppSign required for SDK initialization. You need to modify the ZGKeyCenter.m
file in the ZegoExpressExample-iOS-OC/Helper
directory. Please use the AppID and AppID obtained in the "Prerequisites" of this article. Fill in AppSign correctly, otherwise the sample code will not run normally.
Connect the iOS device to the development computer, click Generic 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.
Compile the sample code time report The app ID "im.zego.ZegoExpressExample-iOS-Objective-C" 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 "Guidelines for Running Sample Code", switch to your own development certificate in Targets
-> Signing & Capabilities
and modify Bundle Identifier
before running.
Free trial
Contact us
Cont-act us