All you have to do is search for the Swift package and hit Enter. Then install the Swift-Sublime-Package with the simple instructions found here. It’s just a copy’n’paste command line to the Sublime Text console. These steps will require restarting ST2 a few times after you run commands.įollow the instructions here to install Package Control for Sublime Text if you don’t have it already. If you use Sublime Text 2, follow these steps to include Swift syntax highlighting. With me so far? You can stop here if that’s all you plan to do. Create a helloworld.swift file somewhere using your favorite text editor. Sudo update-alternatives -install /usr/bin/clang++ clang++ /usr/bin/clang++-3.6 100Īlmost there. Sudo update-alternatives -install /usr/bin/clang clang /usr/bin/clang-3.6 100 Swift version 3.0-dev (LLVM 524cfeb800, Clang f66c5bb67b, Swift c33f2faad2)īefore you can compile any files, you’ll need to install clang. You should be able to run the following now. Mv swift-DEVELOPMENT-SNAPSHOT-a-ubuntu14.04/usr /home/jamil/swiftĮxport PATH=/home/jamil/swift/usr/bin/:"$" Note the following is only a temporary PATH update for the current session on the terminal. Update your PATH variable to include the usr/bin directory inside. Inside you’ll find a usr directory move that somewhere you’ll remember for later. Tar -xzf swift-DEVELOPMENT-SNAPSHOT-a-ubuntu14.04.tar.gz For me it was called Ubuntu 14.04 Swift Development Snapshot, posted on Feb 3, 2016. Start by clicking here and downloading the latest snapshot for Linux. If you have any suggestions to improve this, please be sure leave a comment. Note that there may be better and more comprehensive ways of doing this, I’m just posting what worked for me. In this article, I’ll go over how I installed it on Ubuntu 14.04 and how I got Sublime Text 2 to recognize it’s syntax. I recently started teaching myself Swift, the new Open Source Language from Apple that powers their latest iOS and MacOS apps.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |