准备工作
构建 PlayCover 前需完成以下环境配置:
安装 Xcode
Section titled “安装 Xcode”Xcode 是 Apple 官方开发工具集,为构建 Swift 应用的必要环境。请注意安装过程将占用约30GB磁盘空间。
安装方式任选其一:
- 通过 App Store 直接下载
- 使用 Xcodes.app 管理多版本 Xcode(推荐专业开发者采用)
安装 Homebrew
Section titled “安装 Homebrew”按 Homebrew 官网指引 完成安装
安装 Carthage
Section titled “安装 Carthage”打开终端执行以下命令:
brew update && brew install carthage
安装 SwiftLint
Section titled “安装 SwiftLint”终端执行:
brew install swiftlint
完成上述准备后,即可进入构建指南。