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….
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.
importRTCRoomEngine
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.