@limrun/api 0.73.0 → 0.73.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +45 -0
- package/index.d.mts +2 -1
- package/index.d.mts.map +1 -1
- package/index.d.ts +2 -1
- package/index.d.ts.map +1 -1
- package/index.js +4 -2
- package/index.js.map +1 -1
- package/index.mjs +1 -0
- package/index.mjs.map +1 -1
- package/ios-client.d.mts +4 -2
- package/ios-client.d.mts.map +1 -1
- package/ios-client.d.ts +4 -2
- package/ios-client.d.ts.map +1 -1
- package/ios-client.js.map +1 -1
- package/ios-client.mjs.map +1 -1
- package/package.json +11 -1
- package/resources/index.d.mts +1 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/xcode-instances-helpers.d.mts +18 -0
- package/resources/xcode-instances-helpers.d.mts.map +1 -1
- package/resources/xcode-instances-helpers.d.ts +18 -0
- package/resources/xcode-instances-helpers.d.ts.map +1 -1
- package/resources/xcode-instances-helpers.js +10 -0
- package/resources/xcode-instances-helpers.js.map +1 -1
- package/resources/xcode-instances-helpers.mjs +10 -0
- package/resources/xcode-instances-helpers.mjs.map +1 -1
- package/simulator-debug-symbols.d.mts +6 -0
- package/simulator-debug-symbols.d.mts.map +1 -0
- package/simulator-debug-symbols.d.ts +6 -0
- package/simulator-debug-symbols.d.ts.map +1 -0
- package/simulator-debug-symbols.js +13 -0
- package/simulator-debug-symbols.js.map +1 -0
- package/simulator-debug-symbols.mjs +9 -0
- package/simulator-debug-symbols.mjs.map +1 -0
- package/src/index.ts +2 -0
- package/src/ios-client.ts +4 -2
- package/src/resources/index.ts +1 -0
- package/src/resources/xcode-instances-helpers.ts +35 -0
- package/src/simulator-debug-symbols.ts +11 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { DeviceDetachUnavailableError } from '../device-detach';
|
|
2
|
+
import { SimulatorDebugSymbolsUnavailableError } from '../simulator-debug-symbols';
|
|
2
3
|
import { pullBuildFile } from '../internal/build-pull-file';
|
|
3
4
|
import { pullResultBundle } from '../internal/result-bundle';
|
|
4
5
|
import { normalizeAssetUpload, type BuildUpload } from '../lib/asset-permissions';
|
|
@@ -357,6 +358,16 @@ export type SimulatorStatus = {
|
|
|
357
358
|
latestBuild?: SimulatorBuildStatus;
|
|
358
359
|
};
|
|
359
360
|
|
|
361
|
+
export type SimulatorDebugSymbols = {
|
|
362
|
+
buildId: string;
|
|
363
|
+
bundleId?: string;
|
|
364
|
+
/**
|
|
365
|
+
* Symbol files on the simulator, one per binary of the app that carries debug info. Empty
|
|
366
|
+
* when the build has none the Xcode instance can read, such as a remote Bazel build.
|
|
367
|
+
*/
|
|
368
|
+
paths: string[];
|
|
369
|
+
};
|
|
370
|
+
|
|
360
371
|
export type SimulatorAttachResult = {
|
|
361
372
|
attached: boolean;
|
|
362
373
|
alreadyAttached: boolean;
|
|
@@ -551,6 +562,16 @@ export type XcodeClient = {
|
|
|
551
562
|
*/
|
|
552
563
|
getSimulator: () => Promise<SimulatorStatus>;
|
|
553
564
|
|
|
565
|
+
/**
|
|
566
|
+
* Upload the debug symbols of the latest build installed on the attached simulator to it,
|
|
567
|
+
* so a debugger there resolves source lines and variables: load each returned path with
|
|
568
|
+
* LLDB's `target symbols add`. Simulator builds keep their debug info on the Xcode instance,
|
|
569
|
+
* out of the simulator's reach. Throws when no simulator is attached or it has no build
|
|
570
|
+
* from this instance, and `SimulatorDebugSymbolsUnavailableError` when the instance predates
|
|
571
|
+
* this feature.
|
|
572
|
+
*/
|
|
573
|
+
syncSimulatorDebugSymbols: () => Promise<SimulatorDebugSymbols>;
|
|
574
|
+
|
|
554
575
|
/** Disconnect the simulator, keeping both instances and installed apps. */
|
|
555
576
|
detachSimulator: () => Promise<SimulatorStatus>;
|
|
556
577
|
|
|
@@ -1114,6 +1135,20 @@ export class XcodeInstances extends GeneratedXcodeInstances {
|
|
|
1114
1135
|
return readJsonResponse<SimulatorStatus>(res, 'GET /simulator');
|
|
1115
1136
|
},
|
|
1116
1137
|
|
|
1138
|
+
async syncSimulatorDebugSymbols(): Promise<SimulatorDebugSymbols> {
|
|
1139
|
+
// The instance links and uploads the symbols before it answers, which takes minutes
|
|
1140
|
+
// for a large app.
|
|
1141
|
+
const res = await nodeProxyTransport.fetchLongRequest(`${apiUrl}/simulator/debug-symbols`, {
|
|
1142
|
+
method: 'POST',
|
|
1143
|
+
headers: { Authorization: `Bearer ${token}` },
|
|
1144
|
+
});
|
|
1145
|
+
return readOrUnsupported<SimulatorDebugSymbols>(
|
|
1146
|
+
res,
|
|
1147
|
+
'POST /simulator/debug-symbols',
|
|
1148
|
+
(op) => new SimulatorDebugSymbolsUnavailableError(op),
|
|
1149
|
+
);
|
|
1150
|
+
},
|
|
1151
|
+
|
|
1117
1152
|
async detachSimulator(): Promise<SimulatorStatus> {
|
|
1118
1153
|
const res = await nodeProxyTransport.fetch(`${apiUrl}/simulator`, {
|
|
1119
1154
|
method: 'DELETE',
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { LimrunError } from './core/error';
|
|
2
|
+
|
|
3
|
+
/** The debug symbol route returned 404; the Xcode instance may be older or may be gone. */
|
|
4
|
+
export class SimulatorDebugSymbolsUnavailableError extends LimrunError {
|
|
5
|
+
constructor(operation: string) {
|
|
6
|
+
super(
|
|
7
|
+
`${operation} is unavailable; this Xcode instance may predate debug symbol support or no longer exist.`,
|
|
8
|
+
);
|
|
9
|
+
this.name = 'SimulatorDebugSymbolsUnavailableError';
|
|
10
|
+
}
|
|
11
|
+
}
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.73.
|
|
1
|
+
export const VERSION = '0.73.2'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.73.
|
|
1
|
+
export declare const VERSION = "0.73.2";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.73.
|
|
1
|
+
export declare const VERSION = "0.73.2";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.73.
|
|
1
|
+
export const VERSION = '0.73.2'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|