其他语言版本:简体中文
This page introduces how to run the iOS sample project.
-
Make sure you have made the preparations mentioned in the Agora Meeting Guide.
-
Prepare the development environment:
- Xcode 12.0 or later
- CocoaPods
-
Real iOS devices, such iPhone.
Follow these steps to run the sample project:
1.Clone the repository to your local machine.
git clone https://github.com/AgoraIO-Community/AgoraMeeting-iOS
2.Enter Directory
cd AgoraMeeting-iOS/App
3.Install dependencies.
pod install
4.Open the iOS project
open VideoConference.xcworkspace
5.Configure parameters
Pass the following parameters in KeyCenter.m
:
- The Agora App ID that you get.
- The
Authorization
parameter that you have generated for basic HTTP authentication.
For details, see the prerequisites in Agora Meeting Guide.
+ (NSString *)agoraAppid {
return <#Your Agora App Id#>;
}
+ (NSString *)customerCertificate {
return <#Your customerCertificate#>;
}
- You should set App Group Id, when need screen share function
- set value for key(
AppGroupId
) with App Group Id inVideoConference
target. - set App Group Id in
SampleHandler.swift
inline54
- Run the project with
command + r
.
- You can read the full set of documentations and API reference at Agora Developer Portal.
- You can ask for technical support by submitting tickets in Agora Console.
- You can submit an issue if you find any bug in the sample project.
Distributed under the MIT License. See LICENSE
for more information.