overtake / TelegramSwift

Source code of Telegram for macos on Swift 5.0
https://macos.telegram.org
GNU General Public License v2.0
5.03k stars 853 forks source link

Unable to run the macOS App #170

Open shivanraptor opened 6 years ago

shivanraptor commented 6 years ago

The following runtime error appears in console:

2018-06-06 17:07:03.054396+0800 Telegram[10832:25738403] Failed to connect (aboutAction) outlet from (Telegram.AppDelegate) to (Telegram.MMMenuItem): missing setter or instance variable
2018-06-06 17:07:03.054490+0800 Telegram[10832:25738403] Failed to connect (checkForUpdates) outlet from (Telegram.AppDelegate) to (Telegram.MMMenuItem): missing setter or instance variable
2018-06-06 17:07:03.054544+0800 Telegram[10832:25738403] Failed to connect (preferences) outlet from (Telegram.AppDelegate) to (Telegram.MMMenuItem): missing setter or instance variable
2018-06-06 17:07:03.054595+0800 Telegram[10832:25738403] Failed to connect (showQuickSwitcher) outlet from (Telegram.AppDelegate) to (Telegram.MMMenuItem): missing setter or instance variable
2018-06-06 17:07:03.166916+0800 Telegram[10832:25738403] Scheduling the NSURLDownload loader is no longer supported.
2018-06-06 17:07:03.297866+0800 Telegram[10832:25738403] [HockeySDK] WARNING: Detecting crashes is NOT enabled due to running the app with a debugger attached.

Problematic line: Postbox.swift line 812 ( near assertionFailure() )

I checked out from Git recursively today, created Config.swift using newly created credentials. What did I miss? Using Xcode 9.3, macOS 10.13.4.

Git checkout output as follow:

Cloning into 'TelegramSwift'...
remote: Counting objects: 7204, done.
remote: Total 7204 (delta 0), reused 0 (delta 0), pack-reused 7204
Receiving objects: 100% (7204/7204), 104.50 MiB | 216.00 KiB/s, done.
Resolving deltas: 100% (4206/4206), done.
Submodule 'submodules/MtProtoKit' (https://github.com/peter-iakovlev/MtProtoKit.git) registered for path 'submodules/MtProtoKit'
Submodule 'submodules/Postbox' (https://github.com/peter-iakovlev/Postbox.git) registered for path 'submodules/Postbox'
Submodule 'submodules/Signals' (https://github.com/peter-iakovlev/Signals.git) registered for path 'submodules/Signals'
Submodule 'submodules/TelegramCore' (https://github.com/peter-iakovlev/TelegramCore.git) registered for path 'submodules/TelegramCore'
Submodule 'submodules/libtgvoip' (https://github.com/grishka/libtgvoip) registered for path 'submodules/libtgvoip'
Cloning into '/Users/adv/Documents/workspace/Xcode/xCodeProjects/TelegramMac/TelegramSwift/submodules/MtProtoKit'...
remote: Counting objects: 1712, done.        
remote: Compressing objects: 100% (10/10), done.        
remote: Total 1712 (delta 1), reused 4 (delta 1), pack-reused 1701        
Receiving objects: 100% (1712/1712), 36.87 MiB | 174.00 KiB/s, done.
Resolving deltas: 100% (1116/1116), done.
Cloning into '/Users/adv/Documents/workspace/Xcode/xCodeProjects/TelegramMac/TelegramSwift/submodules/Postbox'...
remote: Counting objects: 2432, done.        
remote: Total 2432 (delta 0), reused 0 (delta 0), pack-reused 2432        
Receiving objects: 100% (2432/2432), 3.18 MiB | 1.11 MiB/s, done.
Resolving deltas: 100% (1687/1687), done.
Cloning into '/Users/adv/Documents/workspace/Xcode/xCodeProjects/TelegramMac/TelegramSwift/submodules/Signals'...
remote: Counting objects: 816, done.        
remote: Total 816 (delta 0), reused 0 (delta 0), pack-reused 816        
Receiving objects: 100% (816/816), 181.49 KiB | 392.00 KiB/s, done.
Resolving deltas: 100% (525/525), done.
Cloning into '/Users/adv/Documents/workspace/Xcode/xCodeProjects/TelegramMac/TelegramSwift/submodules/TelegramCore'...
remote: Counting objects: 3898, done.        
remote: Total 3898 (delta 0), reused 0 (delta 0), pack-reused 3898        
Receiving objects: 100% (3898/3898), 11.97 MiB | 156.00 KiB/s, done.
Resolving deltas: 100% (2838/2838), done.
Cloning into '/Users/adv/Documents/workspace/Xcode/xCodeProjects/TelegramMac/TelegramSwift/submodules/libtgvoip'...
remote: Counting objects: 1264, done.        
remote: Compressing objects: 100% (58/58), done.        
remote: Total 1264 (delta 32), reused 52 (delta 22), pack-reused 1182        
Receiving objects: 100% (1264/1264), 7.66 MiB | 1.61 MiB/s, done.
Resolving deltas: 100% (709/709), done.
Submodule path 'submodules/MtProtoKit': checked out '515bcf457ac7688b4baa377e5b906f538cd42817'
Submodule path 'submodules/Postbox': checked out 'a92a07a5242b427d0a2eeb6059bf77171e84e6e7'
Submodule path 'submodules/Signals': checked out 'f274dbca868638d585994025e11e460c3726bd21'
Submodule path 'submodules/TelegramCore': checked out '58d76cb2c00e266e0eb215bbdff8aa84e6738648'
Submodule path 'submodules/libtgvoip': checked out '620da00fb699deeb81bda34a9b57519ab4810b08'
magicgoose commented 6 years ago

Latest commit e04d88a on Dec 29, 2017

Please note that the source in this repository is ~6 months older than the binaries released outside of GitHub.
The problem seems like an incompatibility with the newest Apple build tools of some sort, and is also likely fixed in the code already — but that code is not available to us, mere mortals, as the license is effectively not GPLv2 anymore, but something else. (GPLv2 doesn't mean one can withhold the code for half a year; and the author does not reveal the source even when asked to do so). Even if you adapt the code by yourself, it'll be an outdated version without any of recently added features.

DSPerson commented 6 years ago

@magicgoose plase sent me an able to run the macOS App source code. thank you very mach. mail: dus_ios_work@163.com or asd576895195@gmail.com