xcodebuild

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2025 License: MIT Imports: 12 Imported by: 11

Documentation

Index

Constants

View Source
const (
	// XCWorkspaceExtension ...
	XCWorkspaceExtension = ".xcworkspace"
	// XCProjExtension ...
	XCProjExtension = ".xcodeproj"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthenticationParams

type AuthenticationParams struct {
	KeyID     string
	IsssuerID string
	KeyPath   string
}

AuthenticationParams are used to authenticate to App Store Connect API and let xcodebuild download missing provisioning profiles.

type CommandBuilder

type CommandBuilder struct {
	// contains filtered or unexported fields
}

CommandBuilder ...

func NewCommandBuilder

func NewCommandBuilder(projectPath string, actions ...string) *CommandBuilder

NewCommandBuilder ...

func (*CommandBuilder) Command

func (c *CommandBuilder) Command() *command.Model

Command ...

func (*CommandBuilder) CommandArgs added in v1.2.0

func (c *CommandBuilder) CommandArgs() []string

CommandArgs returns the xcodebuild command arguments, including actions and options

func (*CommandBuilder) ExecCommand

func (c *CommandBuilder) ExecCommand() *exec.Cmd

ExecCommand ...

func (*CommandBuilder) PrintableCmd

func (c *CommandBuilder) PrintableCmd() string

PrintableCmd ...

func (*CommandBuilder) Run

func (c *CommandBuilder) Run() error

Run ...

func (*CommandBuilder) SetArchivePath

func (c *CommandBuilder) SetArchivePath(archivePath string) *CommandBuilder

SetArchivePath ...

func (*CommandBuilder) SetAuthentication

func (c *CommandBuilder) SetAuthentication(authenticationParams AuthenticationParams) *CommandBuilder

SetAuthentication ...

func (*CommandBuilder) SetConfiguration

func (c *CommandBuilder) SetConfiguration(configuration string) *CommandBuilder

SetConfiguration ...

func (*CommandBuilder) SetCustomOptions

func (c *CommandBuilder) SetCustomOptions(customOptions []string) *CommandBuilder

SetCustomOptions ...

func (*CommandBuilder) SetDestination

func (c *CommandBuilder) SetDestination(destination string) *CommandBuilder

SetDestination ...

func (*CommandBuilder) SetDisableCodesign

func (c *CommandBuilder) SetDisableCodesign(disable bool) *CommandBuilder

SetDisableCodesign ...

func (*CommandBuilder) SetResultBundlePath

func (c *CommandBuilder) SetResultBundlePath(resultBundlePath string) *CommandBuilder

SetResultBundlePath ...

func (*CommandBuilder) SetSDK

func (c *CommandBuilder) SetSDK(sdk string) *CommandBuilder

SetSDK ...

func (*CommandBuilder) SetScheme

func (c *CommandBuilder) SetScheme(scheme string) *CommandBuilder

SetScheme ...

func (*CommandBuilder) SetTestPlan added in v1.0.9

func (c *CommandBuilder) SetTestPlan(testPlan string) *CommandBuilder

SetTestPlan ...

func (*CommandBuilder) SetXCConfigPath

func (c *CommandBuilder) SetXCConfigPath(xcconfigPath string) *CommandBuilder

SetXCConfigPath ...

type CommandModel

type CommandModel interface {
	PrintableCmd() string
	Command() *command.Model
}

CommandModel ...

type ExportCommandModel

type ExportCommandModel struct {
	// contains filtered or unexported fields
}

ExportCommandModel ...

func NewExportCommand

func NewExportCommand() *ExportCommandModel

NewExportCommand ...

func (*ExportCommandModel) Cmd

func (c *ExportCommandModel) Cmd() *exec.Cmd

Cmd ...

func (*ExportCommandModel) Command

func (c *ExportCommandModel) Command() *command.Model

Command ...

func (*ExportCommandModel) CommandArgs added in v1.2.0

func (c *ExportCommandModel) CommandArgs() []string

CommandArgs returns the xcodebuild command arguments for the export action

func (*ExportCommandModel) PrintableCmd

func (c *ExportCommandModel) PrintableCmd() string

PrintableCmd ...

func (*ExportCommandModel) Run

func (c *ExportCommandModel) Run() error

Run ...

func (*ExportCommandModel) RunAndReturnOutput

func (c *ExportCommandModel) RunAndReturnOutput() (string, error)

RunAndReturnOutput ...

func (*ExportCommandModel) SetArchivePath

func (c *ExportCommandModel) SetArchivePath(archivePath string) *ExportCommandModel

SetArchivePath ...

func (*ExportCommandModel) SetAuthentication

func (c *ExportCommandModel) SetAuthentication(authenticationParams AuthenticationParams) *ExportCommandModel

SetAuthentication ...

func (*ExportCommandModel) SetExportDir

func (c *ExportCommandModel) SetExportDir(exportDir string) *ExportCommandModel

SetExportDir ...

func (*ExportCommandModel) SetExportOptionsPlist

func (c *ExportCommandModel) SetExportOptionsPlist(exportOptionsPlist string) *ExportCommandModel

SetExportOptionsPlist ...

type LegacyExportCommandModel

type LegacyExportCommandModel struct {
	// contains filtered or unexported fields
}

LegacyExportCommandModel ...

func NewLegacyExportCommand

func NewLegacyExportCommand() *LegacyExportCommandModel

NewLegacyExportCommand ...

func (LegacyExportCommandModel) Cmd

Cmd ...

func (LegacyExportCommandModel) Command

func (c LegacyExportCommandModel) Command() *command.Model

Command ...

func (LegacyExportCommandModel) PrintableCmd

func (c LegacyExportCommandModel) PrintableCmd() string

PrintableCmd ...

func (LegacyExportCommandModel) Run

Run ...

func (*LegacyExportCommandModel) SetArchivePath

func (c *LegacyExportCommandModel) SetArchivePath(archivePath string) *LegacyExportCommandModel

SetArchivePath ...

func (*LegacyExportCommandModel) SetExportFormat

func (c *LegacyExportCommandModel) SetExportFormat(exportFormat string) *LegacyExportCommandModel

SetExportFormat ...

func (*LegacyExportCommandModel) SetExportPath

func (c *LegacyExportCommandModel) SetExportPath(exportPath string) *LegacyExportCommandModel

SetExportPath ...

func (*LegacyExportCommandModel) SetExportProvisioningProfileName

func (c *LegacyExportCommandModel) SetExportProvisioningProfileName(exportProvisioningProfileName string) *LegacyExportCommandModel

SetExportProvisioningProfileName ...

type ResolvePackagesCommandModel added in v1.0.5

type ResolvePackagesCommandModel struct {
	// contains filtered or unexported fields
}

ResolvePackagesCommandModel is a command builder used to create `xcodebuild -resolvePackageDependencies` command

func NewResolvePackagesCommandModel added in v1.0.5

func NewResolvePackagesCommandModel(projectPath, scheme, configuration string) *ResolvePackagesCommandModel

NewResolvePackagesCommandModel returns a new ResolvePackagesCommandModel

func (*ResolvePackagesCommandModel) Run added in v1.0.5

Run runs the command and logs elapsed time

func (*ResolvePackagesCommandModel) SetCustomOptions added in v1.0.5

func (m *ResolvePackagesCommandModel) SetCustomOptions(customOptions []string) *ResolvePackagesCommandModel

SetCustomOptions sets custom options

type ShowBuildSettingsCommandModel

type ShowBuildSettingsCommandModel struct {
	// contains filtered or unexported fields
}

ShowBuildSettingsCommandModel ...

func NewShowBuildSettingsCommand

func NewShowBuildSettingsCommand(projectPath string) *ShowBuildSettingsCommandModel

NewShowBuildSettingsCommand ...

func (ShowBuildSettingsCommandModel) Command

Command ...

func (ShowBuildSettingsCommandModel) PrintableCmd

func (c ShowBuildSettingsCommandModel) PrintableCmd() string

PrintableCmd ...

func (ShowBuildSettingsCommandModel) RunAndReturnSettings

func (c ShowBuildSettingsCommandModel) RunAndReturnSettings() (serialized.Object, error)

RunAndReturnSettings ...

func (*ShowBuildSettingsCommandModel) SetConfiguration

func (c *ShowBuildSettingsCommandModel) SetConfiguration(configuration string) *ShowBuildSettingsCommandModel

SetConfiguration ...

func (*ShowBuildSettingsCommandModel) SetCustomOptions

func (c *ShowBuildSettingsCommandModel) SetCustomOptions(customOptions []string) *ShowBuildSettingsCommandModel

SetCustomOptions ...

func (*ShowBuildSettingsCommandModel) SetScheme

SetScheme ...

func (*ShowBuildSettingsCommandModel) SetTarget

SetTarget ...

type TestCommandModel

type TestCommandModel struct {
	// contains filtered or unexported fields
}

TestCommandModel ...

func NewTestCommand

func NewTestCommand(projectPath string) *TestCommandModel

NewTestCommand ...

func (TestCommandModel) Cmd

func (c TestCommandModel) Cmd() *exec.Cmd

Cmd ...

func (TestCommandModel) Command

func (c TestCommandModel) Command() *command.Model

Command ...

func (TestCommandModel) PrintableCmd

func (c TestCommandModel) PrintableCmd() string

PrintableCmd ...

func (TestCommandModel) Run

func (c TestCommandModel) Run() error

Run ...

func (*TestCommandModel) SetCustomBuildAction

func (c *TestCommandModel) SetCustomBuildAction(buildAction ...string) *TestCommandModel

SetCustomBuildAction ...

func (*TestCommandModel) SetCustomOptions

func (c *TestCommandModel) SetCustomOptions(customOptions []string) *TestCommandModel

SetCustomOptions ...

func (*TestCommandModel) SetDestination

func (c *TestCommandModel) SetDestination(destination string) *TestCommandModel

SetDestination ...

func (*TestCommandModel) SetDir added in v1.0.13

func (c *TestCommandModel) SetDir(workDir string) *TestCommandModel

SetDir ...

func (*TestCommandModel) SetDisableIndexWhileBuilding

func (c *TestCommandModel) SetDisableIndexWhileBuilding(disable bool) *TestCommandModel

SetDisableIndexWhileBuilding ...

func (*TestCommandModel) SetGenerateCodeCoverage

func (c *TestCommandModel) SetGenerateCodeCoverage(generateCodeCoverage bool) *TestCommandModel

SetGenerateCodeCoverage ...

func (*TestCommandModel) SetScheme

func (c *TestCommandModel) SetScheme(scheme string) *TestCommandModel

SetScheme ...

Jump to

Keyboard shortcuts

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