Tested only in a simulator.
Compiles the official Telegram iOS Repo on Github as of 9bd7c529b2212b1195d21346bbd7b8c04dfdb8ae.
You'll need an API Key / Hash pair to build a working client.
- Clone Telegram repo
$ git clone --recursive https://github.com/peter-iakovlev/Telegram
cd
into repo
$ cd Telegram
- Create stub for build version scripts
$ mkdir tools
$ echo '#!/bin/bash -c true' > tools/bump_build_number.sh
$ echo '#!/bin/bash -c true' > tools/sync_watch_version.sh
- Open the Xcode workspace
$ open Telegram.xcworkspace
- Right-click the top-most
Telegraph
workspace and create a new Header File calledconfig.h
with this content:
#ifndef config_h
#define config_h
#define SETUP_API_ID(v) v = <YOUR API ID>;
#define SETUP_API_HASH(v) v = @"<YOUR API HASH>";
#endif /* config_h */
- Open LegacyDatabase > TGShareContextSignal.m and replace
#import "../../config.h"
with
#import "../config.h"
Also, you can try to checkout commit
333b5c0ffc16772ff7387ded34aebce78088c6bb
@ https://github.com/peter-iakovlev/MtProtoKit submodule, if you have an ARC issues.