<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>swift Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/swift/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Fri, 25 Jun 2021 16:27:02 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.12</generator>
	<item>
		<title>How to install Swift programming language on Ubuntu 20.04?</title>
		<link>https://www.osradar.com/install-swift-programming-language-ubuntu-20-04/</link>
					<comments>https://www.osradar.com/install-swift-programming-language-ubuntu-20-04/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Mon, 22 Feb 2021 07:43:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[swift]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=28175</guid>

					<description><![CDATA[<p>Hello, friends. In this post we will help you to install Swift on Ubuntu 20.04 If you are planning to develop applications for macOS or iOS from Linux, this post will help you a lot. Swift is a general-purpose programming language built using a modern approach to safety, performance, and software design patterns. The goal [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-swift-programming-language-ubuntu-20-04/">How to install Swift programming language on Ubuntu 20.04?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Hello, friends. In this post we will help you to install Swift on Ubuntu 20.04 If you are planning to develop applications for macOS or iOS from Linux, this post will help you a lot.</p>



<p><a href="https://swift.org/about/" target="_blank" rel="noreferrer noopener">Swift</a> is a general-purpose programming language built using a modern approach to safety, performance, and software design patterns. The goal of the Swift project is to create the best available language for uses ranging from systems programming to mobile and desktop apps, scaling up to cloud services. Most importantly, Swift is designed to make writing and maintaining correct programs easier for the developer</p>



<p>So, let’s get to work</p>



<h2 id="install-swift-on-ubuntu-20.04"><a href="#install-swift-on-ubuntu-20.04" name="install-swift-on-ubuntu-20.04"></a>Install Swift on Ubuntu 20.04</h2>



<p>The installation of this language is quite simple. First, update the entire distribution</p>



<pre class="wp-block-preformatted">sudo apt update
sudo apt upgrade</pre>



<p>Then you need to install some dependencies that are required to run Swift on Ubuntu 20.04.</p>



<pre class="wp-block-preformatted">sudo apt install clang libicu-dev libpython2.7-dev libtinfo5 libncurses5 libpython2.7 libz3-dev</pre>



<p>Then, we will have the operating system ready for Swift.</p>



<p>You can download Siwft for Ubuntu 20.04 from this link or use the wget command. In case you use <code>wget</code>, you need to check which is the latest stable version first.</p>



<p>After that, run:</p>



<pre class="wp-block-preformatted">cd /tmp
wget -c https://swift.org/builds/swift-5.3.3-release/ubuntu2004/swift-5.3.3-RELEASE/swift-5.3.3-RELEASE-ubuntu20.04.tar.gz
--2021-06-25 18:12:42--  https://swift.org/builds/swift-5.3.3-release/ubuntu2004/swift-5.3.3-RELEASE/swift-5.3.3-RELEASE-ubuntu20.04.tar.gz
 Resolving swift.org (swift.org)… 169.47.73.10
 Connecting to swift.org (swift.org)|169.47.73.10|:443… connected.
 HTTP request sent, awaiting response… 200 OK
 Length: 508207625 (485M) [application/x-gzip]
 Saving to: ‘swift-5.3.3-RELEASE-ubuntu20.04.tar.gz’
 swift-5.3.3-RELEASE-ubuntu20.04.tar.gz     100%[=====================================================================================>] 484.66M  8.50MB/s    in 59s     
 2021-06-25 18:13:41 (8.24 MB/s) - ‘swift-5.3.3-RELEASE-ubuntu20.04.tar.gz’ saved [508207625/508207625]</pre>



<p>As of today, the latest stable version of Swift for Ubuntu 20.04 is <code>5.4.1</code> when it changes, remember to modify the commands.</p>



<p>After that, decompress the file:</p>



<pre class="wp-block-preformatted">tar xzf swift-5.3.3-RELEASE-ubuntu20.04.tar.gz</pre>



<p>It is convenient to move the folder to another location, which in this case will be <code>/usr/share/</code> but it can be another one.</p>



<pre class="wp-block-preformatted">sudo mv swift-5.3.3-RELEASE-ubuntu20.04 /usr/share/swift</pre>



<p>Now to use Swift from any location at the prompt, you need to add that folder to the PATH.</p>



<pre class="wp-block-preformatted">echo "export PATH=/usr/share/swift/usr/bin:$PATH" &gt;&gt; ~/.bashrc</pre>



<p>Apply the changes by running:</p>



<pre class="wp-block-preformatted">source ~/.bashrc</pre>



<p>Now you can use Swift. Proof of this is that you can check the installed version.</p>



<pre class="wp-block-preformatted">swift -v
Swift version 5.3.3 (swift-5.3.3-RELEASE)
 Target: x86_64-unknown-linux-gnu
 /usr/share/swift/usr/bin/lldb "--repl=-disable-objc-interop -color-diagnostics"
 Welcome to Swift version 5.3.3 (swift-5.3.3-RELEASE).</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="767" height="197" src="https://www.osradar.com/wp-content/uploads/2021/02/1.png" alt="1.- Swift on Ubuntu 20.04" class="wp-image-28313" srcset="https://www.osradar.com/wp-content/uploads/2021/02/1.png 767w, https://www.osradar.com/wp-content/uploads/2021/02/1-300x77.png 300w, https://www.osradar.com/wp-content/uploads/2021/02/1-696x179.png 696w" sizes="(max-width: 767px) 100vw, 767px" /><figcaption>1.- Swift on Ubuntu 20.04</figcaption></figure>



<p>So, enjoy it.</p>



<h2 id="conclusion"><a href="#conclusion" name="conclusion"></a>Conclusion</h2>



<p>Ubuntu is a system widely used by developers and many may want to make applications for macOS or iOS. That’s why Swift is available and you know how to install it step by step.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-swift-programming-language-ubuntu-20-04/">How to install Swift programming language on Ubuntu 20.04?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/install-swift-programming-language-ubuntu-20-04/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
