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:
parent
36775b8558
commit
3fc2ce94ca
1 changed files with 27 additions and 0 deletions
27
pages/common/swift.md
Normal file
27
pages/common/swift.md
Normal 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`
|
Loading…
Add table
Reference in a new issue