peachsim 0.1.2412 → 0.1.2422

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.
Files changed (150) hide show
  1. package/README.md +1 -1
  2. package/cli/catalog/content.ts +6 -3
  3. package/cli/catalog/meta.ts +63 -17
  4. package/cli/catalog/routes.ts +4 -0
  5. package/cli/cloud-box-artifact.ts +45 -24
  6. package/cli/cloud-client.ts +6 -2
  7. package/cli/command-registry.ts +3 -1
  8. package/cli/commands/control.ts +74 -55
  9. package/cli/commands/desktop.ts +3 -3
  10. package/cli/commands/electron.ts +7 -5
  11. package/cli/commands/kotlin.ts +8 -1
  12. package/cli/commands/platform.ts +5 -7
  13. package/cli/commands/profile.ts +2 -2
  14. package/cli/commands/settings.ts +90 -0
  15. package/cli/commands/shell-url.ts +18 -10
  16. package/cli/commands/swift.ts +3 -1
  17. package/cli/main.ts +6 -0
  18. package/cli/outbound-endpoints.ts +17 -15
  19. package/cli/settings-flags.ts +115 -0
  20. package/dist-lib/agent-daemon-client.cjs +1 -1
  21. package/dist-lib/agent-events.cjs +1 -1
  22. package/dist-lib/attached-projects.cjs +1 -1
  23. package/dist-lib/auth/shared-session.cjs +1 -1
  24. package/dist-lib/backend-origin.cjs +1 -1
  25. package/dist-lib/beta.cjs +1 -1
  26. package/dist-lib/beta.mjs +1 -1
  27. package/dist-lib/bridge-constants.cjs +1 -1
  28. package/dist-lib/bridge-contract-input.cjs +1 -1
  29. package/dist-lib/bridge-contract-input.mjs +1 -1
  30. package/dist-lib/bridge-contract.cjs +1 -1
  31. package/dist-lib/bridge-contract.mjs +1 -1
  32. package/dist-lib/bundle-channel.cjs +6683 -4510
  33. package/dist-lib/capture-contract.cjs +1 -1
  34. package/dist-lib/capture-contract.mjs +1 -1
  35. package/dist-lib/cloud-contract.cjs +1 -1
  36. package/dist-lib/cloud-contract.mjs +1 -1
  37. package/dist-lib/cloud-test-args.cjs +1 -1
  38. package/dist-lib/cloud-test-args.mjs +1 -1
  39. package/dist-lib/cloud.cjs +1 -1
  40. package/dist-lib/cloud.mjs +1 -1
  41. package/dist-lib/config.cjs +3 -7
  42. package/dist-lib/config.mjs +3 -7
  43. package/dist-lib/detox/index.cjs +4 -4
  44. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  45. package/dist-lib/expo-swift-bundle.cjs +19780 -17646
  46. package/dist-lib/expo-swift-metadata.cjs +1 -1
  47. package/dist-lib/expo-swift-metadata.mjs +1 -1
  48. package/dist-lib/home-paths.cjs +1 -1
  49. package/dist-lib/host/bridge-host.cjs +63968 -62664
  50. package/dist-lib/host/fetch-proxy-handler.cjs +1619 -211
  51. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  52. package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
  53. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  54. package/dist-lib/host/websocket-proxy.cjs +1 -1
  55. package/dist-lib/index.cjs +2734 -1222
  56. package/dist-lib/jump-to-source-babel.cjs +1 -1
  57. package/dist-lib/jump-to-source-native.cjs +1 -1
  58. package/dist-lib/kotlin-host.cjs +972 -246
  59. package/dist-lib/menu.cjs +1 -1
  60. package/dist-lib/menu.mjs +1 -1
  61. package/dist-lib/metro-fingerprint-registry.cjs +1 -1
  62. package/dist-lib/metro-fingerprint-registry.mjs +1 -1
  63. package/dist-lib/metro-production-bundle.cjs +1 -1
  64. package/dist-lib/metro-production-bundle.mjs +1 -1
  65. package/dist-lib/metro.cjs +1758 -246
  66. package/dist-lib/native-app-identity-project.cjs +35 -203
  67. package/dist-lib/native-app-identity-project.mjs +264 -413
  68. package/dist-lib/native-app-identity.cjs +1 -1
  69. package/dist-lib/native-app-identity.mjs +1 -1
  70. package/dist-lib/native-firebase-metadata.cjs +1 -1
  71. package/dist-lib/native-firebase-metadata.mjs +1 -1
  72. package/dist-lib/pdfium-raster.cjs +1 -1
  73. package/dist-lib/pdfium-raster.mjs +1 -1
  74. package/dist-lib/plist.cjs +1 -1
  75. package/dist-lib/plist.mjs +1 -1
  76. package/dist-lib/profiles.cjs +1 -1
  77. package/dist-lib/public-brand.cjs +1 -1
  78. package/dist-lib/public-origins-lib-esm.json +32 -25
  79. package/dist-lib/public-origins-lib.json +222 -120
  80. package/dist-lib/react-native-host-modules.cjs +1 -1
  81. package/dist-lib/react-native-host-modules.mjs +1 -1
  82. package/dist-lib/reap-browser.cjs +1 -1
  83. package/dist-lib/scripts/dev-server-scanner.cjs +2 -2
  84. package/dist-lib/sdk.cjs +1 -1
  85. package/dist-lib/sdk.mjs +1 -1
  86. package/dist-lib/skills.cjs +24600 -23060
  87. package/dist-lib/swift-compile.cjs +1396 -1203
  88. package/dist-lib/swift-compile.mjs +1351 -1148
  89. package/dist-lib/swift-package.cjs +1 -1
  90. package/dist-lib/swift-package.mjs +1 -1
  91. package/dist-lib/swift-submit.cjs +1 -1
  92. package/dist-lib/swift-submit.mjs +1 -1
  93. package/dist-lib/swift-toolchain.cjs +1 -199
  94. package/dist-lib/swift.cjs +1 -1
  95. package/dist-lib/vite-swift.cjs +2832 -2588
  96. package/dist-lib/vite.cjs +5254 -3781
  97. package/dist-lib/worklet-executable.cjs +1 -1
  98. package/dist-lib/worklet-executable.mjs +1 -1
  99. package/dist-types/packages/peach-engine/src/config.d.ts +1 -4
  100. package/dist-types/packages/peach-engine/src/engine/native-layout.d.ts +1 -1
  101. package/dist-types/packages/peach-engine/src/render-worker/compositor-protocol.d.ts +0 -10
  102. package/dist-types/packages/peach-engine/src/render-worker/compositor-runtime/layer-claims.d.ts +2 -1
  103. package/kotlin/README.md +4 -3
  104. package/kotlin/sdk.tar.gz +0 -0
  105. package/kotlin/toolchain.json +3 -6
  106. package/package.json +1 -1
  107. package/runtime-companion.json +1 -1
  108. package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CALayer.h +1 -43
  109. package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CALayerContents.h +55 -0
  110. package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Modules/module.modulemap +3 -3
  111. package/sdk/ios/usr/include/ObjectiveC.apinotes +0 -24
  112. package/sdk/ios/usr/include/grp.h +93 -0
  113. package/sdk/ios/usr/include/netinet/tcp.h +299 -0
  114. package/sdk/ios/wasm/include/netinet/tcp.h +6 -0
  115. package/sdk/ios/wasm/include/stdlib.h +1 -0
  116. package/sdk/ios/wasm/include/unistd.h +2 -0
  117. package/skills/contrast/SKILL.md +1 -0
  118. package/skills/peach-setup/SKILL.md +11 -1
  119. package/src/android-bridge-dependencies.ts +1 -1
  120. package/src/app-config.ts +7 -0
  121. package/src/binaryen.lock.json +21 -0
  122. package/src/cocoapods-trunk.ts +52 -0
  123. package/src/config.ts +21 -31
  124. package/src/expo-kotlin-bundle.ts +1 -1
  125. package/src/kotlin-host.ts +1 -1
  126. package/src/kotlin-sdk.ts +7 -7
  127. package/src/kotlin-toolchain.ts +28 -24
  128. package/src/kotlinSdkContract.ts +2 -2
  129. package/src/native-bundles.ts +5 -2
  130. package/src/native-static-libraries.ts +85 -5
  131. package/src/podfile-cocoapods.ts +1473 -0
  132. package/src/podspec-cocoapods.ts +331 -106
  133. package/src/podspec-ruby-stdlib.ts +134 -19
  134. package/src/podspec-ruby.ts +199 -46
  135. package/src/settingsContract.ts +74 -0
  136. package/src/swift-compile.ts +185 -108
  137. package/src/swift-compiler-digest.ts +3 -0
  138. package/src/swift-guest-compile.ts +2 -0
  139. package/src/swift-guest-source-inputs.ts +2 -2
  140. package/src/swift-header-compiler.ts +185 -0
  141. package/src/swift-header-dependencies.ts +174 -0
  142. package/src/swift-host.ts +32 -7
  143. package/src/swift-objc-compile.ts +18 -24
  144. package/src/swift-packages.ts +35 -6
  145. package/src/swift-shared-sdk.ts +19 -0
  146. package/src/swift-toolchain.ts +2 -201
  147. package/src/turbo-source.ts +7 -37
  148. package/src/wasm-optimize.ts +4 -27
  149. package/src/xcode-project.ts +6 -1
  150. package/dist-types/packages/peach-engine/src/render-worker/accessibilityHostContract.d.ts +0 -65
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2412 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2422 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  var __create = Object.create;
3
3
  var __defProp = Object.defineProperty;
