Skip to content

Instantly share code, notes, and snippets.

@mklbtz
Last active August 21, 2019 19:37
Embed
What would you like to do?
Use Xcode to run Swift CLI, file regex included
{
"selector": "source.swift",
"shell_cmd": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift \"${file}\"",
"file_regex": "^(.+\\.swift):([0-9]+):?([0-9]+)?:? (?:error|warning|note): (.*)$"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment