Telegram iOS app will not work with Xcode 6.1.1

I uploaded the source code of the Telegram app to their website . When I open a project in Xcode 6.1.1, I get the following error:

UFW (M iphonesimulator): ERROR: Build failed Traceback (most recent call last): File"/Users/yanfeng/Library/Developer/Xcode/DerivedData/Build/Intermediates/MtProtoKit.build/Debug-iphonesimulator/MtProtoKit iOS.build/Script-D05A831218AFB3F9007F1076.sh", line 812, in <module>run_build()File "/Users/yanfeng/Library/Developer/Xcode/DerivedData/Build/Intermediates/MtProtoKit.build/Debug-iphonesimulator/MtProtoKit iOS.build/Script-D05A831218AFB3F9007F1076.sh", line 787, in run_build add_symlinks_to_framework(project) File "/Users/yanfeng/Library/Developer/Xcode/DerivedData/Build/Intermediates/MtProtoKit.build/Debug-iphonesimulator/MtProtoKit iOS.build/Script-D05A831218AFB3F9007F1076.sh", line 675, in add_symlinks_to_framework attempt_symlink(os.path.join(base_dir, "Versions", "Current"), os.environ['FRAMEWORK_VERSION']) File "/Users/yanfeng/Library/Developer/Xcode/DerivedData/Build/Intermediates/MtProtoKit.build/Debug-iphonesimulator/MtProtoKit iOS.build/Script-D05A831218AFB3F9007F1076.sh", line 493, in attempt_symlink os.stat(os.path.abspath(os.path.join(link_path, "..", link_to))) OSError: [Errno 2] No such file or directory: '/Users/yanfeng/Library/Developer/Xcode/DerivedData/Build/Products/Debug-iphonesimulator/MtProtoKit iOS.framework/Versions/A' Showing first 200 notices only Command /bin/sh failed with exit code 1 
+5
source share
2 answers

MtProtoKit requires https://github.com/kstenerud/iOS-Universal-Framework , so clone it, install the "Real Framework", restart Xcode and enjoy!

+7
source

With Xcode 6, https://github.com/kstenerud/iOS-Universal-Framework is not required to create universal (arm64, armv7, armv7s and simulators) iOS frameworks.

You need to remove the run script, fix the library dependency and configuration of the Xcode architecture, and confirm the architectures of the associated binaries.

I saved the source code of the working iOS telegram here: https://github.com/liruqi/Telegram-iOS

+2
source

Source: https://habr.com/ru/post/1212822/


All Articles