This guide walks you through running the TUILiveKit iOS Demo in about 10 minutes. You'll experience a fully-featured live streaming solution with a complete UI. After setup, your app will look like the examples below:
Host Preview Before Going Live
Host Live Streaming
Audience Viewing
Host and Audience Co-hosting
Quick Experience
You can directly experience all Live features using the following methods.
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.
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:
openTUIKit_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
On the login page, enter your User ID and click Login. After a successful login, you'll be taken to the Demo home page. Use the home page entry points to explore the features shown in the sample screenshots above.
Sign-in Page
Home Page
Next Steps
After running the Demo, refer to the following integration guides to add these features to your own project:
Feature
Description
Integration Guide
Video Live Streaming
Supports ultra-low latency HD streaming, multi-user co-hosting/PK, real-time beauty filters, bullet comments, and gift interactions—enabling you to build interactive video live streaming scenarios.
If Xcode cannot download or resolve the Swift Package dependency, check whether your network can access GitHub. Then select File > Packages > Reset Package Caches and File > Packages > Resolve Package Versions in Xcode, and rebuild the project.
Encounter signature errors or login failures when running the Demo?