Telegram icon indicating copy to clipboard operation
Telegram copied to clipboard

description step by step compile ios source code

Open hediehloo opened this issue 6 years ago • 4 comments

Hi similar to Desktop Telegram please put a description step by step for compile ios source code. I haven't developer apple_id, Is there any way compile this source code and run in emulator? I'm beginner in xcode and ios. Thanks

hediehloo avatar May 31 '18 13:05 hediehloo

Step 1: Clone this Repo recursively to your computer: git clone https://github.com/peter-iakovlev/Telegram.git --recursive

If there is an error saying that cloning SSignalKit and MtProtoKit are permission denied, you can manually navigate to their folder: submodules/MtProtoKit and thirdparty/SSignalKit, and clone from their repo manually.

Reference: https://github.com/peter-iakovlev/Telegram/issues/265

Step 2: Launch Telegraph.xcworkspace (assuming you installed Xcode 9+)

Step 3: Create a config.h containing the App ID and App Hash you created in Telegram API console

#define SETUP_API_ID(apiId) apiId = 12345;
#define SETUP_API_HASH(apiHash) apiHash = @"put your hash here";

Reference: https://github.com/peter-iakovlev/Telegram/issues/34

Step 4: Change all instances of ../../config.h to ../config.h

Step 5: Build (at this moment, there is a compile error due to the changed method signature in MTDatacenterAddress.h; hope they'll resolve soon...)

Step 6: Run in Simulator

shivanraptor avatar Jun 07 '18 08:06 shivanraptor

thank's

hediehloo avatar Jun 08 '18 00:06 hediehloo

thanks

leyle avatar Sep 11 '18 05:09 leyle

I get error: duplicate interface definition for class 'MTDatacenterAddress' error during building. How to fix it?

fnc12 avatar Apr 18 '19 14:04 fnc12