cometchat sample app ios
4.3.8
此参考应用程序展示了 CometChat 的 iOS UI Kit 在 iOS 框架中的集成。它为开发人员提供了在基于 iOS 的应用程序中实现实时消息传递以及语音和视频通话功能的示例。
App ID
、 Region
和Auth Key
克隆存储库:
git clone https://github.com/cometchat/cometchat-sample-app-ios.git
导航到项目目录:
cd cometchat-sample-app-ios/CometChatSwift
安装依赖项:
pod install
如果您在安装 pod 时遇到任何问题,请使用以下命令。
pod install --repo-update
在 Xcode 中,通过打开cometchat-sample-app-ios/CometChatSwift.xcworkspace
打开项目
在 CometChatSwift/AppConstants.swift 文件中输入您的 CometChat App ID
、 Region
和Auth Key
:
cometchat-sample-app-ios/CometChatSwift/AppConstants.swift
056b60f 中的第 9 至 13 行
如果您的应用程序是在 2024 年 8 月 12 日之前创建的,则将 CometChatSwift/Controllers/Login.swift 文件中的示例数据 URL 更改为https://assets.cometchat.io/sampleapp/v1/sampledata.json
:
cometcha-sample-app-ios/CometChatSwift/Controllers/Login.swift
056b60f 中的第 109 至 111 行
在设备或模拟器上运行应用程序。
对于运行项目或与我们的 UI 套件集成的问题,请查阅我们的文档或创建支持票证或通过 CometChat 仪表板寻求实时支持。