[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-6734":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":5,"homepage":8,"htmlUrl":8,"language":9,"languages":8,"totalLinesOfCode":8,"stars":10,"forks":11,"watchers":12,"openIssues":13,"contributorsCount":14,"subscribersCount":14,"size":14,"stars1d":15,"stars7d":16,"stars30d":17,"stars90d":14,"forks30d":14,"starsTrendScore":18,"compositeScore":19,"rankGlobal":8,"rankLanguage":8,"license":8,"archived":20,"fork":20,"defaultBranch":21,"hasWiki":22,"hasPages":20,"topics":23,"createdAt":8,"pushedAt":8,"updatedAt":24,"readmeContent":25,"aiSummary":26,"trendingCount":14,"starSnapshotCount":14,"syncStatus":27,"lastSyncTime":28,"discoverSource":29},6734,"Telegram-iOS","TelegramMessenger\u002FTelegram-iOS","TelegramMessenger",null,"Swift",8596,2634,339,613,0,4,20,91,17,90.1,false,"master",true,[],"2026-06-12 04:00:30","# Telegram iOS Source Code Compilation Guide\n\nWe welcome all developers to use our API and source code to create applications on our platform.\nThere are several things we require from **all developers** for the moment.\n\n# Creating your Telegram Application\n\n1. [**Obtain your own api_id**](https:\u002F\u002Fcore.telegram.org\u002Fapi\u002Fobtaining_api_id) for your application.\n2. Please **do not** use the name Telegram for your app — or make sure your users understand that it is unofficial.\n3. Kindly **do not** use our standard logo (white paper plane in a blue circle) as your app's logo.\n3. Please study our [**security guidelines**](https:\u002F\u002Fcore.telegram.org\u002Fmtproto\u002Fsecurity_guidelines) and take good care of your users' data and privacy.\n4. Please remember to publish **your** code too in order to comply with the licences.\n\n# Quick Compilation Guide\n\n## Get the Code\n\n```\ngit clone --recursive -j8 https:\u002F\u002Fgithub.com\u002FTelegramMessenger\u002FTelegram-iOS.git\n```\n\n## Setup Xcode\n\nInstall Xcode (directly from https:\u002F\u002Fdeveloper.apple.com\u002Fdownload\u002Fapplications or using the App Store).\n\n## Adjust Configuration\n\n1. Generate a random identifier:\n```\nopenssl rand -hex 8\n```\n2. Create a new Xcode project. Use `Telegram` as the Product Name. Use `org.{identifier from step 1}` as the Organization Identifier.\n3. Open `Keychain Access` and navigate to `Certificates`. Locate `Apple Development: your@email.address (XXXXXXXXXX)` and double tap the certificate. Under `Details`, locate `Organizational Unit`. This is the Team ID.\n4. Edit `build-system\u002Ftemplate_minimal_development_configuration.json`. Use data from the previous steps.\n\n## Generate an Xcode project\n\n```\npython3 build-system\u002FMake\u002FMake.py \\\n    --cacheDir=\"$HOME\u002Ftelegram-bazel-cache\" \\\n    generateProject \\\n    --configurationPath=build-system\u002Ftemplate_minimal_development_configuration.json \\\n    --xcodeManagedCodesigning\n```\n\n# Advanced Compilation Guide\n\n## Xcode\n\n1. Copy and edit `build-system\u002Fappstore-configuration.json`.\n2. Copy `build-system\u002Ffake-codesigning`. Create and download provisioning profiles, using the `profiles` folder as a reference for the entitlements.\n3. Generate an Xcode project:\n```\npython3 build-system\u002FMake\u002FMake.py \\\n    --cacheDir=\"$HOME\u002Ftelegram-bazel-cache\" \\\n    generateProject \\\n    --configurationPath=configuration_from_step_1.json \\\n    --codesigningInformationPath=directory_from_step_2\n```\n\n## IPA\n\n1. Repeat the steps from the previous section. Use distribution provisioning profiles.\n2. Run:\n```\npython3 build-system\u002FMake\u002FMake.py \\\n    --cacheDir=\"$HOME\u002Ftelegram-bazel-cache\" \\\n    build \\\n    --configurationPath=...see previous section... \\\n    --codesigningInformationPath=...see previous section... \\\n    --buildNumber=100001 \\\n    --configuration=release_arm64\n```\n\n# FAQ\n\n## Xcode is stuck at \"build-request.json not updated yet\"\n\nOccasionally, you might observe the following message in your build log:\n```\n\"\u002FUsers\u002Fxxx\u002FLibrary\u002FDeveloper\u002FXcode\u002FDerivedData\u002FTelegram-xxx\u002FBuild\u002FIntermediates.noindex\u002FXCBuildData\u002Fxxx.xcbuilddata\u002Fbuild-request.json\" not updated yet, waiting...\n```\n\nShould this occur, simply cancel the ongoing build and initiate a new one.\n\n## Telegram_xcodeproj: no such package \n\nFollowing a system restart, the auto-generated Xcode project might encounter a build failure accompanied by this error:\n```\nERROR: Skipping '@rules_xcodeproj_generated\u002F\u002Fgenerator\u002FTelegram\u002FTelegram_xcodeproj:Telegram_xcodeproj': no such package '@rules_xcodeproj_generated\u002F\u002Fgenerator\u002FTelegram\u002FTelegram_xcodeproj': BUILD file not found in directory 'generator\u002FTelegram\u002FTelegram_xcodeproj' of external repository @rules_xcodeproj_generated. Add a BUILD file to a directory to mark it as a package.\n```\n\nIf you encounter this issue, re-run the project generation steps in the README.\n\n\n# Tips\n\n## Codesigning is not required for simulator-only builds\n\nAdd `--disableProvisioningProfiles`:\n```\npython3 build-system\u002FMake\u002FMake.py \\\n    --cacheDir=\"$HOME\u002Ftelegram-bazel-cache\" \\\n    generateProject \\\n    --configurationPath=path-to-configuration.json \\\n    --codesigningInformationPath=path-to-provisioning-data \\\n    --disableProvisioningProfiles\n```\n\n## Versions\n\nEach release is built using a specific Xcode version (see `versions.json`). The helper script checks the versions of the installed software and reports an error if they don't match the ones specified in `versions.json`. It is possible to bypass these checks:\n\n```\npython3 build-system\u002FMake\u002FMake.py --overrideXcodeVersion build ... # Don't check the version of Xcode\n```\n","Telegram-iOS是Telegram官方提供的iOS客户端源代码。该项目使用Swift语言开发，允许开发者基于其API和源代码构建自己的消息应用。它要求开发者自定义应用名称、图标，并遵守安全指南以保护用户数据与隐私。项目提供了详细的编译指导，包括获取代码、配置Xcode环境及生成Xcode项目的步骤，适合希望深入理解即时通讯应用架构或基于Telegram平台进行二次开发的iOS开发者使用。",2,"2026-06-11 03:08:35","top_language"]