{
  "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
    },
    "source": [
      {
        "id": "fig",
        "kind": "completion",
        "url": "https://github.com/withfig/autocomplete/blob/master/src/xcodebuild.ts",
        "license": "MIT"
      }
    ],
    "field": [
      {
        "id": "workspace",
        "label": "Workspace",
        "type": "path",
        "option": [
          "-workspace"
        ],
        "path": {
          "kind": "any",
          "role": "input"
        },
        "sources": [
          "fig"
        ]
      },
      {
        "id": "project",
        "label": "Project",
        "type": "string",
        "option": [
          "-project"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "scheme",
        "label": "Scheme",
        "type": "string",
        "option": [
          "-scheme"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "target",
        "label": "Target",
        "type": "string",
        "option": [
          "-target"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "configuration",
        "label": "Configuration",
        "type": "string",
        "option": [
          "-configuration"
        ],
        "suggestions": [
          {
            "value": "Debug",
            "label": "Debug"
          },
          {
            "value": "Release",
            "label": "Release"
          }
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "destination",
        "label": "Destination",
        "description": "Comma-separated key=value pairs, e.g. platform=iOS Simulator,name=iPhone 16.",
        "type": "string",
        "option": [
          "-destination"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "sdk",
        "label": "SDK",
        "type": "string",
        "option": [
          "-sdk"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "arch",
        "label": "Architecture",
        "type": "string",
        "option": [
          "-arch"
        ],
        "suggestions": [
          {
            "value": "arm64",
            "label": "arm64"
          },
          {
            "value": "x86_64",
            "label": "x86_64"
          }
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "derived_data",
        "label": "Derived data path",
        "type": "path",
        "option": [
          "-derivedDataPath"
        ],
        "path": {
          "kind": "directory",
          "role": "output"
        },
        "sources": [
          "fig"
        ]
      },
      {
        "id": "result_bundle",
        "label": "Result bundle path",
        "type": "path",
        "option": [
          "-resultBundlePath"
        ],
        "path": {
          "kind": "directory",
          "role": "output"
        },
        "sources": [
          "fig"
        ]
      },
      {
        "id": "jobs",
        "label": "Concurrent jobs",
        "type": "integer",
        "option": [
          "-jobs"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "quiet",
        "label": "Quiet",
        "type": "boolean",
        "option": [
          "-quiet"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "list",
        "label": "List targets and schemes",
        "type": "boolean",
        "option": [
          "-list"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "show_build_settings",
        "label": "Show build settings",
        "type": "boolean",
        "option": [
          "-showBuildSettings"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "showsdks",
        "label": "Show installed SDKs",
        "type": "boolean",
        "option": [
          "-showsdks"
        ],
        "sources": [
          "fig"
        ]
      }
    ],
    "task": [
      {
        "id": "list",
        "label": "List schemes",
        "fields": [
          "workspace",
          "project",
          "list"
        ],
        "set": {
          "list": [
            true
          ]
        }
      },
      {
        "id": "settings",
        "label": "Show build settings",
        "fields": [
          "workspace",
          "project",
          "scheme",
          "configuration",
          "show_build_settings"
        ],
        "required": [
          "scheme"
        ],
        "set": {
          "show_build_settings": [
            true
          ]
        }
      },
      {
        "id": "build",
        "label": "Choose what to build",
        "fields": [
          "workspace",
          "project",
          "scheme",
          "configuration",
          "destination",
          "derived_data"
        ],
        "required": [
          "scheme"
        ]
      }
    ],
    "group": [
      {
        "id": "basic",
        "label": "Basic",
        "fields": [
          "workspace",
          "project",
          "scheme",
          "configuration",
          "destination",
          "list"
        ]
      },
      {
        "id": "advanced",
        "label": "Advanced",
        "fields": [
          "target",
          "sdk",
          "arch",
          "result_bundle",
          "jobs",
          "quiet",
          "showsdks",
          "show_build_settings",
          "derived_data"
        ]
      }
    ]
  }
}
