1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-30 22:55:29 +02:00

swift: add page (#2112)

This commit is contained in:
rootbeersoup 2018-05-15 05:26:34 -05:00 committed by Starbeamrainbowlabs
parent 36775b8558
commit 3fc2ce94ca

27
pages/common/swift.md Normal file
View file

@ -0,0 +1,27 @@
# swift
> Create, run and build Swift projects.
- Invoke the interactive interpreter (REPL):
`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`