Select the Folder icon in the Swift toolchain path field and navigate to the installed directory of Swift. Next, enter the path where you unzipped your Swift toolchain download. In the left-hand column, expand Build, Execution, Deployment. From the Welcome screen, select Configure ▸ Settings. Now that the plug-in is installed, you’ll need to configure CLion to know where your Swift toolchain is. Then, search for Swift and select Install. In the left-hand column, search for Plugins.
#How to set up clion install#
Since Swift support is not installed in CLion by default, you’ll need to install a plug-in. Here, you can configure your settings globally. At the bottom of the Welcome screen, go to Configure ▸ Settings. To use Swift in CLion, you’re going to need to install the Swift plug-in. This will give you 30 days to try out the app.
#How to set up clion for free#
If you didn’t purchase CLion, you can choose Evaluate for free when prompted. You’ll need to click through a few dialogs when opening CLion the first time. This will install a trial version of the software, which should give you plenty of time to complete this tutorial. Open the Ubuntu Software Center, search for CLion and install. If prompted, enter your password and try running REPL again. Ensure Swift is set up by running the Swift REPL in Terminal. Note: If you’re using Ubuntu 18.04, replace the path with the correct folder for the Swift toolchain you downloaded. Scroll to the bottom of the file and paste the following line:Įxport PATH=~/Downloads/swift-4.2.1-RELEASE-ubuntu16.04/usr/bin:"$" Ensure that you remember where, as you’ll need the path for future steps.įinally, to make sure you can use Swift even after you restart Terminal or your computer, you need to export your Swift path in your. Feel free to download and unzip Swift to your desired location. It is important to follow the steps laid out, as they ensure you are using a signed download of the language. If Swift isn’t already installed on your Linux OS, follow the installation instructions found on the page for Linux. Next, download Swift 4.2.1 with the following command:įinally, download the Signature file for Swift: To download Swift 4.2.1, start by navigating to your Downloads directory in Terminal: Note: Each time this tutorial refers to Terminal, it means a command prompt on Linux and not the macOS Terminal.