iOS Open Source Project Telegram preliminary interview

Source: Internet
Author: User

Telegram is said to be a very high encryption-level Instant Messaging project, literally understood as a telegram, supposedly encrypted at the level equivalent to the U.S. Pentagon

However, the project downloaded from the official website can not be compiled directly, the following is attached to my experience, the Mac on Windows to edit the blog is time-consuming, briefly

Telegram official website: https://www.telegram.org/

Source code download page: Https://www.telegram.org/apps

After downloading the IOS code, Mac automatically unzip, don't worry, first install Xcode static generic template, attached address: https://github.com/kstenerud/iOS-Universal-Framework

Using the Mac terminal, go to the Real Framework folder and execute sudo./install.sh, enter, input y, install complete

Now you can open the Telegram source code, please set the bundle ID here, otherwise you will be prompted invalid argument error, after the successful compilation, but still can not run, please go to https://my.telegram.org/

To register their apiid and Apihash,

Search for code in Telegram project " Obtain your own apiid at https://my.telegam.org "

In the tgtelegraph.mm file, Nsassert (False, "Please obtain your own apiid at https://my.telegam.org"), before adding code

SELF.APIID = @ "xxxxx";//Own APIID

Self.apihash = @ "x";//Own Apihash

Nsassert in TGTELEGRAMNETWORKING.M (false, "obtain your own apiid at https://my.telegam.org"), preceded by a code

Apienvironment.apiid = xxxxx;//own apiid

APIID is originally a numeric type, the previous code is the official write, set it once.

At this point, the project can be run, the real machine or the simulator can be run

However, I try to modify the bundle display name, also can not modify the name of the application display, but also ask the great God enlighten. Other product name and so on have been tried.

iOS Open Source Project Telegram preliminary interview

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.