swift: add page (#2112)
This commit is contained in:

committed by
Starbeamrainbowlabs

parent
36775b8558
commit
3fc2ce94ca
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`
|
Reference in New Issue
Block a user