Sometimes when writing a block of Swift code, I don’t bother to launch Xcode. Running the Swift commands swift
and swiftc
from the terminal are more lightweight and convenient. To debug and set a breakpoint, lldb
does the job.
After installing the latest version of Swift from the download page, I’ll run the command to verify I’m running the expected Swift version:
$ swift --version
Swift version
#ios #swift #mobile #programming #xcode