id = "xcode"
name = "Xcode"
homepage = "https://developer.apple.com/xcode/"
description = "The tools you need to develop, test, and distribute apps for Apple platforms."
icon = "SimpleIcons:xcode"
platforms = ["macos"]
executables = ["xcodebuild", "xed"]
[dotfiles]
paths = [
"~/Library/Developer/Xcode/UserData/KeyBindings/",
"~/Library/Developer/Xcode/UserData/FontAndColorThemes/",
"[preferences]/com.apple.dt.Xcode.plist",
]
secret = []
[commands]
format = 1
label = "Build with xcodebuild"
description = "Build or inspect an Xcode project or workspace. Run from the project directory. Build actions (build, test, clean, archive) are typed after the options and are not part of this form; signing and export options are left out."
quality = "ai-draft"
base = "fig:xcodebuild"
parser = { end_of_options = "--", interleave = "permute", long_equals = false, short_attached = false, short_bundles = false }
[[commands.source]]
id = "fig"
kind = "completion"
url = "https://github.com/withfig/autocomplete/blob/master/src/xcodebuild.ts"
license = "MIT"
[[commands.field]]
id = "workspace"
label = "Workspace"
type = "path"
option = ["-workspace"]
path = { kind = "any", role = "input" }
sources = ["fig"]
[[commands.field]]
id = "project"
label = "Project"
type = "string"
option = ["-project"]
sources = ["fig"]
[[commands.field]]
id = "scheme"
label = "Scheme"
type = "string"
option = ["-scheme"]
sources = ["fig"]
[[commands.field]]
id = "target"
label = "Target"
type = "string"
option = ["-target"]
sources = ["fig"]
[[commands.field]]
id = "configuration"
label = "Configuration"
type = "string"
option = ["-configuration"]
suggestions = [{ value = "Debug", label = "Debug" }, { value = "Release", label = "Release" }]
sources = ["fig"]
[[commands.field]]
id = "destination"
label = "Destination"
description = "Comma-separated key=value pairs, e.g. platform=iOS Simulator,name=iPhone 16."
type = "string"
option = ["-destination"]
sources = ["fig"]
[[commands.field]]
id = "sdk"
label = "SDK"
type = "string"
option = ["-sdk"]
sources = ["fig"]
[[commands.field]]
id = "arch"
label = "Architecture"
type = "string"
option = ["-arch"]
suggestions = [{ value = "arm64", label = "arm64" }, { value = "x86_64", label = "x86_64" }]
sources = ["fig"]
[[commands.field]]
id = "derived_data"
label = "Derived data path"
type = "path"
option = ["-derivedDataPath"]
path = { kind = "directory", role = "output" }
sources = ["fig"]
[[commands.field]]
id = "result_bundle"
label = "Result bundle path"
type = "path"
option = ["-resultBundlePath"]
path = { kind = "directory", role = "output" }
sources = ["fig"]
[[commands.field]]
id = "jobs"
label = "Concurrent jobs"
type = "integer"
option = ["-jobs"]
sources = ["fig"]
[[commands.field]]
id = "quiet"
label = "Quiet"
type = "boolean"
option = ["-quiet"]
sources = ["fig"]
[[commands.field]]
id = "list"
label = "List targets and schemes"
type = "boolean"
option = ["-list"]
sources = ["fig"]
[[commands.field]]
id = "show_build_settings"
label = "Show build settings"
type = "boolean"
option = ["-showBuildSettings"]
sources = ["fig"]
[[commands.field]]
id = "showsdks"
label = "Show installed SDKs"
type = "boolean"
option = ["-showsdks"]
sources = ["fig"]
[[commands.task]]
id = "list"
label = "List schemes"
fields = ["workspace", "project", "list"]
set = { list = [true] }
[[commands.task]]
id = "settings"
label = "Show build settings"
fields = ["workspace", "project", "scheme", "configuration", "show_build_settings"]
required = ["scheme"]
set = { show_build_settings = [true] }
[[commands.task]]
id = "build"
label = "Choose what to build"
fields = ["workspace", "project", "scheme", "configuration", "destination", "derived_data"]
required = ["scheme"]
[[commands.group]]
id = "basic"
label = "Basic"
fields = ["workspace", "project", "scheme", "configuration", "destination", "list"]
[[commands.group]]
id = "advanced"
label = "Advanced"
fields = ["target", "sdk", "arch", "result_bundle", "jobs", "quiet", "showsdks", "show_build_settings", "derived_data"]