import { E as ExportMethod } from './enums-B609j2rb.js'; interface DetectedValues { workspace: string | null; project: string | null; scheme: string; configuration: string; schemes: string[]; configurations: string[]; targets: string[]; } interface XcodeBuildListOutput { project?: { name: string; schemes: string[]; configurations: string[]; targets: string[]; }; workspace?: { name: string; schemes: string[]; }; } /** * Auto-detect the Xcode workspace/project, scheme, and configuration. * * Workspace/project resolution: * 1. Explicit option * 2. First `.xcworkspace` in searchDir * 3. First `.xcodeproj` in searchDir * * Scheme resolution: * 1. Explicit option * 2. Sole scheme -> auto-select * 3. Scheme matching workspace/project name * 4. Error */ declare function detectValues(options: { workspace?: string; project?: string; scheme?: string; configuration?: string; searchDir?: string; }): Promise; interface ExportOptionsPlistConfig { /** The export method: app-store, ad-hoc, development, enterprise, etc. */ exportMethod: ExportMethod; /** Apple Developer team ID */ teamId?: string; /** * Map of bundle identifier to provisioning profile name. * e.g. { "com.example.app": "MyApp Distribution" } */ provisioningProfiles?: Record; /** Whether to include bitcode (deprecated in Xcode 14+, defaults to false) */ includeBitcode?: boolean; /** Whether to include symbols in the export (defaults to true) */ includeSymbols?: boolean; /** Code signing identity, e.g. "Apple Distribution: Company (TEAM_ID)" */ signingCertificate?: string; /** Signing style: "manual" or "automatic" */ signingStyle?: "manual" | "automatic"; /** Destination for export: "export" or "upload" */ destination?: "export" | "upload"; /** Whether to generate an app thinning report */ thinning?: string; /** Catalyst platform: "macos" or "ios" */ catalystPlatform?: string; /** Additional arbitrary keys to merge into the plist */ additionalOptions?: Record; } /** * Build the exportOptions plist dictionary. Returns a plain object that can be * serialized to XML plist via the `plist` package. */ declare function buildExportOptions(config: ExportOptionsPlistConfig): Record; /** * Generate an exportOptions plist XML string from the given config. */ declare function generateExportOptionsPlistXml(config: ExportOptionsPlistConfig): string; /** * Write an exportOptions.plist file to disk and return its path. * * @param dir - Directory to write the file into * @param config - Export options configuration * @returns The absolute path to the written plist file */ declare function writeExportOptionsPlist(dir: string, config: ExportOptionsPlistConfig): Promise; interface GymOptions { scheme: string; workspace?: string; project?: string; configuration?: string; exportMethod: ExportMethod; teamId?: string; provisioningProfiles?: Record; codeSignIdentity?: string; outputDirectory?: string; outputName?: string; clean?: boolean; archivePath?: string; derivedDataPath?: string; xcargs?: string; buildPath?: string; includeBitcode?: boolean; includeSymbols?: boolean; exportOptions?: Record; sdk?: string; destination?: string; catalystPlatform?: string; disableXcpretty?: boolean; onOutput?: (chunk: string) => void; } interface GymResult { success: boolean; exitCode: number; ipaPath: string | null; pkgPath: string | null; dsymPath: string | null; archivePath: string; output: string; } /** * Build an iOS/macOS app using xcodebuild archive + exportArchive. * This is the TypeScript equivalent of Fastlane's `gym` (alias `build_app`). * * Steps: * 1. requireMacOS("gym") * 2. Detect values (workspace/project/scheme/config) * 3. Clean if requested * 4. Archive via `xcodebuild archive` * 5. Generate exportOptionsPlist * 6. Export via `xcodebuild -exportArchive` * 7. Find IPA/PKG, compress dSYMs * 8. Return GymResult */ declare function buildApp(options: GymOptions): Promise; type index_DetectedValues = DetectedValues; type index_ExportOptionsPlistConfig = ExportOptionsPlistConfig; type index_GymOptions = GymOptions; type index_GymResult = GymResult; type index_XcodeBuildListOutput = XcodeBuildListOutput; declare const index_buildApp: typeof buildApp; declare const index_buildExportOptions: typeof buildExportOptions; declare const index_detectValues: typeof detectValues; declare const index_generateExportOptionsPlistXml: typeof generateExportOptionsPlistXml; declare const index_writeExportOptionsPlist: typeof writeExportOptionsPlist; declare namespace index { export { type index_DetectedValues as DetectedValues, type index_ExportOptionsPlistConfig as ExportOptionsPlistConfig, type index_GymOptions as GymOptions, type index_GymResult as GymResult, type index_XcodeBuildListOutput as XcodeBuildListOutput, index_buildApp as buildApp, index_buildExportOptions as buildExportOptions, index_detectValues as detectValues, index_generateExportOptionsPlistXml as generateExportOptionsPlistXml, index_writeExportOptionsPlist as writeExportOptionsPlist }; } export { type DetectedValues as D, type ExportOptionsPlistConfig as E, type GymOptions as G, type XcodeBuildListOutput as X, type GymResult as a, buildApp as b, buildExportOptions as c, detectValues as d, generateExportOptionsPlistXml as g, index as i, writeExportOptionsPlist as w };