• 서비스
  • 가격
  • 리소스
  • 기술지원
이 페이지는 현재 영어로만 제공되며 한국어 버전은 곧 제공될 예정입니다. 기다려 주셔서 감사드립니다.

iOS

this document mainly introduces how to quickly integrate the RTC Room Engine SDK into your iOS project.

Development Environment Requirement

Xcode 15 or higher.
iOS 13.0 or higher.
CocoaPods environment installation. Click to view.
The project has been configured with an effective developer signature.

Integrating SDK

Solution 1: Use CocoaPods

Install CocoaPods

Enter the following command in a terminal window (you need to install Ruby on your Mac first):
sudo gem install cocoapods

Create Podfile File

Go to the project directory and enter the following command. A Podfile file will appear in the project directory afterward.
pod init

Edit Podfile File

Configure the Podfile as follows:
platform :ios, '13.0'

target 'App' do
use_frameworks!
# Add RoomEngine SDK
pod 'RTCRoomEngine'
end
Update and install the SDK
Enter the following command in a terminal window to update the local repository files and install the Chat SDK:
pod install
Or run this command to update the local repository:
pod update
After the pod command is executed, a project file with the .xcworkspace suffix integrated with the SDK will be generated. Just double-click to open it. If the pod search fails, it is advisable to try updating the local repo cache of pod. The update command is as follows:
pod setup
pod repo update
rm ~/Library/Caches/CocoaPods/search_index.json

Option 2: Use Spm

Open your Xcode project and click sequentially in the Xcode menu: File > Add Package Dependencies….
Enter the website address in the upper right corner of the pop-up dialog box: https://github.com/Tencent-RTC/RTCRoomEngine_SwiftPM.git.
Select Dependency Rule as Branch, with the branch name main, or select the version number you need. For Add to Project, choose the current project.

Click Add Package to enter the settings for the target interface.



Click Add Package to complete the integration.

Refer to RoomEngine SDK

Then, in the file where the project needs to use the SDK API, introduce the RoomEngine module.
import RTCRoomEngine

FAQs

How to Address Issues with Developer Sandbox Options in Xcode 15?

Sandbox: bash(xxx) deny(1) file-write-create



When you create a new project using Xcode 15, compilation and execution failure may occur due to this option. It is recommended that you disable this option.