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/Telegramcdinto 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
Telegraphworkspace and create a new Header File calledconfig.hwith 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"
@dkwiebe I'm not at all familiar with the code base, just needed iOS Telegram in a Simulator. But best of luck to you and your fork!
@kkct83 Are you sure you've entered the correct id, hash pair (i.e. the what you got from https://my.telegram.org/apps?)
The compiler would probably complain if not but are the values of the macros of the correct type?