UNPKG

appium-xcode

Version:
26 lines 1.16 kB
import type { TeenProcessExecResult } from 'teen_process'; export declare const XCRUN_TIMEOUT = 15000; /** * Executes 'xcrun' command line utility * * @param args xcrun arguments * @param timeout The maximum number of milliseconds to wait until xcrun exists * @returns The result of xcrun execution * @throws {Error} If xcrun returned non-zero exit code or timed out */ export declare function runXcrunCommand(args: string[], timeout?: number): Promise<TeenProcessExecResult<string>>; /** * Uses macOS Spotlight service to detect where the given app is installed * * @param bundleId Bundle identifier of the target app * @returns Full paths to where the app with the given bundle id is present. */ export declare function findAppPaths(bundleId: string): Promise<string[]>; /** * Finds and retrieves the content of the Xcode's Info.plist file * * @param developerRoot Full path to the Contents/Developer folder under Xcode.app root * @returns All plist entries as an object or an empty object if no plist was found */ export declare function readXcodePlist(developerRoot: string): Promise<Record<string, any>>; //# sourceMappingURL=helpers.d.ts.map