tldr/pages.zh/osx/xcodebuild.md

17 lines
460 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# xcodebuild
> 构建 Xcode 项目。
> 更多信息:<https://developer.apple.com/library/archive/technotes/tn2339/_index.html>.
- 构建工作区:
`xcodebuild -workspace {{工作区名.工作区}} -scheme {{主题名}} -configuration {{配置名}} clean build SYMROOT={{SYMROOT_路径}}`
- 构建项目:
`xcodebuild -target {{目标名}} -configuration {{配置名}} clean build SYMROOT={{SYMROOT_路径}}`
- 显示 SDK
`xcodebuild -showsdks`