4
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -1142,7 +1142,7 @@ var require_lib = __commonJS({
1142
1142
  // src/native-app-identity-project.ts
1143
1143
  import fs19 from "node:fs";
1144
1144
  import { createRequire } from "node:module";
1145
- import path38 from "node:path";
1145
+ import path40 from "node:path";
1146
1146
 
1147
1147
  // src/android-string-value.ts
1148
1148
  function compileAndroidStringValue(text2, where) {
@@ -1795,10 +1795,10 @@ function appTargetReleaseSettings(pbxproj, targetName, infoPlistRelativePath) {
1795
1795
  var APP_DELEGATE_PATH_RE = /(?:^|\/)(?:ios\/)?([^/]+)\/AppDelegate\.(?:swift|mm|m)$/;
1796
1796
  function nativeAppIdentityFromIos(files, parseInfoPlist, iosTarget, resourceUri) {
1797
1797
  const pbxprojPath = Object.keys(files).find(
1798
- (path39) => /(?:^|\/)ios\/[^/]+\.xcodeproj\/project\.pbxproj$/.test(path39)
1798
+ (path41) => /(?:^|\/)ios\/[^/]+\.xcodeproj\/project\.pbxproj$/.test(path41)
1799
1799
  ) ?? Object.keys(files).find(
1800
- (path39) => /(?:^|\/)[^/]+\.xcodeproj\/project\.pbxproj$/.test(path39)
1801
- ) ?? Object.keys(files).find((path39) => /(?:^|\/)project\.pbxproj$/.test(path39));
1800
+ (path41) => /(?:^|\/)[^/]+\.xcodeproj\/project\.pbxproj$/.test(path41)
1801
+ ) ?? Object.keys(files).find((path41) => /(?:^|\/)project\.pbxproj$/.test(path41));
1802
1802
  if (!pbxprojPath) return null;
1803
1803
  const pbxproj = files[pbxprojPath];
1804
1804
  let objects = {};
@@ -1840,7 +1840,7 @@ function nativeAppIdentityFromIos(files, parseInfoPlist, iosTarget, resourceUri)
1840
1840
  } else if (applicationTargetNames.size === 1) {
1841
1841
  targetName = [...applicationTargetNames][0];
1842
1842
  } else if (applicationTargetNames.size > 1) {
1843
- const delegateTargets = Object.keys(files).filter((path39) => !path39.includes("/Pods/")).map((path39) => path39.match(APP_DELEGATE_PATH_RE)?.[1]).filter(
1843
+ const delegateTargets = Object.keys(files).filter((path41) => !path41.includes("/Pods/")).map((path41) => path41.match(APP_DELEGATE_PATH_RE)?.[1]).filter(
1844
1844
  (name) => typeof name === "string" && applicationTargetNames.has(name)
1845
1845
  );
1846
1846
  if (delegateTargets.length === 1) {
@@ -2081,7 +2081,7 @@ function nativeAppIdentityFromIos(files, parseInfoPlist, iosTarget, resourceUri)
2081
2081
  if (Object.hasOwn(files, file)) return [file];
2082
2082
  const prefix = file === "" ? "" : `${file.replace(/\/$/, "")}/`;
2083
2083
  return paths.filter(
2084
- (path39) => path39.startsWith(prefix) && !/(?:^|\/)\./.test(path39.slice(prefix.length))
2084
+ (path41) => path41.startsWith(prefix) && !/(?:^|\/)\./.test(path41.slice(prefix.length))
2085
2085
  );
2086
2086
  },
2087
2087
  join8,
@@ -2092,7 +2092,7 @@ function nativeAppIdentityFromIos(files, parseInfoPlist, iosTarget, resourceUri)
2092
2092
  }
2093
2093
  const rootModuleName = readRootModuleName(
2094
2094
  Object.entries(files).filter(
2095
- ([path39]) => !path39.includes("/Pods/") && (/(?:^|\/)(?:ios\/)?AppDelegate\.(?:swift|mm|m)$/.test(path39) || path39.match(APP_DELEGATE_PATH_RE)?.[1] === targetName)
2095
+ ([path41]) => !path41.includes("/Pods/") && (/(?:^|\/)(?:ios\/)?AppDelegate\.(?:swift|mm|m)$/.test(path41) || path41.match(APP_DELEGATE_PATH_RE)?.[1] === targetName)
2096
2096
  ).map(([, source]) => source)
2097
2097
  );
2098
2098
  return {
@@ -2258,24 +2258,6 @@ var compilerArchives = {
2258
2258
  }
2259
2259
  }
2260
2260
  },
2261
- "swift-6.4.0-RELEASE-custom-44ecd25f163bb359": {
2262
- identity: "44ecd25f163bb359",
2263
- archive: "tar.zst",
2264
- hosts: {
2265
- "darwin-arm64": {
2266
- checksum: "d06dda4435f99d8376179cc7a3804907aa7305513135ece6288fd8e6d4695ae6",
2267
- manifest: "bc0d8b955f923f096dda2aa8bbb1d56176a73f3d4a4df4cc9a1f59d31417061a"
2268
- },
2269
- "linux-x64": {
2270
- checksum: "f95b56440693c5de7995f10ea14c57fc7e659a161018a17f17a74b61a98e88a4",
2271
- manifest: "c18a60b14d5c89a8b2e1dbb2b4b52342c5fb92c7f3069fdc55c985bce61683a7"
2272
- },
2273
- "linux-arm64": {
2274
- checksum: "afb74ae60df2b5bd7792bfbcf29bcea03675a5c814b758dd6cb91a760c220cd2",
2275
- manifest: "ac037f6b0fdc4a6ae582eebc22bcf811fa2becdc30d083057137fc857f3c456a"
2276
- }
2277
- }
2278
- },
2279
2261
  "swift-6.4.0-RELEASE-custom-11345d60dca47496": {
2280
2262
  identity: "11345d60dca47496",
2281
2263
  archive: "tar.zst",
@@ -2294,186 +2276,6 @@ var compilerArchives = {
2294
2276
  }
2295
2277
  }
2296
2278
  },
2297
- "swift-6.4.0-RELEASE-custom-45bb46301c86fe73": {
2298
- identity: "45bb46301c86fe73",
2299
- archive: "tar.gz",
2300
- hosts: {
2301
- "darwin-arm64": {
2302
- checksum: "102dfbbb7b451be0685763b7a427284b75a8078874543f091b1c4b3db86e6565",
2303
- manifest: "fb6c4d75ef6f4b3c094ae5a4d5d1e6bdfd85431f3fe25d514f3e7a0b4add60ef"
2304
- },
2305
- "linux-x64": {
2306
- checksum: "d3c040e042e12ff787b64bfde1d85238254365036ce093f3b20ff86e8ff996f0",
2307
- manifest: "7c7144be591692e563396fe3c987c5aa56fbaea4faacaad62283c0c6e5c04ae2"
2308
- },
2309
- "linux-arm64": {
2310
- checksum: "604e6fc5fc0f5a93cee3ca6dfa9616244a2a49ef517caa3155a12ae4a0ecf72b",
2311
- manifest: "075fd53d03ecf099954f1d023bb4bb67a5c5ee946537466d6c105022bdf8ecde"
2312
- }
2313
- }
2314
- },
2315
- "swift-6.4.0-RELEASE-custom-0b2d0a9011c88e66": {
2316
- identity: "0b2d0a9011c88e66",
2317
- archive: "tar.gz",
2318
- hosts: {
2319
- "darwin-arm64": {
2320
- checksum: "dc6a494227297ea657e8e5f7c5b4a861cb5e142bdbcfcb028ace2aeb19db90cc",
2321
- manifest: "d8e9eee0fb9b847f1e9350525d6c68606df46101745f553332309ed026b3c26a"
2322
- },
2323
- "linux-x64": {
2324
- checksum: "85c04b4496aea1657c21a47f448e01d6ccc1c7920d130a566db37fb8350a7be2",
2325
- manifest: "8451659e74235ad53b700c1afbe293512197900eb98cb1f79e36df2f5c85d511"
2326
- },
2327
- "linux-arm64": {
2328
- checksum: "196606ed62c5c926d18e6ef0769cb1ab21c9943f9084070ddf14a7bc696768b8",
2329
- manifest: "85fb8d5b6527bd75003a6dbd25b68b22540665cf9df9b13f41f82e5d8acdbf1d"
2330
- }
2331
- }
2332
- },
2333
- "swift-6.4.0-RELEASE-custom-f7c03c3f59ec5d83": {
2334
- identity: "f7c03c3f59ec5d83",
2335
- archive: "tar.gz",
2336
- hosts: {
2337
- "darwin-arm64": {
2338
- checksum: "8946a2d4716d3b0784cef7a85a35f66537bd319c4c5a48c63457d607260df5c5",
2339
- manifest: "2a7754e6e365bf71ae6b6aefbbd810123795c73d43fb902a8a972d009d72790f"
2340
- },
2341
- "linux-x64": {
2342
- checksum: "5ffa3b54d54583c1d6a38b708693072db4d088ba4bf5966b17014c068b2db641",
2343
- manifest: "1b23ea52c5570de4697481a54bd0b0a0bcd6b54feccb7b0bb940d3643dec82cb"
2344
- },
2345
- "linux-arm64": {
2346
- checksum: "29b0b97b7b0db4475dbe55f7011e57f493fed9f3482a6705becebd8b68c90bab",
2347
- manifest: "3fdab1132715f5899de1bb1d7ddcd52cf540295ab86586c72f49502f37a403a1"
2348
- }
2349
- }
2350
- },
2351
- "swift-6.4.0-RELEASE-custom-3e3dca8fd1d82975": {
2352
- identity: "3e3dca8fd1d82975",
2353
- archive: "tar.gz",
2354
- hosts: {
2355
- "darwin-arm64": {
2356
- checksum: "dfad56454f5e1e465071ff708bf485be65b438cf55d02b04d26d17d26df9f54a",
2357
- manifest: "82c35e43ed81101bea500100356a555d8266e1987d5ca7605aaa4df747c38f81"
2358
- },
2359
- "linux-x64": {
2360
- checksum: "d3f5908d097fdc1337ff979114e605bcc758052e32f9d5d760574153d58ce6db",
2361
- manifest: "a03caf181177f3d68a45b5246d0f0a26d8a5fa9ff33cf44c44e6942b73363bae"
2362
- },
2363
- "linux-arm64": {
2364
- checksum: "8fceafca152dd0692aa6bb51236fc362a4caeeef37fc22cb5ef6aa3d0d5b3df3",
2365
- manifest: "3115bc496fd8e907a16992dfc5c85b3e0798d3b58ddf1d6dace63842aed8e53b"
2366
- }
2367
- }
2368
- },
2369
- "swift-6.4.0-RELEASE-custom-b082ac5437336790": {
2370
- identity: "b082ac5437336790",
2371
- archive: "tar.gz",
2372
- hosts: {
2373
- "darwin-arm64": {
2374
- checksum: "85e601982321d3a6f81f05928bc9bbe7a61bc75b27ce24508e79f6b5b537254d",
2375
- manifest: "c889a70c6bba48eb0e5e218a5c0077eb557082fed5c5c58d10f07a941975080e"
2376
- },
2377
- "linux-x64": {
2378
- checksum: "54c7988622d201e4ba6c83ca75e7b28c658b39cf1ea8b95ea88807afe33aa465",
2379
- manifest: "bfd725c3b07a3624bb44c8e3a1b7ddf1eddde4fc9565e23740a9cee832c94583"
2380
- },
2381
- "linux-arm64": {
2382
- checksum: "bd729fd73dc9953306eafd87eda79462b836b3cb127c73108327d7256b15f501",
2383
- manifest: "e7f8827cca0f249a5b4a4750f6324f75633b374985fa0b93e650ee8bfcabeb39"
2384
- }
2385
- }
2386
- },
2387
- "swift-6.4.0-RELEASE-custom-9cdaffdb6b37fb47": {
2388
- identity: "9cdaffdb6b37fb47",
2389
- archive: "tar.gz",
2390
- hosts: {
2391
- "darwin-arm64": {
2392
- checksum: "fdd3f88cf76a8dc2083275d4253255030068a25b5ba68acbf59e0407c45677dd",
2393
- manifest: "f50c68faf91f7d2a6ea5bcd4da4573a49dd00ad9f334b27d3f9ddb08b65e46cc"
2394
- },
2395
- "linux-x64": {
2396
- checksum: "f29f9efc598b17f33d802467676ba282441a8c3c6fa67e307c4a1e6130509d73",
2397
- manifest: "f907727c5a4af58ccad7ccbb043a21289d7eb37d166536a90b3c3848f95df816"
2398
- },
2399
- "linux-arm64": {
2400
- checksum: "7d4a8a1f90dd6c86804ceb43f8b9cf680b9778d4640a2eb6da5cb333a599f23a",
2401
- manifest: "a3224cd5c09a92f66cacd0395058b2c43fa103a92bb168280132bbd0febd1575"
2402
- }
2403
- }
2404
- },
2405
- "swift-6.4.0-RELEASE-custom-bd49e2f77434e7b1": {
2406
- identity: "bd49e2f77434e7b1",
2407
- archive: "tar.gz",
2408
- hosts: {
2409
- "darwin-arm64": {
2410
- checksum: "e815b06394566e8125475afc8f1807f7f465318c845549c5831043cdc28eca64",
2411
- manifest: "6e3ae00102c67f2f9761b1462aab63580f2ca010469300a7c4a620765573e4e0"
2412
- },
2413
- "linux-x64": {
2414
- checksum: "9336e0b0aefaa0171799d4b5d4215c711a24c79ac9e91baa362ba100fc22534f",
2415
- manifest: "3802c631f593eda1d79dc4af55a8667356eece954d2ea59b62b1f8f981fa538e"
2416
- },
2417
- "linux-arm64": {
2418
- checksum: "851b5a756472ad53d833e8f0ab3ae55c05d3e6b49871bb982c977b7582cc117f",
2419
- manifest: "4162656192a2881e5ccc763e3e66ce46646a84ff42cdf2de50bd6424ebac5e34"
2420
- }
2421
- }
2422
- },
2423
- "swift-6.4.0-RELEASE-custom-13450179a7e01c81": {
2424
- identity: "13450179a7e01c81",
2425
- archive: "tar.gz",
2426
- hosts: {
2427
- "darwin-arm64": {
2428
- checksum: "a29be6b722f15c7aafac26ba5703a7392f49ce7ea5e1c56548846b7e458290f7",
2429
- manifest: "9d89bc39d80d13c8bdb93ad5c306bb87e83bac34090f9bcec57476fd90a6a115"
2430
- },
2431
- "linux-x64": {
2432
- checksum: "b9e9e3ed855f6a8c85f5fe24016b83792a0088e2d0ea632482426c4dc6031b98",
2433
- manifest: "5de3bb6bf131e68862539195fbb4fce9d4de2b528fa882495b27fd4bdd02e5ab"
2434
- },
2435
- "linux-arm64": {
2436
- checksum: "844f5ead2854d4ac2d1fc9fb13c366450a2ed4b8fa641719822d74f9150575b4",
2437
- manifest: "1fcfb353679186a3e631b83085e5e8c3dde8cb32d25052b3c8b7896339a4378b"
2438
- }
2439
- }
2440
- },
2441
- "swift-6.4.0-RELEASE-custom-f6868fa6054e83d6": {
2442
- identity: "f6868fa6054e83d6",
2443
- archive: "tar.gz",
2444
- hosts: {
2445
- "darwin-arm64": {
2446
- checksum: "bd80c2f35864ec29883dd22001d0165821e80d78002fc12f92406c3c708694a4",
2447
- manifest: "daad0da2a296084307769b59719dbe83e45755871438fad129b20421b111657b"
2448
- },
2449
- "linux-x64": {
2450
- checksum: "39707ef599835ae2d9ce5aea026b7a96d43e51b4c4dcd2ca62d5fc11c520e871",
2451
- manifest: "065405edd9b02a84ce01c09e68531834dbe190232e6387b056a481354c44fe81"
2452
- },
2453
- "linux-arm64": {
2454
- checksum: "a91f2947d560b49b56334938d0efdcb22286557da63d65389129030b2a4e146d",
2455
- manifest: "4dfbc167c96f30c7de19cc280948786fb79a888b666ca200b0788803902361ce"
2456
- }
2457
- }
2458
- },
2459
- "swift-6.4.0-RELEASE-custom-a560ff35bf882b5c": {
2460
- identity: "a560ff35bf882b5c",
2461
- archive: "tar.zst",
2462
- hosts: {
2463
- "darwin-arm64": {
2464
- checksum: "36c50bcdfba88a4c0989af0bd60371497eb4403aa7b80644b479fa509a2187a9",
2465
- manifest: "253e891527d2213f54eace768b902de89de5e9495a3c5f4018de1985516bd553"
2466
- },
2467
- "linux-x64": {
2468
- checksum: "ba25da9182314fc7b7dd2fc041280e1c7b409f80a1fbccdfa5c342669d164c8e",
2469
- manifest: "6f951cc4071dd0d6054d85711a7c5fe272273658847831b477a8b24be7254ca0"
2470
- },
2471
- "linux-arm64": {
2472
- checksum: "5f0f4456e9fe22b5486025db9f679c865841660797d71761245291c2c6811c20",
2473
- manifest: "b6f62fca2ec37593e274ee5bac474f21ffc5db14cd82f492ccbc774f8e9b75d8"
2474
- }
2475
- }
2476
- },
2477
2279
  [SWIFT_HOST_COMPILER_RELEASE]: {
2478
2280
  identity: SWIFT_HOST_COMPILER_ID,
2479
2281
  archive: "tar.gz",
@@ -2563,9 +2365,9 @@ var NATIVE_GRAPH_ID = createHash3("sha256").update(JSON.stringify(NATIVE_GRAPH_I
2563
2365
 
2564
2366
  // src/xcode-project.ts
2565
2367
  import { execFileSync as execFileSync15 } from "node:child_process";
2566
- import { createHash as createHash22 } from "node:crypto";
2368
+ import { createHash as createHash23 } from "node:crypto";
2567
2369
  import fs18 from "node:fs";
2568
- import path37 from "node:path";
2370
+ import path39 from "node:path";
2569
2371
  import plist3 from "plist";
2570
2372
 
2571
2373
  // src/bazel-project.ts
@@ -3885,7 +3687,7 @@ import { join as join3, relative, sep } from "node:path";
3885
3687
  import { createHash as createHash7 } from "node:crypto";
3886
3688
  import { readFileSync as readFileSync3 } from "node:fs";
3887
3689
  import { join } from "node:path";
3888
- var swiftCoverageProvenance = true ? JSON.parse('{"swift-coverage/indexdump.ts":"0d82d8eeb96bf377f409ea7e33274c341a710c0e071f6b6e17571a23d8d92412","swift-coverage/indexing.ts":"633ccf19eec1f382a8847d0ee1dca42a2792a3c60aafd43622ed5152b09b8272","swift-coverage/types.ts":"bd8fae54ea6c53e110cd8a5d7b57c1d532dd0166e09fdaea63c4f270c3780dd1","swift-coverage/source.ts":"c151758a9f67631bc61473c375df0dc017da6902a34533b2cf4fc4fd7d19b6ee","swift-coverage/package.ts":"1f0068be7461fa7c5a7a891faf318f305cbed2e94c19667ba76627f7e5be260b","swift-coverage/xcode.ts":"65a500b806ce1c3a496de27f2e0ad77287c0f6795c618342c08af647f92af1fa","swift-coverage/xcode-assets.ts":"d98d6294b359528f7733b26db6f80f554782354faa235605f9562be4ad98b8a3","swift-coverage/xcode-asset-symbols.ts":"1b2a67733bc9d139b351466270205452a6172140bc25080d72619e2952c44671","swift-coverage/xcode-bridging.ts":"33184be8c5daf6646aa5a1276a4e15531f1be27b7c26f56550e0fbb1fc678a11","swift-coverage/xcode-packages.ts":"5c83f56357d880243ab485b260d23abd0094583ffa2287dac6e9e7eb18c3673d","swift-coverage/xcode-strings.ts":"f2dd4c7cd8ef77035184b0132909c2fa09fd20ed06b7757c2f1f960bfdde031c","swift-coverage/reader.ts":"da559b67ecd1161dea70c980b5f98f2c55af3550f0714479100fa5e9e813625c","swift-coverage/provenance.ts":"f5039c16e63c6129e22b71203f58982c68cef6e282a4f236b93da28edd39c108","swift-package-manifest.ts":"a19fe4c5e2efe18bbc3ece544ff2c8be660170d63274cccb0ab58e53083050e4","swift-package.ts":"851417572ca9aff699ad368bdc3ff05309b0256e483d40812b9c0beb869d0a5b","swift-source-file.ts":"8becce5e73b76a61d9d202c1ecfb39b1238e9bbf0e77841f1c51c98fa9ac7bd3","swift-toolchain.ts":"dec93d0206df8efbd9f538d1f3e3f6173f6eb022cb9ad6b02271481db7578d77","home-paths.ts":"d1606390f0e8e50f0ff72544eadb3d49dfabf08e004c1218f2998c36fb8995dd","xcode-header-search.ts":"4a775ba92c7b23ce71dd6bb08c188c4bccd6e1ed500cc9fc7850030b945fc8d4","xcode-project.ts":"5e7daa9fabfa1c7f38e7b7e11bb0d4168e26d958b1acdb65e54e06e7de5c6804","xcode-target-members.ts":"2f25aaf5a3aa34395983c75935491c06bd68554c47ff1cb06b49c79499c03db0","xcode-json-project.ts":"41990ebbe4b488eef34e74c4608b4b48e5a5b299ba98ca7fbcfdfa0e77be63b6","openstep-plist.ts":"74e6ce1dac80c9c318e0e9f5e3e8cd19a898a8820c36fc160609695bcb59dcd3"}') : swiftCoverageSourceDigests(join(import.meta.dirname, ".."));
3690
+ var swiftCoverageProvenance = true ? JSON.parse('{"swift-coverage/indexdump.ts":"0d82d8eeb96bf377f409ea7e33274c341a710c0e071f6b6e17571a23d8d92412","swift-coverage/indexing.ts":"633ccf19eec1f382a8847d0ee1dca42a2792a3c60aafd43622ed5152b09b8272","swift-coverage/types.ts":"bd8fae54ea6c53e110cd8a5d7b57c1d532dd0166e09fdaea63c4f270c3780dd1","swift-coverage/source.ts":"c151758a9f67631bc61473c375df0dc017da6902a34533b2cf4fc4fd7d19b6ee","swift-coverage/package.ts":"1f0068be7461fa7c5a7a891faf318f305cbed2e94c19667ba76627f7e5be260b","swift-coverage/xcode.ts":"65a500b806ce1c3a496de27f2e0ad77287c0f6795c618342c08af647f92af1fa","swift-coverage/xcode-assets.ts":"d98d6294b359528f7733b26db6f80f554782354faa235605f9562be4ad98b8a3","swift-coverage/xcode-asset-symbols.ts":"1b2a67733bc9d139b351466270205452a6172140bc25080d72619e2952c44671","swift-coverage/xcode-bridging.ts":"33184be8c5daf6646aa5a1276a4e15531f1be27b7c26f56550e0fbb1fc678a11","swift-coverage/xcode-packages.ts":"5c83f56357d880243ab485b260d23abd0094583ffa2287dac6e9e7eb18c3673d","swift-coverage/xcode-strings.ts":"f2dd4c7cd8ef77035184b0132909c2fa09fd20ed06b7757c2f1f960bfdde031c","swift-coverage/reader.ts":"da559b67ecd1161dea70c980b5f98f2c55af3550f0714479100fa5e9e813625c","swift-coverage/provenance.ts":"f5039c16e63c6129e22b71203f58982c68cef6e282a4f236b93da28edd39c108","swift-package-manifest.ts":"a19fe4c5e2efe18bbc3ece544ff2c8be660170d63274cccb0ab58e53083050e4","swift-package.ts":"851417572ca9aff699ad368bdc3ff05309b0256e483d40812b9c0beb869d0a5b","swift-source-file.ts":"8becce5e73b76a61d9d202c1ecfb39b1238e9bbf0e77841f1c51c98fa9ac7bd3","swift-toolchain.ts":"a0ef7c20a2bc2b7dbd98b9006a8b000b9b4f9708f1bcf0adad8aaf79ef253022","home-paths.ts":"d1606390f0e8e50f0ff72544eadb3d49dfabf08e004c1218f2998c36fb8995dd","xcode-header-search.ts":"4a775ba92c7b23ce71dd6bb08c188c4bccd6e1ed500cc9fc7850030b945fc8d4","xcode-project.ts":"3e44efffa6b26d05b7390b6d0215ad36141fb9c7c46d2d51cd100ab85008fca4","xcode-target-members.ts":"2f25aaf5a3aa34395983c75935491c06bd68554c47ff1cb06b49c79499c03db0","xcode-json-project.ts":"41990ebbe4b488eef34e74c4608b4b48e5a5b299ba98ca7fbcfdfa0e77be63b6","openstep-plist.ts":"74e6ce1dac80c9c318e0e9f5e3e8cd19a898a8820c36fc160609695bcb59dcd3"}') : swiftCoverageSourceDigests(join(import.meta.dirname, ".."));
3889
3691
 
3890
3692
  // src/swift-coverage/xcode-asset-symbols.ts
3891
3693
  import { existsSync as existsSync2, readdirSync as readdirSync2, readFileSync as readFileSync4 } from "node:fs";
@@ -4075,10 +3877,10 @@ import {
4075
3877
  execFile as execFile4,
4076
3878
  execFileSync as execFileSync14
4077
3879
  } from "node:child_process";
4078
- import { createHash as createHash21 } from "node:crypto";
3880
+ import { createHash as createHash22 } from "node:crypto";
4079
3881
  import fs17 from "node:fs";
4080
3882
  import os8 from "node:os";
4081
- import path35 from "node:path";
3883
+ import path37 from "node:path";
4082
3884
  import { promisify as promisify4 } from "node:util";
4083
3885
 
4084
3886
  // src/git-repo-env.ts
@@ -4090,7 +3892,7 @@ var UNATTENDED_GIT_ENV = {
4090
3892
  // src/swift-distribution.ts
4091
3893
  import fs16 from "node:fs";
4092
3894
  import os7 from "node:os";
4093
- import path34 from "node:path";
3895
+ import path36 from "node:path";
4094
3896
 
4095
3897
  // ../contrast-runtime-delivery/src/index.ts
4096
3898
  import { spawn as spawn3 } from "node:child_process";
@@ -4135,28 +3937,28 @@ import {
4135
3937
  spawn as spawn5,
4136
3938
  execFileSync as execFileSync13
4137
3939
  } from "node:child_process";
4138
- import { createHash as createHash19, randomUUID as randomUUID5 } from "node:crypto";
3940
+ import { createHash as createHash20, randomUUID as randomUUID5 } from "node:crypto";
4139
3941
  import {
4140
- chmodSync as chmodSync2,
3942
+ chmodSync as chmodSync3,
4141
3943
  copyFileSync,
4142
3944
  cpSync,
4143
- existsSync as existsSync8,
3945
+ existsSync as existsSync9,
4144
3946
  lstatSync,
4145
- mkdirSync as mkdirSync7,
4146
- mkdtempSync as mkdtempSync3,
4147
- readFileSync as readFileSync20,
3947
+ mkdirSync as mkdirSync8,
3948
+ mkdtempSync as mkdtempSync4,
3949
+ readFileSync as readFileSync21,
4148
3950
  readdirSync as readdirSync10,
4149
3951
  readlinkSync,
4150
3952
  realpathSync as realpathSync6,
4151
- renameSync as renameSync2,
4152
- rmSync as rmSync7,
4153
- statSync as statSync3,
3953
+ renameSync as renameSync3,
3954
+ rmSync as rmSync8,
3955
+ statSync as statSync4,
4154
3956
  symlinkSync as symlinkSync2,
4155
3957
  utimesSync,
4156
- writeFileSync as writeFileSync9
3958
+ writeFileSync as writeFileSync10
4157
3959
  } from "node:fs";
4158
3960
  import os6 from "node:os";
4159
- import path31 from "node:path";
3961
+ import path33 from "node:path";
4160
3962
  import * as v5 from "valibot";
4161
3963
 
4162
3964
  // src/admitted-mac-build.ts
@@ -4405,6 +4207,31 @@ import { execFile as execFile2 } from "node:child_process";
4405
4207
  import { existsSync as existsSync4, readFileSync as readFileSync15, rmSync as rmSync4, writeFileSync as writeFileSync6 } from "node:fs";
4406
4208
  import { dirname, join as join6 } from "node:path";
4407
4209
  import { promisify as promisify2 } from "node:util";
4210
+
4211
+ // src/binaryen.lock.json
4212
+ var binaryen_lock_default = {
4213
+ version: "132",
4214
+ licenseSha256: "64c0d02491e16eced74826440ecd2bcf7722d37fa586faf457b2494293afbffe",
4215
+ platforms: {
4216
+ "linux-x64": {
4217
+ asset: "x86_64-linux",
4218
+ upstreamSha256: "195ddc94f9bc89f45abdabb0b9eea86023d727ba90eac8b35b80f2544fc30572",
4219
+ sha256: "0396b1a540e9f97f30eb6a378d829305c218c821a0bd88c74e83d3d6923dad0b"
4220
+ },
4221
+ "linux-arm64": {
4222
+ asset: "aarch64-linux",
4223
+ upstreamSha256: "c58562417836c5d0493d89bdefc434933bdc097db641b483df86bcfa557a107f",
4224
+ sha256: "25e3747f19614b0281a28b9a909ddc602b546ccdfacebc8cae2f7165665328fa"
4225
+ },
4226
+ "darwin-arm64": {
4227
+ asset: "arm64-macos",
4228
+ upstreamSha256: "98aad827847af7ef990ed7098d885725c8e5b5aae75073403635617ae4e259aa",
4229
+ sha256: "34281566fe32df71337aaf0b60aa265dc853587d92bda0b5b1fac8aed8c2f8ab"
4230
+ }
4231
+ }
4232
+ };
4233
+
4234
+ // src/wasm-optimize.ts
4408
4235
  var FEATURES = [
4409
4236
  "memory64",
4410
4237
  "threads",
@@ -4420,17 +4247,37 @@ var FEATURES = [
4420
4247
  ];
4421
4248
  var KEEP_WASM_NAMES = process.env.PEACH_SWIFT_NAMES === "1";
4422
4249
  var LOWERING = ["--memory64-lowering", "--table64-lowering"];
4423
- var BINARYEN_VERSION = "132";
4250
+ var BINARYEN_VERSION = binaryen_lock_default.version;
4424
4251
  var runBinaryen = promisify2(execFile2);
4425
4252
  var WASM_LOWER_IDENTITY = `binaryen ${BINARYEN_VERSION} narrow ${LOWERING.join(" ")} ${FEATURES.join(",")} unoptimized-names`;
4253
+ var BINARYEN_RELEASES = new Map(Object.entries(binaryen_lock_default.platforms));
4254
+
4255
+ // src/swift-header-compiler.ts
4256
+ import { createHash as createHash17 } from "node:crypto";
4257
+ import {
4258
+ chmodSync,
4259
+ existsSync as existsSync5,
4260
+ mkdirSync as mkdirSync5,
4261
+ mkdtempSync as mkdtempSync3,
4262
+ readFileSync as readFileSync17,
4263
+ renameSync as renameSync2,
4264
+ rmSync as rmSync5,
4265
+ statSync as statSync2,
4266
+ writeFileSync as writeFileSync8
4267
+ } from "node:fs";
4268
+ import { createServer } from "node:http";
4269
+ import path25 from "node:path";
4270
+
4271
+ // src/swift-header-dependencies.ts
4272
+ import path26 from "node:path";
4426
4273
 
4427
4274
  // src/swift-icu.ts
4428
4275
  import { execFile as execFile3 } from "node:child_process";
4429
- import { createHash as createHash17, randomUUID as randomUUID3 } from "node:crypto";
4430
- import { existsSync as existsSync5, readFileSync as readFileSync17 } from "node:fs";
4276
+ import { createHash as createHash18, randomUUID as randomUUID3 } from "node:crypto";
4277
+ import { existsSync as existsSync6, readFileSync as readFileSync18 } from "node:fs";
4431
4278
  import { mkdir, readFile, rename, writeFile } from "node:fs/promises";
4432
4279
  import os4 from "node:os";
4433
- import path25 from "node:path";
4280
+ import path27 from "node:path";
4434
4281
  import { promisify as promisify3 } from "node:util";
4435
4282
  import {
4436
4283
  brotliCompress,
@@ -4453,21 +4300,21 @@ var inflateGzip = promisify3(gunzip);
4453
4300
 
4454
4301
  // src/swift-link-roots.ts
4455
4302
  import fs13 from "node:fs";
4456
- import path26 from "node:path";
4303
+ import path28 from "node:path";
4457
4304
 
4458
4305
  // src/swift-project-user.ts
4459
4306
  import { execFileSync as execFileSync11 } from "node:child_process";
4460
4307
  import {
4461
- chmodSync,
4462
- existsSync as existsSync6,
4463
- mkdirSync as mkdirSync5,
4308
+ chmodSync as chmodSync2,
4309
+ existsSync as existsSync7,
4310
+ mkdirSync as mkdirSync6,
4464
4311
  readdirSync as readdirSync8,
4465
- readFileSync as readFileSync18,
4312
+ readFileSync as readFileSync19,
4466
4313
  realpathSync as realpathSync3,
4467
- rmSync as rmSync5,
4468
- statSync as statSync2
4314
+ rmSync as rmSync6,
4315
+ statSync as statSync3
4469
4316
  } from "node:fs";
4470
- import path27 from "node:path";
4317
+ import path29 from "node:path";
4471
4318
 
4472
4319
  // src/swift-reproducible.ts
4473
4320
  import { realpathSync as realpathSync4 } from "node:fs";
@@ -4477,27 +4324,27 @@ import os5 from "node:os";
4477
4324
  import {
4478
4325
  spawn as spawn4
4479
4326
  } from "node:child_process";
4480
- import { createHash as createHash18, randomUUID as randomUUID4 } from "node:crypto";
4327
+ import { createHash as createHash19, randomUUID as randomUUID4 } from "node:crypto";
4481
4328
  import {
4482
- existsSync as existsSync7,
4329
+ existsSync as existsSync8,
4483
4330
  linkSync,
4484
- mkdirSync as mkdirSync6,
4331
+ mkdirSync as mkdirSync7,
4485
4332
  readdirSync as readdirSync9,
4486
- readFileSync as readFileSync19,
4333
+ readFileSync as readFileSync20,
4487
4334
  realpathSync as realpathSync5,
4488
- rmSync as rmSync6,
4489
- writeFileSync as writeFileSync8
4335
+ rmSync as rmSync7,
4336
+ writeFileSync as writeFileSync9
4490
4337
  } from "node:fs";
4491
4338
  import { homedir as homedir2 } from "node:os";
4492
- import path28 from "node:path";
4339
+ import path30 from "node:path";
4493
4340
 
4494
4341
  // src/swift-uniform-type-constants.ts
4495
4342
  import { execFileSync as execFileSync12 } from "node:child_process";
4496
- import path29 from "node:path";
4343
+ import path31 from "node:path";
4497
4344
 
4498
4345
  // src/xcode-header-search.ts
4499
4346
  import fs14 from "node:fs";
4500
- import path30 from "node:path";
4347
+ import path32 from "node:path";
4501
4348
 
4502
4349
  // src/swift-compile.ts
4503
4350
  var OPTIONAL_FRAMEWORK_DEPENDENCIES = {
@@ -4575,7 +4422,7 @@ var FOUNDATION_IMPLICIT_MODULES = [
4575
4422
  var FOUNDATION_IMPLICIT_FLAGS = FOUNDATION_IMPLICIT_MODULES.map(
4576
4423
  (module) => `, "-Xfrontend", "-import-module", "-Xfrontend", "${module}"`
4577
4424
  ).join("");
4578
- var compilerSourceDigest = true ? "5bdda04d424b3a504c042269bf0bebf701fc0435974970611138a79db9b959cd" : swiftCompilerSourceDigest(import.meta.dirname);
4425
+ var compilerSourceDigest = true ? "63f37c4a87253305166cb52435207eb3f74394734f1a77e562d79ab7d5d7dfc1" : swiftCompilerSourceDigest(import.meta.dirname);
4579
4426
  var C_WORDS = new Set(
4580
4427
  "auto bool break case char const continue default do double else enum extern false float for goto if inline int long register restrict return short signed sizeof static struct switch true typedef union unsigned void volatile while YES NO NULL nil Nil id self super instancetype".split(
4581
4428
  " "
@@ -4620,7 +4467,7 @@ var SHARED_ARTIFACT_BUDGET_BYTES = 4 * 1024 ** 3;
4620
4467
 
4621
4468
  // src/answeredNativePackages.ts
4622
4469
  import { AsyncLocalStorage } from "node:async_hooks";
4623
- import { readFileSync as readFileSync21 } from "node:fs";
4470
+ import { readFileSync as readFileSync22 } from "node:fs";
4624
4471
  import { join as join7 } from "node:path";
4625
4472
 
4626
4473
  // src/launchMetadataContract.ts
@@ -4647,7 +4494,7 @@ var LAUNCH_METADATA_KEYS_BEFORE_RUNTIME_STATED_THEM = LAUNCH_METADATA_KEYS.filte
4647
4494
 
4648
4495
  // src/runtime-assets.ts
4649
4496
  import fs15 from "fs";
4650
- import path32 from "path";
4497
+ import path34 from "path";
4651
4498
  import { fileURLToPath as fileURLToPath2 } from "url";
4652
4499
 
4653
4500
  // src/answeredNativePackages.ts
@@ -4660,17 +4507,17 @@ var unansweredStore = new AsyncLocalStorage();
4660
4507
  var answeredStore = new AsyncLocalStorage();
4661
4508
 
4662
4509
  // src/nitroAdapterContract.ts
4663
- import { createHash as createHash20 } from "node:crypto";
4664
- import { readdirSync as readdirSync11, readFileSync as readFileSync22 } from "node:fs";
4665
- import path33 from "node:path";
4510
+ import { createHash as createHash21 } from "node:crypto";
4511
+ import { readdirSync as readdirSync11, readFileSync as readFileSync23 } from "node:fs";
4512
+ import path35 from "node:path";
4666
4513
 
4667
4514
  // src/swift-package-manifest.ts
4668
- var cacheDir3 = path35.join(cacheDir(), "swift-manifests");
4515
+ var cacheDir3 = path37.join(cacheDir(), "swift-manifests");
4669
4516
  var execFileAsync = promisify4(execFile4);
4670
4517
 
4671
4518
  // src/xcode-json-project.ts
4672
4519
  var import_json5 = __toESM(require_lib(), 1);
4673
- import path36 from "node:path";
4520
+ import path38 from "node:path";
4674
4521
  var isObject = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
4675
4522
  var text = (value) => typeof value === "string" ? value : void 0;
4676
4523
  var items = (value) => Array.isArray(value) ? value : [];
@@ -4727,7 +4574,7 @@ var PHASE_ISA = {
4727
4574
  function readXcodeJsonProject(xcodeproj, source) {
4728
4575
  const json = import_json5.default.parse(source);
4729
4576
  if (!isJsonObject(json)) throw new Error(`${xcodeproj}/project.xcproj is not an object`);
4730
- const projectDir = path36.dirname(xcodeproj);
4577
+ const projectDir = path38.dirname(xcodeproj);
4731
4578
  const objects = {};
4732
4579
  let next = 0;
4733
4580
  const add = (entry, id) => {
@@ -4740,7 +4587,7 @@ function readXcodeJsonProject(xcodeproj, source) {
4740
4587
  const base = /^<([A-Z]+)>\/(.*)$/.exec(raw);
4741
4588
  if (base) {
4742
4589
  if (base[1] === "PROJECT")
4743
- return { sourceTree: "<absolute>", path: path36.join(projectDir, base[2]) };
4590
+ return { sourceTree: "<absolute>", path: path38.join(projectDir, base[2]) };
4744
4591
  if (base[1] === "PRODUCTS")
4745
4592
  return { sourceTree: "BUILT_PRODUCTS_DIR", path: base[2] };
4746
4593
  return null;
@@ -4748,7 +4595,7 @@ function readXcodeJsonProject(xcodeproj, source) {
4748
4595
  const unescaped = raw.replaceAll("\\<", "<");
4749
4596
  if (unescaped.startsWith("/")) return { sourceTree: "<absolute>", path: unescaped };
4750
4597
  if (unescaped.startsWith("~")) return null;
4751
- return groupDir === null ? null : { sourceTree: "<absolute>", path: path36.join(groupDir, unescaped) };
4598
+ return groupDir === null ? null : { sourceTree: "<absolute>", path: path38.join(groupDir, unescaped) };
4752
4599
  };
4753
4600
  const memberships = [];
4754
4601
  const folders = [];
@@ -4759,7 +4606,7 @@ function readXcodeJsonProject(xcodeproj, source) {
4759
4606
  const kind = text(entry.kind) ?? "file-reference";
4760
4607
  const raw = text(entry.path) ?? "";
4761
4608
  const located = raw === "" ? null : locate(raw, parent.dir);
4762
- const name = text(entry.name) ?? path36.basename(raw);
4609
+ const name = text(entry.name) ?? path38.basename(raw);
4763
4610
  const node = { id: "", name, dir: null, parent, children: [] };
4764
4611
  if (kind === "group" || kind === "variant-group" || kind === "version-group") {
4765
4612
  node.dir = raw === "" ? parent.dir : located?.sourceTree === "<absolute>" ? located.path : null;
@@ -4880,7 +4727,7 @@ function readXcodeJsonProject(xcodeproj, source) {
4880
4727
  if (!isObject(entry)) continue;
4881
4728
  const repository = text(entry.repository);
4882
4729
  const local = text(entry.path);
4883
- const name = local !== void 0 ? path36.basename(path36.resolve(path36.dirname(xcodeproj), local)) : path36.basename(repository ?? "").replace(/\.git$/, "");
4730
+ const name = local !== void 0 ? path38.basename(path38.resolve(path38.dirname(xcodeproj), local)) : path38.basename(repository ?? "").replace(/\.git$/, "");
4884
4731
  const id = text(entry.kind) === "local" && local !== void 0 ? add({ isa: "XCLocalSwiftPackageReference", relativePath: local }) : add({
4885
4732
  isa: "XCRemoteSwiftPackageReference",
4886
4733
  repositoryURL: repository ?? "",
@@ -5105,7 +4952,7 @@ function walkFiles(dir) {
5105
4952
  const out = [];
5106
4953
  for (const entry of fs18.readdirSync(dir, { withFileTypes: true }).sort((left, right) => left.name.localeCompare(right.name))) {
5107
4954
  if (entry.name.startsWith(".")) continue;
5108
- const full = path37.join(dir, entry.name);
4955
+ const full = path39.join(dir, entry.name);
5109
4956
  if (entry.isDirectory()) out.push(...walkFiles(full));
5110
4957
  else if (entry.isFile()) out.push(full);
5111
4958
  }
@@ -5122,7 +4969,7 @@ function readXcconfig(file, read) {
5122
4969
  if (include) {
5123
4970
  Object.assign(
5124
4971
  settings,
5125
- readXcconfig(path37.resolve(path37.dirname(file), include[1]), read)
4972
+ readXcconfig(path39.resolve(path39.dirname(file), include[1]), read)
5126
4973
  );
5127
4974
  continue;
5128
4975
  }
@@ -5167,8 +5014,8 @@ function applyOperator(value, operator) {
5167
5014
  return value.replace(/[^A-Za-z0-9_]/g, "_").replace(/^[0-9]/, "_");
5168
5015
  case "standardizepath":
5169
5016
  if (value === ".") return value;
5170
- if (path37.posix.isAbsolute(value))
5171
- return path37.posix.normalize(value).replace(/(?<=.)\/$/, "");
5017
+ if (path39.posix.isAbsolute(value))
5018
+ return path39.posix.normalize(value).replace(/(?<=.)\/$/, "");
5172
5019
  return value.split("/").filter((component) => component !== "" && component !== ".").join("/");
5173
5020
  }
5174
5021
  throw new Error(`unsupported build setting operator :${operator}`);
@@ -5177,18 +5024,18 @@ function decodeXml(text2) {
5177
5024
  return text2.replaceAll("&quot;", '"').replaceAll("&apos;", "'").replaceAll("&lt;", "<").replaceAll("&gt;", ">").replaceAll("&amp;", "&");
5178
5025
  }
5179
5026
  function workspaceReferences(workspace) {
5180
- const data = path37.join(workspace, "contents.xcworkspacedata");
5027
+ const data = path39.join(workspace, "contents.xcworkspacedata");
5181
5028
  if (!fs18.existsSync(data))
5182
5029
  throw new Error(`${workspace} has no contents.xcworkspacedata`);
5183
- const container = path37.dirname(workspace);
5030
+ const container = path39.dirname(workspace);
5184
5031
  const locate = (location, base) => {
5185
5032
  const colon = location.indexOf(":");
5186
5033
  const kind = location.slice(0, colon);
5187
5034
  const rest = location.slice(colon + 1);
5188
- if (kind === "group") return path37.resolve(base, rest);
5189
- if (kind === "container" || kind === "self") return path37.resolve(container, rest);
5190
- if (kind === "absolute") return path37.resolve(rest);
5191
- throw new Error(`${path37.basename(workspace)} has an unsupported location ${location}`);
5035
+ if (kind === "group") return path39.resolve(base, rest);
5036
+ if (kind === "container" || kind === "self") return path39.resolve(container, rest);
5037
+ if (kind === "absolute") return path39.resolve(rest);
5038
+ throw new Error(`${path39.basename(workspace)} has an unsupported location ${location}`);
5192
5039
  };
5193
5040
  const groups = [container];
5194
5041
  const references = [];
@@ -5243,7 +5090,7 @@ function remotePackageRequirements(projects) {
5243
5090
  var loaded = /* @__PURE__ */ new Map();
5244
5091
  function xcodeProjectFile(xcodeproj) {
5245
5092
  for (const name of ["project.pbxproj", "project.xcproj"]) {
5246
- const file = path37.join(xcodeproj, name);
5093
+ const file = path39.join(xcodeproj, name);
5247
5094
  if (fs18.existsSync(file)) return file;
5248
5095
  }
5249
5096
  return null;
@@ -5253,7 +5100,7 @@ function loadProject(xcodeproj) {
5253
5100
  if (!projectFile)
5254
5101
  throw new Error(`${xcodeproj} has no project.pbxproj or project.xcproj`);
5255
5102
  const source = fs18.readFileSync(projectFile, "utf8");
5256
- const digest = createHash22("sha256").update(source).digest("hex");
5103
+ const digest = createHash23("sha256").update(source).digest("hex");
5257
5104
  const cached = loaded.get(projectFile);
5258
5105
  if (cached?.digest === digest) return cached.project;
5259
5106
  const root = projectFile.endsWith(".xcproj") ? readXcodeJsonProject(xcodeproj, source) : parseOpenStepPlist(source);
@@ -5270,9 +5117,9 @@ function loadProject(xcodeproj) {
5270
5117
  throw new Error(`${projectFile} has no PBXProject root`);
5271
5118
  }
5272
5119
  const projectDir = fs18.realpathSync.native(
5273
- path37.resolve(path37.dirname(xcodeproj), str(project.projectDirPath) ?? "")
5120
+ path39.resolve(path39.dirname(xcodeproj), str(project.projectDirPath) ?? "")
5274
5121
  );
5275
- const resolvePath = xcodePathResolver(objects, projectDir, path37.join);
5122
+ const resolvePath = xcodePathResolver(objects, projectDir, path39.join);
5276
5123
  const result = {
5277
5124
  xcodeproj,
5278
5125
  projectFile,
@@ -5320,7 +5167,7 @@ function targetSettings(ref, configuration, builtins, options = {}, overrides =
5320
5167
  const relative2 = str(config.baseConfigurationReferenceRelativePath);
5321
5168
  const own = isDict(config.buildSettings) ? config.buildSettings : {};
5322
5169
  const directory = anchor ? project.resolvePath(anchor) : null;
5323
- const baseFile = base ? project.resolvePath(base) : directory && relative2 ? path37.resolve(directory, relative2) : null;
5170
+ const baseFile = base ? project.resolvePath(base) : directory && relative2 ? path39.resolve(directory, relative2) : null;
5324
5171
  if (options.requireSources !== false && (base || anchor || relative2) && (!baseFile || !fs18.existsSync(baseFile)))
5325
5172
  throw new Error(
5326
5173
  `Unable to open base configuration reference file '${baseFile ?? base ?? relative2 ?? anchor}'`
@@ -5412,10 +5259,10 @@ function scriptCommand(shell, script) {
5412
5259
  return [executable, ...args, "-c", script];
5413
5260
  }
5414
5261
  function expandSearchPath(directory, rules2) {
5415
- if (path37.basename(directory) !== "**") return [directory];
5262
+ if (path39.basename(directory) !== "**") return [directory];
5416
5263
  const expanded = [];
5417
5264
  const seen = /* @__PURE__ */ new Set();
5418
- const queue = [path37.dirname(directory)];
5265
+ const queue = [path39.dirname(directory)];
5419
5266
  for (let at = 0; at < queue.length; at++) {
5420
5267
  const current = queue[at];
5421
5268
  let real;
@@ -5431,7 +5278,7 @@ function expandSearchPath(directory, rules2) {
5431
5278
  if (entry.isSymbolicLink() ? !rules2.followLinks : !entry.isDirectory()) continue;
5432
5279
  if (rules2.excluded.some((pattern) => pattern.test(entry.name)) && !rules2.included.some((pattern) => pattern.test(entry.name)))
5433
5280
  continue;
5434
- queue.push(path37.join(current, entry.name));
5281
+ queue.push(path39.join(current, entry.name));
5435
5282
  }
5436
5283
  }
5437
5284
  return expanded;
@@ -5522,7 +5369,7 @@ function shellAssetCatalogs(script, settings, projectDir) {
5522
5369
  for (const token of tokens) {
5523
5370
  if (token.startsWith("-")) break;
5524
5371
  const file = resolve(token);
5525
- if (file?.endsWith(".xcassets")) catalogs.push(path37.resolve(projectDir, file));
5372
+ if (file?.endsWith(".xcassets")) catalogs.push(path39.resolve(projectDir, file));
5526
5373
  }
5527
5374
  }
5528
5375
  return catalogs;
@@ -5567,8 +5414,8 @@ function shellCopies(script, settings, projectDir) {
5567
5414
  if (operands.length !== 2 || operands.some((operand) => operand.startsWith("-")))
5568
5415
  return [];
5569
5416
  copies.push({
5570
- from: path37.resolve(projectDir, operands[0]),
5571
- to: path37.resolve(projectDir, operands[1])
5417
+ from: path39.resolve(projectDir, operands[0]),
5418
+ to: path39.resolve(projectDir, operands[1])
5572
5419
  });
5573
5420
  }
5574
5421
  return copies;
@@ -5588,7 +5435,7 @@ function targetMembers(ref, settings, options, settingKeys, projectInputs) {
5588
5435
  const copiedFiles = [];
5589
5436
  let generatedInfoPlist = false;
5590
5437
  const declaredInfoPlist = settings("INFOPLIST_FILE");
5591
- const infoPlistOutput = declaredInfoPlist ? path37.resolve(project.projectDir, declaredInfoPlist) : null;
5438
+ const infoPlistOutput = declaredInfoPlist ? path39.resolve(project.projectDir, declaredInfoPlist) : null;
5592
5439
  const isPreparedOutput = (file) => file === infoPlistOutput || options.requireSources !== false && file.endsWith(".swift");
5593
5440
  for (const phaseId of list(target.buildPhases)) {
5594
5441
  const phase = project.object(phaseId);
@@ -5603,7 +5450,7 @@ function targetMembers(ref, settings, options, settingKeys, projectInputs) {
5603
5450
  copiedFiles.push(
5604
5451
  ...shellCopies(str(phase.shellScript) ?? "", settings, project.projectDir)
5605
5452
  );
5606
- const absolute = (raw) => path37.resolve(project.projectDir, expand(raw, settings));
5453
+ const absolute = (raw) => path39.resolve(project.projectDir, expand(raw, settings));
5607
5454
  const inputs = list(phase.inputPaths).map(absolute);
5608
5455
  const outputs = list(phase.outputPaths).map(absolute);
5609
5456
  const fileLists = /* @__PURE__ */ new Map();
@@ -5646,7 +5493,7 @@ function targetMembers(ref, settings, options, settingKeys, projectInputs) {
5646
5493
  false
5647
5494
  ))
5648
5495
  continue;
5649
- const phaseDir = path37.join(settings("TARGET_TEMP_DIR"), `Script-${phaseId}`);
5496
+ const phaseDir = path39.join(settings("TARGET_TEMP_DIR"), `Script-${phaseId}`);
5650
5497
  for (const lists of fileLists.values())
5651
5498
  for (const { file } of lists)
5652
5499
  if (!fs18.existsSync(file))
@@ -5668,13 +5515,13 @@ function targetMembers(ref, settings, options, settingKeys, projectInputs) {
5668
5515
  const lists = fileLists.get(kind);
5669
5516
  env[`SCRIPT_${kind}_FILE_LIST_COUNT`] = String(lists.length);
5670
5517
  lists.forEach((_item, index) => {
5671
- env[`SCRIPT_${kind}_FILE_LIST_${index}`] = path37.join(
5518
+ env[`SCRIPT_${kind}_FILE_LIST_${index}`] = path39.join(
5672
5519
  phaseDir,
5673
5520
  `${kind}-${index}.xcfilelist`
5674
5521
  );
5675
5522
  });
5676
5523
  }
5677
- const signature = createHash22("sha256").update(
5524
+ const signature = createHash23("sha256").update(
5678
5525
  JSON.stringify([phase, [...settingKeys].map((key2) => [key2, settings(key2)])])
5679
5526
  );
5680
5527
  for (const file of inputFiles) {
@@ -5701,7 +5548,7 @@ function targetMembers(ref, settings, options, settingKeys, projectInputs) {
5701
5548
  fs18.mkdirSync(settings("BUILT_PRODUCTS_DIR"), { recursive: true });
5702
5549
  fs18.mkdirSync(settings("DERIVED_FILE_DIR"), { recursive: true });
5703
5550
  for (const output2 of allOutputs)
5704
- fs18.mkdirSync(path37.dirname(output2), { recursive: true });
5551
+ fs18.mkdirSync(path39.dirname(output2), { recursive: true });
5705
5552
  for (const [kind, lists] of fileLists)
5706
5553
  lists.forEach((item, index) => {
5707
5554
  fs18.writeFileSync(
@@ -5712,7 +5559,7 @@ function targetMembers(ref, settings, options, settingKeys, projectInputs) {
5712
5559
  });
5713
5560
  const rawScript = str(phase.shellScript) ?? "";
5714
5561
  if (rawScript.includes("generate-modules-provider")) {
5715
- const preloadPath = path37.join(phaseDir, "expo-scan-timeout.cjs");
5562
+ const preloadPath = path39.join(phaseDir, "expo-scan-timeout.cjs");
5716
5563
  fs18.mkdirSync(phaseDir, { recursive: true });
5717
5564
  fs18.writeFileSync(
5718
5565
  preloadPath,
@@ -5771,9 +5618,9 @@ ${output2}`
5771
5618
  }
5772
5619
  project.visitMembers(
5773
5620
  targetId,
5774
- xcodePathResolver(project.objects, project.projectDir, path37.join, settings),
5621
+ xcodePathResolver(project.objects, project.projectDir, path39.join, settings),
5775
5622
  (file) => isDirectory(file) ? walkFiles(file) : fs18.existsSync(file) ? [file] : [],
5776
- path37.join,
5623
+ path39.join,
5777
5624
  (file, kind, bundleName) => {
5778
5625
  if (kind === "header") {
5779
5626
  headers.add(file);
@@ -5786,7 +5633,7 @@ ${output2}`
5786
5633
  }
5787
5634
  if (!fs18.existsSync(file)) {
5788
5635
  if (options.requireSources === false) return;
5789
- const script = scriptForOutput.get(path37.normalize(file));
5636
+ const script = scriptForOutput.get(path39.normalize(file));
5790
5637
  throw new Error(
5791
5638
  script ? `${targetName}: missing generated source ${file} (Run Script "${script}" declares it in outputPaths; run the script or check in its output)` : `${targetName}: missing source ${file}`
5792
5639
  );
@@ -5797,7 +5644,7 @@ ${output2}`
5797
5644
  );
5798
5645
  if (options.prepareGeneratedSources && options.requireSources !== false) {
5799
5646
  const interfaceFiles = [...resources].filter(
5800
- (file) => /\.(storyboard|xib)$/.test(file) && !file.split(path37.sep).some((part) => part.endsWith(".bundle"))
5647
+ (file) => /\.(storyboard|xib)$/.test(file) && !file.split(path39.sep).some((part) => part.endsWith(".bundle"))
5801
5648
  );
5802
5649
  if (process.platform !== "darwin") {
5803
5650
  let launchName = settings("INFOPLIST_KEY_UILaunchStoryboardName");
@@ -5807,7 +5654,7 @@ ${output2}`
5807
5654
  if (typeof declared === "string") launchName = expand(declared, settings);
5808
5655
  }
5809
5656
  const runtimeInterfaceFiles = interfaceFiles.filter(
5810
- (file) => path37.basename(file, path37.extname(file)) !== launchName
5657
+ (file) => path39.basename(file, path39.extname(file)) !== launchName
5811
5658
  );
5812
5659
  if (runtimeInterfaceFiles.length > 0)
5813
5660
  throw new Error(
@@ -5818,13 +5665,13 @@ ${output2}`
5818
5665
  }
5819
5666
  const interfaceOutputs = /* @__PURE__ */ new Set();
5820
5667
  for (const file of interfaceFiles) {
5821
- const localization = file.split(path37.sep).findLast((part) => part.endsWith(".lproj")) ?? "";
5668
+ const localization = file.split(path39.sep).findLast((part) => part.endsWith(".lproj")) ?? "";
5822
5669
  const extension = file.endsWith(".storyboard") ? ".storyboardc" : ".nib";
5823
- const output2 = path37.join(
5670
+ const output2 = path39.join(
5824
5671
  settings("DERIVED_FILE_DIR"),
5825
5672
  "InterfaceBuilder",
5826
5673
  localization,
5827
- path37.basename(file, path37.extname(file)) + extension
5674
+ path39.basename(file, path39.extname(file)) + extension
5828
5675
  );
5829
5676
  if (interfaceOutputs.has(output2))
5830
5677
  throw new Error(`${targetName}: duplicate Interface Builder output ${output2}`);
@@ -5846,12 +5693,12 @@ ${output2}`
5846
5693
  const inputs = JSON.stringify({
5847
5694
  args,
5848
5695
  developer: settings("DEVELOPER_DIR"),
5849
- source: createHash22("sha256").update(fs18.readFileSync(file)).digest("hex")
5696
+ source: createHash23("sha256").update(fs18.readFileSync(file)).digest("hex")
5850
5697
  });
5851
5698
  if (!fs18.existsSync(output2) || !fs18.existsSync(stamp) || fs18.readFileSync(stamp, "utf8") !== inputs) {
5852
5699
  fs18.rmSync(output2, { recursive: true, force: true });
5853
5700
  fs18.rmSync(stamp, { force: true });
5854
- fs18.mkdirSync(path37.dirname(output2), { recursive: true });
5701
+ fs18.mkdirSync(path39.dirname(output2), { recursive: true });
5855
5702
  execFileSync15("xcrun", args, {
5856
5703
  cwd: project.projectDir,
5857
5704
  stdio: ["ignore", "pipe", "pipe"],
@@ -5874,10 +5721,10 @@ ${output2}`
5874
5721
  for (const definition of definitions) {
5875
5722
  const configuredLanguage = settings("INTENTS_CODEGEN_LANGUAGE");
5876
5723
  const language = !configuredLanguage || configuredLanguage === "Automatic" ? sources.size > 0 ? "Swift" : "Objective-C" : configuredLanguage;
5877
- const output2 = path37.join(
5724
+ const output2 = path39.join(
5878
5725
  settings("DERIVED_FILE_DIR"),
5879
5726
  "IntentDefinitionGenerated",
5880
- path37.basename(definition, ".intentdefinition")
5727
+ path39.basename(definition, ".intentdefinition")
5881
5728
  );
5882
5729
  fs18.rmSync(output2, { recursive: true, force: true });
5883
5730
  fs18.mkdirSync(output2, { recursive: true });
@@ -5904,12 +5751,12 @@ ${output2}`
5904
5751
  stdio: ["ignore", "pipe", "pipe"],
5905
5752
  timeout: runScriptTimeoutMs
5906
5753
  });
5907
- const compiled = path37.join(
5754
+ const compiled = path39.join(
5908
5755
  settings("DERIVED_FILE_DIR"),
5909
5756
  "IntentDefinitionCompiled",
5910
- definition.split(path37.sep).findLast((part) => part.endsWith(".lproj")) ?? ""
5757
+ definition.split(path39.sep).findLast((part) => part.endsWith(".lproj")) ?? ""
5911
5758
  );
5912
- const compiledDefinition = path37.join(compiled, path37.basename(definition));
5759
+ const compiledDefinition = path39.join(compiled, path39.basename(definition));
5913
5760
  fs18.rmSync(compiledDefinition, { force: true });
5914
5761
  fs18.mkdirSync(compiled, { recursive: true });
5915
5762
  execFileSync15(
@@ -5952,22 +5799,22 @@ ${output2}`
5952
5799
  function commonAncestor(dirs) {
5953
5800
  let common = dirs[0];
5954
5801
  for (const dir of dirs) {
5955
- while (common !== path37.dirname(common) && path37.relative(common, dir).startsWith(".."))
5956
- common = path37.dirname(common);
5802
+ while (common !== path39.dirname(common) && path39.relative(common, dir).startsWith(".."))
5803
+ common = path39.dirname(common);
5957
5804
  }
5958
5805
  return common;
5959
5806
  }
5960
- var isPodsProject = (xcodeproj) => path37.basename(xcodeproj) === "Pods.xcodeproj" && path37.basename(path37.dirname(xcodeproj)) === "Pods";
5807
+ var isPodsProject = (xcodeproj) => path39.basename(xcodeproj) === "Pods.xcodeproj" && path39.basename(path39.dirname(xcodeproj)) === "Pods";
5961
5808
  function installedPodsSandbox(pods) {
5962
- const podfileLock = path37.join(path37.dirname(pods), "Podfile.lock");
5963
- const manifestLock = path37.join(pods, "Manifest.lock");
5809
+ const podfileLock = path39.join(path39.dirname(pods), "Podfile.lock");
5810
+ const manifestLock = path39.join(pods, "Manifest.lock");
5964
5811
  if (!fs18.existsSync(podfileLock))
5965
5812
  throw new Error(
5966
- `${pods} has no ${podfileLock}: run \`pod install\` in ${path37.dirname(pods)}`
5813
+ `${pods} has no ${podfileLock}: run \`pod install\` in ${path39.dirname(pods)}`
5967
5814
  );
5968
5815
  if (!fs18.existsSync(manifestLock) || !fs18.readFileSync(manifestLock).equals(fs18.readFileSync(podfileLock)))
5969
5816
  throw new Error(
5970
- `The sandbox is not in sync with the Podfile.lock: ${manifestLock} differs from ${podfileLock}. Run \`pod install\` in ${path37.dirname(pods)}`
5817
+ `The sandbox is not in sync with the Podfile.lock: ${manifestLock} differs from ${podfileLock}. Run \`pod install\` in ${path39.dirname(pods)}`
5971
5818
  );
5972
5819
  const specChecksums = {};
5973
5820
  const lines = fs18.readFileSync(manifestLock, "utf8").split("\n");
@@ -5977,12 +5824,12 @@ function installedPodsSandbox(pods) {
5977
5824
  if (!entry) break;
5978
5825
  specChecksums[entry[1]] = entry[2];
5979
5826
  }
5980
- const specs = path37.join(pods, "Local Podspecs");
5827
+ const specs = path39.join(pods, "Local Podspecs");
5981
5828
  return {
5982
5829
  podfileLock,
5983
5830
  manifestLock,
5984
5831
  specChecksums,
5985
- localPodspecs: isDirectory(specs) ? fs18.readdirSync(specs).filter((name) => name.endsWith(".podspec.json")).sort().map((name) => path37.join(specs, name)) : []
5832
+ localPodspecs: isDirectory(specs) ? fs18.readdirSync(specs).filter((name) => name.endsWith(".podspec.json")).sort().map((name) => path39.join(specs, name)) : []
5986
5833
  };
5987
5834
  }
5988
5835
  function workspaceProjects(xcodeprojOrWorkspace, installedPods = false) {
@@ -5994,14 +5841,14 @@ function workspaceProjects(xcodeprojOrWorkspace, installedPods = false) {
5994
5841
  if (!xcodeProjectFile(xcodeproj)) {
5995
5842
  if (installedPods && isPodsProject(xcodeproj))
5996
5843
  throw new Error(
5997
- `${path37.basename(xcodeprojOrWorkspace)} builds ${xcodeproj}, which is not installed: run \`pod install\` in ${path37.dirname(path37.dirname(xcodeproj))}`
5844
+ `${path39.basename(xcodeprojOrWorkspace)} builds ${xcodeproj}, which is not installed: run \`pod install\` in ${path39.dirname(path39.dirname(xcodeproj))}`
5998
5845
  );
5999
5846
  return;
6000
5847
  }
6001
5848
  const key = fs18.realpathSync.native(xcodeproj);
6002
- if (projectAt.has(key) || !installedPods && key.split(path37.sep).includes("Pods"))
5849
+ if (projectAt.has(key) || !installedPods && key.split(path39.sep).includes("Pods"))
6003
5850
  return;
6004
- if (isPodsProject(key)) cocoapods = installedPodsSandbox(path37.dirname(key));
5851
+ if (isPodsProject(key)) cocoapods = installedPodsSandbox(path39.dirname(key));
6005
5852
  const project = loadProject(key);
6006
5853
  projectAt.set(key, project);
6007
5854
  projects.push(project);
@@ -6017,12 +5864,12 @@ function workspaceProjects(xcodeprojOrWorkspace, installedPods = false) {
6017
5864
  for (const reference of listed)
6018
5865
  if (reference.endsWith(".xcodeproj")) addProject(reference);
6019
5866
  if (projects.length === 0) {
6020
- throw new Error(`${path37.basename(xcodeprojOrWorkspace)} lists no Xcode project`);
5867
+ throw new Error(`${path39.basename(xcodeprojOrWorkspace)} lists no Xcode project`);
6021
5868
  }
6022
- const podfile = path37.join(path37.dirname(xcodeprojOrWorkspace), "Podfile");
5869
+ const podfile = path39.join(path39.dirname(xcodeprojOrWorkspace), "Podfile");
6023
5870
  if (installedPods && !cocoapods && fs18.existsSync(podfile))
6024
5871
  throw new Error(
6025
- `${podfile} is not installed into ${path37.basename(xcodeprojOrWorkspace)}: run \`pod install\` in ${path37.dirname(podfile)} and open the workspace it writes`
5872
+ `${podfile} is not installed into ${path39.basename(xcodeprojOrWorkspace)}: run \`pod install\` in ${path39.dirname(podfile)} and open the workspace it writes`
6026
5873
  );
6027
5874
  return { listed, projects, projectAt, cocoapods };
6028
5875
  }
@@ -6075,19 +5922,19 @@ function readXcodeScheme(xcodeprojOrWorkspace, scheme) {
6075
5922
  ];
6076
5923
  const found = containers.flatMap(
6077
5924
  (dir) => [
6078
- path37.join(dir, "xcshareddata"),
6079
- ...isDirectory(path37.join(dir, "xcuserdata")) ? fs18.readdirSync(path37.join(dir, "xcuserdata")).sort().map((user) => path37.join(dir, "xcuserdata", user)) : []
5925
+ path39.join(dir, "xcshareddata"),
5926
+ ...isDirectory(path39.join(dir, "xcuserdata")) ? fs18.readdirSync(path39.join(dir, "xcuserdata")).sort().map((user) => path39.join(dir, "xcuserdata", user)) : []
6080
5927
  ].map((data) => ({
6081
5928
  dir,
6082
- file: path37.join(data, "xcschemes", `${scheme}.xcscheme`)
5929
+ file: path39.join(data, "xcschemes", `${scheme}.xcscheme`)
6083
5930
  }))
6084
5931
  ).find((candidate) => fs18.existsSync(candidate.file));
6085
5932
  if (!found) {
6086
5933
  const known = containers.flatMap(
6087
- (dir) => fs18.existsSync(path37.join(dir, "xcshareddata", "xcschemes")) ? fs18.readdirSync(path37.join(dir, "xcshareddata", "xcschemes")).filter((name2) => name2.endsWith(".xcscheme")).map((name2) => name2.slice(0, -".xcscheme".length)).sort() : []
5934
+ (dir) => fs18.existsSync(path39.join(dir, "xcshareddata", "xcschemes")) ? fs18.readdirSync(path39.join(dir, "xcshareddata", "xcschemes")).filter((name2) => name2.endsWith(".xcscheme")).map((name2) => name2.slice(0, -".xcscheme".length)).sort() : []
6088
5935
  );
6089
5936
  throw new Error(
6090
- `${path37.basename(container)} has no scheme ${scheme}; it shares ${known.join(", ") || "none"}`
5937
+ `${path39.basename(container)} has no scheme ${scheme}; it shares ${known.join(", ") || "none"}`
6091
5938
  );
6092
5939
  }
6093
5940
  const launch = /<LaunchAction\b([^>]*)>([\s\S]*?)<\/LaunchAction>/.exec(
@@ -6104,8 +5951,8 @@ function readXcodeScheme(xcodeprojOrWorkspace, scheme) {
6104
5951
  if (!configuration || !blueprint || !referenced?.startsWith("container:")) {
6105
5952
  throw new Error(`scheme ${scheme} runs no application target`);
6106
5953
  }
6107
- const projectPath = path37.resolve(
6108
- path37.dirname(found.dir),
5954
+ const projectPath = path39.resolve(
5955
+ path39.dirname(found.dir),
6109
5956
  referenced.slice("container:".length)
6110
5957
  );
6111
5958
  const project = projects.find(
@@ -6129,26 +5976,26 @@ function readXcodeScheme(xcodeprojOrWorkspace, scheme) {
6129
5976
  var NativeAppTargetSelectionError = class extends Error {
6130
5977
  };
6131
5978
  function selectIosAppTarget(projectRoot, iosTarget) {
6132
- const nested = path37.join(projectRoot, "ios");
5979
+ const nested = path39.join(projectRoot, "ios");
6133
5980
  const iosRoot = fs18.existsSync(nested) ? nested : projectRoot;
6134
5981
  const entries = fs18.readdirSync(iosRoot, { withFileTypes: true });
6135
5982
  const projects = (entries.some((entry) => entry.isDirectory() && entry.name.endsWith(".xcodeproj")) ? entries.filter((entry) => entry.isDirectory() && entry.name.endsWith(".xcodeproj")).map((entry) => ({
6136
- xcodeproj: path37.join(iosRoot, entry.name),
5983
+ xcodeproj: path39.join(iosRoot, entry.name),
6137
5984
  workspace: null
6138
5985
  })) : entries.filter((entry) => entry.isDirectory() && entry.name.endsWith(".xcworkspace")).flatMap((entry) => {
6139
- const workspace = path37.join(iosRoot, entry.name);
5986
+ const workspace = path39.join(iosRoot, entry.name);
6140
5987
  return workspaceReferences(workspace).map((xcodeproj2) => ({
6141
5988
  xcodeproj: xcodeproj2,
6142
5989
  workspace
6143
5990
  }));
6144
5991
  }).filter(
6145
- ({ xcodeproj: xcodeproj2 }) => xcodeproj2.endsWith(".xcodeproj") && !xcodeproj2.split(path37.sep).includes("Pods") && fs18.existsSync(xcodeproj2)
5992
+ ({ xcodeproj: xcodeproj2 }) => xcodeproj2.endsWith(".xcodeproj") && !xcodeproj2.split(path39.sep).includes("Pods") && fs18.existsSync(xcodeproj2)
6146
5993
  ).filter(
6147
5994
  ({ xcodeproj: xcodeproj2 }) => listXcodeAppTargets(xcodeproj2, { requireSources: false }).length > 0
6148
5995
  )).map(({ xcodeproj: xcodeproj2, workspace }) => ({
6149
5996
  xcodeproj: xcodeproj2,
6150
5997
  workspace,
6151
- name: path37.basename(xcodeproj2)
5998
+ name: path39.basename(xcodeproj2)
6152
5999
  }));
6153
6000
  if (projects.length === 0) return null;
6154
6001
  if (projects.length > 1 && !iosTarget) {
@@ -6189,11 +6036,11 @@ function selectIosAppTarget(projectRoot, iosTarget) {
6189
6036
  const workspace = xcodeproj.replace(/\.xcodeproj$/, ".xcworkspace");
6190
6037
  const container = fs18.existsSync(workspace) ? workspace : xcodeproj;
6191
6038
  const hasScheme = [container, xcodeproj].some((dir) => {
6192
- if (fs18.existsSync(path37.join(dir, "xcshareddata", "xcschemes", `${target}.xcscheme`)))
6039
+ if (fs18.existsSync(path39.join(dir, "xcshareddata", "xcschemes", `${target}.xcscheme`)))
6193
6040
  return true;
6194
- const users = path37.join(dir, "xcuserdata");
6041
+ const users = path39.join(dir, "xcuserdata");
6195
6042
  return fs18.existsSync(users) && fs18.readdirSync(users).some(
6196
- (user) => fs18.existsSync(path37.join(users, user, "xcschemes", `${target}.xcscheme`))
6043
+ (user) => fs18.existsSync(path39.join(users, user, "xcschemes", `${target}.xcscheme`))
6197
6044
  );
6198
6045
  });
6199
6046
  if (hasScheme) target = readXcodeScheme(container, target).target;
@@ -6204,8 +6051,8 @@ function selectIosAppTarget(projectRoot, iosTarget) {
6204
6051
  );
6205
6052
  return { xcodeproj, target, workspace: project.workspace };
6206
6053
  }
6207
- var workspaceResolvedFile = (xcodeprojOrWorkspace) => path37.join(
6208
- xcodeprojOrWorkspace.endsWith(".xcworkspace") ? xcodeprojOrWorkspace : path37.join(xcodeprojOrWorkspace, "project.xcworkspace"),
6054
+ var workspaceResolvedFile = (xcodeprojOrWorkspace) => path39.join(
6055
+ xcodeprojOrWorkspace.endsWith(".xcworkspace") ? xcodeprojOrWorkspace : path39.join(xcodeprojOrWorkspace, "project.xcworkspace"),
6209
6056
  "xcshareddata",
6210
6057
  "swiftpm",
6211
6058
  "Package.resolved"
@@ -6233,7 +6080,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
6233
6080
  (ref) => options.frameworkMachOType ? ref.target.name === targetName && FRAMEWORK_PRODUCTS.has(str(ref.target.productType) ?? "") : isIosAppTarget(ref, options) || targetName !== void 0 && ref.target.name === targetName && ref.target.productType === APP_EXTENSION
6234
6081
  );
6235
6082
  const appTargetNames = appTargets.map((ref) => str(ref.target.name) ?? ref.id);
6236
- const container = path37.basename(xcodeprojOrWorkspace);
6083
+ const container = path39.basename(xcodeprojOrWorkspace);
6237
6084
  const named = targetName ? appTargets.filter((ref) => ref.target.name === targetName) : appTargets;
6238
6085
  if (named.length !== 1) {
6239
6086
  if (options.frameworkMachOType)
@@ -6258,8 +6105,8 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
6258
6105
  for (const ref of allTargets) {
6259
6106
  const product = ref.project.object(str(ref.target.productReference));
6260
6107
  const file = str(product?.path);
6261
- if (file && !byProduct.has(path37.basename(file)))
6262
- byProduct.set(path37.basename(file), ref);
6108
+ if (file && !byProduct.has(path39.basename(file)))
6109
+ byProduct.set(path39.basename(file), ref);
6263
6110
  }
6264
6111
  const proxied = (project, proxyId) => {
6265
6112
  const proxy = project.object(proxyId);
@@ -6283,7 +6130,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
6283
6130
  const buildFile = project.object(buildFileId);
6284
6131
  if (!buildFile || !xcodeBuildFileBuildsForIos(buildFile)) continue;
6285
6132
  const file = project.object(str(buildFile.fileRef));
6286
- const resolved = file?.isa === "PBXReferenceProxy" ? proxied(project, str(file.remoteRef)) : file && str(file.sourceTree) === "BUILT_PRODUCTS_DIR" ? byProduct.get(path37.basename(str(file.path) ?? "")) : void 0;
6133
+ const resolved = file?.isa === "PBXReferenceProxy" ? proxied(project, str(file.remoteRef)) : file && str(file.sourceTree) === "BUILT_PRODUCTS_DIR" ? byProduct.get(path39.basename(str(file.path) ?? "")) : void 0;
6287
6134
  if (resolved)
6288
6135
  found.push({
6289
6136
  target: resolved,
@@ -6364,7 +6211,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
6364
6211
  const otherProduct = productName(other);
6365
6212
  for (const { file, visibility } of headerPhase(other)) {
6366
6213
  if (visibility === "Project") continue;
6367
- const key = `${otherProduct}/${path37.basename(file)}`;
6214
+ const key = `${otherProduct}/${path39.basename(file)}`;
6368
6215
  if (!headers.has(key)) headers.set(key, file);
6369
6216
  }
6370
6217
  }
@@ -6395,7 +6242,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
6395
6242
  ref.id,
6396
6243
  ref.project.resolvePath,
6397
6244
  (file) => isDirectory(file) ? walkFiles(file) : fs18.existsSync(file) ? [file] : [],
6398
- path37.join,
6245
+ path39.join,
6399
6246
  (file, kind) => {
6400
6247
  if (kind === "header") found.push(file);
6401
6248
  }
@@ -6411,12 +6258,12 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
6411
6258
  for (const ref of projectTargets(project)) {
6412
6259
  const product = productName(ref);
6413
6260
  for (const { file, visibility } of headerPhase(ref)) {
6414
- const name = path37.basename(file);
6261
+ const name = path39.basename(file);
6415
6262
  if (!entries.has(name))
6416
6263
  entries.set(name, visibility !== "Project" ? `${product}/${name}` : file);
6417
6264
  }
6418
6265
  for (const file of synchronizedHeaders(ref)) {
6419
- const name = path37.basename(file);
6266
+ const name = path39.basename(file);
6420
6267
  if (!entries.has(name)) entries.set(name, file);
6421
6268
  }
6422
6269
  }
@@ -6426,7 +6273,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
6426
6273
  if (folder === null) continue;
6427
6274
  for (const file of walkFiles(folder)) {
6428
6275
  if (!HEADER_FILE.test(file)) continue;
6429
- const name = path37.basename(file);
6276
+ const name = path39.basename(file);
6430
6277
  if (!entries.has(name)) entries.set(name, file);
6431
6278
  }
6432
6279
  }
@@ -6434,18 +6281,18 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
6434
6281
  for (const id of Object.keys(project.objects)) {
6435
6282
  if (project.object(id)?.isa !== "PBXFileReference") continue;
6436
6283
  const file = project.resolvePath(id);
6437
- if (file && HEADER_FILE.test(file) && !entries.has(path37.basename(file)))
6438
- entries.set(path37.basename(file), file);
6284
+ if (file && HEADER_FILE.test(file) && !entries.has(path39.basename(file)))
6285
+ entries.set(path39.basename(file), file);
6439
6286
  }
6440
6287
  const map = [...entries];
6441
6288
  projectHeaderMaps.set(project, map);
6442
6289
  return map;
6443
6290
  };
6444
6291
  const xcconfigs = /* @__PURE__ */ new Set();
6445
- const buildDir = (project) => path37.join(project.projectDir, ".build/peach-xcode/Build");
6292
+ const buildDir = (project) => path39.join(project.projectDir, ".build/peach-xcode/Build");
6446
6293
  const workspaceBuild = {
6447
- SYMROOT: path37.join(buildDir(app.project), "Products"),
6448
- OBJROOT: path37.join(buildDir(app.project), "Intermediates.noindex")
6294
+ SYMROOT: path39.join(buildDir(app.project), "Products"),
6295
+ OBJROOT: path39.join(buildDir(app.project), "Intermediates.noindex")
6449
6296
  };
6450
6297
  const moduleTarget = (ref) => {
6451
6298
  const name = str(ref.target.name) ?? ref.id;
@@ -6460,16 +6307,16 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
6460
6307
  TARGET_NAME: name,
6461
6308
  TARGETNAME: "$(TARGET_NAME)",
6462
6309
  PROJECT: "$(PROJECT_NAME)",
6463
- PROJECT_NAME: path37.basename(ref.project.xcodeproj, ".xcodeproj"),
6310
+ PROJECT_NAME: path39.basename(ref.project.xcodeproj, ".xcodeproj"),
6464
6311
  PROJECT_CLASS_PREFIX: isDict(ref.project.project.attributes) ? str(ref.project.project.attributes.CLASSPREFIX) ?? "" : "",
6465
6312
  PROJECT_FILE_PATH: ref.project.xcodeproj,
6466
6313
  SRCROOT: ref.project.projectDir,
6467
6314
  SOURCE_ROOT: ref.project.projectDir,
6468
6315
  PROJECT_DIR: ref.project.projectDir,
6469
- SYMROOT: path37.join(buildDir(ref.project), "Products"),
6316
+ SYMROOT: path39.join(buildDir(ref.project), "Products"),
6470
6317
  BUILD_DIR: "$(SYMROOT)",
6471
6318
  BUILD_ROOT: "$(SYMROOT)",
6472
- OBJROOT: path37.join(buildDir(ref.project), "Intermediates.noindex"),
6319
+ OBJROOT: path39.join(buildDir(ref.project), "Intermediates.noindex"),
6473
6320
  CONFIGURATION_BUILD_DIR: "$(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)",
6474
6321
  BUILT_PRODUCTS_DIR: "$(CONFIGURATION_BUILD_DIR)",
6475
6322
  TARGET_BUILD_DIR: "$(CONFIGURATION_BUILD_DIR)",
@@ -6502,7 +6349,11 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
6502
6349
  DEVELOPMENT_LANGUAGE: str(ref.project.project.developmentRegion) ?? "en"
6503
6350
  },
6504
6351
  options,
6505
- ref === app && options.frameworkMachOType ? { ...workspaceBuild, MACH_O_TYPE: options.frameworkMachOType } : workspaceBuild
6352
+ ref === app && options.frameworkMachOType ? {
6353
+ ...workspaceBuild,
6354
+ ...options.frameworkBuildSettings,
6355
+ MACH_O_TYPE: options.frameworkMachOType
6356
+ } : workspaceBuild
6506
6357
  );
6507
6358
  for (const file of read) xcconfigs.add(file);
6508
6359
  const swiftVersion = Number.parseFloat(settings2("SWIFT_VERSION") || "5");
@@ -6514,7 +6365,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
6514
6365
  xcconfigs
6515
6366
  );
6516
6367
  const searchRules = recursiveSearchRules(settings2);
6517
- const absolute = (file) => path37.resolve(ref.project.projectDir, file);
6368
+ const absolute = (file) => path39.resolve(ref.project.projectDir, file);
6518
6369
  const framework = FRAMEWORK_PRODUCTS.has(str(ref.target.productType) ?? "");
6519
6370
  const product = settings2("PRODUCT_NAME");
6520
6371
  const moduleName = applyOperator(settings2("PRODUCT_MODULE_NAME"), "c99extidentifier");
@@ -6545,7 +6396,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
6545
6396
  `${name}: Swift compatibility header phase has no Swift producer sources`
6546
6397
  );
6547
6398
  const building = options.prepareGeneratedSources && options.requireSources !== false;
6548
- const versioning = building && allSources.length > 0 && settings2("VERSIONING_SYSTEM") === "apple-generic" ? path37.join(settings2("DERIVED_FILE_DIR"), `${product}_vers.c`) : null;
6399
+ const versioning = building && allSources.length > 0 && settings2("VERSIONING_SYSTEM") === "apple-generic" ? path39.join(settings2("DERIVED_FILE_DIR"), `${product}_vers.c`) : null;
6549
6400
  if (versioning) {
6550
6401
  const version = settings2("CURRENT_PROJECT_VERSION");
6551
6402
  const custom = [
@@ -6558,7 +6409,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
6558
6409
  ].filter((key) => settings2(key));
6559
6410
  if (custom.length)
6560
6411
  throw new Error(
6561
- `${name}: Xcode generates ${path37.basename(versioning)} with ${custom.join(", ")}; peach does not model VERSION_INFO_* overrides`
6412
+ `${name}: Xcode generates ${path39.basename(versioning)} with ${custom.join(", ")}; peach does not model VERSION_INFO_* overrides`
6562
6413
  );
6563
6414
  const symbol = product.replace(/^[^A-Za-z_]/, "_").replace(/[^A-Za-z0-9_]/g, "_");
6564
6415
  const [major, minor] = version.split(".");
@@ -6572,7 +6423,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
6572
6423
  ""
6573
6424
  ].join("\n");
6574
6425
  if (!fs18.existsSync(versioning) || fs18.readFileSync(versioning, "utf8") !== unit) {
6575
- fs18.mkdirSync(path37.dirname(versioning), { recursive: true });
6426
+ fs18.mkdirSync(path39.dirname(versioning), { recursive: true });
6576
6427
  fs18.writeFileSync(versioning, unit);
6577
6428
  }
6578
6429
  allSources.push(versioning);
@@ -6592,7 +6443,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
6592
6443
  const headerFiles = headerPhase(ref);
6593
6444
  const ownHeaders = /* @__PURE__ */ new Map();
6594
6445
  for (const { file, visibility } of headerFiles) {
6595
- const name2 = path37.basename(file);
6446
+ const name2 = path39.basename(file);
6596
6447
  const published = visibility !== "Project";
6597
6448
  if (!ownHeaders.has(name2))
6598
6449
  ownHeaders.set(name2, published ? `${product}/${name2}` : file);
@@ -6600,27 +6451,27 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
6600
6451
  ownHeaders.set(`${product}/${name2}`, file);
6601
6452
  }
6602
6453
  for (const file of synchronizedHeaders(ref)) {
6603
- const name2 = path37.basename(file);
6454
+ const name2 = path39.basename(file);
6604
6455
  if (ownHeaders.has(name2)) continue;
6605
6456
  ownHeaders.set(name2, file);
6606
6457
  const qualified = `${product}/${name2}`;
6607
6458
  if (!ownHeaders.has(qualified)) ownHeaders.set(qualified, file);
6608
6459
  }
6609
6460
  const nonFrameworkHeaders = nonFrameworkHeadersOf(ref.project);
6610
- const wrapper = path37.join(settings2("BUILT_PRODUCTS_DIR"), `${product}.framework`);
6461
+ const wrapper = path39.join(settings2("BUILT_PRODUCTS_DIR"), `${product}.framework`);
6611
6462
  const moduleMap = (settings2("DEFINES_MODULE") === "YES" || !framework) && settings2("MODULEMAP_FILE") ? absolute(settings2("MODULEMAP_FILE")) : null;
6612
- const frameworkUmbrella = !compatibility && framework && members.sources.length > 0 && moduleMap ? path37.join(path37.dirname(moduleMap), `${moduleName}-umbrella.h`) : null;
6463
+ const frameworkUmbrella = !compatibility && framework && members.sources.length > 0 && moduleMap ? path39.join(path39.dirname(moduleMap), `${moduleName}-umbrella.h`) : null;
6613
6464
  const frameworkCompatibility = frameworkUmbrella && moduleMap && fs18.existsSync(moduleMap) && fs18.existsSync(frameworkUmbrella) ? {
6614
6465
  framework: true,
6615
6466
  moduleMap,
6616
6467
  umbrella: frameworkUmbrella,
6617
- outputModuleMap: path37.join(wrapper, "Modules", "module.modulemap"),
6618
- outputUmbrella: path37.join(
6468
+ outputModuleMap: path39.join(wrapper, "Modules", "module.modulemap"),
6469
+ outputUmbrella: path39.join(
6619
6470
  wrapper,
6620
6471
  "Headers",
6621
- path37.basename(frameworkUmbrella)
6472
+ path39.basename(frameworkUmbrella)
6622
6473
  ),
6623
- outputHeader: path37.join(
6474
+ outputHeader: path39.join(
6624
6475
  wrapper,
6625
6476
  "Headers",
6626
6477
  settings2("SWIFT_OBJC_INTERFACE_HEADER_NAME") || `${moduleName}-Swift.h`
@@ -6634,9 +6485,9 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
6634
6485
  outputUmbrella: compatibility.outputUmbrella,
6635
6486
  outputHeader: compatibility.outputHeader
6636
6487
  } : frameworkCompatibility;
6637
- const podHeaders = !framework && isPodsProject(ref.project.xcodeproj) && moduleMap && path37.relative(path37.join(ref.project.projectDir, "Headers", "Public"), moduleMap).split(path37.sep)[0] !== ".." && fs18.existsSync(moduleMap) ? fs18.readdirSync(path37.dirname(moduleMap)).flatMap((entry) => {
6488
+ const podHeaders = !framework && isPodsProject(ref.project.xcodeproj) && moduleMap && path39.relative(path39.join(ref.project.projectDir, "Headers", "Public"), moduleMap).split(path39.sep)[0] !== ".." && fs18.existsSync(moduleMap) ? fs18.readdirSync(path39.dirname(moduleMap)).flatMap((entry) => {
6638
6489
  if (!/\.(h|hh|hpp|hxx|modulemap)$/.test(entry)) return [];
6639
- const file = path37.join(path37.dirname(moduleMap), entry);
6490
+ const file = path39.join(path39.dirname(moduleMap), entry);
6640
6491
  return fs18.existsSync(file) ? [file] : [];
6641
6492
  }) : [];
6642
6493
  const fileFlags = {};
@@ -6715,15 +6566,15 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
6715
6566
  // xcode searches its products' include directory before
6716
6567
  // HEADER_SEARCH_PATHS and the target's derived sources after.
6717
6568
  headerSearchPaths: [
6718
- path37.join(settings2("BUILT_PRODUCTS_DIR"), "include"),
6569
+ path39.join(settings2("BUILT_PRODUCTS_DIR"), "include"),
6719
6570
  ...settingList(settings2("HEADER_SEARCH_PATHS")).flatMap(
6720
6571
  (raw) => expandSearchPath(absolute(raw), searchRules)
6721
6572
  ),
6722
- path37.join(
6573
+ path39.join(
6723
6574
  `${settings2("DERIVED_FILE_DIR")}-normal`,
6724
6575
  settings2("CURRENT_ARCH")
6725
6576
  ),
6726
- path37.join(settings2("DERIVED_FILE_DIR"), settings2("CURRENT_ARCH")),
6577
+ path39.join(settings2("DERIVED_FILE_DIR"), settings2("CURRENT_ARCH")),
6727
6578
  settings2("DERIVED_FILE_DIR")
6728
6579
  ],
6729
6580
  userHeaderSearchPaths: settingList(
@@ -6773,10 +6624,10 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
6773
6624
  ...headerFiles.flatMap(
6774
6625
  ({ file, visibility }) => visibility === "Project" ? [] : [
6775
6626
  [
6776
- path37.join(
6627
+ path39.join(
6777
6628
  wrapper,
6778
6629
  visibility === "Public" ? "Headers" : "PrivateHeaders",
6779
- path37.basename(file)
6630
+ path39.basename(file)
6780
6631
  ),
6781
6632
  file
6782
6633
  ]
@@ -6790,7 +6641,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
6790
6641
  return [];
6791
6642
  const destination = expand(
6792
6643
  str(phase.dstPath) ?? "",
6793
- (name2) => name2 === "PUBLIC_HEADERS_FOLDER_PATH" ? path37.join(wrapper, "Headers") : name2 === "PRIVATE_HEADERS_FOLDER_PATH" ? path37.join(wrapper, "PrivateHeaders") : settings2(name2)
6644
+ (name2) => name2 === "PUBLIC_HEADERS_FOLDER_PATH" ? path39.join(wrapper, "Headers") : name2 === "PRIVATE_HEADERS_FOLDER_PATH" ? path39.join(wrapper, "PrivateHeaders") : settings2(name2)
6794
6645
  );
6795
6646
  return list(phase.files).flatMap((id) => {
6796
6647
  const file = ref.project.resolvePath(
@@ -6798,17 +6649,17 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
6798
6649
  );
6799
6650
  return file && HEADER_FILE.test(file) ? [
6800
6651
  [
6801
- path37.resolve(
6652
+ path39.resolve(
6802
6653
  settings2("BUILT_PRODUCTS_DIR"),
6803
6654
  destination,
6804
- path37.basename(file)
6655
+ path39.basename(file)
6805
6656
  ),
6806
6657
  file
6807
6658
  ]
6808
6659
  ] : [];
6809
6660
  });
6810
6661
  }),
6811
- ...moduleMap ? [[path37.join(wrapper, "Modules", "module.modulemap"), moduleMap]] : []
6662
+ ...moduleMap ? [[path39.join(wrapper, "Modules", "module.modulemap"), moduleMap]] : []
6812
6663
  ]) : Object.fromEntries([
6813
6664
  ...podHeaders.map((file) => [file, file]),
6814
6665
  ...moduleMap ? [[moduleMap, moduleMap]] : []
@@ -6845,7 +6696,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
6845
6696
  const frameworkTargets = selectedTargets.filter((target) => target !== builtTargets.at(-1)).filter(({ ref }) => MODULE_PRODUCTS.has(str(ref.target.productType) ?? "")).map(({ ref, module: module2 }) => ({ ref, framework: module2 }));
6846
6697
  const frameworks = frameworkTargets.map(({ framework }) => framework);
6847
6698
  const podSourceDirs = builtTargets.slice(0, -1).flatMap(
6848
- ({ ref, module: module2 }) => isPodsProject(ref.project.xcodeproj) ? [...module2.allSources, ...module2.objc?.headers ?? []].map((file) => path37.dirname(file)).filter((dir) => fs18.existsSync(dir)) : []
6699
+ ({ ref, module: module2 }) => isPodsProject(ref.project.xcodeproj) ? [...module2.allSources, ...module2.objc?.headers ?? []].map((file) => path39.dirname(file)).filter((dir) => fs18.existsSync(dir)) : []
6849
6700
  );
6850
6701
  const expandValue = (value, settings2) => {
6851
6702
  if (typeof value === "string") return expand(value, settings2);
@@ -6866,7 +6717,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
6866
6717
  const phase = owner.ref.project.object(phaseId);
6867
6718
  if (phase?.isa !== "PBXShellScriptBuildPhase" || str(phase.name) !== "[CP] Copy Pods Resources")
6868
6719
  continue;
6869
- const absolute = (raw) => path37.resolve(owner.ref.project.projectDir, expand(raw, owner.settings));
6720
+ const absolute = (raw) => path39.resolve(owner.ref.project.projectDir, expand(raw, owner.settings));
6870
6721
  const entries = (paths) => paths.flatMap((raw) => {
6871
6722
  const file = absolute(raw);
6872
6723
  xcconfigs.add(file);
@@ -6882,7 +6733,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
6882
6733
  ].filter((file) => file.endsWith(".bundle"));
6883
6734
  if (inputs.length !== outputs.length)
6884
6735
  throw new Error(`${owner.module.name}: resource bundle copy lists differ`);
6885
- const destinationRoot = path37.join(
6736
+ const destinationRoot = path39.join(
6886
6737
  owner.settings("TARGET_BUILD_DIR"),
6887
6738
  owner.settings("UNLOCALIZED_RESOURCES_FOLDER_PATH")
6888
6739
  );
@@ -6891,24 +6742,24 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
6891
6742
  const file = str(
6892
6743
  target.ref.project.object(str(target.ref.target.productReference))?.path
6893
6744
  );
6894
- return file && path37.join(target.settings("TARGET_BUILD_DIR"), file) === input2;
6745
+ return file && path39.join(target.settings("TARGET_BUILD_DIR"), file) === input2;
6895
6746
  });
6896
6747
  if (!product && !isDirectory(input2))
6897
6748
  throw new Error(
6898
6749
  `${owner.module.name}: resource bundle input has no selected producer: ${input2}`
6899
6750
  );
6900
- const destination = path37.relative(destinationRoot, outputs[index]);
6901
- if (destination === ".." || destination.startsWith(`..${path37.sep}`) || path37.isAbsolute(destination) || path37.basename(input2) !== path37.basename(destination))
6751
+ const destination = path39.relative(destinationRoot, outputs[index]);
6752
+ if (destination === ".." || destination.startsWith(`..${path39.sep}`) || path39.isAbsolute(destination) || path39.basename(input2) !== path39.basename(destination))
6902
6753
  throw new Error(
6903
6754
  `${owner.module.name}: invalid resource bundle copy destination`
6904
6755
  );
6905
- const infoFile = product ? path37.resolve(
6756
+ const infoFile = product ? path39.resolve(
6906
6757
  product.ref.project.projectDir,
6907
6758
  product.settings("INFOPLIST_FILE")
6908
6759
  ) : null;
6909
6760
  if (infoFile) xcconfigs.add(infoFile);
6910
6761
  const prefix = owner.ref === app ? "" : `Frameworks/${owner.module.moduleName}.framework/`;
6911
- const bundlePath = prefix + destination.split(path37.sep).join("/");
6762
+ const bundlePath = prefix + destination.split(path39.sep).join("/");
6912
6763
  if (resourceProducts.some((resource) => resource.path === bundlePath))
6913
6764
  throw new Error(
6914
6765
  `${owner.module.name}: duplicate resource bundle destination ${bundlePath}`
@@ -6924,15 +6775,15 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
6924
6775
  )
6925
6776
  )
6926
6777
  } : {
6927
- resources: fs18.readdirSync(input2, { recursive: true, withFileTypes: true }).filter((entry) => entry.isFile()).map((entry) => path37.join(entry.parentPath, entry.name)).sort(),
6778
+ resources: fs18.readdirSync(input2, { recursive: true, withFileTypes: true }).filter((entry) => entry.isFile()).map((entry) => path39.join(entry.parentPath, entry.name)).sort(),
6928
6779
  sourceRoot: input2
6929
6780
  }
6930
6781
  });
6931
6782
  }
6932
6783
  }
6933
6784
  }
6934
- const infoPlistFile = settings("INFOPLIST_FILE") ? path37.resolve(app.project.projectDir, settings("INFOPLIST_FILE")) : null;
6935
- const entitlementsFile = settings("CODE_SIGN_ENTITLEMENTS") ? path37.resolve(app.project.projectDir, settings("CODE_SIGN_ENTITLEMENTS")) : null;
6785
+ const infoPlistFile = settings("INFOPLIST_FILE") ? path39.resolve(app.project.projectDir, settings("INFOPLIST_FILE")) : null;
6786
+ const entitlementsFile = settings("CODE_SIGN_ENTITLEMENTS") ? path39.resolve(app.project.projectDir, settings("CODE_SIGN_ENTITLEMENTS")) : null;
6936
6787
  const infoPlistPending = module.generatedInfoPlist && !options.prepareGeneratedSources;
6937
6788
  const sourceInfo = infoPlistFile && !infoPlistPending ? plist3.parse(fs18.readFileSync(infoPlistFile, "utf8")) : {};
6938
6789
  if (!sourceInfo || typeof sourceInfo !== "object" || Array.isArray(sourceInfo) || sourceInfo instanceof Date || Buffer.isBuffer(sourceInfo)) {
@@ -6997,7 +6848,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
6997
6848
  };
6998
6849
  }
6999
6850
  const localPackageDirs = [
7000
- ...listed.filter((reference) => fs18.existsSync(path37.join(reference, "Package.swift"))),
6851
+ ...listed.filter((reference) => fs18.existsSync(path39.join(reference, "Package.swift"))),
7001
6852
  ...projects.flatMap(
7002
6853
  (project) => Object.entries(project.objects).flatMap(([id, entry]) => {
7003
6854
  if (!isDict(entry)) return [];
@@ -7007,19 +6858,19 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
7007
6858
  const packages = [];
7008
6859
  while (pending.length > 0) {
7009
6860
  const dir = pending.pop();
7010
- if (fs18.existsSync(path37.join(dir, "Package.swift"))) {
6861
+ if (fs18.existsSync(path39.join(dir, "Package.swift"))) {
7011
6862
  packages.push(dir);
7012
6863
  continue;
7013
6864
  }
7014
6865
  if (!isDirectory(dir)) continue;
7015
6866
  for (const child of fs18.readdirSync(dir, { withFileTypes: true }))
7016
6867
  if (child.isDirectory() && !child.name.startsWith("."))
7017
- pending.push(path37.join(dir, child.name));
6868
+ pending.push(path39.join(dir, child.name));
7018
6869
  }
7019
6870
  return packages;
7020
6871
  }
7021
- const candidate = entry.isa === "XCLocalSwiftPackageReference" ? path37.resolve(project.projectDir, str(entry.relativePath) ?? "") : entry.isa === "PBXFileReference" ? project.resolvePath(id) : null;
7022
- return candidate && fs18.existsSync(path37.join(candidate, "Package.swift")) ? [candidate] : [];
6872
+ const candidate = entry.isa === "XCLocalSwiftPackageReference" ? path39.resolve(project.projectDir, str(entry.relativePath) ?? "") : entry.isa === "PBXFileReference" ? project.resolvePath(id) : null;
6873
+ return candidate && fs18.existsSync(path39.join(candidate, "Package.swift")) ? [candidate] : [];
7023
6874
  })
7024
6875
  )
7025
6876
  ];
@@ -7049,7 +6900,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
7049
6900
  if ((flag === "-framework" || flag === "-weak_framework") && name)
7050
6901
  sdkFrameworks.add(name);
7051
6902
  });
7052
- const absolute = (raw) => path37.resolve(ref.project.projectDir, expand(raw, settings2));
6903
+ const absolute = (raw) => path39.resolve(ref.project.projectDir, expand(raw, settings2));
7053
6904
  const requested = options.nativeModules;
7054
6905
  const includeBinary = (name, dir) => {
7055
6906
  if (!requested || nativeTargets.has(ref) || requested.includes(name) || dir.endsWith(".xcframework") && localSwiftBinaryModules(dir).some((module2) => requested.includes(module2)))
@@ -7067,7 +6918,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
7067
6918
  const name = /^(.+)\.framework$/.exec(entry.name)?.[1];
7068
6919
  if (!name || byProduct.has(entry.name) || searchedFrameworks.has(name))
7069
6920
  continue;
7070
- const file = path37.join(directory, entry.name);
6921
+ const file = path39.join(directory, entry.name);
7071
6922
  if (fs18.statSync(file, { throwIfNoEntry: false })?.isDirectory())
7072
6923
  searchedFrameworks.set(name, file);
7073
6924
  }
@@ -7076,7 +6927,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
7076
6927
  }
7077
6928
  for (const raw of settingList(settings2("SWIFT_INCLUDE_PATHS"))) {
7078
6929
  const dir = absolute(raw);
7079
- const modulemap = path37.join(dir, "module.modulemap");
6930
+ const modulemap = path39.join(dir, "module.modulemap");
7080
6931
  if (!fs18.existsSync(modulemap)) continue;
7081
6932
  const name = moduleMapName(fs18.readFileSync(modulemap, "utf8"));
7082
6933
  if (name && !binaryFrameworks.has(name)) includeBinary(name, dir);
@@ -7152,7 +7003,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
7152
7003
  ...productAttributes.get(dependencyId)?.length ? { attributes: productAttributes.get(dependencyId) } : {},
7153
7004
  source: reference?.isa === "XCRemoteSwiftPackageReference" ? { kind: "remote", url: str(reference.repositoryURL) ?? "" } : reference?.isa === "XCLocalSwiftPackageReference" ? {
7154
7005
  kind: "local",
7155
- dir: path37.resolve(
7006
+ dir: path39.resolve(
7156
7007
  project.projectDir,
7157
7008
  str(reference.relativePath) ?? ""
7158
7009
  )
@@ -7186,7 +7037,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
7186
7037
  continue;
7187
7038
  }
7188
7039
  if (tree === "BUILT_PRODUCTS_DIR" || tree === "DEVELOPER_DIR" || // a target in the workspace builds it, so it exists only after that build
7189
- byProduct.has(path37.basename(rawPath)))
7040
+ byProduct.has(path39.basename(rawPath)))
7190
7041
  continue;
7191
7042
  const resolved = fileId ? project.resolvePath(fileId) : null;
7192
7043
  if (fileId && resolved !== null && !fs18.existsSync(resolved)) {
@@ -7216,7 +7067,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
7216
7067
  ({ product }) => !options.nativeModules || nativeTargets.has(built.ref) || options.nativeModules.includes(product)
7217
7068
  );
7218
7069
  const resolvedFile = workspaceResolvedFile(xcodeprojOrWorkspace);
7219
- let packageResolved = fs18.existsSync(resolvedFile) ? [fs18.realpathSync.native(resolvedFile)] : [...new Set(localPackageDirs.map((dir) => path37.join(dir, "Package.resolved")))].filter((file) => fs18.existsSync(file)).map((file) => fs18.realpathSync.native(file)).sort();
7070
+ let packageResolved = fs18.existsSync(resolvedFile) ? [fs18.realpathSync.native(resolvedFile)] : [...new Set(localPackageDirs.map((dir) => path39.join(dir, "Package.resolved")))].filter((file) => fs18.existsSync(file)).map((file) => fs18.realpathSync.native(file)).sort();
7220
7071
  if (packageResolved.length === 0) {
7221
7072
  const requirements = remotePackageRequirements(projects);
7222
7073
  if (requirements.length > 0) {
@@ -7267,7 +7118,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
7267
7118
  } : {},
7268
7119
  rootDir: commonAncestor(
7269
7120
  [
7270
- workspace ? path37.dirname(workspace) : app.project.projectDir,
7121
+ workspace ? path39.dirname(workspace) : app.project.projectDir,
7271
7122
  ...used.map((project) => project.projectDir),
7272
7123
  ...localPackageDirs,
7273
7124
  ...linkedProducts.flatMap(
@@ -7277,7 +7128,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
7277
7128
  // a target's own files may sit beside the project, such as an asset
7278
7129
  // catalog one folder up, and xcode builds them from there
7279
7130
  ...new Set(
7280
- [...module.allSources, ...module.resources].filter((file) => fs18.existsSync(file)).map((file) => path37.dirname(file))
7131
+ [...module.allSources, ...module.resources].filter((file) => fs18.existsSync(file)).map((file) => path39.dirname(file))
7281
7132
  )
7282
7133
  ].map((dir) => fs18.realpathSync.native(dir))
7283
7134
  ),
@@ -7440,7 +7291,7 @@ function readNativeAppIdentityFromXcodeTarget(app, parseInfoPlist = parsePlistSo
7440
7291
  app.resources,
7441
7292
  (file) => fs19.readFileSync(file, "utf8"),
7442
7293
  (file) => {
7443
- const extension = path38.extname(file).toLowerCase();
7294
+ const extension = path40.extname(file).toLowerCase();
7444
7295
  const contentType = extension === ".jpg" || extension === ".jpeg" ? "image/jpeg" : extension === ".webp" ? "image/webp" : "image/png";
7445
7296
  return `data:${contentType};base64,${fs19.readFileSync(file).toString("base64")}`;
7446
7297
  },
@@ -7479,7 +7330,7 @@ function readNativeAppIdentityFromSources(projectRoot, platform, parseInfoPlist,
7479
7330
  const read = selectNativeAppIdentityReader(platform, {
7480
7331
  android: () => null,
7481
7332
  ios: () => {
7482
- const nested = path38.join(projectRoot, "ios");
7333
+ const nested = path40.join(projectRoot, "ios");
7483
7334
  const iosRoot = fs19.existsSync(nested) ? nested : projectRoot;
7484
7335
  const prefix = iosRoot === nested ? "ios/" : "";
7485
7336
  const files = {};
@@ -7491,16 +7342,16 @@ function readNativeAppIdentityFromSources(projectRoot, platform, parseInfoPlist,
7491
7342
  "AppDelegate.swift",
7492
7343
  "AppDelegate.mm",
7493
7344
  "AppDelegate.m",
7494
- ...fs19.readdirSync(path38.join(iosRoot, entry.name)).filter((name) => name.endsWith(".entitlements"))
7345
+ ...fs19.readdirSync(path40.join(iosRoot, entry.name)).filter((name) => name.endsWith(".entitlements"))
7495
7346
  ];
7496
7347
  for (const name of names) {
7497
7348
  const relative2 = `${prefix}${entry.name}/${name}`;
7498
- const file = path38.join(projectRoot, relative2);
7349
+ const file = path40.join(projectRoot, relative2);
7499
7350
  if (fs19.existsSync(file)) files[relative2] = fs19.readFileSync(file, "utf8");
7500
7351
  }
7501
7352
  } else if (/AppDelegate\.(?:swift|mm|m)$|\.entitlements$/.test(entry.name)) {
7502
7353
  const relative2 = `${prefix}${entry.name}`;
7503
- const file = path38.join(projectRoot, relative2);
7354
+ const file = path40.join(projectRoot, relative2);
7504
7355
  if (fs19.existsSync(file)) files[relative2] = fs19.readFileSync(file, "utf8");
7505
7356
  }
7506
7357
  }
@@ -7518,23 +7369,23 @@ function readNativeAppIdentityFromSources(projectRoot, platform, parseInfoPlist,
7518
7369
  function readAndroidNativeAppIdentity(projectRoot, androidMergedManifest) {
7519
7370
  const files = {};
7520
7371
  if (androidMergedManifest) {
7521
- const file = path38.resolve(projectRoot, androidMergedManifest);
7372
+ const file = path40.resolve(projectRoot, androidMergedManifest);
7522
7373
  if (!fs19.existsSync(file)) return null;
7523
7374
  files[androidMergedManifest] = fs19.readFileSync(file, "utf8");
7524
7375
  } else {
7525
- const androidRoot = path38.join(projectRoot, "android");
7376
+ const androidRoot = path40.join(projectRoot, "android");
7526
7377
  if (!fs19.existsSync(androidRoot)) return null;
7527
7378
  const collect = (directory) => {
7528
7379
  for (const entry of fs19.readdirSync(directory, { withFileTypes: true })) {
7529
- const file = path38.join(directory, entry.name);
7380
+ const file = path40.join(directory, entry.name);
7530
7381
  if (entry.isDirectory()) collect(file);
7531
7382
  else if (entry.isFile() && entry.name === "AndroidManifest.xml")
7532
- files[path38.relative(projectRoot, file).split(path38.sep).join("/")] = fs19.readFileSync(file, "utf8");
7383
+ files[path40.relative(projectRoot, file).split(path40.sep).join("/")] = fs19.readFileSync(file, "utf8");
7533
7384
  }
7534
7385
  };
7535
7386
  for (const module of fs19.readdirSync(androidRoot, { withFileTypes: true })) {
7536
7387
  if (!module.isDirectory()) continue;
7537
- const outputs = path38.join(
7388
+ const outputs = path40.join(
7538
7389
  androidRoot,
7539
7390
  module.name,
7540
7391
  "build/intermediates/merged_manifests"
@@ -7545,14 +7396,14 @@ function readAndroidNativeAppIdentity(projectRoot, androidMergedManifest) {
7545
7396
  for (const manifest of Object.keys(files)) {
7546
7397
  const resourceDirectory = androidMergedResourceValuesDirectory(manifest);
7547
7398
  if (!resourceDirectory) continue;
7548
- const absolute = path38.resolve(projectRoot, resourceDirectory);
7399
+ const absolute = path40.resolve(projectRoot, resourceDirectory);
7549
7400
  if (!fs19.existsSync(absolute)) continue;
7550
7401
  for (const entry of fs19.readdirSync(absolute, { withFileTypes: true })) {
7551
7402
  if (!entry.isDirectory() || !/^values(?:-|$)/.test(entry.name)) continue;
7552
- for (const resource of fs19.readdirSync(path38.join(absolute, entry.name))) {
7403
+ for (const resource of fs19.readdirSync(path40.join(absolute, entry.name))) {
7553
7404
  if (!resource.endsWith(".xml")) continue;
7554
7405
  const file = `${resourceDirectory}/${entry.name}/${resource}`;
7555
- files[file] = fs19.readFileSync(path38.resolve(projectRoot, file), "utf8");
7406
+ files[file] = fs19.readFileSync(path40.resolve(projectRoot, file), "utf8");
7556
7407
  }
7557
7408
  }
7558
7409
  }
@@ -7573,7 +7424,7 @@ function readIosNativeAppIdentity(projectRoot, parseInfoPlist, iosTarget, enviro
7573
7424
  parseInfoPlist,
7574
7425
  buildSdkVersion
7575
7426
  );
7576
- const projectManifestPath = path38.join(projectRoot, "package.json");
7427
+ const projectManifestPath = path40.join(projectRoot, "package.json");
7577
7428
  const projectRequire = createRequire(projectManifestPath);
7578
7429
  let reanimatedManifestPath;
7579
7430
  try {
@@ -7594,8 +7445,8 @@ function readIosNativeAppIdentity(projectRoot, parseInfoPlist, iosTarget, enviro
7594
7445
  if (Number.parseInt(installedVersion, 10) < 4) return identity;
7595
7446
  const defaults = JSON.parse(
7596
7447
  fs19.readFileSync(
7597
- path38.join(
7598
- path38.dirname(reanimatedManifestPath),
7448
+ path40.join(
7449
+ path40.dirname(reanimatedManifestPath),
7599
7450
  "src/featureFlags/staticFlags.json"
7600
7451
  ),
7601
7452
  "utf8"