xcode

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2025 License: MIT Imports: 41 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ActivateXcodeSuccessful = "✅ Bitrise Build Cache for Xcode activated"
	AddXcelerateToPath      = "ℹ️ To start building, run `export PATH=~/.bitrise-xcelerate/bin:$PATH` or restart your terminal."

	ErrFmtCreateXcodeConfig = "failed to create Xcode config: %w"
)
View Source
const (
	MsgArgsPassedToXcodebuild = "Arguments passed to xcodebuild: %v"
	MsgInvocationSuccess      = "Invocation succeeded ✅ after %s"
	MsgInvocationFailed       = "Invocation failed ❌ after %s: %s"
	MsgInvocationSaved        = "Invocation saved. Visit 👉 https://app.bitrise.io/build-cache/invocations/xcode/%s"

	ErrExecutingXcode = "Error executing xcodebuild: %v"
	ErrReadConfig     = "Error reading config: %v"
)
View Source
const XCodeCacheMetadataPath = "dd-metadata.json"

Variables

This section is empty.

Functions

func ActivateXcodeCommandFn

func ActivateXcodeCommandFn(
	ctx context.Context,
	logger log.Logger,
	osProxy utils.OsProxy,
	commandFunc utils.CommandFunc,
	encoderFactory utils.EncoderFactory,
	decoderFactory utils.DecoderFactory,
	activateXcodeParams xcelerate.Params,
	envs map[string]string,
) error

func SaveXcodeDerivedDataFilesCmdFn

func SaveXcodeDerivedDataFilesCmdFn(ctx context.Context,
	authConfig configcommon.CacheAuthConfig,
	cacheMetadataPath,
	projectRoot,
	providedCacheKey,
	derivedDataPath,
	xcodeCachePath string,
	followSymlinks bool,
	skipSPM bool,
	logger log.Logger,
	tracker deriveddata.StepAnalyticsTracker,
	startT time.Time,
	envs map[string]string,
	commandFunc func(string, ...string) (string, error),
) (*xa.CacheOperation, error)

func StartXcodeCacheProxy

func StartXcodeCacheProxy(
	ctx context.Context,
	config xcelerate.Config,
	envProvider map[string]string,
	commandFunc configcommon.CommandFunc,
	bitriseKVClient kv_storage.KVStorageClient,
	capabilitiesClient remoteexecution.CapabilitiesClient,
	listener net.Listener,
	initialLogger log.Logger,
	loggerFactory proxy.LoggerFactory,
) error

func XcodebuildCmdFn

func XcodebuildCmdFn(
	ctx context.Context,
	invocationID string,
	logger log.Logger,
	xcodeRunner XcodeRunner,
	proxySessionClient session.SessionClient,
	config xcelerate.Config,
	metadata common.CacheConfigMetadata,
	xcodeArgs xcodeargs.XcodeArgs,
) xcodeargs.RunStats

Types

type XcelerateConfig

type XcelerateConfig interface {
	Save(logger log.Logger, os utils.OsProxy, encoderFactory utils.EncoderFactory) error
}

type XcelerateParams

type XcelerateParams struct {
	OrigArgs []string
}

type XcodeRunner

type XcodeRunner interface {
	Run(ctx context.Context, args []string) xcodeargs.RunStats
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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