xcodewizard

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 25, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package xcodewizard drives Xcode's File > New > Target wizard through the macOS Accessibility API. It is scoped to that wizard and does not attempt to be a general-purpose UI automation layer; use the axuiautomation package directly for anything outside the target creation flow.

Index

Constants

View Source
const XcodeBundleID = "com.apple.dt.Xcode"

XcodeBundleID is the bundle identifier of the Xcode application.

Variables

This section is empty.

Functions

func AddTarget

func AddTarget(app *axuiautomation.Application, opts Options) error

AddTarget drives the File > New > Target wizard in the given Xcode application instance. The caller owns the lifecycle of app.

Types

type Options

type Options struct {
	// TemplateName is the title of the target template to select, e.g.
	// "Widget Extension" or "App Intent Extension".
	TemplateName string

	// ProductName is filled into the "Product Name" field on the configuration
	// sheet. It becomes the target and scheme name.
	ProductName string

	// BundleID, if non-empty, is typed into the "Bundle Identifier" field.
	// When empty, Xcode auto-derives it from the product name.
	BundleID string

	// Team, if non-empty, is selected in the "Team" popup.
	Team string

	// Platform, if non-empty, selects the platform tab at the top of the
	// template chooser (e.g. "iOS", "macOS", "watchOS", "tvOS", "visionOS",
	// "Multiplatform"). Widget Extension appears under several platforms, so
	// this disambiguates the match.
	Platform string

	// EmbedIn, if non-empty, is selected in the "Embed in Application" popup
	// that appears on the configuration sheet when a project contains more
	// than one embeddable host target.
	EmbedIn string
}

Options describes a new Xcode target to add via File > New > Target.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL