overtake / TelegramSwift

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

Telegram macOS desktop app (10.4) doesn't start on macOS 10.13.6 #1051

Closed AntonPol4 closed 11 months ago

AntonPol4 commented 11 months ago

This is a known issue with Xcode 15: https://github.com/apple/swift/issues/68163#issuecomment-1751214910

Swift apps built with Xcode 15.0 crash on launch on macOS 10.13. (114820860)

Workaround: Add $(TOOLCHAIN_DIR)/usr/lib/swift-5.0/macosx/libswiftAppKit.dylib to the Other Linker Flags build setting in Xcode. This should be removed when the deployment target is increased to 10.14 or later.

crash report Process: Telegram [491] Path: /Applications/Telegram.app/Contents/MacOS/Telegram Identifier: ru.keepcoder.Telegram Version: 10.4 (257114) Code Type: X86-64 (Native) Parent Process: ??? [1] Responsible: Telegram [491] User ID: 502 Date/Time: 2023-12-23 16:55:55.809 +0300 OS Version: Mac OS X 10.13.6 (17G14042) Report Version: 12 Anonymous UUID: 5ACC2F7F-FF46-8466-CF28-AA6906253ACA Time Awake Since Boot: 290 seconds System Integrity Protection: enabled Crashed Thread: 0 Exception Type: EXC_CRASH (SIGABRT) Exception Codes: 0x0000000000000000, 0x0000000000000000 Exception Note: EXC_CORPSE_NOTIFY Termination Reason: DYLD, [0x3] Wrong version Application Specific Information: dyld: launch, loading dependent libraries Dyld Error Message: Library not loaded: @rpath/libswiftAppKit.dylib Referenced from: /Applications/Telegram.app/Contents/MacOS/Telegram Reason: Incompatible library version: Telegram requires version 45.0.0 or later, but libswiftAppKit.dylib provides version 1.0.0 Binary Images: 0x10e94f000 - 0x1128ee777 +ru.keepcoder.Telegram (10.4 - 257114) /Applications/Telegram.app/Contents/MacOS/Telegram 0x1134a7000 - 0x1134e6fff +org.sparkle-project.Sparkle (1.21.0 - 1.21.0) <56098CEC-7102-3365-A607-3DF68191A4A6> /Applications/Telegram.app/Contents/Frameworks/Sparkle.framework/Versions/A/Sparkle 0x11351b000 - 0x11352afff +libswiftAVFoundation.dylib (5.0.1 - 1001.0.82.4) <8A6480E9-8C6C-3967-8E70-50045346944C> /Applications/Telegram.app/Contents/Frameworks/libswiftAVFoundation.dylib 0x113541000 - 0x113547ff7 +libswiftAccelerate.dylib (5.0.1 - 1001.0.82.4) /Applications/Telegram.app/Contents/Frameworks/libswiftAccelerate.dylib 0x113559000 - 0x1138cafff +libswiftCore.dylib (5.0.1 - 1001.0.82.4) <44D65143-94D5-306A-8D56-15359A7FF04E> /Applications/Telegram.app/Contents/Frameworks/libswiftCore.dylib 0x113baf000 - 0x113bb4fff +libswiftCoreAudio.dylib (5.0.1 - 1001.0.82.4) /Applications/Telegram.app/Contents/Frameworks/libswiftCoreAudio.dylib 0x113bc6000 - 0x113bc9fff +libswiftCoreFoundation.dylib (5.0.1 - 1001.0.82.4) /Applications/Telegram.app/Contents/Frameworks/libswiftCoreFoundation.dylib 0x113bd6000 - 0x113be5fff +libswiftCoreGraphics.dylib (5.0.1 - 1001.0.82.4) <4C9FA634-B14A-343E-9F76-5AAFCA5FC077> /Applications/Telegram.app/Contents/Frameworks/libswiftCoreGraphics.dylib 0x113c0b000 - 0x113c10ffb +libswiftCoreImage.dylib (5.0.1 - 1001.0.82.4) /Applications/Telegram.app/Contents/Frameworks/libswiftCoreImage.dylib 0x113c1d000 - 0x113c22fff +libswiftCoreLocation.dylib (5.0.1 - 1001.0.82.4) <3D402E87-210E-32E1-8F43-29D221D5D665> /Applications/Telegram.app/Contents/Frameworks/libswiftCoreLocation.dylib 0x113c2e000 - 0x113c38fff +libswiftCoreMedia.dylib (5.0.1 - 1001.0.82.4) /Applications/Telegram.app/Contents/Frameworks/libswiftCoreMedia.dylib 0x113c4b000 - 0x113c52ff7 +libswiftDarwin.dylib (5.0.1 - 1001.0.82.4) <144DA4C8-8322-3E6E-942D-9976CAFA8BAE> /Applications/Telegram.app/Contents/Frameworks/libswiftDarwin.dylib 0x113c68000 - 0x113c80ff7 +libswiftDispatch.dylib (5.0.1 - 1001.0.82.4) <0A4818EF-BCD8-3183-9D34-5F8D4920C05C> /Applications/Telegram.app/Contents/Frameworks/libswiftDispatch.dylib 0x113cc1000 - 0x113cc9fff +libswiftGLKit.dylib (5.0.1 - 1001.0.82.4) <83CE476C-0782-3500-8164-B6D1B2D2F7CB> /Applications/Telegram.app/Contents/Frameworks/libswiftGLKit.dylib 0x113cda000 - 0x113cddff3 +libswiftIOKit.dylib (5.0.1 - 1001.0.82.4) <75FE0421-8424-38AD-9372-17A730C44643> /Applications/Telegram.app/Contents/Frameworks/libswiftIOKit.dylib 0x113ced000 - 0x113cf5ff7 +libswiftMapKit.dylib (5.0.1 - 1001.0.82.4) /Applications/Telegram.app/Contents/Frameworks/libswiftMapKit.dylib 0x113d01000 - 0x113d0afff +libswiftMetal.dylib (5.0.1 - 1001.0.82.4) /Applications/Telegram.app/Contents/Frameworks/libswiftMetal.dylib 0x113d1a000 - 0x113d22ff7 +libswiftMetalKit.dylib (5.0.1 - 1001.0.82.4) <1F8C856B-1911-3A48-83D1-18359C795BF9> /Applications/Telegram.app/Contents/Frameworks/libswiftMetalKit.dylib 0x113d32000 - 0x113d3bfff +libswiftModelIO.dylib (5.0.1 - 1001.0.82.4) <48DEC693-107A-332C-9633-D86684702198> /Applications/Telegram.app/Contents/Frameworks/libswiftModelIO.dylib 0x113d4f000 - 0x113d58ff7 +libswiftNaturalLanguage.dylib (5.0.1 - 1001.0.82.4) /Applications/Telegram.app/Contents/Frameworks/libswiftNaturalLanguage.dylib 0x113d66000 - 0x113d6aff7 +libswiftObjectiveC.dylib (5.0.1 - 1001.0.82.4) <1A3E8F91-FF6E-3733-B1AD-CC4D4F3378F4> /Applications/Telegram.app/Contents/Frameworks/libswiftObjectiveC.dylib 0x113d7c000 - 0x113d82ff7 +libswiftQuartzCore.dylib (5.0.1 - 1001.0.82.4) /Applications/Telegram.app/Contents/Frameworks/libswiftQuartzCore.dylib 0x113d8e000 - 0x113d99ff7 +libswiftSceneKit.dylib (5.0.1 - 1001.0.82.4) /Applications/Telegram.app/Contents/Frameworks/libswiftSceneKit.dylib 0x113dad000 - 0x113db4ff7 +libswiftVision.dylib (5.0.1 - 1001.0.82.4) <6FEAFB85-5891-3A0E-BCEC-D943477DDBA7> /Applications/Telegram.app/Contents/Frameworks/libswiftVision.dylib 0x113dc4000 - 0x113dc7fff +libswiftXPC.dylib (5.0.1 - 1001.0.82.4) /Applications/Telegram.app/Contents/Frameworks/libswiftXPC.dylib 0x113dd3000 - 0x113ddaff7 +libswiftos.dylib (5.0.1 - 1001.0.82.4) /Applications/Telegram.app/Contents/Frameworks/libswiftos.dylib 0x113dec000 - 0x113e10ff7 +libswiftsimd.dylib (5.0.1 - 1001.0.82.4) <62F88382-9C77-3A6B-8F64-971EE6586554> /Applications/Telegram.app/Contents/Frameworks/libswiftsimd.dylib 0x11c2ed000 - 0x11c337adf dyld (551.5) /usr/lib/dyld 0x7fff3264b000 - 0x7fff3282bff3 com.apple.avfoundation (2.0 - 1536.36) /System/Library/Frameworks/AVFoundation.framework/Versions/A/AVFoundation 0x7fff328e7000 - 0x7fff329eafff com.apple.AVKit (1.1 - 440.10) /System/Library/Frameworks/AVKit.framework/Versions/A/AVKit 0x7fff329eb000 - 0x7fff329ebfff com.apple.Accelerate (1.11 - Accelerate 1.11) <8632A9C5-19EA-3FD7-A44D-80765CC9C540> /System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate 0x7fff33a51000 - 0x7fff348affff com.apple.AppKit (6.9 - 1561.61.100) <4E6EA3FA-8C2C-3B21-BFF9-6F8C458B7BE1> /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit 0x7fff34901000 - 0x7fff34901fff com.apple.ApplicationServices (48 - 50) <2B5B76E7-0AB2-31F9-BE58-B963BF1EC2E8> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices 0x7fff34e4c000 - 0x7fff350daff7 com.apple.audio.toolbox.AudioToolbox (1.14 - 1.14) /System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox 0x7fff353ff000 - 0x7fff3579cfff com.apple.CFNetwork (902.6 - 902.6) <46168F79-CCFA-349A-8508-B8CBCE27D440> /System/Library/Frameworks/CFNetwork.framework/Versions/A/CFNetwork 0x7fff357b1000 - 0x7fff357b1fff com.apple.Carbon (158 - 158) /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon 0x7fff35d8b000 - 0x7fff35e75ff7 com.apple.contacts (1.0 - 2330.3) <73B50382-F718-3E25-BC20-EF73260C6B42> /System/Library/Frameworks/Contacts.framework/Versions/A/Contacts 0x7fff35f17000 - 0x7fff35faaff7 com.apple.audio.CoreAudio (4.3.0 - 4.3.0) /System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio 0x7fff36476000 - 0x7fff36919fe7 com.apple.CoreFoundation (6.9 - 1455.300) /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation 0x7fff3691b000 - 0x7fff36f2bfef com.apple.CoreGraphics (2.0 - 1161.21.5) <6451A561-3A83-37FB-AAA7-3FCE6D95C34C> /System/Library/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics 0x7fff36f2d000 - 0x7fff3721cfff com.apple.CoreImage (13.0.0 - 579.5) /System/Library/Frameworks/CoreImage.framework/Versions/A/CoreImage 0x7fff3721d000 - 0x7fff37288ff7 com.apple.corelocation (2245.0.41) <6BF57F70-732C-3140-B5A3-466ACF262765> /System/Library/Frameworks/CoreLocation.framework/Versions/A/CoreLocation 0x7fff374ab000 - 0x7fff375a1ffb com.apple.CoreMedia (1.0 - 2276.80.4) <67942D16-3658-37FC-B61C-8ED3D4BFBFB9> /System/Library/Frameworks/CoreMedia.framework/Versions/A/CoreMedia 0x7fff375a2000 - 0x7fff375f0fff com.apple.CoreMediaIO (814.0 - 4995) <2A174DD1-431A-3313-9837-04C7E1B284B6> /System/Library/Frameworks/CoreMediaIO.framework/Versions/A/CoreMediaIO 0x7fff375f1000 - 0x7fff375f1fff com.apple.CoreServices (822.37 - 822.37) /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices 0x7fff37ce2000 - 0x7fff37d41fff com.apple.CoreSpotlight (1.0 - 231.4.8) /System/Library/Frameworks/CoreSpotlight.framework/Versions/A/CoreSpotlight 0x7fff37f82000 - 0x7fff380d2fff com.apple.CoreText (352.0 - 578.23) <10DAF601-85A8-3F9C-8B0B-69DC16B95E47> /System/Library/Frameworks/CoreText.framework/Versions/A/CoreText 0x7fff380d3000 - 0x7fff3810dfff com.apple.CoreVideo (1.8 - 0.0) <0DD4FFDF-E1F1-39D1-8246-5D0D9869F1EA> /System/Library/Frameworks/CoreVideo.framework/Versions/A/CoreVideo 0x7fff385da000 - 0x7fff389a1ffb com.apple.Foundation (6.9 - 1455.300) <0479E072-1DD0-3881-A9A2-EDAD3EE58C23> /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation 0x7fff38cb8000 - 0x7fff38d53fff com.apple.framework.IOKit (2.0.2 - 1445.71.6) <4B5C715C-6A49-366B-9080-ABADE6A3B3BD> /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit 0x7fff38d55000 - 0x7fff38d5cfff com.apple.IOSurface (211.15 - 211.15) <08DA3232-805F-304B-80DD-C86B49CC4AAD> /System/Library/Frameworks/IOSurface.framework/Versions/A/IOSurface 0x7fff38db3000 - 0x7fff38f2efe7 com.apple.ImageIO.framework (3.3.0 - 1739.3.8) <58BD6865-E629-3283-859B-82C4C3A5FF66> /System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO 0x7fff39562000 - 0x7fff3a248fff com.apple.JavaScriptCore (13605 - 13605.3.8) /System/Library/Frameworks/JavaScriptCore.framework/Versions/A/JavaScriptCore 0x7fff3a318000 - 0x7fff3a32eff7 com.apple.LocalAuthentication (1.0 - 425.70.2) /System/Library/Frameworks/LocalAuthentication.framework/Versions/A/LocalAuthentication 0x7fff3a32f000 - 0x7fff3a536ff7 com.apple.MapKit (1.0 - 1831.25.4.7.1) <0DD1E151-04C7-3D07-8410-243A6C306765> /System/Library/Frameworks/MapKit.framework/Versions/A/MapKit 0x7fff3a555000 - 0x7fff3a5eefff com.apple.MediaPlayer (1.0 - 1.0) /System/Library/Frameworks/MediaPlayer.framework/Versions/A/MediaPlayer 0x7fff3ac5b000 - 0x7fff3acdcfff com.apple.Metal (125.30 - 125.30) <67EDA241-80B1-3C67-BB2B-FF83E49FEF8D> /System/Library/Frameworks/Metal.framework/Versions/A/Metal 0x7fff3acde000 - 0x7fff3acf8ffb com.apple.MetalKit (1.0 - 98.3) <46B0ECC2-0C3F-3E74-A4E7-0B5D6DF4BEAA> /System/Library/Frameworks/MetalKit.framework/Versions/A/MetalKit 0x7fff40a15000 - 0x7fff40a24ff3 com.apple.opengl (16.7.4 - 16.7.4) <77A788F3-8F0C-305C-AEB9-FF258676C599> /System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL 0x7fff41877000 - 0x7fff41877fff com.apple.quartzframework (1.5 - 21) /System/Library/Frameworks/Quartz.framework/Versions/A/Quartz 0x7fff41878000 - 0x7fff41ac4ff7 com.apple.QuartzCore (1.11 - 584.64.2) /System/Library/Frameworks/QuartzCore.framework/Versions/A/QuartzCore 0x7fff41ac5000 - 0x7fff41b1cff7 com.apple.QuickLookFramework (5.0 - 743.13) <4EA17C20-5BD9-335F-8EE1-D4AE16BE6A15> /System/Library/Frameworks/QuickLook.framework/Versions/A/QuickLook 0x7fff41cfd000 - 0x7fff422c4fef com.apple.SceneKit (1.0 - 433.6) <89514BDE-E1E8-3087-AF26-FFCEEFE6A68A> /System/Library/Frameworks/SceneKit.framework/Versions/A/SceneKit 0x7fff422fc000 - 0x7fff42627fff com.apple.security (7.0 - 58286.70.19) /System/Library/Frameworks/Security.framework/Versions/A/Security 0x7fff4294b000 - 0x7fff42957ffb com.apple.StoreKit (1.0 - 658.2) /System/Library/Frameworks/StoreKit.framework/Versions/A/StoreKit 0x7fff42a8f000 - 0x7fff42affff3 com.apple.SystemConfiguration (1.17 - 1.17) <41D509AB-AED3-30FF-BB00-615BB5A8AC00> /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfiguration 0x7fff42cb4000 - 0x7fff4302ffff com.apple.VideoToolbox (1.0 - 2276.80.4) <1C94A509-0372-3B58-94BC-4488C042BD79> /System/Library/Frameworks/VideoToolbox.framework/Versions/A/VideoToolbox 0x7fff43030000 - 0x7fff432b7ff7 com.apple.VN (1.5.3 - 1.5.3) /System/Library/Frameworks/Vision.framework/Versions/A/Vision 0x7fff450f3000 - 0x7fff4558cfff com.apple.WebKit (13605 - 13605.3.8) <1DDB40C0-5FB6-3495-B4CD-52D32251F88D> /System/Library/Frameworks/WebKit.framework/Versions/A/WebKit 0x7fff5c16a000 - 0x7fff5c16bffb libSystem.B.dylib (1252.50.4) <5A02016C-8F9D-3F47-8C39-AD2CD4F9F11D> /usr/lib/libSystem.B.dylib 0x7fff5c392000 - 0x7fff5c39fffb libbz2.1.0.dylib (38) <0B4321CD-3D6F-3095-A12E-27F66B4321AD> /usr/lib/libbz2.1.0.dylib 0x7fff5c3a0000 - 0x7fff5c3f6fff libc++.1.dylib (400.9) <142D6292-F30F-3949-9F37-3C97A579F540> /usr/lib/libc++.1.dylib 0x7fff5c42e000 - 0x7fff5c445fcf libcompression.dylib (47.60.2) <543F07BF-2F2F-37D5-9866-E84BF659885B> /usr/lib/libcompression.dylib 0x7fff5cdd8000 - 0x7fff5cec9ff7 libiconv.2.dylib (51.50.1) <7965B866-C75A-3450-9891-0500349F7090> /usr/lib/libiconv.2.dylib 0x7fff5d823000 - 0x7fff5dc117e7 libobjc.A.dylib (723) <843EFB54-EFCC-3A7C-BE11-092B6A556262> /usr/lib/libobjc.A.dylib 0x7fff5e23d000 - 0x7fff5e24fffb libz.1.dylib (70) <47278BDC-596E-3037-B8DA-05FE9D5DBEF6> /usr/lib/libz.1.dylib Model: MacBookPro11,1, BootROM 162.0.0.0.0, 2 processors, Intel Core i5, 2,6 GHz, 8 GB, SMC 2.16f68 Graphics: Intel Iris, Intel Iris, Built-In Memory Module: BANK 0/DIMM0, 4 GB, DDR3, 1600 MHz, 0x02FE, - Memory Module: BANK 1/DIMM0, 4 GB, DDR3, 1600 MHz, 0x02FE, - AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x112), Broadcom BCM43xx 1.0 (7.77.37.33.1a1) Bluetooth: Version 6.0.7f22, 3 services, 27 devices, 1 incoming serial ports Network Service: Wi-Fi, AirPort, en0 Serial ATA Device: APPLE SSD SD0128F, 121,33 GB USB Device: USB 3.0 Bus USB Device: Apple Internal Keyboard / Trackpad USB Device: BRCM20702 Hub USB Device: Bluetooth USB Host Controller USB Device: 2.4G Mouse Thunderbolt Bus: MacBook Pro, Apple Inc., 17.2

Please, fix ASAP! Thanks!

overtake commented 11 months ago

i'm building with this flag. lets try.

overtake commented 11 months ago

https://t.me/macos_stable_updates_files/235

can you check this? I built with linker flag

AntonPol4 commented 11 months ago

Thank you, fixed!