Swift in AL2023
AL2023 currently provides the
Swift
In AL2023, the Swift SDK and runtime are split into separate packages.
The swiftlang-lib package contains the runtime libraries, and the
swiftlang package contains the full SDK. This allows users to run binaries
compiled with the Swift SDK on production hosts without requiring the
full SDK to be installed. At this time, different versions of Swift are not
ABI compatible, so when updating Swift, applications will need to be rebuilt
with the new version before they can be deployed.
Note
Like Rust, Swift versions will follow the latest stable version from the Swift project. Packages will not be namespaced, and only one version will be supported at a time.
Some notes on using Swift on AL2023
-
C++ interoperability – The system's package manager
clangmay not work with Swift. To resolve this, addswift-clangto yourPATHor use alternatives to setclangtoswift-clang. -
Debugging Swift code – The system LLDB cannot debug Swift sources. Use the LLDB included with the Swift package instead by adding the Swift installation directory to your
PATHor using alternatives to setlldbtoswift-lldb.