{"id":13611431,"url":"https://github.com/leancloud/leancloud-social-ios","last_synced_at":"2026-03-09T00:31:39.579Z","repository":{"id":32139406,"uuid":"35712170","full_name":"leancloud/leancloud-social-ios","owner":"leancloud","description":"LeanCloud 社交登录组件，轻松加入 QQ、微博、微信登录","archived":false,"fork":false,"pushed_at":"2021-06-09T06:44:49.000Z","size":11212,"stargazers_count":159,"open_issues_count":17,"forks_count":50,"subscribers_count":32,"default_branch":"master","last_synced_at":"2025-10-20T21:49:02.163Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://leancloud.cn/docs/sns.html","language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/leancloud.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-05-16T06:06:17.000Z","updated_at":"2024-02-24T12:46:56.000Z","dependencies_parsed_at":"2022-08-20T21:50:16.840Z","dependency_job_id":null,"html_url":"https://github.com/leancloud/leancloud-social-ios","commit_stats":null,"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"purl":"pkg:github/leancloud/leancloud-social-ios","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leancloud%2Fleancloud-social-ios","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leancloud%2Fleancloud-social-ios/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leancloud%2Fleancloud-social-ios/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leancloud%2Fleancloud-social-ios/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leancloud","download_url":"https://codeload.github.com/leancloud/leancloud-social-ios/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leancloud%2Fleancloud-social-ios/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30278512,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-08T20:45:49.896Z","status":"ssl_error","status_checked_at":"2026-03-08T20:45:49.525Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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-08-01T19:01:55.211Z","updated_at":"2026-03-09T00:31:39.561Z","avatar_url":"https://github.com/leancloud.png","language":"Objective-C","funding_links":[],"categories":["Objective-C"],"sub_categories":[],"readme":"\n# 本 Demo 不再更新维护。\n\n## leancloud-social-ios\n\n[![Podspec][podspec-svg]][podspec-link]\n![Platforms][platforms-svg]\n[![Dependencies][dependencies-svg]][dependencies-link]\n\nLeanCloud Social Network 模块是 [LeanCloud](https://leancloud.cn) 开源的一个第三方平台登录、分享组件，目前支持 QQ 空间、新浪微博、微信三个平台，具体使用方法可以参看[文档](https://leancloud.cn/docs/sns.html)。\n\n## 视频演示\n请用浏览器打开[视频](http://ac-x3o016bx.clouddn.com/a294809feb0c6a8a.mp4) ，相应的代码见[这里](https://github.com/leancloud/leanchat-ios/blob/master/LeanChat/LeanChat/controllers/entry/CDLoginVC.m#L252-L278)。 \n\n## 如何运行 demo\n\n```\n \tcd leancloud-social-ios\n \tpod install --verbose (如果本地安装过 AVOSCloud 库，则可以加选项 --no-repo-update，加快速度)\n \topen LeanCloudSocial.xcworkspace\n```\n\n## 使用方法\n具体的使用方法可以参看[文档](https://leancloud.cn/docs/sns.html)。\n我们推荐用 pod 方式来安装这一组件\t\n```\n\tpod 'LeanCloudSocial'\n```\n\n也可参考 [LeanChat](https://github.com/leancloud/leanchat-ios)，这个应用使用了这一组件来实现第三方登录，像上面视频所演示的那样。相应代码见[这里](https://github.com/leancloud/leanchat-ios/blob/master/LeanChat/LeanChat/controllers/entry/CDLoginVC.m#L181-L278)。\n\n## 宝贵意见\n如果有任何问题，欢迎提 [issue](https://github.com/leancloud/leancloud-social-ios/issues) ，写上你不明白的地方，看到后会尽快给予帮助。\n\n## 如何贡献\n你可以通过提 issue 或者发 pull request 的方式，来贡献代码。开源世界因你我参与而更加美好。\n\n\n## 项目结构\n为了便于测试，我们将 Social Network 模块的代码和 demo 都放在了一起，整个 repo 结构如下：\n\n```\n.\n├── LeanCloudSocial  \u003c--- LeanCloudSocial 框架代码\n├── LeanCloudSocial.podspec  \u003c--- podspec 描述\n├── LeanCloudSocialDemo  \u003c--- Demo 项目\n│   ├── LeanCloudSocialDemo\n│   ├── LeanCloudSocialDemo.xcodeproj\n│   ├── LeanCloudSocialDemo.xcworkspace \u003c--- Demo及框架 workspace，这里打开\n│   └── Podfile   \u003c--- Demo和框架的 Podfile \n├── LeanCloudSocialTests\n└── README.md\n```\n\n## 如何编译\n### Xcode 编译\n在 Xcode 中选择 UniversalFramework Target，设备选为 iOS Device，在 Product 菜单中选择 Archive 即可开始编译。编译完成之后会在当前 build 目录下\n\n```\n.\n├── LeanCloudSocial.build\n│   ├── Release-iphoneos\n│   │   └── LeanCloudSocial.build\n│   └── Release-iphonesimulator\n│       └── LeanCloudSocial.build\n└── Release-iphoneuniversal\n    └── LeanCloudSocial.framework \u003c------ 这里就是编译出来的 framework\n```\n\n### 命令行编译\n在项目根目录下执行如下语句，即可开始编译\n\n```\nxcodebuild -target UniversalFramework -config Release\n```\n\n编译之后的结果文件目录和上面示例一致。\n\n## 其他问题\n\nQ： 使用 CocoaPods 安装，提示无法找到  ` AVUser+SNS.h ` 文件的错误\n\nA：删除你项目根目录下的 Pods 文件夹以及 Podfile.lock这个文件，然后重新 pod install \n\n![enter image description here](http://i68.tinypic.com/28u19xx.jpg)\n\n\nQ ：我要增加其他平台，该怎么做？\n\nA：我可以使用其他 SDK 来做登录，然后把授权信息绑定到 AVUser 吗？\n\n\n## 发布日志\n发布流程：更改 podspec 版本，打 tag，推送到仓库，执行`pod trunk push LeanCloudSocial.podspec --verbose --allow-warnings --use-libraries`。\n\n0.0.8\n\n* fix bug：修复因为 null 而引起崩溃的 bug\n\n0.0.7   \n* 因为 AFNetworking 2.6 最低支持 7.0，同时考虑到微信等应用也是最低支持 7.0。故 LeanCloudSocial 项目支持的 iOS 版本从 6.0 提升成 7.0。\n* 仅公开 AVUser+SNS.h、AVOSCloudSNS.h 头文件。\n\n0.0.6   \n* 调整目录结构。同时发布动态库，可通过 `pod LeanCloudSocialDynamic` 引入到项目中。\n\n0.0.5\t\n* 重构部分函数，使命名更符合 Cocoa 规范\n\n0.0.4\t\n* 支持微信 SSO 登录，对 -[AVOSCloudSNS loginWithCallback:toPlatform] 第二个参数传入 AVOSCloudSNSWeiXin 即可。\n* 同时提供 -[AVOSCloudSNS isAppInstalledWithType] 来检测相应的应用有没安装。\n\n0.0.3\t\n* 重命名 LCHttpClient 至 AVSNSHttpClient，避免和其它LC的模块冲突\n\n0.0.2\t\n* 使用 AFNetworking ~2.0 版本，使得主项目能够和此库共用同一个 AFNetworking 版本。如果主项目使用的是 AFNetworking 1.0，推荐使用 LeanCloudSocial 0.0.1 版本。\n\n0.0.1\t\n* 重命名模块后发布\n\n## License\nMIT\n\n [podspec-svg]: https://img.shields.io/cocoapods/v/LeanCloudSocial.svg\n [podspec-link]: https://cocoapods.org/pods/LeanCloudSocial\n\n [platforms-svg]: https://img.shields.io/badge/platform-ios-lightgrey.svg\n\n [dependencies-svg]: https://img.shields.io/badge/dependencies-2-yellowgreen.svg\n [dependencies-link]: https://github.com/leancloud/leancloud-social-ios/blob/master/LeanCloudSocial.podspec#L15-L16\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleancloud%2Fleancloud-social-ios","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleancloud%2Fleancloud-social-ios","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleancloud%2Fleancloud-social-ios/lists"}