I have downloaded the code source of Telegram app on their website. When I open the project in Xcode 6.1.1, I get the following error:
UFW (M iphonesimulato
With Xcode 6, https://github.com/kstenerud/iOS-Universal-Framework is not required for building universal (arm64, armv7, armv7s, and simulator) frameworks for iOS.
You need to remove run script, fix library dependence and Xcode architectures configuration, also confirm architectures of linked binaries.
I maintained a working telegram iOS source code here: https://github.com/liruqi/Telegram-iOS
MtProtoKit requires https://github.com/kstenerud/iOS-Universal-Framework, so clone it, install "Real Framework", restart Xcode and enjoy!