add new chinese translations
This commit is contained in:
28
pages.zh/common/swift.md
Normal file
28
pages.zh/common/swift.md
Normal file
@@ -0,0 +1,28 @@
|
||||
# Swift
|
||||
|
||||
> 创建、运行和构建 Swift 项目。
|
||||
> 更多信息:<https://swift.org>。
|
||||
|
||||
- 启动 REPL(交互式命令行):
|
||||
|
||||
`swift repl`
|
||||
|
||||
- 执行程序:
|
||||
|
||||
`swift {{file.swift}}`
|
||||
|
||||
- 使用包管理器启动新项目:
|
||||
|
||||
`swift package init`
|
||||
|
||||
- 生成 Xcode 项目文件:
|
||||
|
||||
`swift package generate-xcodeproj`
|
||||
|
||||
- 更新依赖项:
|
||||
|
||||
`swift package update`
|
||||
|
||||
- 为发布编译项目:
|
||||
|
||||
`swift build -c release`
|
Reference in New Issue
Block a user