GNU/Linux Ubuntu 22.04 Swift Programming Get Started Guide
Hi! The Tutorial shows you Step-by-Step How to Install Swift Compiler and Getting-Started with Swift Programming in Ubuntu 22.04 Jammy LTS GNU/Linux Desktop.
And the Swift Ubuntu 22.04 Release includes: Compiler, Lldb, and related Tools.
Moreover, Swift is a Programming Language for iOS, macOS, watchOS, and tvOS apps that builds on the best of C and Objective-C, without the constraints of C compatibility.
Then Swift‘s Clean Slate, Backed by the mature and much-loved Cocoa and Cocoa Touch Frameworks, is an opportunity to Reimagine how Software Development works.
Again, the Swift Compiler is principally responsible for translating Swift source code into efficient, executable machine code.
However, the Swift Compiler Front-End also Supports a number of other Tools, including IDE integration with Syntax Coloring, Code Completion, and other conveniences.
-
1. Launching Terminal
Open a Terminal Shell emulator window
Ctrl+Alt+t on Desktop
(Press “Enter” to Execute Commands).And Update Ubuntu Apt Repository:
sudo apt update
Authenticate with the User Admin Pass.
If Got “User is Not in Sudoers file” then see: How to Enable sudo. Then Install the Required Package
Simply run:sudo apt install clang libicu-dev
Authenticate with the User Admin Pass.
If Got “User is Not in Sudoers file” then see: How to Enable sudo.-
3. Downloading Swift
Download Swift Release for GNU/Linux
If you are using Firefox then on Prompt Choose “Open with Archive Manager”: -
4. Extracting Swift
Then Extract Swift into /tmp
In case Double-Click/Right-Click to Open with Archive Manager:Or from Shell:
tar xvzf ~/Downloads/swift*tar.gz -C /tmp/
Contents