@swmansion/argent 0.16.1-next.7 → 0.16.1-next.8
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/dist/tool-server.cjs +13 -9
- package/package.json +1 -1
package/dist/tool-server.cjs
CHANGED
|
@@ -105916,6 +105916,7 @@ var import_node_util8 = require("node:util");
|
|
|
105916
105916
|
|
|
105917
105917
|
// ../tool-server/src/utils/simctl-config.ts
|
|
105918
105918
|
var SIMCTL_SPAWN_TIMEOUT_MS = 1e4;
|
|
105919
|
+
var SIMCTL_KILL_SIGNAL = "SIGKILL";
|
|
105919
105920
|
|
|
105920
105921
|
// ../tool-server/src/utils/ios-devices.ts
|
|
105921
105922
|
var import_node_child_process6 = require("node:child_process");
|
|
@@ -105924,7 +105925,8 @@ var execFileAsync5 = (0, import_node_util5.promisify)(import_node_child_process6
|
|
|
105924
105925
|
async function listIosSimulators() {
|
|
105925
105926
|
try {
|
|
105926
105927
|
const { stdout } = await execFileAsync5("xcrun", ["simctl", "list", "devices", "--json"], {
|
|
105927
|
-
timeout: 1e4
|
|
105928
|
+
timeout: 1e4,
|
|
105929
|
+
killSignal: SIMCTL_KILL_SIGNAL
|
|
105928
105930
|
});
|
|
105929
105931
|
const data = JSON.parse(stdout);
|
|
105930
105932
|
const out = [];
|
|
@@ -105986,7 +105988,7 @@ async function ensureAutomationEnabled(udid) {
|
|
|
105986
105988
|
"-bool",
|
|
105987
105989
|
"true"
|
|
105988
105990
|
],
|
|
105989
|
-
{ timeout: SIMCTL_SPAWN_TIMEOUT_MS }
|
|
105991
|
+
{ timeout: SIMCTL_SPAWN_TIMEOUT_MS, killSignal: SIMCTL_KILL_SIGNAL }
|
|
105990
105992
|
);
|
|
105991
105993
|
}
|
|
105992
105994
|
async function isEntitlementBypassActive(udid) {
|
|
@@ -106001,7 +106003,7 @@ async function isEntitlementBypassActive(udid) {
|
|
|
106001
106003
|
"com.apple.Accessibility",
|
|
106002
106004
|
"IgnoreAXServerEntitlements"
|
|
106003
106005
|
],
|
|
106004
|
-
{ timeout: SIMCTL_SPAWN_TIMEOUT_MS }
|
|
106006
|
+
{ timeout: SIMCTL_SPAWN_TIMEOUT_MS, killSignal: SIMCTL_KILL_SIGNAL }
|
|
106005
106007
|
).then(({ stdout }) => stdout.trim() === "1").catch(() => false);
|
|
106006
106008
|
}
|
|
106007
106009
|
function accessibilityPlistPath(udid) {
|
|
@@ -106236,7 +106238,7 @@ async function ensureAccessibilityEnabled(udid) {
|
|
|
106236
106238
|
"-bool",
|
|
106237
106239
|
"true"
|
|
106238
106240
|
],
|
|
106239
|
-
{ timeout: SIMCTL_SPAWN_TIMEOUT_MS }
|
|
106241
|
+
{ timeout: SIMCTL_SPAWN_TIMEOUT_MS, killSignal: SIMCTL_KILL_SIGNAL }
|
|
106240
106242
|
)
|
|
106241
106243
|
)
|
|
106242
106244
|
);
|
|
@@ -106246,7 +106248,7 @@ async function setupNativeDevtoolsEnvLocal(udid, endpoint) {
|
|
|
106246
106248
|
const result = await execFileAsync8(
|
|
106247
106249
|
"xcrun",
|
|
106248
106250
|
["simctl", "spawn", udid, "launchctl", "getenv", "DYLD_INSERT_LIBRARIES"],
|
|
106249
|
-
{ encoding: "utf8", timeout: SIMCTL_SPAWN_TIMEOUT_MS }
|
|
106251
|
+
{ encoding: "utf8", timeout: SIMCTL_SPAWN_TIMEOUT_MS, killSignal: SIMCTL_KILL_SIGNAL }
|
|
106250
106252
|
).catch((e) => ({ stdout: e.stdout ?? "" }));
|
|
106251
106253
|
const existing = (result.stdout ?? "").trim();
|
|
106252
106254
|
const updated = buildDyldInsertLibraries(existing, bootstrapPath);
|
|
@@ -106254,7 +106256,7 @@ async function setupNativeDevtoolsEnvLocal(udid, endpoint) {
|
|
|
106254
106256
|
await execFileAsync8(
|
|
106255
106257
|
"xcrun",
|
|
106256
106258
|
["simctl", "spawn", udid, "launchctl", "setenv", "DYLD_INSERT_LIBRARIES", updated],
|
|
106257
|
-
{ timeout: SIMCTL_SPAWN_TIMEOUT_MS }
|
|
106259
|
+
{ timeout: SIMCTL_SPAWN_TIMEOUT_MS, killSignal: SIMCTL_KILL_SIGNAL }
|
|
106258
106260
|
);
|
|
106259
106261
|
}
|
|
106260
106262
|
if (endpoint.transport === "tcp") {
|
|
@@ -106272,7 +106274,7 @@ async function setupNativeDevtoolsEnvLocal(udid, endpoint) {
|
|
|
106272
106274
|
"NATIVE_DEVTOOLS_IOS_CDP_PORT",
|
|
106273
106275
|
String(endpoint.port)
|
|
106274
106276
|
],
|
|
106275
|
-
{ timeout: SIMCTL_SPAWN_TIMEOUT_MS }
|
|
106277
|
+
{ timeout: SIMCTL_SPAWN_TIMEOUT_MS, killSignal: SIMCTL_KILL_SIGNAL }
|
|
106276
106278
|
);
|
|
106277
106279
|
} else {
|
|
106278
106280
|
await execFileAsync8(
|
|
@@ -106286,7 +106288,7 @@ async function setupNativeDevtoolsEnvLocal(udid, endpoint) {
|
|
|
106286
106288
|
"NATIVE_DEVTOOLS_IOS_CDP_SOCKET",
|
|
106287
106289
|
endpoint.socketPath
|
|
106288
106290
|
],
|
|
106289
|
-
{ timeout: SIMCTL_SPAWN_TIMEOUT_MS }
|
|
106291
|
+
{ timeout: SIMCTL_SPAWN_TIMEOUT_MS, killSignal: SIMCTL_KILL_SIGNAL }
|
|
106290
106292
|
);
|
|
106291
106293
|
}
|
|
106292
106294
|
await ensureAccessibilityEnabled(udid);
|
|
@@ -106316,7 +106318,9 @@ function parseUIKitApplicationBundleIds(stdout) {
|
|
|
106316
106318
|
}
|
|
106317
106319
|
async function listRunningUIKitApplicationBundleIds(udid) {
|
|
106318
106320
|
const { stdout } = await execFileAsync8("xcrun", ["simctl", "spawn", udid, "launchctl", "list"], {
|
|
106319
|
-
encoding: "utf8"
|
|
106321
|
+
encoding: "utf8",
|
|
106322
|
+
timeout: SIMCTL_SPAWN_TIMEOUT_MS,
|
|
106323
|
+
killSignal: SIMCTL_KILL_SIGNAL
|
|
106320
106324
|
});
|
|
106321
106325
|
return parseUIKitApplicationBundleIds(stdout);
|
|
106322
106326
|
}
|