编译自己的iOS版Telegram

Telegram 是一款近两年非常火的多平台客户端开源聊天软件. 既然客户端是开源的那么我打算自己编译一下来看看. 网上已经有了一些编译Telegram的信息,但这些信息可能因为代码更新基本都不可用了. 拉取代码 git clone https://github.com/peter-iakovlev/Telegram-iOS.git cd Telegram-iOS/ # Telegram-iOS 很大部分的功能都是通过submodule来提供的,所以还需要拉取submodule git submodule update --init --recursive 拉取完成以后用Xcode打开项目,结果发现很多submodule是丢失的. 结果打开submodule文件发现居然很多module的url都指向一个相对路径… [submodule "submodules/AsyncDisplayKit"] path = submodules/AsyncDisplayKit url=../AsyncDisplayKit.git [submodule "submodules/Display"] path = submodules/Display url=../Display.git [submodule "submodules/HockeySDK-iOS"] path = submodules/HockeySDK-iOS url=../HockeySDK-iOS.git [submodule "submodules/libtgvoip"] path = submodules/libtgvoip url=https://github.com/grishka/libtgvoip.git [submodule "submodules/lottie-ios"] path = submodules/lottie-ios url=../lottie-ios.git [submodule "submodules/MtProtoKit"] path = submodules/MtProtoKit url=../MtProtoKit.git [submodule "submodules/Postbox"] path = submodules/Postbox url=../Postbox.git [submodule "submodules/SSignalKit"] path = submodules/SSignalKit url=../Signals.git [submodule "submodules/TelegramCore"] path = submodules/TelegramCore url=. »