swift
Create, run and build Swift projects. More information: https://swift.org.
-
Start a REPL (interactive shell):
swift
-
Execute a program:
swift {{file.swift}}
-
Start a new project with the package manager:
swift package init
-
Generate an Xcode project file:
swift package generate-xcodeproj
-
Update dependencies:
swift package update
-
Compile project for release:
swift build -c release
License and Disclaimer
The content on this page is copyright © 2014—present the tldr-pages team and contributors.This page is used with permission under Creative Commons Attribution 4.0 International License.
While we do attempt to make sure content is accurate, there isn't a warranty of any kind.