xc-mcp
Version:
MCP server that wraps Xcode command-line tools for iOS/macOS development workflows
54 lines • 1.84 kB
TypeScript
/**
* Build Artifacts Discovery
*
* Utilities for finding and analyzing Xcode build artifacts (.app bundles, dSYMs, etc.)
* Uses build settings cache to determine artifact locations without manual path specification.
*/
export interface BuildArtifacts {
appPath?: string;
dSYMPath?: string;
bundleIdentifier?: string;
buildDirectory?: string;
}
/**
* Find build artifacts for a given project and scheme
*
* Returns paths to .app bundle, dSYM, and other build outputs.
* Uses build settings cache to determine locations automatically.
*
* @param projectPath - Path to .xcodeproj or .xcworkspace
* @param scheme - Build scheme name
* @param configuration - Build configuration (Debug, Release, etc.)
* @returns Object containing paths to build artifacts
*
* @example
* const artifacts = await findBuildArtifacts(
* '/path/to/MyApp.xcodeproj',
* 'MyApp',
* 'Debug'
* );
* // Returns: {
* // appPath: '/path/to/DerivedData/.../MyApp.app',
* // bundleIdentifier: 'com.example.MyApp',
* // ...
* // }
*/
export declare function findBuildArtifacts(projectPath: string, scheme: string, configuration?: string): Promise<BuildArtifacts>;
/**
* Verify build artifacts exist for installation
*
* Checks that .app bundle exists and is ready for installation to simulator.
* Provides helpful error messages if artifacts are missing.
*
* @param projectPath - Path to .xcodeproj or .xcworkspace
* @param scheme - Build scheme name
* @param configuration - Build configuration
* @returns Validation result with app path or error guidance
*/
export declare function verifyBuildArtifacts(projectPath: string, scheme: string, configuration?: string): Promise<{
valid: boolean;
appPath?: string;
error?: string;
guidance?: string[];
}>;
//# sourceMappingURL=build-artifacts.d.ts.map