snippetbashTip
swift — Create, run, and build Swift projects. More information: <https://manned.org/swiftc>.
Viewed 0 times
createcommandrunbuildandcliswift
Problem
How to use the
swift command: Create, run, and build Swift projects. More information: <https://manned.org/swiftc>.Solution
swift — Create, run, and build Swift projects. More information: <https://manned.org/swiftc>.Start a REPL (interactive shell):
swift replExecute a program:
swift {{file.swift}}Start a new project with the package manager:
swift package initGenerate an Xcode project file:
swift package generate-xcodeprojUpdate dependencies:
swift package updateCompile project for release:
swift build {{[-c|--configuration]}} {{debug|release}}Code Snippets
Start a REPL (interactive shell)
swift replExecute a program
swift {{file.swift}}Start a new project with the package manager
swift package initGenerate an Xcode project file
swift package generate-xcodeprojUpdate dependencies
swift package updateContext
tldr-pages: common/swift
Revisions (0)
No revisions yet.