SwiftcordApp / Swiftcord

A fully native Discord client for macOS built 100% in Swift!
https://swiftcordapp.github.io/Swiftcord/
GNU General Public License v3.0
1.85k stars 84 forks source link

Compile/Run Swiftcord on older macOS versions #87

Closed shijimasoft closed 2 years ago

shijimasoft commented 2 years ago

It is possible to compile Switftcord on older macOS versions?

Since SwitfUI is a unified GUI framework since macOS 10.15, compiling for older macOS versions should be possible. I mean, macOS Catalina and Big Sur are also capable of running SwiftUI widgets used by Swiftcord.

Is there any problem in compiling on these macOS versions? I can be a tester if necessary.

Candygoblen123 commented 2 years ago

SwiftUI gets updates with Every OS release, and we use some features that only exist on macOS 11+. While it would be possible to support older OS versions, it would be a huge pain trying to reimplement major SwiftUI features ourselves (Most notably, AsyncImage and Table, but the ~98 other errors would be a pain to fix as well)

So no unfortunately, it is not as simple as compiling for older versions of macOS.

cryptoAlgorithm commented 2 years ago

A few versions back I've tried to compile for macOS 11, and basically most APIs that we relied on (as @Candygoblen123 said) weren't available. iirc, the async URLSession APIs also aren't available, which DiscordKit also heavily relies on.

shijimasoft commented 2 years ago

That's really sad :_) Thanks for explaining me the problems