tencent cloud

Tencent Real-Time Communication

iOS

ダウンロード
フォーカスモード
フォントサイズ
最終更新日: 2026-11-17 18:07:03
This document provides a quick guide to running the TUIRoomKit video conference Demo, allowing you to experience high-quality multi-party video meetings. By following this guide, developers can get the Demo up and running within 10 minutes and ultimately experience a fully-featured UI for multi-party conferencing.
Room Preparation Page
Room Main Page
Member Management










Prerequisites

Activate the Service

Follow the instructions in Activate the Service to create a Room application and obtain the following information:
SDKAPPID: The Room application's ID from the Console, which uniquely identifies your application.
SECRETKEY: The application's SecretKey.

Environment Setup

Before you start, make sure your environment meets these requirements:
Xcode 16 or later (Swift Package manifest requires Swift Tools 6.0). Test devices must run iOS 15.0 or above.
Swift Package Manager is built into Xcode; you do not need to install CocoaPods. Initial dependency resolution requires access to GitHub and SDK download URLs.
Signed in to Apple ID in Xcode. If you do not have an Apple Developer account, you can use a free Apple ID for development and testing.

Get the Demo

1. Download the source code:
Clone the project locally
Download and extract the Demo
Run this command in your terminal:
git clone https://github.com/Tencent-RTC/TUIKit_iOS
Download the GitHub source code and extract it.
Note:
Keep the entire repository directory intact. The project references sibling room/ and live/ directories via local Swift packages, so you cannot download or move only the application/ folder.
2. Open application/App-UIKit.xcodeproj in Xcode. If you cloned the repo, you can also run:
open TUIKit_iOS/application/App-UIKit.xcodeproj
3. Wait for Xcode to automatically resolve Swift package dependencies. If it does not start automatically, go to File > Packages > Resolve Package Versions. If you see a failed to fetch error, see the FAQs below.
The project is already configured with dependencies; you do not need to manually add RoomKit_SwiftPM, run pod install, or open a separate .xcworkspace file.

Setup

1. Configure SDKAPPID and SECRETKEY: Enter your application's SDKAPPID and SECRETKEY in `application/Debug/GenerateTestUserSig.swift`. The demo will automatically generate a test `UserSig` based on the `UserID` entered during login, so there is no need to provide a `UserSig` manually. Please do not confuse these fields with the `DEBUG_SDKAPPID` and `DEBUG_SECRETKEY` constants found in the same file.



2.
Configure Apple Developer Signing:
In the project's TARGETS under Signing & Capabilities, select Automatically manage signing, and set your Apple Developer account and Bundle Identifier:




Build and Run the Demo

Multi-party conferencing requires camera and microphone access. For best results, debug and run the Demo on a physical device.
1.
Connect your iOS device to your computer. On your device, go to Settings > Privacy & Security > Developer Mode and enable Developer Mode.
2.
In Xcode's top toolbar, select your iOS device from the iOS Device dropdown menu.
3. Click the run button to deploy the app to your device.
Tip:
To fully experience the conference room workflow, run the Demo on two devices and log in with two different users (for example, one device as the host and one as a participant).




Login and Registration

After launching the Demo, enter your User ID to log in. If the User ID has not been registered, you will be redirected to the registration page to set your nickname.
Login Page
Registration Page






Tip:
Avoid using simple UserIDs like "1", "123", or "111" to prevent login failures caused by duplicate IDs during multi-user testing. For debugging, use a unique UserID.

Room Features

After logging in, access the TUIRoomKit Demo feature page from the conference entry on the main page.
Feature Entry
Standard Room Main Page
Member Management Panel









Note:
To experience Audio/Video interconnectivity across different devices, make sure the SDKAPPID in the TUIKit_iOS/application/Debug/GenerateTestUserSig.swift file is the same on all devices.

FAQs

Handling failed to fetch During Dependency Resolution

If you see failed to fetch during dependency resolution, it means a dependency could not be retrieved. Check the repository address and error details, then troubleshoot as follows:
1.1 Retry if it's an occasional failure: Go to File > Packages > Resolve Package Versions.
1.2 Check the failing repository: In your terminal, run the following command, replacing the sample URL with the repository address from the error:
git ls-remote https://github.com/Tencent-RTC/AtomicXCore_SwiftPM.git
If you see a timeout, connection lost, or DNS resolution failure: Check your network or switch networks. If using a proxy, ensure both terminal and Xcode can access GitHub; browser access alone is not enough.
If you see Repository not found or authentication failure: Verify the address and access permissions. Public dependencies for this Demo do not require a GitHub Token.
1.3 If the repository is accessible but Xcode still fails: Run File > Packages > Reset Package Caches, then Resolve Package Versions. If needed, close and reopen Xcode. Clearing the cache will re-download dependencies; avoid repeated cache clearing if your network is down.
1.4 Use system Git for resolution: If the terminal can access the repository but Xcode still fails, run the following command in the TUIKit_iOS repo root. This uses system Git for dependency resolution:
xcodebuild -resolvePackageDependencies \\
-project application/App-UIKit.xcodeproj \\
-scheme App-UIKit \\
-scmProvider system
1.5 Verify recovery: After the command completes successfully, reopen application/App-UIKit.xcodeproj, wait for dependencies to resolve, select the App-UIKit scheme, and press Command + B to build. If dependencies no longer report errors and the build succeeds, proceed with the physical device run steps in this guide. If Xcode still reports fetch failures, recovery is not complete—please contact technical support as described below.
If errors occur during binary SDK download, check the actual download URL in the logs, not just GitHub. If you see "local package not found," ensure you are using and keeping the original directory structure for application/, room/, and live/. If you see "requires Swift tools version 6.0," you need Xcode 16 or later.
If you still cannot resolve the issue, contact us for support., specify that it's the TUIKit_iOS Demo, and include:
Xcode and macOS versions, and the failing repository or SDK download URL.
The full error output from the above commands, and the troubleshooting steps you have tried.
Before submitting, remove any tokens, SecretKeys, and other sensitive information from logs. You do not need to provide your SECRETKEY or UserSig.

Resolving Demo Signing Errors or Login Failures

Verify that the SDKAPPID and SECRETKEY entered in TUIKit_iOS/application/Debug/GenerateTestUserSig.swift match the credentials from the TRTC Console > Application Management.

If only the meeting functionality is needed, should the other modules be removed?

You can run the demo without needing to modify or delete any other modules; simply log in and navigate to the meeting entry point. When integrating into your own app, please refer to the quick integration documentation to add TUIRoomKit—there is no need to copy the entire demo.

Contact Us

If you have any questions or suggestions during integration or use, contact info_rtc@tencent.com for support.

ヘルプとサポート

この記事はお役に立ちましたか?

フィードバック