mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
Telegram iOS Source Code Compilation Guide
- Install the brew package manager, if you haven’t already.
- Install the packages pkg-config, yasm: brew install pkg-config yasm
- Clone the project from GitHub:
git clone --recursive https://github.com/peter-iakovlev/Telegram-iOS.git
- Open Telegram-iOS.workspace.
- Open the Telegram-iOS-Fork scheme.
- Replace the contents of Config-Fork.xcconfig with
APP_NAME=Telegram Fork
APP_BUNDLE_ID=fork.telegram.Fork
APP_SPECIFIC_URL_SCHEME=tgfork
GLOBAL_CONSTANTS = APP_CONFIG_IS_INTERNAL_BUILD=false APP_CONFIG_IS_APPSTORE_BUILD=true APP_CONFIG_APPSTORE_ID=0 APP_SPECIFIC_URL_SCHEME="\"$(APP_SPECIFIC_URL_SCHEME)\""
GCC_PREPROCESSOR_DEFINITIONS = $(inherited) $(GLOBAL_CONSTANTS)
GCC_PREPROCESSOR_DEFINITIONS = $(inherited) APP_CONFIG_API_ID=8 APP_CONFIG_API_HASH="\"7245de8e747a0d6fbe11f7cc14fcc0bb\"" APP_CONFIG_HOCKEYAPP_ID="\"\""
- Replace group ID in Telegram-iOS-Fork.entitlements with
group.fork.telegram.Fork
. - Start the compilation process.
- To run the app on your device, you will need to set the correct values for the signature, .entitlements files and package IDs in accordance with your developer account values.
Description
Languages
C
43.8%
Swift
43.8%
Objective-C
5.1%
Assembly
3.3%
C++
1.7%
Other
1.8%