xcode

package
v3.2.3 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2026 License: MIT Imports: 52 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NoBitriseBuildCacheFlag     = "--no-bitrise-build-cache"
	NoPrefixMapFlag             = "--no-prefix-map"
	NoManagedDerivedDataFlag    = "--no-managed-derived-data"
	CreateXCFrameworkFlag       = "-create-xcframework"
	MsgBuildCacheDisabledByFlag = "Build cache disabled by %s flag"
	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

View Source
var (
	ActivateXcodeSuccessful = xcelerate.ActivateXcodeSuccessful //nolint:gochecknoglobals
	AddXcelerateToPath      = xcelerate.AddXcelerateToPath      //nolint:gochecknoglobals
	ErrFmtCreateXcodeConfig = xcelerate.ErrFmtCreateXcodeConfig //nolint:gochecknoglobals
)

Re-exported constants for backward compatibility with existing tests.

Functions

func ActivateXcodeCommandFn

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

ActivateXcodeCommandFn is a backward-compatible wrapper around xcelerate.Activate. Prefer xcelerate.Activate directly.

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

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
}

type XcodebuildRunner

type XcodebuildRunner struct {
	Config             xcelerate.Config
	Metadata           configcommon.CacheConfigMetadata
	InvocationID       string
	Logger             log.Logger
	CacheLogger        log.Logger
	XcodeRunner        XcodeRunner
	ProxySessionClient session.SessionClient
	XcodeArgs          xcodeargs.XcodeArgs

	// NoPrefixMap suppresses prefix-map injection for this invocation only
	// (per-invocation counterpart to Config.DisablePrefixMapping).
	NoPrefixMap bool
	// NoManagedDD suppresses the wrapper-owned -derivedDataPath and PROJECT_TEMP_DIR
	// substitution; user-supplied values are still honoured either way.
	NoManagedDD bool

	// Paths is the on-disk root resolver. If zero, paths.Default() is used.
	Paths paths.Paths
	// contains filtered or unexported fields
}

XcodebuildRunner holds configuration for the xcodebuild wrapper and provides Run as its main entry point.

func (*XcodebuildRunner) Run

Run executes the xcodebuild wrapper: runs xcodebuild, collects stats, sends analytics, and registers invocation relations.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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