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"
I followed your step, and project builded fine. But after entering Number I got below error, whereas I have already updated the apiId and hashID which I obtained from the telegram site.
[MTRequestMessageService#0x600000894b40 response for 6407694375810775040 is error: 400: API_ID_INVALID]