

Why is this limitation still present in the language outside of apps? There seems to be some progress with removing darwin specific features from the language, but no progress on making Swift a language independent of the OS. Now my code can't run on anything but the latest version of macOS. Ok.īut I actually got upset when I decided to use a distributed actor system for state, so that I could more easily implement multiplayer without completely rewriting my code. I first ran into this trying to use Task.sleep where using most of its functionality would stop my code from working on older versions of macOS. However, Swift is trying to be a general purpose language, not exclusively an AppKit programming language - not everything is an app.

I understand the reasoning, Apple can then change the implementation of these libraries and it reduces the size of applications. I am writing a small Swift project to learn OpenGL and I have an issue with swiftc forcing me to dynamically link all libraries.
