appium-xcuitest-driver
Version:
Appium driver for iOS using XCUITest for backend
41 lines • 1.65 kB
TypeScript
import type { RemoteXPCFacade } from './remote-xpc';
/**
* Lists and exports device crash reports (`.ips`) on real hardware over RemoteXPC.
*
* Requires **iOS/tvOS 18+** and the optional **`appium-ios-remotexpc`** package.
* Used by {@link IOSCrashLog} for BiDi / `crashlog` collection on real devices.
*/
export declare class CrashReportsClient {
private readonly crashReportsService;
private constructor();
/**
* Opens a RemoteXPC crash-reports service for the given UDID.
*
* @param udid - Real device UDID
* @param facade - Per-session RemoteXPC facade
* @throws {Error} If RemoteXPC is disabled for the session or setup fails
*/
static create(udid: string, facade: RemoteXPCFacade | null): Promise<CrashReportsClient>;
/**
* @returns Basenames of crash report files on the device (e.g. `MyApp-2024-01-01-120000.ips`)
*/
listCrashes(): Promise<string[]>;
/**
* Pulls a single crash report off the device into a local folder.
*
* @param name - Crash file basename as returned by {@link CrashReportsClient.listCrashes}
* @param dstFolder - Existing local directory to write into
* @throws {Error} If the named report is not found on the device
*/
exportCrash(name: string, dstFolder: string): Promise<void>;
/**
* Tears down the crash-reports service.
*/
close(): Promise<void>;
/**
* Walk the crash-reports tree and collect `.ips` paths without listing the full tree upfront.
*/
private _listCrashReportPaths;
private _collectCrashReportPaths;
}
//# sourceMappingURL=crash-reports-client.d.ts.map