{"id":20732405,"url":"https://github.com/jpush/jchat-swift","last_synced_at":"2025-04-09T09:05:54.259Z","repository":{"id":69039325,"uuid":"43346022","full_name":"jpush/jchat-swift","owner":"jpush","description":"Swift version of JChat iOS.","archived":false,"fork":false,"pushed_at":"2019-06-13T09:57:42.000Z","size":56377,"stargazers_count":292,"open_issues_count":20,"forks_count":63,"subscribers_count":27,"default_branch":"master","last_synced_at":"2025-04-02T06:09:40.038Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://docs.jiguang.cn","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jpush.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-09-29T05:04:06.000Z","updated_at":"2025-03-20T12:59:50.000Z","dependencies_parsed_at":"2023-06-13T09:15:49.639Z","dependency_job_id":null,"html_url":"https://github.com/jpush/jchat-swift","commit_stats":{"total_commits":113,"total_committers":7,"mean_commits":"16.142857142857142","dds":0.2743362831858407,"last_synced_commit":"96fede75359ac45a3a3b7a1fbdb569ac86e55882"},"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpush%2Fjchat-swift","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpush%2Fjchat-swift/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpush%2Fjchat-swift/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpush%2Fjchat-swift/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jpush","download_url":"https://codeload.github.com/jpush/jchat-swift/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248008629,"owners_count":21032556,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-17T05:19:14.148Z","updated_at":"2025-04-09T09:05:54.240Z","avatar_url":"https://github.com/jpush.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JChat-Swift\n\n[![Support](https://img.shields.io/badge/support-iOS%208%2B%20-blue.svg?style=flat)](https://www.apple.com/nl/ios/)\n[![Language](http://img.shields.io/badge/language-swift-brightgreen.svg?style=flat\n\t\t)](https://developer.apple.com/swift)\n[![License](http://img.shields.io/badge/license-MIT-lightgrey.svg?style=flat\n\t\t)](http://mit-license.org)\n\n​\t\t\n### 简介\n\nJChat 是基于 JMessage SDK 带有完整 UI 界面的即时通讯应用。 演示了完整的即时通讯功能，包括：\n\n* 单聊、群聊、会话列表、好友、通讯录；\n* 支持发送文本、图片、语音、表情、位置、小视频；\n* 提供用户管理、群组管理、黑名单、免打扰、消息漫游等功能；\n\nJChat 同时具备好友模式和无好友模式：\n\n* 无好友模式：无需将对方加为好友，通过搜索对方的用户名可直接发起聊天。\n* 好友模式：可申请将对方加为好友，对方会收到好友验证，验证通过则互为好友关系。\n\n目前已覆盖 iOS、 [Android](https://github.com/jpush/jchat-android) 、 [Web](https://github.com/jpush/jchat-web) 和 [Windows](https://github.com/jpush/jchat-windows) 平台，开发者可参照 JChat 快速打造自己的 APP，提高开发效率。\n\n![image](Images/1.gif)\n\n### 应用截图\n\n![image](Images/2.jpg)\n\n### 环境配置\n\n一、前提：安装 CocoaPods \n\n在终端输入：\n\n```\nsudo gem install cocoapods\n```\n如果安装成功，会有提示：\n\n```\nSuccessfully installed cocoaPods\n```\n\n二、使用 CocoaPods 导入依赖库\n\n在当前工程文件（.xcodeproj）所在文件夹下，打开终端，并执行：\n\n```\npod install（这个可能比较慢，请耐心等待……）\n```\n\n### 运行应用\n\n一、打开项目文件 JChat.xcworkspace\n​\t\n二、配置运行的基本属性\n\n1. 填写项目工程中的 Bundle Identifier\n2. 在 AppDelegate.swift 文件中，按提示填入自己项目的 AppKey。AppKey 是 JMessage SDK 运行的基本参数，如示未获取到应的 AppKey，请到极 [极光官方网站](https://jiguang.cn) 登录控制台创建应用获取。\n\n### 功能配置\n\n一、消息回执功能\n\n如果不需要支持已读未读功能，在 Build Settings 中，找到 Swift Compiler - Custom Flags，并在其中的 Other Swift Flags 删除 -D READ_VERSION。\n\n### JMessage 文档\n\n* [JMessage iOS 集成指南](https://docs.jiguang.cn/jmessage/client/jmessage_ios_guide/)\n* [JMessage iOS 开发指南](https://docs.jiguang.cn/jmessage/client/im_sdk_ios/)\n* [JMessage iOS API Docs](https://docs.jiguang.cn/jmessage/client/jmessage_ios_appledoc_html/)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjpush%2Fjchat-swift","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjpush%2Fjchat-swift","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjpush%2Fjchat-swift/lists"}