Save your code on the desktop as fileName.swift open the Terminal and type; cd ~/Desktop swift fileName.swift The compiled code will appear on your desktop. JB