peachsim 0.1.2680 → 0.1.2682

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 (129) hide show
  1. package/dist-lib/agent-daemon-client.cjs +1 -1
  2. package/dist-lib/agent-events.cjs +1 -1
  3. package/dist-lib/attached-projects.cjs +1 -1
  4. package/dist-lib/auth/shared-session.cjs +1 -1
  5. package/dist-lib/backend-origin.cjs +1 -1
  6. package/dist-lib/beta.cjs +1 -1
  7. package/dist-lib/beta.mjs +2 -2
  8. package/dist-lib/bridge-constants.cjs +1 -1
  9. package/dist-lib/bridge-contract-input.cjs +1 -1
  10. package/dist-lib/bridge-contract-input.mjs +5 -5
  11. package/dist-lib/bridge-contract.cjs +1 -1
  12. package/dist-lib/bridge-contract.mjs +3 -3
  13. package/dist-lib/bundle-channel.cjs +905 -828
  14. package/dist-lib/capture-contract.cjs +1 -1
  15. package/dist-lib/capture-contract.mjs +3 -3
  16. package/dist-lib/cloud-contract.cjs +1 -1
  17. package/dist-lib/cloud-contract.mjs +3 -3
  18. package/dist-lib/cloud-test-args.cjs +1 -1
  19. package/dist-lib/cloud-test-args.mjs +2 -2
  20. package/dist-lib/cloud.cjs +1 -1
  21. package/dist-lib/cloud.mjs +7 -7
  22. package/dist-lib/config.cjs +1 -1
  23. package/dist-lib/config.mjs +5 -5
  24. package/dist-lib/detox/index.cjs +2 -2
  25. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  26. package/dist-lib/esm-chunks/{acorn-KFRNGPIS.mjs → acorn-V7B4X5PR.mjs} +3 -3
  27. package/dist-lib/esm-chunks/{chunk-SAKCEYPB.mjs → chunk-3UQZATB5.mjs} +1 -1
  28. package/dist-lib/esm-chunks/{chunk-2DSJ4Y2B.mjs → chunk-3VAFU4BM.mjs} +4 -4
  29. package/dist-lib/esm-chunks/{chunk-6FMJ3RGV.mjs → chunk-5SWSDDXC.mjs} +1 -1
  30. package/dist-lib/esm-chunks/{chunk-YOSTYBQ5.mjs → chunk-64UA6DQO.mjs} +3 -3
  31. package/dist-lib/esm-chunks/{chunk-63IRSGUP.mjs → chunk-6PSNFREM.mjs} +1 -1
  32. package/dist-lib/esm-chunks/{chunk-BRJ7ARFB.mjs → chunk-AXBK3CA4.mjs} +1 -1
  33. package/dist-lib/esm-chunks/{chunk-MA526IJY.mjs → chunk-BJHQOPWO.mjs} +1 -1
  34. package/dist-lib/esm-chunks/{chunk-BZZUMB6S.mjs → chunk-DU3VOY6S.mjs} +6 -6
  35. package/dist-lib/esm-chunks/{chunk-UASVIFF4.mjs → chunk-EC5RY4HR.mjs} +2 -2
  36. package/dist-lib/esm-chunks/{chunk-SZLZ7MYO.mjs → chunk-EK36QRGX.mjs} +1 -1
  37. package/dist-lib/esm-chunks/{chunk-AKMQQCL4.mjs → chunk-GNZDVDDX.mjs} +6 -6
  38. package/dist-lib/esm-chunks/{chunk-D7K24QPS.mjs → chunk-IOLISFIO.mjs} +1 -1
  39. package/dist-lib/esm-chunks/{chunk-UTPHWDOY.mjs → chunk-KYIRROKJ.mjs} +1 -1
  40. package/dist-lib/esm-chunks/{chunk-5ZUDE2OE.mjs → chunk-LV55WJFQ.mjs} +1 -1
  41. package/dist-lib/esm-chunks/{chunk-54DXR7XC.mjs → chunk-PE7HDZNI.mjs} +1 -1
  42. package/dist-lib/esm-chunks/{chunk-HTM32XYI.mjs → chunk-R2WPUKVT.mjs} +1 -1
  43. package/dist-lib/esm-chunks/{chunk-NDNSEMKC.mjs → chunk-SZ5UPZE4.mjs} +1 -1
  44. package/dist-lib/esm-chunks/{chunk-RXNQMOOQ.mjs → chunk-UTI6VCYT.mjs} +1 -1
  45. package/dist-lib/esm-chunks/{chunk-ISLJJHL6.mjs → chunk-VTJTOL53.mjs} +1 -1
  46. package/dist-lib/esm-chunks/{chunk-I567ROA6.mjs → chunk-X37OP27I.mjs} +14 -14
  47. package/dist-lib/esm-chunks/{chunk-YIBGV5BP.mjs → chunk-Y6WPXDCC.mjs} +1 -1
  48. package/dist-lib/esm-chunks/{chunk-TTFIUXYS.mjs → chunk-YKGS4NSG.mjs} +5 -5
  49. package/dist-lib/esm-chunks/{chunk-X6TNJRLY.mjs → chunk-Z6R2HZIH.mjs} +1 -1
  50. package/dist-lib/esm-chunks/{chunk-S2R5CB3W.mjs → chunk-ZYD227CX.mjs} +1 -1
  51. package/dist-lib/esm-chunks/{metro-layout-parser-6ETCKA7E.mjs → metro-layout-parser-5RTSOQCS.mjs} +3 -3
  52. package/dist-lib/esm-chunks/{swift-package-prebuilt-GTSH3CYC.mjs → swift-package-prebuilt-EH5JIX6L.mjs} +12 -12
  53. package/dist-lib/esm-chunks/{swift-sdk-app-module-PUPJSKNY.mjs → swift-sdk-app-module-VHAOCBXW.mjs} +16 -16
  54. package/dist-lib/esm-chunks/{swift-sdk-image-YPS6TJTZ.mjs → swift-sdk-image-3NCWCGQZ.mjs} +16 -16
  55. package/dist-lib/esm-chunks/{swift-sdk-image-producer-5NMRH53W.mjs → swift-sdk-image-producer-5S4IKSJ2.mjs} +5 -5
  56. package/dist-lib/expo-swift-bundle.cjs +736 -659
  57. package/dist-lib/expo-swift-metadata.cjs +1 -1
  58. package/dist-lib/expo-swift-metadata.mjs +7 -7
  59. package/dist-lib/home-paths.cjs +1 -1
  60. package/dist-lib/host/bridge-host.cjs +741 -664
  61. package/dist-lib/host/fetch-proxy-handler.cjs +84 -81
  62. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  63. package/dist-lib/host/fetch-proxy-overrides.mjs +2 -2
  64. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  65. package/dist-lib/host/websocket-proxy.cjs +1 -1
  66. package/dist-lib/index.cjs +1 -1
  67. package/dist-lib/kotlin-host.cjs +1 -1
  68. package/dist-lib/menu.cjs +1 -1
  69. package/dist-lib/menu.mjs +3 -3
  70. package/dist-lib/metro-fingerprint-registry.cjs +1 -1
  71. package/dist-lib/metro-fingerprint-registry.mjs +3 -3
  72. package/dist-lib/metro-production-bundle.cjs +1 -1
  73. package/dist-lib/metro-production-bundle.mjs +4 -4
  74. package/dist-lib/native-app-identity-project.cjs +410 -304
  75. package/dist-lib/native-app-identity-project.mjs +418 -312
  76. package/dist-lib/native-app-identity.cjs +1 -1
  77. package/dist-lib/native-app-identity.mjs +6 -6
  78. package/dist-lib/native-firebase-metadata.cjs +1 -1
  79. package/dist-lib/native-firebase-metadata.mjs +3 -3
  80. package/dist-lib/pdfium-raster.cjs +1 -1
  81. package/dist-lib/pdfium-raster.mjs +2 -2
  82. package/dist-lib/plist.cjs +1 -1
  83. package/dist-lib/plist.mjs +3 -3
  84. package/dist-lib/profiles.cjs +1 -1
  85. package/dist-lib/public-brand.cjs +1 -1
  86. package/dist-lib/public-origins-lib-esm.json +87 -85
  87. package/dist-lib/public-origins-lib.json +73 -71
  88. package/dist-lib/react-native-host-modules.cjs +1 -1
  89. package/dist-lib/react-native-host-modules.mjs +2 -2
  90. package/dist-lib/reap-browser.cjs +1 -1
  91. package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
  92. package/dist-lib/sdk.cjs +1 -1
  93. package/dist-lib/sdk.mjs +8 -8
  94. package/dist-lib/skills.cjs +781 -704
  95. package/dist-lib/swift-compile.cjs +1 -1
  96. package/dist-lib/swift-compile.mjs +12 -12
  97. package/dist-lib/swift-package.cjs +1 -1
  98. package/dist-lib/swift-package.mjs +3 -3
  99. package/dist-lib/swift-submit.cjs +1 -1
  100. package/dist-lib/swift-submit.mjs +6 -6
  101. package/dist-lib/swift-svg-raster.cjs +1 -1
  102. package/dist-lib/swift-svg-raster.mjs +2 -2
  103. package/dist-lib/swift-toolchain.cjs +1 -1
  104. package/dist-lib/swift.cjs +1 -1
  105. package/dist-lib/vendor/@peculiar/x509.cjs +1 -1
  106. package/dist-lib/vendor/@ruby/prism/src/nodes.js.cjs +1 -1
  107. package/dist-lib/vendor/@ruby/prism/src/parsePrism.js.cjs +1 -1
  108. package/dist-lib/vendor/acorn.cjs +1 -1
  109. package/dist-lib/vendor/magic-string.cjs +1 -1
  110. package/dist-lib/vendor/stream-json.cjs +1 -1
  111. package/dist-lib/vendor/sucrase/dist/index.js.cjs +1 -1
  112. package/dist-lib/vendor/sucrase/dist/parser/index.js.cjs +1 -1
  113. package/dist-lib/vendor/sucrase/dist/parser/tokenizer/index.js.cjs +1 -1
  114. package/dist-lib/vendor/sucrase/dist/parser/tokenizer/types.js.cjs +1 -1
  115. package/dist-lib/vendor/sucrase.cjs +1 -1
  116. package/dist-lib/vendor/terser.cjs +1 -1
  117. package/dist-lib/vendor/valibot.cjs +1 -1
  118. package/dist-lib/vendor/ws.cjs +1 -1
  119. package/dist-lib/vendor/zod.cjs +1 -1
  120. package/dist-lib/worklet-executable.cjs +1 -1
  121. package/dist-lib/worklet-executable.mjs +3 -3
  122. package/dist-types/packages/peach-engine/src/engine/native-image-pipeline.d.ts +5 -0
  123. package/dist-types/packages/peach-engine/src/render-worker/protocol.d.ts +3 -0
  124. package/package.json +1 -1
  125. package/runtime-companion.json +1 -1
  126. package/src/expo-swift-host.ts +73 -31
  127. package/src/swift-xcframework.ts +13 -7
  128. package/src/turbo-codegen-intake.ts +4 -1
  129. package/src/xcode-project.ts +57 -0
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2680 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2682 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -39,9 +39,9 @@ __export(native_app_identity_project_exports, {
39
39
  readNativeAppIdentityFromXcodeTarget: () => readNativeAppIdentityFromXcodeTarget
40
40
  });
41
41
  module.exports = __toCommonJS(native_app_identity_project_exports);
42
- var import_node_fs26 = __toESM(require("node:fs"), 1);
42
+ var import_node_fs28 = __toESM(require("node:fs"), 1);
43
43
  var import_node_module2 = require("node:module");
44
- var import_node_path27 = __toESM(require("node:path"), 1);
44
+ var import_node_path29 = __toESM(require("node:path"), 1);
45
45
 
46
46
  // src/android-string-value.ts
47
47
  function compileAndroidStringValue(text3, where) {
@@ -702,10 +702,10 @@ function appTargetReleaseSettings(pbxproj, targetName, infoPlistRelativePath) {
702
702
  var APP_DELEGATE_PATH_RE = /(?:^|\/)(?:ios\/)?([^/]+)\/AppDelegate\.(?:swift|mm|m)$/;
703
703
  function nativeAppIdentityFromIos(files, parseInfoPlist, iosTarget, resourceUri) {
704
704
  const pbxprojPath = Object.keys(files).find(
705
- (path23) => /(?:^|\/)ios\/[^/]+\.xcodeproj\/project\.pbxproj$/.test(path23)
705
+ (path25) => /(?:^|\/)ios\/[^/]+\.xcodeproj\/project\.pbxproj$/.test(path25)
706
706
  ) ?? Object.keys(files).find(
707
- (path23) => /(?:^|\/)[^/]+\.xcodeproj\/project\.pbxproj$/.test(path23)
708
- ) ?? Object.keys(files).find((path23) => /(?:^|\/)project\.pbxproj$/.test(path23));
707
+ (path25) => /(?:^|\/)[^/]+\.xcodeproj\/project\.pbxproj$/.test(path25)
708
+ ) ?? Object.keys(files).find((path25) => /(?:^|\/)project\.pbxproj$/.test(path25));
709
709
  if (!pbxprojPath) return null;
710
710
  const pbxproj = files[pbxprojPath];
711
711
  let objects = {};
@@ -747,7 +747,7 @@ function nativeAppIdentityFromIos(files, parseInfoPlist, iosTarget, resourceUri)
747
747
  } else if (applicationTargetNames.size === 1) {
748
748
  targetName = [...applicationTargetNames][0];
749
749
  } else if (applicationTargetNames.size > 1) {
750
- const delegateTargets = Object.keys(files).filter((path23) => !path23.includes("/Pods/")).map((path23) => path23.match(APP_DELEGATE_PATH_RE)?.[1]).filter(
750
+ const delegateTargets = Object.keys(files).filter((path25) => !path25.includes("/Pods/")).map((path25) => path25.match(APP_DELEGATE_PATH_RE)?.[1]).filter(
751
751
  (name) => typeof name === "string" && applicationTargetNames.has(name)
752
752
  );
753
753
  if (delegateTargets.length === 1) {
@@ -991,7 +991,7 @@ function nativeAppIdentityFromIos(files, parseInfoPlist, iosTarget, resourceUri)
991
991
  if (Object.hasOwn(files, file)) return [file];
992
992
  const prefix = file === "" ? "" : `${file.replace(/\/$/, "")}/`;
993
993
  return paths.filter(
994
- (path23) => path23.startsWith(prefix) && !/(?:^|\/)\./.test(path23.slice(prefix.length))
994
+ (path25) => path25.startsWith(prefix) && !/(?:^|\/)\./.test(path25.slice(prefix.length))
995
995
  );
996
996
  },
997
997
  join7,
@@ -1002,7 +1002,7 @@ function nativeAppIdentityFromIos(files, parseInfoPlist, iosTarget, resourceUri)
1002
1002
  }
1003
1003
  const rootModuleName = readRootModuleName(
1004
1004
  Object.entries(files).filter(
1005
- ([path23]) => !path23.includes("/Pods/") && (/(?:^|\/)(?:ios\/)?AppDelegate\.(?:swift|mm|m)$/.test(path23) || path23.match(APP_DELEGATE_PATH_RE)?.[1] === targetName)
1005
+ ([path25]) => !path25.includes("/Pods/") && (/(?:^|\/)(?:ios\/)?AppDelegate\.(?:swift|mm|m)$/.test(path25) || path25.match(APP_DELEGATE_PATH_RE)?.[1] === targetName)
1006
1006
  ).map(([, source]) => source)
1007
1007
  );
1008
1008
  return {
@@ -1919,9 +1919,9 @@ var NATIVE_GRAPH_ID = (0, import_node_crypto3.createHash)("sha256").update(JSON.
1919
1919
  // src/xcode-project.ts
1920
1920
  var import_node_child_process14 = require("node:child_process");
1921
1921
  var import_node_crypto16 = require("node:crypto");
1922
- var import_node_fs25 = __toESM(require("node:fs"), 1);
1922
+ var import_node_fs27 = __toESM(require("node:fs"), 1);
1923
1923
  var import_node_module = require("node:module");
1924
- var import_node_path26 = __toESM(require("node:path"), 1);
1924
+ var import_node_path28 = __toESM(require("node:path"), 1);
1925
1925
 
1926
1926
  // src/bazel-project.ts
1927
1927
  var import_node_child_process4 = require("node:child_process");
@@ -3311,7 +3311,7 @@ var import_node_path13 = require("node:path");
3311
3311
  var import_node_crypto7 = require("node:crypto");
3312
3312
  var import_node_fs10 = require("node:fs");
3313
3313
  var import_node_path11 = require("node:path");
3314
- 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":"d6a3228567a46c6d5280895383093889d9b868958a117881061bdd74729a225f","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":"facdbeb9de6bb12da4ab4954553edfaadd0e486f1181443138be70c3d8396236","swift-coverage/reader.ts":"da559b67ecd1161dea70c980b5f98f2c55af3550f0714479100fa5e9e813625c","swift-coverage/provenance.ts":"f5039c16e63c6129e22b71203f58982c68cef6e282a4f236b93da28edd39c108","swift-package-manifest.ts":"523fdfffc0cff95c8df7beeca437622a07d4fd666f0bb22b0ff67d14c42a7b10","swift-package.ts":"05c6cf101fbc944f6684a70db0a9c5aede846b2f0482a6b4a5a0abed737d4658","swift-source-file.ts":"8becce5e73b76a61d9d202c1ecfb39b1238e9bbf0e77841f1c51c98fa9ac7bd3","swift-toolchain.ts":"692791414734a0fe5949c1d2638941d5de882b8737675deae2e3a49512f2a126","home-paths.ts":"d1606390f0e8e50f0ff72544eadb3d49dfabf08e004c1218f2998c36fb8995dd","xcode-header-search.ts":"c72b724fc497e4cf603c355f86eb3c07c929ad299758cffbc6ff88ed241654c6","xcode-project.ts":"9f3d95e988cb75510a2e46eb32cf9c864a814f7e9d3c9a0a5b6ada290699f921","xcode-target-members.ts":"2379e6d411c5d63fa65ddc24c4e4fc8bfcd001b5be109b694c848fe62908db86","xcode-json-project.ts":"df6d6db28e0c8cfdf1f480e1e32d35f12c9cf1936642d5dda923889fb18a8fd6","openstep-plist.ts":"da11f86885ef1e25979ad989f332195c113c4b7a43f108e8d36646973430b81b"}') : swiftCoverageSourceDigests((0, import_node_path11.join)(__sootsim_import_meta_dirname, ".."));
3314
+ 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":"d6a3228567a46c6d5280895383093889d9b868958a117881061bdd74729a225f","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":"facdbeb9de6bb12da4ab4954553edfaadd0e486f1181443138be70c3d8396236","swift-coverage/reader.ts":"da559b67ecd1161dea70c980b5f98f2c55af3550f0714479100fa5e9e813625c","swift-coverage/provenance.ts":"f5039c16e63c6129e22b71203f58982c68cef6e282a4f236b93da28edd39c108","swift-package-manifest.ts":"523fdfffc0cff95c8df7beeca437622a07d4fd666f0bb22b0ff67d14c42a7b10","swift-package.ts":"05c6cf101fbc944f6684a70db0a9c5aede846b2f0482a6b4a5a0abed737d4658","swift-source-file.ts":"8becce5e73b76a61d9d202c1ecfb39b1238e9bbf0e77841f1c51c98fa9ac7bd3","swift-toolchain.ts":"692791414734a0fe5949c1d2638941d5de882b8737675deae2e3a49512f2a126","home-paths.ts":"d1606390f0e8e50f0ff72544eadb3d49dfabf08e004c1218f2998c36fb8995dd","xcode-header-search.ts":"c72b724fc497e4cf603c355f86eb3c07c929ad299758cffbc6ff88ed241654c6","xcode-project.ts":"d140088a94d032e28788e18bf11499965e0c626255fd904538764ededcf1d751","xcode-target-members.ts":"2379e6d411c5d63fa65ddc24c4e4fc8bfcd001b5be109b694c848fe62908db86","xcode-json-project.ts":"df6d6db28e0c8cfdf1f480e1e32d35f12c9cf1936642d5dda923889fb18a8fd6","openstep-plist.ts":"da11f86885ef1e25979ad989f332195c113c4b7a43f108e8d36646973430b81b"}') : swiftCoverageSourceDigests((0, import_node_path11.join)(__sootsim_import_meta_dirname, ".."));
3315
3315
 
3316
3316
  // src/swift-coverage/xcode-asset-symbols.ts
3317
3317
  var import_node_fs11 = require("node:fs");
@@ -3880,10 +3880,73 @@ var wasmMacroEnvironment = {
3880
3880
  var cacheDir3 = import_node_path22.default.join(cacheDir(), "swift-manifests");
3881
3881
  var execFileAsync = (0, import_node_util2.promisify)(import_node_child_process12.execFile);
3882
3882
 
3883
- // src/xcode-intents.ts
3884
- var import_node_crypto15 = require("node:crypto");
3883
+ // src/swift-source-file.ts
3885
3884
  var import_node_fs24 = __toESM(require("node:fs"), 1);
3886
3885
  var import_node_path24 = __toESM(require("node:path"), 1);
3886
+ function relativeInside(root, file) {
3887
+ const relative2 = import_node_path24.default.relative(root, file);
3888
+ return relative2 === ".." || relative2.startsWith(`..${import_node_path24.default.sep}`) || import_node_path24.default.isAbsolute(relative2) ? null : relative2;
3889
+ }
3890
+
3891
+ // src/swift-xcframework.ts
3892
+ var import_node_fs25 = __toESM(require("node:fs"), 1);
3893
+ var import_node_path25 = __toESM(require("node:path"), 1);
3894
+ function simulatorNativeLibrary(dir) {
3895
+ if (dir.endsWith(".framework")) {
3896
+ const name = import_node_path25.default.basename(dir, ".framework");
3897
+ return {
3898
+ name,
3899
+ file: import_node_path25.default.join(dir, name),
3900
+ slice: import_node_path25.default.dirname(dir),
3901
+ kind: "framework"
3902
+ };
3903
+ }
3904
+ if (!dir.endsWith(".xcframework")) return null;
3905
+ const info = parsePlistBytes(import_node_fs25.default.readFileSync(import_node_path25.default.join(dir, "Info.plist")));
3906
+ if (!isRecord(info) || !Array.isArray(info.AvailableLibraries))
3907
+ throw new Error(`${dir}: invalid XCFramework library declarations`);
3908
+ const matches = [];
3909
+ for (const entry of info.AvailableLibraries) {
3910
+ if (!isRecord(entry)) throw new Error(`${dir}: invalid XCFramework library entry`);
3911
+ if (entry.SupportedPlatform !== "ios" || entry.SupportedPlatformVariant !== "simulator")
3912
+ continue;
3913
+ if (typeof entry.LibraryPath !== "string" || typeof entry.LibraryIdentifier !== "string")
3914
+ throw new Error(`${dir}: invalid simulator library paths`);
3915
+ const archive = /\.a$/.test(entry.LibraryPath);
3916
+ const framework = /\.framework$/.test(entry.LibraryPath);
3917
+ if (!archive && !framework) continue;
3918
+ const slice = import_node_path25.default.resolve(dir, entry.LibraryIdentifier);
3919
+ const bundle = import_node_path25.default.resolve(dir, entry.LibraryIdentifier, entry.LibraryPath);
3920
+ const bundleRelative = import_node_path25.default.relative(dir, bundle);
3921
+ if (bundleRelative.startsWith("..") || import_node_path25.default.isAbsolute(bundleRelative))
3922
+ throw new Error(`${dir}: library escapes its XCFramework`);
3923
+ let name = entry.LibraryPath;
3924
+ let file = bundle;
3925
+ if (framework) {
3926
+ name = import_node_path25.default.basename(bundle, ".framework");
3927
+ file = import_node_path25.default.join(bundle, name);
3928
+ }
3929
+ const relative2 = import_node_path25.default.relative(dir, file);
3930
+ if (relative2.startsWith("..") || import_node_path25.default.isAbsolute(relative2))
3931
+ throw new Error(`${dir}: library escapes its XCFramework`);
3932
+ if (framework) {
3933
+ matches.push({ name, file, slice, kind: "framework" });
3934
+ continue;
3935
+ }
3936
+ const headers = typeof entry.HeadersPath === "string" ? import_node_path25.default.resolve(slice, entry.HeadersPath) : void 0;
3937
+ if (headers && relativeInside(slice, headers) === null)
3938
+ throw new Error(`${dir}: headers escape their XCFramework slice`);
3939
+ matches.push({ name, file, slice, kind: "archive", headers });
3940
+ }
3941
+ if (matches.length === 0) return null;
3942
+ if (matches.length !== 1) throw new Error(`${dir}: ambiguous simulator library`);
3943
+ return matches[0];
3944
+ }
3945
+
3946
+ // src/xcode-intents.ts
3947
+ var import_node_crypto15 = require("node:crypto");
3948
+ var import_node_fs26 = __toESM(require("node:fs"), 1);
3949
+ var import_node_path26 = __toESM(require("node:path"), 1);
3887
3950
 
3888
3951
  // src/intent-definition/fields.ts
3889
3952
  var import_strict2 = __toESM(require("node:assert/strict"), 1);
@@ -5425,17 +5488,17 @@ function preparePortableIntent(definition, derivedDirectory, prefix, language, m
5425
5488
  throw new Error(`${definition}: invalid intent code generation language ${language}`);
5426
5489
  if (prefix) identifier(prefix);
5427
5490
  if (module2) identifier(module2);
5428
- const source = import_node_fs24.default.readFileSync(definition);
5491
+ const source = import_node_fs26.default.readFileSync(definition);
5429
5492
  const key = (0, import_node_crypto15.createHash)("sha256").update(
5430
5493
  JSON.stringify([intentCompilerRevision, definition, prefix, language, module2])
5431
5494
  ).update("\0").update(source).digest("hex");
5432
- const cache = import_node_path24.default.join(derivedDirectory, "IntentDefinitions");
5433
- const output = import_node_path24.default.join(cache, key);
5434
- const localization = definition.split(import_node_path24.default.sep).findLast((part) => part.endsWith(".lproj")) ?? "";
5435
- const compiledRelative = import_node_path24.default.join("Resources", localization, import_node_path24.default.basename(definition));
5436
- const compiled = import_node_path24.default.join(output, compiledRelative);
5437
- const generated = import_node_path24.default.join(output, "Sources");
5438
- if (import_node_fs24.default.existsSync(compiled) && import_node_fs24.default.existsSync(generated)) return { compiled, generated };
5495
+ const cache = import_node_path26.default.join(derivedDirectory, "IntentDefinitions");
5496
+ const output = import_node_path26.default.join(cache, key);
5497
+ const localization = definition.split(import_node_path26.default.sep).findLast((part) => part.endsWith(".lproj")) ?? "";
5498
+ const compiledRelative = import_node_path26.default.join("Resources", localization, import_node_path26.default.basename(definition));
5499
+ const compiled = import_node_path26.default.join(output, compiledRelative);
5500
+ const generated = import_node_path26.default.join(output, "Sources");
5501
+ if (import_node_fs26.default.existsSync(compiled) && import_node_fs26.default.existsSync(generated)) return { compiled, generated };
5439
5502
  let metadata;
5440
5503
  let sources;
5441
5504
  try {
@@ -5445,30 +5508,30 @@ function preparePortableIntent(definition, derivedDirectory, prefix, language, m
5445
5508
  } catch (cause) {
5446
5509
  throw new Error(`could not compile intent definition ${definition}`, { cause });
5447
5510
  }
5448
- import_node_fs24.default.mkdirSync(cache, { recursive: true });
5449
- const stage = import_node_fs24.default.mkdtempSync(import_node_path24.default.join(cache, ".compile-"));
5511
+ import_node_fs26.default.mkdirSync(cache, { recursive: true });
5512
+ const stage = import_node_fs26.default.mkdtempSync(import_node_path26.default.join(cache, ".compile-"));
5450
5513
  try {
5451
- const sourceDirectory = import_node_path24.default.join(stage, "Sources");
5452
- const resource = import_node_path24.default.join(stage, compiledRelative);
5453
- import_node_fs24.default.mkdirSync(sourceDirectory);
5454
- import_node_fs24.default.mkdirSync(import_node_path24.default.dirname(resource), { recursive: true });
5455
- import_node_fs24.default.writeFileSync(resource, metadata);
5514
+ const sourceDirectory = import_node_path26.default.join(stage, "Sources");
5515
+ const resource = import_node_path26.default.join(stage, compiledRelative);
5516
+ import_node_fs26.default.mkdirSync(sourceDirectory);
5517
+ import_node_fs26.default.mkdirSync(import_node_path26.default.dirname(resource), { recursive: true });
5518
+ import_node_fs26.default.writeFileSync(resource, metadata);
5456
5519
  for (const [file, contents] of sources)
5457
- import_node_fs24.default.writeFileSync(import_node_path24.default.join(sourceDirectory, file), contents);
5520
+ import_node_fs26.default.writeFileSync(import_node_path26.default.join(sourceDirectory, file), contents);
5458
5521
  try {
5459
- import_node_fs24.default.renameSync(stage, output);
5522
+ import_node_fs26.default.renameSync(stage, output);
5460
5523
  } catch (error) {
5461
- if (!isRecord(error) || error.code !== "EEXIST" && error.code !== "ENOTEMPTY" || !import_node_fs24.default.existsSync(compiled) || !import_node_fs24.default.existsSync(generated))
5524
+ if (!isRecord(error) || error.code !== "EEXIST" && error.code !== "ENOTEMPTY" || !import_node_fs26.default.existsSync(compiled) || !import_node_fs26.default.existsSync(generated))
5462
5525
  throw error;
5463
5526
  }
5464
5527
  return { compiled, generated };
5465
5528
  } finally {
5466
- import_node_fs24.default.rmSync(stage, { recursive: true, force: true });
5529
+ import_node_fs26.default.rmSync(stage, { recursive: true, force: true });
5467
5530
  }
5468
5531
  }
5469
5532
 
5470
5533
  // src/xcode-json-project.ts
5471
- var import_node_path25 = __toESM(require("node:path"), 1);
5534
+ var import_node_path27 = __toESM(require("node:path"), 1);
5472
5535
  var isObject = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
5473
5536
  var text2 = (value) => typeof value === "string" ? value : void 0;
5474
5537
  var items = (value) => Array.isArray(value) ? value : [];
@@ -5525,7 +5588,7 @@ var PHASE_ISA = {
5525
5588
  function readXcodeJsonProject(xcodeproj, source) {
5526
5589
  const json = Bun.JSON5.parse(source);
5527
5590
  if (!isJsonObject(json)) throw new Error(`${xcodeproj}/project.xcproj is not an object`);
5528
- const projectDir = import_node_path25.default.dirname(xcodeproj);
5591
+ const projectDir = import_node_path27.default.dirname(xcodeproj);
5529
5592
  const objects = {};
5530
5593
  let next = 0;
5531
5594
  const add = (entry, id) => {
@@ -5538,7 +5601,7 @@ function readXcodeJsonProject(xcodeproj, source) {
5538
5601
  const base = /^<([A-Z]+)>\/(.*)$/.exec(raw);
5539
5602
  if (base) {
5540
5603
  if (base[1] === "PROJECT")
5541
- return { sourceTree: "<absolute>", path: import_node_path25.default.join(projectDir, base[2]) };
5604
+ return { sourceTree: "<absolute>", path: import_node_path27.default.join(projectDir, base[2]) };
5542
5605
  if (base[1] === "PRODUCTS")
5543
5606
  return { sourceTree: "BUILT_PRODUCTS_DIR", path: base[2] };
5544
5607
  return null;
@@ -5546,7 +5609,7 @@ function readXcodeJsonProject(xcodeproj, source) {
5546
5609
  const unescaped = raw.replaceAll("\\<", "<");
5547
5610
  if (unescaped.startsWith("/")) return { sourceTree: "<absolute>", path: unescaped };
5548
5611
  if (unescaped.startsWith("~")) return null;
5549
- return groupDir === null ? null : { sourceTree: "<absolute>", path: import_node_path25.default.join(groupDir, unescaped) };
5612
+ return groupDir === null ? null : { sourceTree: "<absolute>", path: import_node_path27.default.join(groupDir, unescaped) };
5550
5613
  };
5551
5614
  const memberships = [];
5552
5615
  const folders = [];
@@ -5557,7 +5620,7 @@ function readXcodeJsonProject(xcodeproj, source) {
5557
5620
  const kind = text2(entry.kind) ?? "file-reference";
5558
5621
  const raw = text2(entry.path) ?? "";
5559
5622
  const located = raw === "" ? null : locate(raw, parent.dir);
5560
- const name = text2(entry.name) ?? import_node_path25.default.basename(raw);
5623
+ const name = text2(entry.name) ?? import_node_path27.default.basename(raw);
5561
5624
  const node = { id: "", name, dir: null, parent, children: [] };
5562
5625
  if (kind === "group" || kind === "variant-group" || kind === "version-group") {
5563
5626
  node.dir = raw === "" ? parent.dir : located?.sourceTree === "<absolute>" ? located.path : null;
@@ -5678,7 +5741,7 @@ function readXcodeJsonProject(xcodeproj, source) {
5678
5741
  if (!isObject(entry)) continue;
5679
5742
  const repository = text2(entry.repository);
5680
5743
  const local = text2(entry.path);
5681
- const name = local !== void 0 ? import_node_path25.default.basename(import_node_path25.default.resolve(import_node_path25.default.dirname(xcodeproj), local)) : import_node_path25.default.basename(repository ?? "").replace(/\.git$/, "");
5744
+ const name = local !== void 0 ? import_node_path27.default.basename(import_node_path27.default.resolve(import_node_path27.default.dirname(xcodeproj), local)) : import_node_path27.default.basename(repository ?? "").replace(/\.git$/, "");
5682
5745
  const id = text2(entry.kind) === "local" && local !== void 0 ? add({ isa: "XCLocalSwiftPackageReference", relativePath: local }) : add({
5683
5746
  isa: "XCRemoteSwiftPackageReference",
5684
5747
  repositoryURL: repository ?? "",
@@ -5958,28 +6021,28 @@ var CONDITIONS = {
5958
6021
  variant: "normal"
5959
6022
  };
5960
6023
  function walkFiles(dir) {
5961
- if (!import_node_fs25.default.existsSync(dir)) return [];
6024
+ if (!import_node_fs27.default.existsSync(dir)) return [];
5962
6025
  const out = [];
5963
- for (const entry of import_node_fs25.default.readdirSync(dir, { withFileTypes: true }).sort((left, right) => left.name.localeCompare(right.name))) {
6026
+ for (const entry of import_node_fs27.default.readdirSync(dir, { withFileTypes: true }).sort((left, right) => left.name.localeCompare(right.name))) {
5964
6027
  if (entry.name.startsWith(".")) continue;
5965
- const full = import_node_path26.default.join(dir, entry.name);
6028
+ const full = import_node_path28.default.join(dir, entry.name);
5966
6029
  if (entry.isDirectory()) out.push(...walkFiles(full));
5967
6030
  else if (entry.isFile()) out.push(full);
5968
6031
  }
5969
6032
  return out;
5970
6033
  }
5971
- var isDirectory = (dir) => import_node_fs25.default.existsSync(dir) && import_node_fs25.default.statSync(dir).isDirectory();
6034
+ var isDirectory = (dir) => import_node_fs27.default.existsSync(dir) && import_node_fs27.default.statSync(dir).isDirectory();
5972
6035
  function readXcconfig(file, read) {
5973
- if (read.includes(file) || !import_node_fs25.default.existsSync(file)) return {};
6036
+ if (read.includes(file) || !import_node_fs27.default.existsSync(file)) return {};
5974
6037
  read.push(file);
5975
6038
  const settings = {};
5976
- for (const raw of import_node_fs25.default.readFileSync(file, "utf8").split("\n")) {
6039
+ for (const raw of import_node_fs27.default.readFileSync(file, "utf8").split("\n")) {
5977
6040
  const line = raw.replace(/\/\/.*$/, "").trim();
5978
6041
  const include = /^#include\??\s+"([^"]+)"/.exec(line);
5979
6042
  if (include) {
5980
6043
  Object.assign(
5981
6044
  settings,
5982
- readXcconfig(import_node_path26.default.resolve(import_node_path26.default.dirname(file), include[1]), read)
6045
+ readXcconfig(import_node_path28.default.resolve(import_node_path28.default.dirname(file), include[1]), read)
5983
6046
  );
5984
6047
  continue;
5985
6048
  }
@@ -6024,8 +6087,8 @@ function applyOperator(value, operator) {
6024
6087
  return value.replace(/[^A-Za-z0-9_]/g, "_").replace(/^[0-9]/, "_");
6025
6088
  case "standardizepath":
6026
6089
  if (value === ".") return value;
6027
- if (import_node_path26.default.posix.isAbsolute(value))
6028
- return import_node_path26.default.posix.normalize(value).replace(/(?<=.)\/$/, "");
6090
+ if (import_node_path28.default.posix.isAbsolute(value))
6091
+ return import_node_path28.default.posix.normalize(value).replace(/(?<=.)\/$/, "");
6029
6092
  return value.split("/").filter((component) => component !== "" && component !== ".").join("/");
6030
6093
  }
6031
6094
  throw new Error(`unsupported build setting operator :${operator}`);
@@ -6034,22 +6097,22 @@ function decodeXml(text3) {
6034
6097
  return text3.replaceAll("&quot;", '"').replaceAll("&apos;", "'").replaceAll("&lt;", "<").replaceAll("&gt;", ">").replaceAll("&amp;", "&");
6035
6098
  }
6036
6099
  function workspaceReferences(workspace) {
6037
- const data = import_node_path26.default.join(workspace, "contents.xcworkspacedata");
6038
- if (!import_node_fs25.default.existsSync(data))
6100
+ const data = import_node_path28.default.join(workspace, "contents.xcworkspacedata");
6101
+ if (!import_node_fs27.default.existsSync(data))
6039
6102
  throw new Error(`${workspace} has no contents.xcworkspacedata`);
6040
- const container = import_node_path26.default.dirname(workspace);
6103
+ const container = import_node_path28.default.dirname(workspace);
6041
6104
  const locate = (location, base) => {
6042
6105
  const colon = location.indexOf(":");
6043
6106
  const kind = location.slice(0, colon);
6044
6107
  const rest = location.slice(colon + 1);
6045
- if (kind === "group") return import_node_path26.default.resolve(base, rest);
6046
- if (kind === "container" || kind === "self") return import_node_path26.default.resolve(container, rest);
6047
- if (kind === "absolute") return import_node_path26.default.resolve(rest);
6048
- throw new Error(`${import_node_path26.default.basename(workspace)} has an unsupported location ${location}`);
6108
+ if (kind === "group") return import_node_path28.default.resolve(base, rest);
6109
+ if (kind === "container" || kind === "self") return import_node_path28.default.resolve(container, rest);
6110
+ if (kind === "absolute") return import_node_path28.default.resolve(rest);
6111
+ throw new Error(`${import_node_path28.default.basename(workspace)} has an unsupported location ${location}`);
6049
6112
  };
6050
6113
  const groups = [container];
6051
6114
  const references = [];
6052
- for (const [, closing, tag, attributes, selfClosing] of import_node_fs25.default.readFileSync(data, "utf8").matchAll(/<(\/?)(Group|FileRef)\b([^>]*?)(\/?)>/g)) {
6115
+ for (const [, closing, tag, attributes, selfClosing] of import_node_fs27.default.readFileSync(data, "utf8").matchAll(/<(\/?)(Group|FileRef)\b([^>]*?)(\/?)>/g)) {
6053
6116
  if (closing) {
6054
6117
  if (tag === "Group") groups.pop();
6055
6118
  continue;
@@ -6100,8 +6163,8 @@ function remotePackageRequirements(projects) {
6100
6163
  var loaded = /* @__PURE__ */ new Map();
6101
6164
  function xcodeProjectFile(xcodeproj) {
6102
6165
  for (const name of ["project.pbxproj", "project.xcproj"]) {
6103
- const file = import_node_path26.default.join(xcodeproj, name);
6104
- if (import_node_fs25.default.existsSync(file)) return file;
6166
+ const file = import_node_path28.default.join(xcodeproj, name);
6167
+ if (import_node_fs27.default.existsSync(file)) return file;
6105
6168
  }
6106
6169
  return null;
6107
6170
  }
@@ -6109,7 +6172,7 @@ function loadProject(xcodeproj) {
6109
6172
  const projectFile = xcodeProjectFile(xcodeproj);
6110
6173
  if (!projectFile)
6111
6174
  throw new Error(`${xcodeproj} has no project.pbxproj or project.xcproj`);
6112
- const source = import_node_fs25.default.readFileSync(projectFile, "utf8");
6175
+ const source = import_node_fs27.default.readFileSync(projectFile, "utf8");
6113
6176
  const digest = (0, import_node_crypto16.createHash)("sha256").update(source).digest("hex");
6114
6177
  const cached = loaded.get(projectFile);
6115
6178
  if (cached?.digest === digest) return cached.project;
@@ -6126,10 +6189,10 @@ function loadProject(xcodeproj) {
6126
6189
  if (!project || project.isa !== "PBXProject") {
6127
6190
  throw new Error(`${projectFile} has no PBXProject root`);
6128
6191
  }
6129
- const projectDir = import_node_fs25.default.realpathSync.native(
6130
- import_node_path26.default.resolve(import_node_path26.default.dirname(xcodeproj), str(project.projectDirPath) ?? "")
6192
+ const projectDir = import_node_fs27.default.realpathSync.native(
6193
+ import_node_path28.default.resolve(import_node_path28.default.dirname(xcodeproj), str(project.projectDirPath) ?? "")
6131
6194
  );
6132
- const resolvePath = xcodePathResolver(objects, projectDir, import_node_path26.default.join);
6195
+ const resolvePath = xcodePathResolver(objects, projectDir, import_node_path28.default.join);
6133
6196
  const result = {
6134
6197
  xcodeproj,
6135
6198
  projectFile,
@@ -6174,7 +6237,7 @@ function expandValue(value, settings) {
6174
6237
  return value;
6175
6238
  }
6176
6239
  function processedInfoPlist(name, file, settings, settingKeys) {
6177
- const source = file ? parsePlist(import_node_fs25.default.readFileSync(file, "utf8")) : {};
6240
+ const source = file ? parsePlist(import_node_fs27.default.readFileSync(file, "utf8")) : {};
6178
6241
  if (!source || typeof source !== "object" || Array.isArray(source) || source instanceof Date || Buffer.isBuffer(source))
6179
6242
  throw new Error(`${name} Info.plist must contain a dictionary`);
6180
6243
  const info = {};
@@ -6214,8 +6277,8 @@ function targetSettings(ref, configuration, builtins, options2 = {}, overrides =
6214
6277
  const relative2 = str(config.baseConfigurationReferenceRelativePath);
6215
6278
  const own = isDict(config.buildSettings) ? config.buildSettings : {};
6216
6279
  const directory = anchor ? project.resolvePath(anchor) : null;
6217
- const baseFile = base ? project.resolvePath(base) : directory && relative2 ? import_node_path26.default.resolve(directory, relative2) : null;
6218
- if ((options2.requireSources !== false || options2.installedPods) && (base || anchor || relative2) && (!baseFile || !import_node_fs25.default.existsSync(baseFile)))
6280
+ const baseFile = base ? project.resolvePath(base) : directory && relative2 ? import_node_path28.default.resolve(directory, relative2) : null;
6281
+ if ((options2.requireSources !== false || options2.installedPods) && (base || anchor || relative2) && (!baseFile || !import_node_fs27.default.existsSync(baseFile)))
6219
6282
  throw new Error(
6220
6283
  `Unable to open base configuration reference file '${baseFile ?? base ?? relative2 ?? anchor}'`
6221
6284
  );
@@ -6309,10 +6372,10 @@ function hostMacroPluginFlags(flags) {
6309
6372
  if (flags[index - 1] !== "-load-plugin-executable") return flag;
6310
6373
  const separator = flag.lastIndexOf("#");
6311
6374
  if (separator < 0) return flag;
6312
- const root = import_node_path26.default.dirname(import_node_path26.default.dirname(flag.slice(0, separator)));
6313
- const manifest = import_node_path26.default.join(root, "package.json");
6314
- if (!import_node_fs25.default.existsSync(manifest)) return flag;
6315
- const pkg = JSON.parse(import_node_fs25.default.readFileSync(manifest, "utf8"));
6375
+ const root = import_node_path28.default.dirname(import_node_path28.default.dirname(flag.slice(0, separator)));
6376
+ const manifest = import_node_path28.default.join(root, "package.json");
6377
+ if (!import_node_fs27.default.existsSync(manifest)) return flag;
6378
+ const pkg = JSON.parse(import_node_fs27.default.readFileSync(manifest, "utf8"));
6316
6379
  if (!isRecord(pkg) || pkg.name !== "expo-modules-macros") return flag;
6317
6380
  const macros = (0, import_node_module.createRequire)(manifest)(root);
6318
6381
  if (!isRecord(macros) || typeof macros.getScannerBinaryPath !== "function")
@@ -6330,26 +6393,26 @@ function scriptCommand(shell, script) {
6330
6393
  return [executable, ...args, "-c", script];
6331
6394
  }
6332
6395
  function expandSearchPath(directory, rules2) {
6333
- if (import_node_path26.default.basename(directory) !== "**") return [directory];
6396
+ if (import_node_path28.default.basename(directory) !== "**") return [directory];
6334
6397
  const expanded = [];
6335
6398
  const seen = /* @__PURE__ */ new Set();
6336
- const queue = [import_node_path26.default.dirname(directory)];
6399
+ const queue = [import_node_path28.default.dirname(directory)];
6337
6400
  for (let at = 0; at < queue.length; at++) {
6338
6401
  const current = queue[at];
6339
6402
  let real;
6340
6403
  try {
6341
- real = import_node_fs25.default.realpathSync.native(current);
6404
+ real = import_node_fs27.default.realpathSync.native(current);
6342
6405
  } catch {
6343
6406
  continue;
6344
6407
  }
6345
- if (!import_node_fs25.default.statSync(real).isDirectory() || seen.has(real)) continue;
6408
+ if (!import_node_fs27.default.statSync(real).isDirectory() || seen.has(real)) continue;
6346
6409
  seen.add(real);
6347
6410
  expanded.push(current);
6348
- for (const entry of import_node_fs25.default.readdirSync(real, { withFileTypes: true }).sort((a, b) => a.name < b.name ? -1 : a.name > b.name ? 1 : 0)) {
6411
+ for (const entry of import_node_fs27.default.readdirSync(real, { withFileTypes: true }).sort((a, b) => a.name < b.name ? -1 : a.name > b.name ? 1 : 0)) {
6349
6412
  if (entry.isSymbolicLink() ? !rules2.followLinks : !entry.isDirectory()) continue;
6350
6413
  if (rules2.excluded.some((pattern) => pattern.test(entry.name)) && !rules2.included.some((pattern) => pattern.test(entry.name)))
6351
6414
  continue;
6352
- queue.push(import_node_path26.default.join(current, entry.name));
6415
+ queue.push(import_node_path28.default.join(current, entry.name));
6353
6416
  }
6354
6417
  }
6355
6418
  return expanded;
@@ -6360,7 +6423,7 @@ function searchedLinkerFlags(projectDir, settings, libraryDirectories) {
6360
6423
  const rules2 = recursiveSearchRules(settings);
6361
6424
  const directories = new Set(
6362
6425
  settingList(settings("LIBRARY_SEARCH_PATHS")).flatMap(
6363
- (raw) => expandSearchPath(import_node_path26.default.resolve(projectDir, expand(raw, settings)), rules2)
6426
+ (raw) => expandSearchPath(import_node_path28.default.resolve(projectDir, expand(raw, settings)), rules2)
6364
6427
  )
6365
6428
  );
6366
6429
  const resolved = [];
@@ -6373,18 +6436,18 @@ function searchedLinkerFlags(projectDir, settings, libraryDirectories) {
6373
6436
  }
6374
6437
  let archive;
6375
6438
  for (const directory of directories) {
6376
- const file = (extension) => import_node_path26.default.join(directory, `lib${name}.${extension}`);
6439
+ const file = (extension) => import_node_path28.default.join(directory, `lib${name}.${extension}`);
6377
6440
  const dylib = file("dylib");
6378
- const parent = import_node_path26.default.dirname(dylib);
6441
+ const parent = import_node_path28.default.dirname(dylib);
6379
6442
  let present = libraryDirectories.get(parent);
6380
6443
  if (present === void 0) {
6381
- present = import_node_fs25.default.existsSync(parent);
6444
+ present = import_node_fs27.default.existsSync(parent);
6382
6445
  libraryDirectories.set(parent, present);
6383
6446
  }
6384
6447
  if (!present) continue;
6385
- if (import_node_fs25.default.existsSync(dylib) || import_node_fs25.default.existsSync(file("tbd"))) break;
6448
+ if (import_node_fs27.default.existsSync(dylib) || import_node_fs27.default.existsSync(file("tbd"))) break;
6386
6449
  const staticLibrary = file("a");
6387
- if (!import_node_fs25.default.existsSync(staticLibrary)) continue;
6450
+ if (!import_node_fs27.default.existsSync(staticLibrary)) continue;
6388
6451
  archive = staticLibrary;
6389
6452
  break;
6390
6453
  }
@@ -6482,7 +6545,7 @@ function shellAssetCatalogs(script, settings, projectDir) {
6482
6545
  for (const token of tokens) {
6483
6546
  if (token.startsWith("-")) break;
6484
6547
  const file = resolve(token);
6485
- if (file?.endsWith(".xcassets")) catalogs.push(import_node_path26.default.resolve(projectDir, file));
6548
+ if (file?.endsWith(".xcassets")) catalogs.push(import_node_path28.default.resolve(projectDir, file));
6486
6549
  }
6487
6550
  }
6488
6551
  return catalogs;
@@ -6527,14 +6590,14 @@ function shellCopies(script, settings, projectDir) {
6527
6590
  if (operands.length !== 2 || operands.some((operand) => operand.startsWith("-")))
6528
6591
  return [];
6529
6592
  copies.push({
6530
- from: import_node_path26.default.resolve(projectDir, operands[0]),
6531
- to: import_node_path26.default.resolve(projectDir, operands[1])
6593
+ from: import_node_path28.default.resolve(projectDir, operands[0]),
6594
+ to: import_node_path28.default.resolve(projectDir, operands[1])
6532
6595
  });
6533
6596
  }
6534
6597
  return copies;
6535
6598
  }
6536
6599
  function fileListEntries(file, absolute) {
6537
- return import_node_fs25.default.readFileSync(file, "utf8").split(/\r?\n/).map((line) => line.trim()).filter((line) => line !== "" && !line.startsWith("#")).map(absolute);
6600
+ return import_node_fs27.default.readFileSync(file, "utf8").split(/\r?\n/).map((line) => line.trim()).filter((line) => line !== "" && !line.startsWith("#")).map(absolute);
6538
6601
  }
6539
6602
  function targetMembers(ref, settings, options2, settingKeys, projectInputs) {
6540
6603
  const { project, target, id: targetId } = ref;
@@ -6548,17 +6611,17 @@ function targetMembers(ref, settings, options2, settingKeys, projectInputs) {
6548
6611
  const copiedFiles = [];
6549
6612
  let generatedInfoPlist = false;
6550
6613
  const declaredInfoPlist = settings("INFOPLIST_FILE");
6551
- const infoPlistOutput = declaredInfoPlist ? import_node_path26.default.resolve(project.projectDir, declaredInfoPlist) : null;
6614
+ const infoPlistOutput = declaredInfoPlist ? import_node_path28.default.resolve(project.projectDir, declaredInfoPlist) : null;
6552
6615
  const isPreparedOutput = (file) => file === infoPlistOutput || options2.requireSources !== false && file.endsWith(".swift");
6553
6616
  let absentSources = false;
6554
6617
  if (options2.prepareGeneratedSources === true && options2.requireSources !== false)
6555
6618
  project.visitMembers(
6556
6619
  targetId,
6557
- xcodePathResolver(project.objects, project.projectDir, import_node_path26.default.join, settings),
6558
- (file) => isDirectory(file) ? walkFiles(file) : import_node_fs25.default.existsSync(file) ? [file] : [],
6559
- import_node_path26.default.join,
6620
+ xcodePathResolver(project.objects, project.projectDir, import_node_path28.default.join, settings),
6621
+ (file) => isDirectory(file) ? walkFiles(file) : import_node_fs27.default.existsSync(file) ? [file] : [],
6622
+ import_node_path28.default.join,
6560
6623
  (file, kind) => {
6561
- if (kind !== "header" && kind !== "resource" && !import_node_fs25.default.existsSync(file))
6624
+ if (kind !== "header" && kind !== "resource" && !import_node_fs27.default.existsSync(file))
6562
6625
  absentSources = true;
6563
6626
  }
6564
6627
  );
@@ -6577,7 +6640,7 @@ function targetMembers(ref, settings, options2, settingKeys, projectInputs) {
6577
6640
  copiedFiles.push(
6578
6641
  ...shellCopies(str(phase.shellScript) ?? "", settings, project.projectDir)
6579
6642
  );
6580
- const absolute = (raw) => import_node_path26.default.resolve(project.projectDir, expand(raw, settings));
6643
+ const absolute = (raw) => import_node_path28.default.resolve(project.projectDir, expand(raw, settings));
6581
6644
  const inputs = list(phase.inputPaths).map(absolute);
6582
6645
  const outputs = list(phase.outputPaths).map(absolute);
6583
6646
  const fileLists = /* @__PURE__ */ new Map();
@@ -6586,7 +6649,7 @@ function targetMembers(ref, settings, options2, settingKeys, projectInputs) {
6586
6649
  kind === "INPUT" ? phase.inputFileListPaths : phase.outputFileListPaths
6587
6650
  ).map((raw) => {
6588
6651
  const file = absolute(raw);
6589
- if (!import_node_fs25.default.existsSync(file)) {
6652
+ if (!import_node_fs27.default.existsSync(file)) {
6590
6653
  return { file, entries: [] };
6591
6654
  }
6592
6655
  return { file, entries: fileListEntries(file, absolute) };
@@ -6607,14 +6670,14 @@ function targetMembers(ref, settings, options2, settingKeys, projectInputs) {
6607
6670
  ...fileLists.get("OUTPUT").map((item) => item.file)
6608
6671
  ];
6609
6672
  if (allOutputs.some((file) => file.endsWith(".swift") || file === infoPlistOutput)) {
6610
- for (const file of inputFiles) if (import_node_fs25.default.existsSync(file)) projectInputs.add(file);
6673
+ for (const file of inputFiles) if (import_node_fs27.default.existsSync(file)) projectInputs.add(file);
6611
6674
  }
6612
6675
  const undeclaredGenerator = absentSources && beforeSources && allOutputs.length === 0 && str(phase.runOnlyForDeploymentPostprocessing) !== "1";
6613
6676
  if (options2.prepareGeneratedSources === true && (allOutputs.some(isPreparedOutput) || undeclaredGenerator)) {
6614
- const phaseDir = import_node_path26.default.join(settings("TARGET_TEMP_DIR"), `Script-${phaseId}`);
6677
+ const phaseDir = import_node_path28.default.join(settings("TARGET_TEMP_DIR"), `Script-${phaseId}`);
6615
6678
  for (const lists of fileLists.values())
6616
6679
  for (const { file } of lists)
6617
- if (!import_node_fs25.default.existsSync(file))
6680
+ if (!import_node_fs27.default.existsSync(file))
6618
6681
  throw new Error(
6619
6682
  `${targetName}: Run Script "${script}" missing file list ${file}`
6620
6683
  );
@@ -6633,7 +6696,7 @@ function targetMembers(ref, settings, options2, settingKeys, projectInputs) {
6633
6696
  const lists = fileLists.get(kind);
6634
6697
  env[`SCRIPT_${kind}_FILE_LIST_COUNT`] = String(lists.length);
6635
6698
  lists.forEach((_item, index) => {
6636
- env[`SCRIPT_${kind}_FILE_LIST_${index}`] = import_node_path26.default.join(
6699
+ env[`SCRIPT_${kind}_FILE_LIST_${index}`] = import_node_path28.default.join(
6637
6700
  phaseDir,
6638
6701
  `${kind}-${index}.xcfilelist`
6639
6702
  );
@@ -6644,22 +6707,22 @@ function targetMembers(ref, settings, options2, settingKeys, projectInputs) {
6644
6707
  );
6645
6708
  for (const file of inputFiles) {
6646
6709
  signature.update(file);
6647
- if (import_node_fs25.default.existsSync(file)) {
6648
- const stat = import_node_fs25.default.statSync(file);
6710
+ if (import_node_fs27.default.existsSync(file)) {
6711
+ const stat = import_node_fs27.default.statSync(file);
6649
6712
  signature.update(`${stat.mtimeMs}:${stat.ctimeMs}:${stat.size}`);
6650
6713
  } else signature.update("missing");
6651
6714
  }
6652
6715
  const stamp = signature.digest("hex");
6653
6716
  const key = `${project.projectFile}:${targetId}:${phaseId}:${settings("CONFIGURATION")}`;
6654
- if (preparedSourcePhases.get(key) === stamp && allOutputs.every((file) => import_node_fs25.default.existsSync(file)))
6717
+ if (preparedSourcePhases.get(key) === stamp && allOutputs.every((file) => import_node_fs27.default.existsSync(file)))
6655
6718
  continue;
6656
- import_node_fs25.default.mkdirSync(phaseDir, { recursive: true });
6719
+ import_node_fs27.default.mkdirSync(phaseDir, { recursive: true });
6657
6720
  if (process.platform === "linux") {
6658
6721
  const bin = swiftToolchainBin(
6659
6722
  privateSwiftRelease() ?? swiftNativePin().distribution.release
6660
6723
  );
6661
- const startup = import_node_path26.default.join(phaseDir, "peach-tools.sh");
6662
- import_node_fs25.default.writeFileSync(
6724
+ const startup = import_node_path28.default.join(phaseDir, "peach-tools.sh");
6725
+ import_node_fs27.default.writeFileSync(
6663
6726
  startup,
6664
6727
  'if [[ -n "$PEACH_PHASE_BASH_ENV" ]]; then source "$PEACH_PHASE_BASH_ENV"; fi\nexport PATH="$PEACH_PHASE_TOOLCHAIN:$PATH"\n'
6665
6728
  );
@@ -6668,15 +6731,15 @@ function targetMembers(ref, settings, options2, settingKeys, projectInputs) {
6668
6731
  env.PEACH_PHASE_TOOLCHAIN = bin;
6669
6732
  env.PEACH_PHASE_BASH_ENV = env.BASH_ENV;
6670
6733
  env.BASH_ENV = startup;
6671
- env.PATH = [bin, env.PATH].filter(Boolean).join(import_node_path26.default.delimiter);
6734
+ env.PATH = [bin, env.PATH].filter(Boolean).join(import_node_path28.default.delimiter);
6672
6735
  }
6673
- import_node_fs25.default.mkdirSync(settings("BUILT_PRODUCTS_DIR"), { recursive: true });
6674
- import_node_fs25.default.mkdirSync(settings("DERIVED_FILE_DIR"), { recursive: true });
6736
+ import_node_fs27.default.mkdirSync(settings("BUILT_PRODUCTS_DIR"), { recursive: true });
6737
+ import_node_fs27.default.mkdirSync(settings("DERIVED_FILE_DIR"), { recursive: true });
6675
6738
  for (const output of allOutputs)
6676
- import_node_fs25.default.mkdirSync(import_node_path26.default.dirname(output), { recursive: true });
6739
+ import_node_fs27.default.mkdirSync(import_node_path28.default.dirname(output), { recursive: true });
6677
6740
  for (const [kind, lists] of fileLists)
6678
6741
  lists.forEach((item, index) => {
6679
- import_node_fs25.default.writeFileSync(
6742
+ import_node_fs27.default.writeFileSync(
6680
6743
  env[`SCRIPT_${kind}_FILE_LIST_${index}`],
6681
6744
  `${item.entries.join("\n")}
6682
6745
  `
@@ -6684,9 +6747,9 @@ function targetMembers(ref, settings, options2, settingKeys, projectInputs) {
6684
6747
  });
6685
6748
  const rawScript = str(phase.shellScript) ?? "";
6686
6749
  if (rawScript.includes("generate-modules-provider")) {
6687
- const preloadPath = import_node_path26.default.join(phaseDir, "expo-scan-timeout.cjs");
6688
- import_node_fs25.default.mkdirSync(phaseDir, { recursive: true });
6689
- import_node_fs25.default.writeFileSync(
6750
+ const preloadPath = import_node_path28.default.join(phaseDir, "expo-scan-timeout.cjs");
6751
+ import_node_fs27.default.mkdirSync(phaseDir, { recursive: true });
6752
+ import_node_fs27.default.writeFileSync(
6690
6753
  preloadPath,
6691
6754
  [
6692
6755
  "const cp = require('node:child_process');",
@@ -6724,7 +6787,7 @@ ${output}`
6724
6787
  );
6725
6788
  }
6726
6789
  const missing = allOutputs.filter(
6727
- (file) => file === infoPlistOutput && !import_node_fs25.default.existsSync(file)
6790
+ (file) => file === infoPlistOutput && !import_node_fs27.default.existsSync(file)
6728
6791
  );
6729
6792
  if (missing.length > 0)
6730
6793
  throw new Error(
@@ -6735,9 +6798,9 @@ ${output}`
6735
6798
  }
6736
6799
  project.visitMembers(
6737
6800
  targetId,
6738
- xcodePathResolver(project.objects, project.projectDir, import_node_path26.default.join, settings),
6739
- (file) => isDirectory(file) ? walkFiles(file) : import_node_fs25.default.existsSync(file) ? [file] : [],
6740
- import_node_path26.default.join,
6801
+ xcodePathResolver(project.objects, project.projectDir, import_node_path28.default.join, settings),
6802
+ (file) => isDirectory(file) ? walkFiles(file) : import_node_fs27.default.existsSync(file) ? [file] : [],
6803
+ import_node_path28.default.join,
6741
6804
  (file, kind, bundleName) => {
6742
6805
  if (kind === "header") {
6743
6806
  headers.add(file);
@@ -6748,9 +6811,9 @@ ${output}`
6748
6811
  if (bundleName) resourceNames[file] = bundleName;
6749
6812
  return;
6750
6813
  }
6751
- if (!import_node_fs25.default.existsSync(file)) {
6814
+ if (!import_node_fs27.default.existsSync(file)) {
6752
6815
  if (options2.requireSources === false) return;
6753
- const script = scriptForOutput.get(import_node_path26.default.normalize(file));
6816
+ const script = scriptForOutput.get(import_node_path28.default.normalize(file));
6754
6817
  throw new Error(
6755
6818
  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}`
6756
6819
  );
@@ -6761,21 +6824,21 @@ ${output}`
6761
6824
  );
6762
6825
  if (options2.prepareGeneratedSources && options2.requireSources !== false) {
6763
6826
  const interfaceFiles = [...resources].filter(
6764
- (file) => /\.(storyboard|xib)$/.test(file) && !file.split(import_node_path26.default.sep).some((part) => part.endsWith(".bundle"))
6827
+ (file) => /\.(storyboard|xib)$/.test(file) && !file.split(import_node_path28.default.sep).some((part) => part.endsWith(".bundle"))
6765
6828
  );
6766
6829
  let launchName = settings("INFOPLIST_KEY_UILaunchStoryboardName");
6767
- if (process.platform !== "darwin" && !launchName && infoPlistOutput && import_node_fs25.default.existsSync(infoPlistOutput)) {
6768
- const info = parsePlist(import_node_fs25.default.readFileSync(infoPlistOutput, "utf8"));
6830
+ if (process.platform !== "darwin" && !launchName && infoPlistOutput && import_node_fs27.default.existsSync(infoPlistOutput)) {
6831
+ const info = parsePlist(import_node_fs27.default.readFileSync(infoPlistOutput, "utf8"));
6769
6832
  const declared = isRecord(info) ? info.UILaunchStoryboardName : void 0;
6770
6833
  if (typeof declared === "string") launchName = expand(declared, settings);
6771
6834
  }
6772
6835
  const interfaceOutputs = /* @__PURE__ */ new Set();
6773
6836
  for (const file of interfaceFiles) {
6774
- const localization = file.split(import_node_path26.default.sep).findLast((part) => part.endsWith(".lproj")) ?? "";
6837
+ const localization = file.split(import_node_path28.default.sep).findLast((part) => part.endsWith(".lproj")) ?? "";
6775
6838
  const isStoryboard = file.endsWith(".storyboard");
6776
6839
  const extension = isStoryboard ? ".storyboardc" : ".nib";
6777
- const name = import_node_path26.default.basename(file, import_node_path26.default.extname(file));
6778
- const output = import_node_path26.default.join(
6840
+ const name = import_node_path28.default.basename(file, import_node_path28.default.extname(file));
6841
+ const output = import_node_path28.default.join(
6779
6842
  settings("DERIVED_FILE_DIR"),
6780
6843
  "InterfaceBuilder",
6781
6844
  localization,
@@ -6794,10 +6857,10 @@ ${output}`
6794
6857
  const inputs = JSON.stringify([
6795
6858
  1,
6796
6859
  args,
6797
- (0, import_node_crypto16.createHash)("sha256").update(import_node_fs25.default.readFileSync(file)).digest("hex")
6860
+ (0, import_node_crypto16.createHash)("sha256").update(import_node_fs27.default.readFileSync(file)).digest("hex")
6798
6861
  ]);
6799
6862
  const developer = settings("DEVELOPER_DIR");
6800
- const cached = import_node_fs25.default.existsSync(output) && import_node_fs25.default.existsSync(stamp) ? import_node_fs25.default.readFileSync(stamp, "utf8").split("\n") : [];
6863
+ const cached = import_node_fs27.default.existsSync(output) && import_node_fs27.default.existsSync(stamp) ? import_node_fs27.default.readFileSync(stamp, "utf8").split("\n") : [];
6801
6864
  projectInputs.add(file);
6802
6865
  resources.delete(file);
6803
6866
  if (cached[0] !== inputs || process.platform === "darwin" && cached[1] !== developer) {
@@ -6807,15 +6870,15 @@ ${output}`
6807
6870
  `${targetName}: Interface Builder compilation requires macOS and Xcode`
6808
6871
  );
6809
6872
  }
6810
- import_node_fs25.default.rmSync(output, { recursive: true, force: true });
6811
- import_node_fs25.default.rmSync(stamp, { force: true });
6812
- import_node_fs25.default.mkdirSync(import_node_path26.default.dirname(output), { recursive: true });
6873
+ import_node_fs27.default.rmSync(output, { recursive: true, force: true });
6874
+ import_node_fs27.default.rmSync(stamp, { force: true });
6875
+ import_node_fs27.default.mkdirSync(import_node_path28.default.dirname(output), { recursive: true });
6813
6876
  (0, import_node_child_process14.execFileSync)("xcrun", ["ibtool", "--compile", output, file, ...args], {
6814
6877
  cwd: project.projectDir,
6815
6878
  stdio: ["ignore", "pipe", "pipe"],
6816
6879
  timeout: runScriptTimeoutMs
6817
6880
  });
6818
- import_node_fs25.default.writeFileSync(stamp, `${inputs}
6881
+ import_node_fs27.default.writeFileSync(stamp, `${inputs}
6819
6882
  ${developer}
6820
6883
  `);
6821
6884
  }
@@ -6857,34 +6920,34 @@ ${developer}
6857
6920
  function commonAncestor(dirs) {
6858
6921
  let common = dirs[0];
6859
6922
  for (const dir of dirs) {
6860
- while (common !== import_node_path26.default.dirname(common) && import_node_path26.default.relative(common, dir).startsWith(".."))
6861
- common = import_node_path26.default.dirname(common);
6923
+ while (common !== import_node_path28.default.dirname(common) && import_node_path28.default.relative(common, dir).startsWith(".."))
6924
+ common = import_node_path28.default.dirname(common);
6862
6925
  }
6863
6926
  return common;
6864
6927
  }
6865
- var isPodsProject = (xcodeproj) => import_node_path26.default.basename(xcodeproj) === "Pods.xcodeproj" && import_node_path26.default.basename(import_node_path26.default.dirname(xcodeproj)) === "Pods";
6928
+ var isPodsProject = (xcodeproj) => import_node_path28.default.basename(xcodeproj) === "Pods.xcodeproj" && import_node_path28.default.basename(import_node_path28.default.dirname(xcodeproj)) === "Pods";
6866
6929
  function installedPodsSandbox(pods) {
6867
- const podfileLock = import_node_path26.default.join(import_node_path26.default.dirname(pods), "Podfile.lock");
6868
- const manifestLock = import_node_path26.default.join(pods, "Manifest.lock");
6869
- if (!import_node_fs25.default.existsSync(podfileLock))
6930
+ const podfileLock = import_node_path28.default.join(import_node_path28.default.dirname(pods), "Podfile.lock");
6931
+ const manifestLock = import_node_path28.default.join(pods, "Manifest.lock");
6932
+ if (!import_node_fs27.default.existsSync(podfileLock))
6870
6933
  throw new Error(
6871
- `${pods} has no ${podfileLock}: run \`pod install\` in ${import_node_path26.default.dirname(pods)}`
6934
+ `${pods} has no ${podfileLock}: run \`pod install\` in ${import_node_path28.default.dirname(pods)}`
6872
6935
  );
6873
- if (!import_node_fs25.default.existsSync(manifestLock) || !import_node_fs25.default.readFileSync(manifestLock).equals(import_node_fs25.default.readFileSync(podfileLock)))
6936
+ if (!import_node_fs27.default.existsSync(manifestLock) || !import_node_fs27.default.readFileSync(manifestLock).equals(import_node_fs27.default.readFileSync(podfileLock)))
6874
6937
  throw new Error(
6875
- `The sandbox is not in sync with the Podfile.lock: ${manifestLock} differs from ${podfileLock}. Run \`pod install\` in ${import_node_path26.default.dirname(pods)}`
6938
+ `The sandbox is not in sync with the Podfile.lock: ${manifestLock} differs from ${podfileLock}. Run \`pod install\` in ${import_node_path28.default.dirname(pods)}`
6876
6939
  );
6877
6940
  const specChecksums = {};
6878
- const lines = import_node_fs25.default.readFileSync(manifestLock, "utf8").split("\n");
6941
+ const lines = import_node_fs27.default.readFileSync(manifestLock, "utf8").split("\n");
6879
6942
  const start = lines.indexOf("SPEC CHECKSUMS:");
6880
6943
  for (const line of start === -1 ? [] : lines.slice(start + 1)) {
6881
6944
  const entry = /^ {2}"?([^":]+)"?: ([0-9a-f]+)$/.exec(line);
6882
6945
  if (!entry) break;
6883
6946
  specChecksums[entry[1]] = entry[2];
6884
6947
  }
6885
- const specs = import_node_path26.default.join(pods, "Local Podspecs");
6886
- const generated = import_node_path26.default.join(pods, POD_GRAPH_SPECIFICATIONS);
6887
- if (import_node_fs25.default.existsSync(generated))
6948
+ const specs = import_node_path28.default.join(pods, "Local Podspecs");
6949
+ const generated = import_node_path28.default.join(pods, POD_GRAPH_SPECIFICATIONS);
6950
+ if (import_node_fs27.default.existsSync(generated))
6888
6951
  return {
6889
6952
  podfileLock,
6890
6953
  manifestLock,
@@ -6892,15 +6955,15 @@ function installedPodsSandbox(pods) {
6892
6955
  localPodspecs: readPodGraphSpecifications(generated),
6893
6956
  specificationFiles: [generated]
6894
6957
  };
6895
- const specificationFiles = isDirectory(specs) ? import_node_fs25.default.readdirSync(specs).filter((name) => name.endsWith(".podspec.json")).sort().map((name) => import_node_path26.default.join(specs, name)) : [];
6958
+ const specificationFiles = isDirectory(specs) ? import_node_fs27.default.readdirSync(specs).filter((name) => name.endsWith(".podspec.json")).sort().map((name) => import_node_path28.default.join(specs, name)) : [];
6896
6959
  return {
6897
6960
  podfileLock,
6898
6961
  manifestLock,
6899
6962
  specChecksums,
6900
6963
  localPodspecs: new Map(
6901
6964
  specificationFiles.map((file) => [
6902
- import_node_path26.default.basename(file, ".podspec.json"),
6903
- import_node_fs25.default.readFileSync(file, "utf8")
6965
+ import_node_path28.default.basename(file, ".podspec.json"),
6966
+ import_node_fs27.default.readFileSync(file, "utf8")
6904
6967
  ])
6905
6968
  ),
6906
6969
  specificationFiles
@@ -6915,14 +6978,14 @@ function workspaceProjects(xcodeprojOrWorkspace, installedPods = false) {
6915
6978
  if (!xcodeProjectFile(xcodeproj)) {
6916
6979
  if (installedPods && isPodsProject(xcodeproj))
6917
6980
  throw new Error(
6918
- `${import_node_path26.default.basename(xcodeprojOrWorkspace)} builds ${xcodeproj}, which is not installed: run \`pod install\` in ${import_node_path26.default.dirname(import_node_path26.default.dirname(xcodeproj))}`
6981
+ `${import_node_path28.default.basename(xcodeprojOrWorkspace)} builds ${xcodeproj}, which is not installed: run \`pod install\` in ${import_node_path28.default.dirname(import_node_path28.default.dirname(xcodeproj))}`
6919
6982
  );
6920
6983
  return;
6921
6984
  }
6922
- const key = import_node_fs25.default.realpathSync.native(xcodeproj);
6923
- if (projectAt.has(key) || !installedPods && key.split(import_node_path26.default.sep).includes("Pods"))
6985
+ const key = import_node_fs27.default.realpathSync.native(xcodeproj);
6986
+ if (projectAt.has(key) || !installedPods && key.split(import_node_path28.default.sep).includes("Pods"))
6924
6987
  return;
6925
- if (isPodsProject(key)) cocoapods = installedPodsSandbox(import_node_path26.default.dirname(key));
6988
+ if (isPodsProject(key)) cocoapods = installedPodsSandbox(import_node_path28.default.dirname(key));
6926
6989
  const project = loadProject(key);
6927
6990
  projectAt.set(key, project);
6928
6991
  projects.push(project);
@@ -6938,12 +7001,12 @@ function workspaceProjects(xcodeprojOrWorkspace, installedPods = false) {
6938
7001
  for (const reference of listed)
6939
7002
  if (reference.endsWith(".xcodeproj")) addProject(reference);
6940
7003
  if (projects.length === 0) {
6941
- throw new Error(`${import_node_path26.default.basename(xcodeprojOrWorkspace)} lists no Xcode project`);
7004
+ throw new Error(`${import_node_path28.default.basename(xcodeprojOrWorkspace)} lists no Xcode project`);
6942
7005
  }
6943
- const podfile = import_node_path26.default.join(import_node_path26.default.dirname(xcodeprojOrWorkspace), "Podfile");
6944
- if (installedPods && !cocoapods && import_node_fs25.default.existsSync(podfile))
7006
+ const podfile = import_node_path28.default.join(import_node_path28.default.dirname(xcodeprojOrWorkspace), "Podfile");
7007
+ if (installedPods && !cocoapods && import_node_fs27.default.existsSync(podfile))
6945
7008
  throw new Error(
6946
- `${podfile} is not installed into ${import_node_path26.default.basename(xcodeprojOrWorkspace)}: run \`pod install\` in ${import_node_path26.default.dirname(podfile)} and open the workspace it writes`
7009
+ `${podfile} is not installed into ${import_node_path28.default.basename(xcodeprojOrWorkspace)}: run \`pod install\` in ${import_node_path28.default.dirname(podfile)} and open the workspace it writes`
6947
7010
  );
6948
7011
  return { listed, projects, projectAt, cocoapods };
6949
7012
  }
@@ -6981,7 +7044,7 @@ function listXcodeAppTargets(xcodeprojOrWorkspace, options2 = {}) {
6981
7044
  return workspaceProjects(xcodeprojOrWorkspace).projects.flatMap(projectTargets).filter((ref) => isIosAppTarget(ref, options2)).map((ref) => str(ref.target.name) ?? ref.id);
6982
7045
  }
6983
7046
  function defaultXcodeAppTarget(xcodeproj) {
6984
- const project = loadProject(import_node_fs25.default.realpathSync.native(xcodeproj));
7047
+ const project = loadProject(import_node_fs27.default.realpathSync.native(xcodeproj));
6985
7048
  for (const [id, target] of Object.entries(project.objects)) {
6986
7049
  if (!isDict(target) || target.isa !== "PBXNativeTarget") continue;
6987
7050
  if (isIosAppTarget({ project, id, target }, { requireSources: false }))
@@ -6989,30 +7052,30 @@ function defaultXcodeAppTarget(xcodeproj) {
6989
7052
  }
6990
7053
  }
6991
7054
  function readXcodeScheme(xcodeprojOrWorkspace, scheme) {
6992
- const container = import_node_fs25.default.realpathSync.native(xcodeprojOrWorkspace);
7055
+ const container = import_node_fs27.default.realpathSync.native(xcodeprojOrWorkspace);
6993
7056
  const { projects } = workspaceProjects(container);
6994
7057
  const containers = [
6995
7058
  .../* @__PURE__ */ new Set([container, ...projects.map((project2) => project2.xcodeproj)])
6996
7059
  ];
6997
7060
  const found = containers.flatMap(
6998
7061
  (dir) => [
6999
- import_node_path26.default.join(dir, "xcshareddata"),
7000
- ...isDirectory(import_node_path26.default.join(dir, "xcuserdata")) ? import_node_fs25.default.readdirSync(import_node_path26.default.join(dir, "xcuserdata")).sort().map((user) => import_node_path26.default.join(dir, "xcuserdata", user)) : []
7062
+ import_node_path28.default.join(dir, "xcshareddata"),
7063
+ ...isDirectory(import_node_path28.default.join(dir, "xcuserdata")) ? import_node_fs27.default.readdirSync(import_node_path28.default.join(dir, "xcuserdata")).sort().map((user) => import_node_path28.default.join(dir, "xcuserdata", user)) : []
7001
7064
  ].map((data) => ({
7002
7065
  dir,
7003
- file: import_node_path26.default.join(data, "xcschemes", `${scheme}.xcscheme`)
7066
+ file: import_node_path28.default.join(data, "xcschemes", `${scheme}.xcscheme`)
7004
7067
  }))
7005
- ).find((candidate) => import_node_fs25.default.existsSync(candidate.file));
7068
+ ).find((candidate) => import_node_fs27.default.existsSync(candidate.file));
7006
7069
  if (!found) {
7007
7070
  const known = containers.flatMap(
7008
- (dir) => import_node_fs25.default.existsSync(import_node_path26.default.join(dir, "xcshareddata", "xcschemes")) ? import_node_fs25.default.readdirSync(import_node_path26.default.join(dir, "xcshareddata", "xcschemes")).filter((name2) => name2.endsWith(".xcscheme")).map((name2) => name2.slice(0, -".xcscheme".length)).sort() : []
7071
+ (dir) => import_node_fs27.default.existsSync(import_node_path28.default.join(dir, "xcshareddata", "xcschemes")) ? import_node_fs27.default.readdirSync(import_node_path28.default.join(dir, "xcshareddata", "xcschemes")).filter((name2) => name2.endsWith(".xcscheme")).map((name2) => name2.slice(0, -".xcscheme".length)).sort() : []
7009
7072
  );
7010
7073
  throw new Error(
7011
- `${import_node_path26.default.basename(container)} has no scheme ${scheme}; it shares ${known.join(", ") || "none"}`
7074
+ `${import_node_path28.default.basename(container)} has no scheme ${scheme}; it shares ${known.join(", ") || "none"}`
7012
7075
  );
7013
7076
  }
7014
7077
  const launch = /<LaunchAction\b([^>]*)>([\s\S]*?)<\/LaunchAction>/.exec(
7015
- import_node_fs25.default.readFileSync(found.file, "utf8")
7078
+ import_node_fs27.default.readFileSync(found.file, "utf8")
7016
7079
  );
7017
7080
  const attribute = (text3, name2) => {
7018
7081
  const value = new RegExp(`\\b${name2}\\s*=\\s*"([^"]*)"`).exec(text3)?.[1];
@@ -7025,12 +7088,12 @@ function readXcodeScheme(xcodeprojOrWorkspace, scheme) {
7025
7088
  if (!configuration || !blueprint || !referenced?.startsWith("container:")) {
7026
7089
  throw new Error(`scheme ${scheme} runs no application target`);
7027
7090
  }
7028
- const projectPath = import_node_path26.default.resolve(
7029
- import_node_path26.default.dirname(found.dir),
7091
+ const projectPath = import_node_path28.default.resolve(
7092
+ import_node_path28.default.dirname(found.dir),
7030
7093
  referenced.slice("container:".length)
7031
7094
  );
7032
7095
  const project = projects.find(
7033
- (candidate) => import_node_fs25.default.existsSync(projectPath) && candidate.xcodeproj === import_node_fs25.default.realpathSync.native(projectPath)
7096
+ (candidate) => import_node_fs27.default.existsSync(projectPath) && candidate.xcodeproj === import_node_fs27.default.realpathSync.native(projectPath)
7034
7097
  );
7035
7098
  const target = project && projectTargets(project).find((ref) => ref.id === blueprint);
7036
7099
  const name = target && str(target.target.name);
@@ -7050,26 +7113,26 @@ function readXcodeScheme(xcodeprojOrWorkspace, scheme) {
7050
7113
  var NativeAppTargetSelectionError = class extends Error {
7051
7114
  };
7052
7115
  function selectIosAppTarget(projectRoot, iosTarget) {
7053
- const nested = import_node_path26.default.join(projectRoot, "ios");
7054
- const iosRoot = import_node_fs25.default.existsSync(nested) ? nested : projectRoot;
7055
- const entries = import_node_fs25.default.readdirSync(iosRoot, { withFileTypes: true });
7116
+ const nested = import_node_path28.default.join(projectRoot, "ios");
7117
+ const iosRoot = import_node_fs27.default.existsSync(nested) ? nested : projectRoot;
7118
+ const entries = import_node_fs27.default.readdirSync(iosRoot, { withFileTypes: true });
7056
7119
  const projects = (entries.some((entry) => entry.isDirectory() && entry.name.endsWith(".xcodeproj")) ? entries.filter((entry) => entry.isDirectory() && entry.name.endsWith(".xcodeproj")).map((entry) => ({
7057
- xcodeproj: import_node_path26.default.join(iosRoot, entry.name),
7120
+ xcodeproj: import_node_path28.default.join(iosRoot, entry.name),
7058
7121
  workspace: null
7059
7122
  })) : entries.filter((entry) => entry.isDirectory() && entry.name.endsWith(".xcworkspace")).flatMap((entry) => {
7060
- const workspace = import_node_path26.default.join(iosRoot, entry.name);
7123
+ const workspace = import_node_path28.default.join(iosRoot, entry.name);
7061
7124
  return workspaceReferences(workspace).map((xcodeproj2) => ({
7062
7125
  xcodeproj: xcodeproj2,
7063
7126
  workspace
7064
7127
  }));
7065
7128
  }).filter(
7066
- ({ xcodeproj: xcodeproj2 }) => xcodeproj2.endsWith(".xcodeproj") && !xcodeproj2.split(import_node_path26.default.sep).includes("Pods") && import_node_fs25.default.existsSync(xcodeproj2)
7129
+ ({ xcodeproj: xcodeproj2 }) => xcodeproj2.endsWith(".xcodeproj") && !xcodeproj2.split(import_node_path28.default.sep).includes("Pods") && import_node_fs27.default.existsSync(xcodeproj2)
7067
7130
  ).filter(
7068
7131
  ({ xcodeproj: xcodeproj2 }) => listXcodeAppTargets(xcodeproj2, { requireSources: false }).length > 0
7069
7132
  )).map(({ xcodeproj: xcodeproj2, workspace }) => ({
7070
7133
  xcodeproj: xcodeproj2,
7071
7134
  workspace,
7072
- name: import_node_path26.default.basename(xcodeproj2)
7135
+ name: import_node_path28.default.basename(xcodeproj2)
7073
7136
  }));
7074
7137
  if (projects.length === 0) return null;
7075
7138
  if (projects.length > 1 && !iosTarget) {
@@ -7108,13 +7171,13 @@ function selectIosAppTarget(projectRoot, iosTarget) {
7108
7171
  if (!target) throw new Error("native app identity has no iOS application target");
7109
7172
  if (!iosTarget) {
7110
7173
  const workspace = xcodeproj.replace(/\.xcodeproj$/, ".xcworkspace");
7111
- const container = import_node_fs25.default.existsSync(workspace) ? workspace : xcodeproj;
7174
+ const container = import_node_fs27.default.existsSync(workspace) ? workspace : xcodeproj;
7112
7175
  const hasScheme = [container, xcodeproj].some((dir) => {
7113
- if (import_node_fs25.default.existsSync(import_node_path26.default.join(dir, "xcshareddata", "xcschemes", `${target}.xcscheme`)))
7176
+ if (import_node_fs27.default.existsSync(import_node_path28.default.join(dir, "xcshareddata", "xcschemes", `${target}.xcscheme`)))
7114
7177
  return true;
7115
- const users = import_node_path26.default.join(dir, "xcuserdata");
7116
- return import_node_fs25.default.existsSync(users) && import_node_fs25.default.readdirSync(users).some(
7117
- (user) => import_node_fs25.default.existsSync(import_node_path26.default.join(users, user, "xcschemes", `${target}.xcscheme`))
7178
+ const users = import_node_path28.default.join(dir, "xcuserdata");
7179
+ return import_node_fs27.default.existsSync(users) && import_node_fs27.default.readdirSync(users).some(
7180
+ (user) => import_node_fs27.default.existsSync(import_node_path28.default.join(users, user, "xcschemes", `${target}.xcscheme`))
7118
7181
  );
7119
7182
  });
7120
7183
  if (hasScheme) target = readXcodeScheme(container, target).target;
@@ -7125,8 +7188,8 @@ function selectIosAppTarget(projectRoot, iosTarget) {
7125
7188
  );
7126
7189
  return { xcodeproj, target, workspace: project.workspace };
7127
7190
  }
7128
- var workspaceResolvedFile = (xcodeprojOrWorkspace) => import_node_path26.default.join(
7129
- xcodeprojOrWorkspace.endsWith(".xcworkspace") ? xcodeprojOrWorkspace : import_node_path26.default.join(xcodeprojOrWorkspace, "project.xcworkspace"),
7191
+ var workspaceResolvedFile = (xcodeprojOrWorkspace) => import_node_path28.default.join(
7192
+ xcodeprojOrWorkspace.endsWith(".xcworkspace") ? xcodeprojOrWorkspace : import_node_path28.default.join(xcodeprojOrWorkspace, "project.xcworkspace"),
7130
7193
  "xcshareddata",
7131
7194
  "swiftpm",
7132
7195
  "Package.resolved"
@@ -7143,7 +7206,7 @@ var SwiftPackageResolutionRequired = class extends Error {
7143
7206
  function readXcodeAppTarget(input, targetName, configurationName, options2 = {}) {
7144
7207
  if (isBazelPackage(input))
7145
7208
  return readBazelAppTarget(input, targetName, configurationName, options2);
7146
- const xcodeprojOrWorkspace = import_node_fs25.default.realpathSync.native(input);
7209
+ const xcodeprojOrWorkspace = import_node_fs27.default.realpathSync.native(input);
7147
7210
  const workspace = xcodeprojOrWorkspace.endsWith(".xcworkspace") ? xcodeprojOrWorkspace : null;
7148
7211
  const { listed, projects, projectAt, cocoapods } = workspaceProjects(
7149
7212
  xcodeprojOrWorkspace,
@@ -7154,7 +7217,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options2 = {})
7154
7217
  (ref) => options2.frameworkMachOType ? ref.target.name === targetName && FRAMEWORK_PRODUCTS.has(str(ref.target.productType) ?? "") : isIosAppTarget(ref, options2) || targetName !== void 0 && ref.target.name === targetName && ref.target.productType === APP_EXTENSION
7155
7218
  );
7156
7219
  const appTargetNames = appTargets.map((ref) => str(ref.target.name) ?? ref.id);
7157
- const container = import_node_path26.default.basename(xcodeprojOrWorkspace);
7220
+ const container = import_node_path28.default.basename(xcodeprojOrWorkspace);
7158
7221
  const named = targetName ? appTargets.filter((ref) => ref.target.name === targetName) : appTargets;
7159
7222
  if (named.length !== 1) {
7160
7223
  if (options2.frameworkMachOType)
@@ -7183,15 +7246,15 @@ function readXcodeAppTarget(input, targetName, configurationName, options2 = {})
7183
7246
  for (const ref of allTargets) {
7184
7247
  const product = ref.project.object(str(ref.target.productReference));
7185
7248
  const file = str(product?.path);
7186
- if (file && !byProduct.has(import_node_path26.default.basename(file)))
7187
- byProduct.set(import_node_path26.default.basename(file), ref);
7249
+ if (file && !byProduct.has(import_node_path28.default.basename(file)))
7250
+ byProduct.set(import_node_path28.default.basename(file), ref);
7188
7251
  }
7189
7252
  const proxied = (project, proxyId) => {
7190
7253
  const proxy = project.object(proxyId);
7191
7254
  if (proxy?.isa !== "PBXContainerItemProxy") return void 0;
7192
7255
  const portal = str(proxy.containerPortal);
7193
7256
  const portalPath = project.resolvePath(portal ?? "");
7194
- const owner = project.object(portal)?.isa === "PBXProject" ? project : portalPath && import_node_fs25.default.existsSync(portalPath) ? projectAt.get(import_node_fs25.default.realpathSync.native(portalPath)) : void 0;
7257
+ const owner = project.object(portal)?.isa === "PBXProject" ? project : portalPath && import_node_fs27.default.existsSync(portalPath) ? projectAt.get(import_node_fs27.default.realpathSync.native(portalPath)) : void 0;
7195
7258
  const remote = str(proxy.remoteGlobalIDString);
7196
7259
  if (!owner || !remote) return void 0;
7197
7260
  return projectTargets(owner).find(
@@ -7208,7 +7271,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options2 = {})
7208
7271
  const buildFile = project.object(buildFileId);
7209
7272
  if (!buildFile || !xcodeBuildFileBuildsForIos(buildFile)) continue;
7210
7273
  const file = project.object(str(buildFile.fileRef));
7211
- const resolved = file?.isa === "PBXReferenceProxy" ? proxied(project, str(file.remoteRef)) : file && str(file.sourceTree) === "BUILT_PRODUCTS_DIR" ? byProduct.get(import_node_path26.default.basename(str(file.path) ?? "")) : void 0;
7274
+ const resolved = file?.isa === "PBXReferenceProxy" ? proxied(project, str(file.remoteRef)) : file && str(file.sourceTree) === "BUILT_PRODUCTS_DIR" ? byProduct.get(import_node_path28.default.basename(str(file.path) ?? "")) : void 0;
7212
7275
  if (resolved)
7213
7276
  found.push({
7214
7277
  target: resolved,
@@ -7289,7 +7352,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options2 = {})
7289
7352
  const otherProduct = productName(other);
7290
7353
  for (const { file, visibility } of headerPhase(other)) {
7291
7354
  if (visibility === "Project") continue;
7292
- const key = `${otherProduct}/${import_node_path26.default.basename(file)}`;
7355
+ const key = `${otherProduct}/${import_node_path28.default.basename(file)}`;
7293
7356
  if (!headers.has(key)) headers.set(key, file);
7294
7357
  }
7295
7358
  }
@@ -7319,8 +7382,8 @@ function readXcodeAppTarget(input, targetName, configurationName, options2 = {})
7319
7382
  ref.project.visitMembers(
7320
7383
  ref.id,
7321
7384
  ref.project.resolvePath,
7322
- (file) => isDirectory(file) ? walkFiles(file) : import_node_fs25.default.existsSync(file) ? [file] : [],
7323
- import_node_path26.default.join,
7385
+ (file) => isDirectory(file) ? walkFiles(file) : import_node_fs27.default.existsSync(file) ? [file] : [],
7386
+ import_node_path28.default.join,
7324
7387
  (file, kind) => {
7325
7388
  if (kind === "header") found.push(file);
7326
7389
  }
@@ -7336,12 +7399,12 @@ function readXcodeAppTarget(input, targetName, configurationName, options2 = {})
7336
7399
  for (const ref of projectTargets(project)) {
7337
7400
  const product = productName(ref);
7338
7401
  for (const { file, visibility } of headerPhase(ref)) {
7339
- const name = import_node_path26.default.basename(file);
7402
+ const name = import_node_path28.default.basename(file);
7340
7403
  if (!entries.has(name))
7341
7404
  entries.set(name, visibility !== "Project" ? `${product}/${name}` : file);
7342
7405
  }
7343
7406
  for (const file of synchronizedHeaders(ref)) {
7344
- const name = import_node_path26.default.basename(file);
7407
+ const name = import_node_path28.default.basename(file);
7345
7408
  if (!entries.has(name)) entries.set(name, file);
7346
7409
  }
7347
7410
  }
@@ -7351,7 +7414,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options2 = {})
7351
7414
  if (folder === null) continue;
7352
7415
  for (const file of walkFiles(folder)) {
7353
7416
  if (!HEADER_FILE.test(file)) continue;
7354
- const name = import_node_path26.default.basename(file);
7417
+ const name = import_node_path28.default.basename(file);
7355
7418
  if (!entries.has(name)) entries.set(name, file);
7356
7419
  }
7357
7420
  }
@@ -7359,18 +7422,18 @@ function readXcodeAppTarget(input, targetName, configurationName, options2 = {})
7359
7422
  for (const id of Object.keys(project.objects)) {
7360
7423
  if (project.object(id)?.isa !== "PBXFileReference") continue;
7361
7424
  const file = project.resolvePath(id);
7362
- if (file && HEADER_FILE.test(file) && !entries.has(import_node_path26.default.basename(file)))
7363
- entries.set(import_node_path26.default.basename(file), file);
7425
+ if (file && HEADER_FILE.test(file) && !entries.has(import_node_path28.default.basename(file)))
7426
+ entries.set(import_node_path28.default.basename(file), file);
7364
7427
  }
7365
7428
  const map = [...entries];
7366
7429
  projectHeaderMaps.set(project, map);
7367
7430
  return map;
7368
7431
  };
7369
7432
  const xcconfigs = /* @__PURE__ */ new Set();
7370
- const buildDir = (project) => import_node_path26.default.join(project.projectDir, ".build/peach-xcode/Build");
7433
+ const buildDir = (project) => import_node_path28.default.join(project.projectDir, ".build/peach-xcode/Build");
7371
7434
  const workspaceBuild = {
7372
- SYMROOT: import_node_path26.default.join(buildDir(app.project), "Products"),
7373
- OBJROOT: import_node_path26.default.join(buildDir(app.project), "Intermediates.noindex")
7435
+ SYMROOT: import_node_path28.default.join(buildDir(app.project), "Products"),
7436
+ OBJROOT: import_node_path28.default.join(buildDir(app.project), "Intermediates.noindex")
7374
7437
  };
7375
7438
  const moduleTarget = (ref) => {
7376
7439
  const name = str(ref.target.name) ?? ref.id;
@@ -7386,16 +7449,16 @@ function readXcodeAppTarget(input, targetName, configurationName, options2 = {})
7386
7449
  TARGET_NAME: name,
7387
7450
  TARGETNAME: "$(TARGET_NAME)",
7388
7451
  PROJECT: "$(PROJECT_NAME)",
7389
- PROJECT_NAME: import_node_path26.default.basename(ref.project.xcodeproj, ".xcodeproj"),
7452
+ PROJECT_NAME: import_node_path28.default.basename(ref.project.xcodeproj, ".xcodeproj"),
7390
7453
  PROJECT_CLASS_PREFIX: isDict(ref.project.project.attributes) ? str(ref.project.project.attributes.CLASSPREFIX) ?? "" : "",
7391
7454
  PROJECT_FILE_PATH: ref.project.xcodeproj,
7392
7455
  SRCROOT: ref.project.projectDir,
7393
7456
  SOURCE_ROOT: ref.project.projectDir,
7394
7457
  PROJECT_DIR: ref.project.projectDir,
7395
- SYMROOT: import_node_path26.default.join(buildDir(ref.project), "Products"),
7458
+ SYMROOT: import_node_path28.default.join(buildDir(ref.project), "Products"),
7396
7459
  BUILD_DIR: "$(SYMROOT)",
7397
7460
  BUILD_ROOT: "$(SYMROOT)",
7398
- OBJROOT: import_node_path26.default.join(buildDir(ref.project), "Intermediates.noindex"),
7461
+ OBJROOT: import_node_path28.default.join(buildDir(ref.project), "Intermediates.noindex"),
7399
7462
  CONFIGURATION_BUILD_DIR: "$(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)",
7400
7463
  BUILT_PRODUCTS_DIR: "$(CONFIGURATION_BUILD_DIR)",
7401
7464
  TARGET_BUILD_DIR: "$(CONFIGURATION_BUILD_DIR)",
@@ -7444,7 +7507,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options2 = {})
7444
7507
  xcconfigs
7445
7508
  );
7446
7509
  const searchRules = recursiveSearchRules(settings2);
7447
- const absolute = (file) => import_node_path26.default.resolve(ref.project.projectDir, file);
7510
+ const absolute = (file) => import_node_path28.default.resolve(ref.project.projectDir, file);
7448
7511
  const framework = FRAMEWORK_PRODUCTS.has(str(ref.target.productType) ?? "");
7449
7512
  const product = settings2("PRODUCT_NAME");
7450
7513
  const moduleName = applyOperator(settings2("PRODUCT_MODULE_NAME"), "c99extidentifier");
@@ -7475,7 +7538,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options2 = {})
7475
7538
  `${name}: Swift compatibility header phase has no Swift producer sources`
7476
7539
  );
7477
7540
  const building = options2.prepareGeneratedSources && options2.requireSources !== false;
7478
- const versioning = building && allSources.length > 0 && settings2("VERSIONING_SYSTEM") === "apple-generic" ? import_node_path26.default.join(settings2("DERIVED_FILE_DIR"), `${product}_vers.c`) : null;
7541
+ const versioning = building && allSources.length > 0 && settings2("VERSIONING_SYSTEM") === "apple-generic" ? import_node_path28.default.join(settings2("DERIVED_FILE_DIR"), `${product}_vers.c`) : null;
7479
7542
  if (versioning) {
7480
7543
  const version = settings2("CURRENT_PROJECT_VERSION");
7481
7544
  const custom = [
@@ -7488,7 +7551,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options2 = {})
7488
7551
  ].filter((key) => settings2(key));
7489
7552
  if (custom.length)
7490
7553
  throw new Error(
7491
- `${name}: Xcode generates ${import_node_path26.default.basename(versioning)} with ${custom.join(", ")}; peach does not model VERSION_INFO_* overrides`
7554
+ `${name}: Xcode generates ${import_node_path28.default.basename(versioning)} with ${custom.join(", ")}; peach does not model VERSION_INFO_* overrides`
7492
7555
  );
7493
7556
  const symbol = product.replace(/^[^A-Za-z_]/, "_").replace(/[^A-Za-z0-9_]/g, "_");
7494
7557
  const [major, minor] = version.split(".");
@@ -7501,9 +7564,9 @@ function readXcodeAppTarget(input, targetName, configurationName, options2 = {})
7501
7564
  ` const double ${symbol}VersionNumber __attribute__ ((used)) = (double)${number};`,
7502
7565
  ""
7503
7566
  ].join("\n");
7504
- if (!import_node_fs25.default.existsSync(versioning) || import_node_fs25.default.readFileSync(versioning, "utf8") !== unit) {
7505
- import_node_fs25.default.mkdirSync(import_node_path26.default.dirname(versioning), { recursive: true });
7506
- import_node_fs25.default.writeFileSync(versioning, unit);
7567
+ if (!import_node_fs27.default.existsSync(versioning) || import_node_fs27.default.readFileSync(versioning, "utf8") !== unit) {
7568
+ import_node_fs27.default.mkdirSync(import_node_path28.default.dirname(versioning), { recursive: true });
7569
+ import_node_fs27.default.writeFileSync(versioning, unit);
7507
7570
  }
7508
7571
  allSources.push(versioning);
7509
7572
  }
@@ -7522,7 +7585,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options2 = {})
7522
7585
  const headerFiles = headerPhase(ref);
7523
7586
  const ownHeaders = /* @__PURE__ */ new Map();
7524
7587
  for (const { file, visibility } of headerFiles) {
7525
- const name2 = import_node_path26.default.basename(file);
7588
+ const name2 = import_node_path28.default.basename(file);
7526
7589
  const published = visibility !== "Project";
7527
7590
  if (!ownHeaders.has(name2))
7528
7591
  ownHeaders.set(name2, published ? `${product}/${name2}` : file);
@@ -7530,35 +7593,35 @@ function readXcodeAppTarget(input, targetName, configurationName, options2 = {})
7530
7593
  ownHeaders.set(`${product}/${name2}`, file);
7531
7594
  }
7532
7595
  for (const file of synchronizedHeaders(ref)) {
7533
- const name2 = import_node_path26.default.basename(file);
7596
+ const name2 = import_node_path28.default.basename(file);
7534
7597
  if (ownHeaders.has(name2)) continue;
7535
7598
  ownHeaders.set(name2, file);
7536
7599
  const qualified = `${product}/${name2}`;
7537
7600
  if (!ownHeaders.has(qualified)) ownHeaders.set(qualified, file);
7538
7601
  }
7539
7602
  const nonFrameworkHeaders = nonFrameworkHeadersOf(ref.project);
7540
- const wrapper = import_node_path26.default.join(settings2("BUILT_PRODUCTS_DIR"), `${product}.framework`);
7541
- const publicHeaders = import_node_path26.default.resolve(
7603
+ const wrapper = import_node_path28.default.join(settings2("BUILT_PRODUCTS_DIR"), `${product}.framework`);
7604
+ const publicHeaders = import_node_path28.default.resolve(
7542
7605
  settings2("BUILT_PRODUCTS_DIR"),
7543
- settings2("PUBLIC_HEADERS_FOLDER_PATH") || import_node_path26.default.join(wrapper, "Headers")
7606
+ settings2("PUBLIC_HEADERS_FOLDER_PATH") || import_node_path28.default.join(wrapper, "Headers")
7544
7607
  );
7545
- const privateHeaders = import_node_path26.default.resolve(
7608
+ const privateHeaders = import_node_path28.default.resolve(
7546
7609
  settings2("BUILT_PRODUCTS_DIR"),
7547
- settings2("PRIVATE_HEADERS_FOLDER_PATH") || import_node_path26.default.join(wrapper, "PrivateHeaders")
7610
+ settings2("PRIVATE_HEADERS_FOLDER_PATH") || import_node_path28.default.join(wrapper, "PrivateHeaders")
7548
7611
  );
7549
7612
  const moduleMap = (settings2("DEFINES_MODULE") === "YES" || !framework) && settings2("MODULEMAP_FILE") ? absolute(settings2("MODULEMAP_FILE")) : null;
7550
- const frameworkUmbrella = !compatibility && framework && members.sources.length > 0 && moduleMap ? import_node_path26.default.join(import_node_path26.default.dirname(moduleMap), `${moduleName}-umbrella.h`) : null;
7551
- const frameworkCompatibility = frameworkUmbrella && moduleMap && import_node_fs25.default.existsSync(moduleMap) && import_node_fs25.default.existsSync(frameworkUmbrella) ? {
7613
+ const frameworkUmbrella = !compatibility && framework && members.sources.length > 0 && moduleMap ? import_node_path28.default.join(import_node_path28.default.dirname(moduleMap), `${moduleName}-umbrella.h`) : null;
7614
+ const frameworkCompatibility = frameworkUmbrella && moduleMap && import_node_fs27.default.existsSync(moduleMap) && import_node_fs27.default.existsSync(frameworkUmbrella) ? {
7552
7615
  framework: true,
7553
7616
  moduleMap,
7554
7617
  umbrella: frameworkUmbrella,
7555
- outputModuleMap: import_node_path26.default.join(wrapper, "Modules", "module.modulemap"),
7556
- outputUmbrella: import_node_path26.default.join(
7618
+ outputModuleMap: import_node_path28.default.join(wrapper, "Modules", "module.modulemap"),
7619
+ outputUmbrella: import_node_path28.default.join(
7557
7620
  wrapper,
7558
7621
  "Headers",
7559
- import_node_path26.default.basename(frameworkUmbrella)
7622
+ import_node_path28.default.basename(frameworkUmbrella)
7560
7623
  ),
7561
- outputHeader: import_node_path26.default.join(
7624
+ outputHeader: import_node_path28.default.join(
7562
7625
  wrapper,
7563
7626
  "Headers",
7564
7627
  settings2("SWIFT_OBJC_INTERFACE_HEADER_NAME") || `${moduleName}-Swift.h`
@@ -7572,10 +7635,10 @@ function readXcodeAppTarget(input, targetName, configurationName, options2 = {})
7572
7635
  outputUmbrella: compatibility.outputUmbrella,
7573
7636
  outputHeader: compatibility.outputHeader
7574
7637
  } : frameworkCompatibility;
7575
- const podHeaders = !framework && isPodsProject(ref.project.xcodeproj) && moduleMap && import_node_path26.default.relative(import_node_path26.default.join(ref.project.projectDir, "Headers", "Public"), moduleMap).split(import_node_path26.default.sep)[0] !== ".." && import_node_fs25.default.existsSync(moduleMap) ? import_node_fs25.default.readdirSync(import_node_path26.default.dirname(moduleMap)).flatMap((entry) => {
7638
+ const podHeaders = !framework && isPodsProject(ref.project.xcodeproj) && moduleMap && import_node_path28.default.relative(import_node_path28.default.join(ref.project.projectDir, "Headers", "Public"), moduleMap).split(import_node_path28.default.sep)[0] !== ".." && import_node_fs27.default.existsSync(moduleMap) ? import_node_fs27.default.readdirSync(import_node_path28.default.dirname(moduleMap)).flatMap((entry) => {
7576
7639
  if (!/\.(h|hh|hpp|hxx|modulemap)$/.test(entry)) return [];
7577
- const file = import_node_path26.default.join(import_node_path26.default.dirname(moduleMap), entry);
7578
- return import_node_fs25.default.existsSync(file) ? [file] : [];
7640
+ const file = import_node_path28.default.join(import_node_path28.default.dirname(moduleMap), entry);
7641
+ return import_node_fs27.default.existsSync(file) ? [file] : [];
7579
7642
  }) : [];
7580
7643
  const fileFlags = {};
7581
7644
  for (const phaseId of list(ref.target.buildPhases)) {
@@ -7661,15 +7724,15 @@ function readXcodeAppTarget(input, targetName, configurationName, options2 = {})
7661
7724
  // xcode searches its products' include directory before
7662
7725
  // HEADER_SEARCH_PATHS and the target's derived sources after.
7663
7726
  headerSearchPaths: [
7664
- import_node_path26.default.join(settings2("BUILT_PRODUCTS_DIR"), "include"),
7727
+ import_node_path28.default.join(settings2("BUILT_PRODUCTS_DIR"), "include"),
7665
7728
  ...settingList(settings2("HEADER_SEARCH_PATHS")).flatMap(
7666
7729
  (raw) => expandSearchPath(absolute(raw), searchRules)
7667
7730
  ),
7668
- import_node_path26.default.join(
7731
+ import_node_path28.default.join(
7669
7732
  `${settings2("DERIVED_FILE_DIR")}-normal`,
7670
7733
  settings2("CURRENT_ARCH")
7671
7734
  ),
7672
- import_node_path26.default.join(settings2("DERIVED_FILE_DIR"), settings2("CURRENT_ARCH")),
7735
+ import_node_path28.default.join(settings2("DERIVED_FILE_DIR"), settings2("CURRENT_ARCH")),
7673
7736
  settings2("DERIVED_FILE_DIR")
7674
7737
  ],
7675
7738
  userHeaderSearchPaths: settingList(
@@ -7719,9 +7782,9 @@ function readXcodeAppTarget(input, targetName, configurationName, options2 = {})
7719
7782
  ...headerFiles.flatMap(
7720
7783
  ({ file, visibility }) => visibility === "Project" ? [] : [
7721
7784
  [
7722
- import_node_path26.default.join(
7785
+ import_node_path28.default.join(
7723
7786
  visibility === "Public" ? publicHeaders : privateHeaders,
7724
- import_node_path26.default.basename(file)
7787
+ import_node_path28.default.basename(file)
7725
7788
  ),
7726
7789
  file
7727
7790
  ]
@@ -7743,17 +7806,17 @@ function readXcodeAppTarget(input, targetName, configurationName, options2 = {})
7743
7806
  );
7744
7807
  return file && HEADER_FILE.test(file) ? [
7745
7808
  [
7746
- import_node_path26.default.resolve(
7809
+ import_node_path28.default.resolve(
7747
7810
  settings2("BUILT_PRODUCTS_DIR"),
7748
7811
  destination,
7749
- import_node_path26.default.basename(file)
7812
+ import_node_path28.default.basename(file)
7750
7813
  ),
7751
7814
  file
7752
7815
  ]
7753
7816
  ] : [];
7754
7817
  });
7755
7818
  }),
7756
- ...moduleMap ? [[import_node_path26.default.join(wrapper, "Modules", "module.modulemap"), moduleMap]] : []
7819
+ ...moduleMap ? [[import_node_path28.default.join(wrapper, "Modules", "module.modulemap"), moduleMap]] : []
7757
7820
  ]) : Object.fromEntries([
7758
7821
  ...podHeaders.map((file) => [file, file]),
7759
7822
  ...moduleMap ? [[moduleMap, moduleMap]] : []
@@ -7764,6 +7827,49 @@ function readXcodeAppTarget(input, targetName, configurationName, options2 = {})
7764
7827
  };
7765
7828
  };
7766
7829
  const builtTargets = order.map((ref) => ({ ref, ...moduleTarget(ref) }));
7830
+ const xcframeworkCopies = builtTargets.flatMap(
7831
+ ({ ref, settings: settings2 }) => list(ref.target.buildPhases).flatMap((phaseId) => {
7832
+ const phase = ref.project.object(phaseId);
7833
+ if (phase?.isa !== "PBXShellScriptBuildPhase" || str(phase.name) !== "[CP] Copy XCFrameworks")
7834
+ return [];
7835
+ const absolute = (raw) => import_node_path28.default.resolve(ref.project.projectDir, expand(raw, settings2));
7836
+ const files = (paths, lists) => [
7837
+ ...list(paths).map(absolute),
7838
+ ...list(lists).flatMap((raw) => {
7839
+ const file = absolute(raw);
7840
+ if (!import_node_fs27.default.existsSync(file)) return [];
7841
+ xcconfigs.add(file);
7842
+ return fileListEntries(file, absolute);
7843
+ })
7844
+ ];
7845
+ const destinations = new Set(
7846
+ files(phase.outputPaths, phase.outputFileListPaths).map(
7847
+ (file) => import_node_path28.default.dirname(file)
7848
+ )
7849
+ );
7850
+ const slices = files(phase.inputPaths, phase.inputFileListPaths).flatMap(
7851
+ (file) => file.endsWith(".xcframework") && import_node_fs27.default.existsSync(file) ? [simulatorNativeLibrary(file)?.slice ?? []].flat() : []
7852
+ );
7853
+ return destinations.size === 1 && slices.length > 0 ? [{ destination: [...destinations][0], slices }] : [];
7854
+ })
7855
+ );
7856
+ const copiedSearchPath = (directory) => {
7857
+ for (const { destination, slices } of xcframeworkCopies) {
7858
+ const rest = relativeInside(destination, directory);
7859
+ if (rest === null) continue;
7860
+ const found = slices.map((slice) => import_node_path28.default.join(slice, rest)).filter((candidate) => isDirectory(candidate));
7861
+ if (found.length) return found;
7862
+ }
7863
+ return [directory];
7864
+ };
7865
+ if (xcframeworkCopies.length)
7866
+ for (const { module: module3 } of builtTargets) {
7867
+ const objc = module3.objc;
7868
+ if (!objc) continue;
7869
+ objc.headerSearchPaths = objc.headerSearchPaths.flatMap(copiedSearchPath);
7870
+ objc.userHeaderSearchPaths = objc.userHeaderSearchPaths.flatMap(copiedSearchPath);
7871
+ objc.frameworkSearchPaths = objc.frameworkSearchPaths.flatMap(copiedSearchPath);
7872
+ }
7767
7873
  for (const { ref, module: module3, settings: settings2 } of builtTargets)
7768
7874
  module3.targetDependencies = [
7769
7875
  .../* @__PURE__ */ new Set([
@@ -7792,7 +7898,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options2 = {})
7792
7898
  const generate = settings2("GENERATE_INFOPLIST_FILE") === "YES";
7793
7899
  if (!FRAMEWORK_PRODUCTS.has(str(ref.target.productType) ?? "") || !plistSetting && !generate || module3.generatedInfoPlist && !options2.prepareGeneratedSources)
7794
7900
  return { ref, framework: module3 };
7795
- const file = plistSetting ? import_node_path26.default.resolve(ref.project.projectDir, plistSetting) : null;
7901
+ const file = plistSetting ? import_node_path28.default.resolve(ref.project.projectDir, plistSetting) : null;
7796
7902
  if (file) xcconfigs.add(file);
7797
7903
  const info2 = processedInfoPlist(module3.name, file, productSettings2, keys);
7798
7904
  if (generate) {
@@ -7808,7 +7914,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options2 = {})
7808
7914
  });
7809
7915
  const frameworks = frameworkTargets.map(({ framework }) => framework);
7810
7916
  const podSourceDirs = builtTargets.slice(0, -1).flatMap(
7811
- ({ ref, module: module3 }) => isPodsProject(ref.project.xcodeproj) ? [...module3.allSources, ...module3.objc?.headers ?? []].map((file) => import_node_path26.default.dirname(file)).filter((dir) => import_node_fs25.default.existsSync(dir)) : []
7917
+ ({ ref, module: module3 }) => isPodsProject(ref.project.xcodeproj) ? [...module3.allSources, ...module3.objc?.headers ?? []].map((file) => import_node_path28.default.dirname(file)).filter((dir) => import_node_fs27.default.existsSync(dir)) : []
7812
7918
  );
7813
7919
  const resourceProducts = [];
7814
7920
  const bundleTargets = builtTargets.filter(
@@ -7819,7 +7925,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options2 = {})
7819
7925
  const phase = owner.ref.project.object(phaseId);
7820
7926
  if (phase?.isa !== "PBXShellScriptBuildPhase" || str(phase.name) !== "[CP] Copy Pods Resources")
7821
7927
  continue;
7822
- const absolute = (raw) => import_node_path26.default.resolve(owner.ref.project.projectDir, expand(raw, owner.settings));
7928
+ const absolute = (raw) => import_node_path28.default.resolve(owner.ref.project.projectDir, expand(raw, owner.settings));
7823
7929
  const entries = (paths) => paths.flatMap((raw) => {
7824
7930
  const file = absolute(raw);
7825
7931
  xcconfigs.add(file);
@@ -7835,7 +7941,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options2 = {})
7835
7941
  ].filter((file) => file.endsWith(".bundle"));
7836
7942
  if (inputs.length !== outputs.length)
7837
7943
  throw new Error(`${owner.module.name}: resource bundle copy lists differ`);
7838
- const destinationRoot = import_node_path26.default.join(
7944
+ const destinationRoot = import_node_path28.default.join(
7839
7945
  owner.settings("TARGET_BUILD_DIR"),
7840
7946
  owner.settings("UNLOCALIZED_RESOURCES_FOLDER_PATH")
7841
7947
  );
@@ -7844,24 +7950,24 @@ function readXcodeAppTarget(input, targetName, configurationName, options2 = {})
7844
7950
  const file = str(
7845
7951
  target.ref.project.object(str(target.ref.target.productReference))?.path
7846
7952
  );
7847
- return file && import_node_path26.default.join(target.settings("TARGET_BUILD_DIR"), file) === input2;
7953
+ return file && import_node_path28.default.join(target.settings("TARGET_BUILD_DIR"), file) === input2;
7848
7954
  });
7849
7955
  if (!product && !isDirectory(input2))
7850
7956
  throw new Error(
7851
7957
  `${owner.module.name}: resource bundle input has no selected producer: ${input2}`
7852
7958
  );
7853
- const destination = import_node_path26.default.relative(destinationRoot, outputs[index]);
7854
- if (destination === ".." || destination.startsWith(`..${import_node_path26.default.sep}`) || import_node_path26.default.isAbsolute(destination) || import_node_path26.default.basename(input2) !== import_node_path26.default.basename(destination))
7959
+ const destination = import_node_path28.default.relative(destinationRoot, outputs[index]);
7960
+ if (destination === ".." || destination.startsWith(`..${import_node_path28.default.sep}`) || import_node_path28.default.isAbsolute(destination) || import_node_path28.default.basename(input2) !== import_node_path28.default.basename(destination))
7855
7961
  throw new Error(
7856
7962
  `${owner.module.name}: invalid resource bundle copy destination`
7857
7963
  );
7858
- const infoFile = product ? import_node_path26.default.resolve(
7964
+ const infoFile = product ? import_node_path28.default.resolve(
7859
7965
  product.ref.project.projectDir,
7860
7966
  product.settings("INFOPLIST_FILE")
7861
7967
  ) : null;
7862
7968
  if (infoFile) xcconfigs.add(infoFile);
7863
7969
  const prefix = owner.ref === app ? "" : `Frameworks/${owner.module.moduleName}.framework/`;
7864
- const bundlePath = prefix + destination.split(import_node_path26.default.sep).join("/");
7970
+ const bundlePath = prefix + destination.split(import_node_path28.default.sep).join("/");
7865
7971
  if (resourceProducts.some((resource) => resource.path === bundlePath))
7866
7972
  throw new Error(
7867
7973
  `${owner.module.name}: duplicate resource bundle destination ${bundlePath}`
@@ -7872,20 +7978,20 @@ function readXcodeAppTarget(input, targetName, configurationName, options2 = {})
7872
7978
  resources: product.module.resources,
7873
7979
  infoPlist: buildPlist(
7874
7980
  expandValue(
7875
- parsePlist(import_node_fs25.default.readFileSync(infoFile, "utf8")),
7981
+ parsePlist(import_node_fs27.default.readFileSync(infoFile, "utf8")),
7876
7982
  product.productSettings
7877
7983
  )
7878
7984
  )
7879
7985
  } : {
7880
- resources: import_node_fs25.default.readdirSync(input2, { recursive: true, withFileTypes: true }).filter((entry) => entry.isFile()).map((entry) => import_node_path26.default.join(entry.parentPath, entry.name)).sort(),
7986
+ resources: import_node_fs27.default.readdirSync(input2, { recursive: true, withFileTypes: true }).filter((entry) => entry.isFile()).map((entry) => import_node_path28.default.join(entry.parentPath, entry.name)).sort(),
7881
7987
  sourceRoot: input2
7882
7988
  }
7883
7989
  });
7884
7990
  }
7885
7991
  }
7886
7992
  }
7887
- const infoPlistFile = settings("INFOPLIST_FILE") ? import_node_path26.default.resolve(app.project.projectDir, settings("INFOPLIST_FILE")) : null;
7888
- const entitlementsFile = settings("CODE_SIGN_ENTITLEMENTS") ? import_node_path26.default.resolve(app.project.projectDir, settings("CODE_SIGN_ENTITLEMENTS")) : null;
7993
+ const infoPlistFile = settings("INFOPLIST_FILE") ? import_node_path28.default.resolve(app.project.projectDir, settings("INFOPLIST_FILE")) : null;
7994
+ const entitlementsFile = settings("CODE_SIGN_ENTITLEMENTS") ? import_node_path28.default.resolve(app.project.projectDir, settings("CODE_SIGN_ENTITLEMENTS")) : null;
7889
7995
  const infoPlistPending = module2.generatedInfoPlist && !options2.prepareGeneratedSources;
7890
7996
  const info = processedInfoPlist(
7891
7997
  module2.name,
@@ -7894,7 +8000,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options2 = {})
7894
8000
  settingKeys
7895
8001
  );
7896
8002
  const bundleIdentifier = productSettings("PRODUCT_BUNDLE_IDENTIFIER") || (typeof info.CFBundleIdentifier === "string" ? info.CFBundleIdentifier : "");
7897
- const entitlements = entitlementsFile ? parsePlist(import_node_fs25.default.readFileSync(entitlementsFile, "utf8")) : void 0;
8003
+ const entitlements = entitlementsFile ? parsePlist(import_node_fs27.default.readFileSync(entitlementsFile, "utf8")) : void 0;
7898
8004
  const keychainAccessGroups = entitlementsFile ? readKeychainAccessGroups(
7899
8005
  entitlements,
7900
8006
  (value) => expand(value, (key) => {
@@ -7932,7 +8038,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options2 = {})
7932
8038
  };
7933
8039
  }
7934
8040
  const localPackageDirs = [
7935
- ...listed.filter((reference) => import_node_fs25.default.existsSync(import_node_path26.default.join(reference, "Package.swift"))),
8041
+ ...listed.filter((reference) => import_node_fs27.default.existsSync(import_node_path28.default.join(reference, "Package.swift"))),
7936
8042
  ...projects.flatMap(
7937
8043
  (project) => Object.entries(project.objects).flatMap(([id, entry]) => {
7938
8044
  if (!isDict(entry)) return [];
@@ -7942,19 +8048,19 @@ function readXcodeAppTarget(input, targetName, configurationName, options2 = {})
7942
8048
  const packages = [];
7943
8049
  while (pending.length > 0) {
7944
8050
  const dir = pending.pop();
7945
- if (import_node_fs25.default.existsSync(import_node_path26.default.join(dir, "Package.swift"))) {
8051
+ if (import_node_fs27.default.existsSync(import_node_path28.default.join(dir, "Package.swift"))) {
7946
8052
  packages.push(dir);
7947
8053
  continue;
7948
8054
  }
7949
8055
  if (!isDirectory(dir)) continue;
7950
- for (const child of import_node_fs25.default.readdirSync(dir, { withFileTypes: true }))
8056
+ for (const child of import_node_fs27.default.readdirSync(dir, { withFileTypes: true }))
7951
8057
  if (child.isDirectory() && !child.name.startsWith("."))
7952
- pending.push(import_node_path26.default.join(dir, child.name));
8058
+ pending.push(import_node_path28.default.join(dir, child.name));
7953
8059
  }
7954
8060
  return packages;
7955
8061
  }
7956
- const candidate = entry.isa === "XCLocalSwiftPackageReference" ? import_node_path26.default.resolve(project.projectDir, str(entry.relativePath) ?? "") : entry.isa === "PBXFileReference" ? project.resolvePath(id) : null;
7957
- return candidate && import_node_fs25.default.existsSync(import_node_path26.default.join(candidate, "Package.swift")) ? [candidate] : [];
8062
+ const candidate = entry.isa === "XCLocalSwiftPackageReference" ? import_node_path28.default.resolve(project.projectDir, str(entry.relativePath) ?? "") : entry.isa === "PBXFileReference" ? project.resolvePath(id) : null;
8063
+ return candidate && import_node_fs27.default.existsSync(import_node_path28.default.join(candidate, "Package.swift")) ? [candidate] : [];
7958
8064
  })
7959
8065
  )
7960
8066
  ];
@@ -7984,7 +8090,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options2 = {})
7984
8090
  if ((flag === "-framework" || flag === "-weak_framework") && name)
7985
8091
  sdkFrameworks.add(name);
7986
8092
  });
7987
- const absolute = (raw) => import_node_path26.default.resolve(ref.project.projectDir, expand(raw, settings2));
8093
+ const absolute = (raw) => import_node_path28.default.resolve(ref.project.projectDir, expand(raw, settings2));
7988
8094
  const requested = options2.nativeModules;
7989
8095
  const includeBinary = (name, dir) => {
7990
8096
  if (!requested || nativeTargets.has(ref) || requested.includes(name) || dir.endsWith(".xcframework") && localSwiftBinaryModules(dir).some((module3) => requested.includes(module3)))
@@ -7996,14 +8102,14 @@ function readXcodeAppTarget(input, targetName, configurationName, options2 = {})
7996
8102
  for (const directory of expandSearchPath(absolute(raw), searchRules)) {
7997
8103
  if (frameworkSearchDirectories.has(directory)) continue;
7998
8104
  frameworkSearchDirectories.add(directory);
7999
- if (!import_node_fs25.default.statSync(directory, { throwIfNoEntry: false })?.isDirectory() || /\.sdk\/(?:System|Developer)\/Library\/Frameworks\/?$/.test(directory))
8105
+ if (!import_node_fs27.default.statSync(directory, { throwIfNoEntry: false })?.isDirectory() || /\.sdk\/(?:System|Developer)\/Library\/Frameworks\/?$/.test(directory))
8000
8106
  continue;
8001
- for (const entry of import_node_fs25.default.readdirSync(directory, { withFileTypes: true })) {
8107
+ for (const entry of import_node_fs27.default.readdirSync(directory, { withFileTypes: true })) {
8002
8108
  const name = /^(.+)\.framework$/.exec(entry.name)?.[1];
8003
8109
  if (!name || byProduct.has(entry.name) || searchedFrameworks.has(name))
8004
8110
  continue;
8005
- const file = import_node_path26.default.join(directory, entry.name);
8006
- if (import_node_fs25.default.statSync(file, { throwIfNoEntry: false })?.isDirectory())
8111
+ const file = import_node_path28.default.join(directory, entry.name);
8112
+ if (import_node_fs27.default.statSync(file, { throwIfNoEntry: false })?.isDirectory())
8007
8113
  searchedFrameworks.set(name, file);
8008
8114
  }
8009
8115
  }
@@ -8011,9 +8117,9 @@ function readXcodeAppTarget(input, targetName, configurationName, options2 = {})
8011
8117
  }
8012
8118
  for (const raw of settingList(settings2("SWIFT_INCLUDE_PATHS"))) {
8013
8119
  const dir = absolute(raw);
8014
- const modulemap = import_node_path26.default.join(dir, "module.modulemap");
8015
- if (!import_node_fs25.default.existsSync(modulemap)) continue;
8016
- const name = moduleMapName(import_node_fs25.default.readFileSync(modulemap, "utf8"));
8120
+ const modulemap = import_node_path28.default.join(dir, "module.modulemap");
8121
+ if (!import_node_fs27.default.existsSync(modulemap)) continue;
8122
+ const name = moduleMapName(import_node_fs27.default.readFileSync(modulemap, "utf8"));
8017
8123
  if (name && !binaryFrameworks.has(name)) includeBinary(name, dir);
8018
8124
  }
8019
8125
  for (const phaseId of list(ref.target.buildPhases)) {
@@ -8022,7 +8128,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options2 = {})
8022
8128
  const inputs = list(phase.inputPaths).map(absolute);
8023
8129
  for (const raw of list(phase.inputFileListPaths)) {
8024
8130
  const file = absolute(raw);
8025
- if (!import_node_fs25.default.existsSync(file)) continue;
8131
+ if (!import_node_fs27.default.existsSync(file)) continue;
8026
8132
  xcconfigs.add(file);
8027
8133
  inputs.push(...fileListEntries(file, absolute));
8028
8134
  }
@@ -8087,7 +8193,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options2 = {})
8087
8193
  ...productAttributes.get(dependencyId)?.length ? { attributes: productAttributes.get(dependencyId) } : {},
8088
8194
  source: reference?.isa === "XCRemoteSwiftPackageReference" ? { kind: "remote", url: str(reference.repositoryURL) ?? "" } : reference?.isa === "XCLocalSwiftPackageReference" ? {
8089
8195
  kind: "local",
8090
- dir: import_node_path26.default.resolve(
8196
+ dir: import_node_path28.default.resolve(
8091
8197
  project.projectDir,
8092
8198
  str(reference.relativePath) ?? ""
8093
8199
  )
@@ -8121,14 +8227,14 @@ function readXcodeAppTarget(input, targetName, configurationName, options2 = {})
8121
8227
  continue;
8122
8228
  }
8123
8229
  if (tree === "BUILT_PRODUCTS_DIR" || tree === "DEVELOPER_DIR" || // a target in the workspace builds it, so it exists only after that build
8124
- byProduct.has(import_node_path26.default.basename(rawPath)))
8230
+ byProduct.has(import_node_path28.default.basename(rawPath)))
8125
8231
  continue;
8126
8232
  const resolved = fileId ? project.resolvePath(fileId) : null;
8127
- if (fileId && resolved !== null && !import_node_fs25.default.existsSync(resolved)) {
8128
- const parts = resolved.split(import_node_path26.default.sep);
8233
+ if (fileId && resolved !== null && !import_node_fs27.default.existsSync(resolved)) {
8234
+ const parts = resolved.split(import_node_path28.default.sep);
8129
8235
  const pods = parts.lastIndexOf("Pods");
8130
- const sandbox = parts.slice(0, pods + 1).join(import_node_path26.default.sep);
8131
- if (!options2.installedPods && options2.requireSources === false && pods > 0 && import_node_fs25.default.existsSync(import_node_path26.default.join(import_node_path26.default.dirname(sandbox), "Podfile")))
8236
+ const sandbox = parts.slice(0, pods + 1).join(import_node_path28.default.sep);
8237
+ if (!options2.installedPods && options2.requireSources === false && pods > 0 && import_node_fs27.default.existsSync(import_node_path28.default.join(import_node_path28.default.dirname(sandbox), "Podfile")))
8132
8238
  continue;
8133
8239
  if (!ios_sdk_frameworks_default.frameworks.includes(name))
8134
8240
  throw new Error(
@@ -8156,7 +8262,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options2 = {})
8156
8262
  ({ product }) => !options2.nativeModules || nativeTargets.has(built.ref) || options2.nativeModules.includes(product)
8157
8263
  );
8158
8264
  const resolvedFile = workspaceResolvedFile(xcodeprojOrWorkspace);
8159
- let packageResolved = import_node_fs25.default.existsSync(resolvedFile) ? [import_node_fs25.default.realpathSync.native(resolvedFile)] : [...new Set(localPackageDirs.map((dir) => import_node_path26.default.join(dir, "Package.resolved")))].filter((file) => import_node_fs25.default.existsSync(file)).map((file) => import_node_fs25.default.realpathSync.native(file)).sort();
8265
+ let packageResolved = import_node_fs27.default.existsSync(resolvedFile) ? [import_node_fs27.default.realpathSync.native(resolvedFile)] : [...new Set(localPackageDirs.map((dir) => import_node_path28.default.join(dir, "Package.resolved")))].filter((file) => import_node_fs27.default.existsSync(file)).map((file) => import_node_fs27.default.realpathSync.native(file)).sort();
8160
8266
  if (packageResolved.length === 0) {
8161
8267
  const requirements = remotePackageRequirements(projects);
8162
8268
  if (requirements.length > 0) {
@@ -8212,19 +8318,19 @@ function readXcodeAppTarget(input, targetName, configurationName, options2 = {})
8212
8318
  } : {},
8213
8319
  rootDir: commonAncestor(
8214
8320
  [
8215
- workspace ? import_node_path26.default.dirname(workspace) : app.project.projectDir,
8321
+ workspace ? import_node_path28.default.dirname(workspace) : app.project.projectDir,
8216
8322
  ...used.map((project) => project.projectDir),
8217
8323
  ...localPackageDirs,
8218
8324
  ...linkedProducts.flatMap(
8219
- ({ source }) => source.kind === "local" && import_node_fs25.default.existsSync(source.dir) ? [source.dir] : []
8325
+ ({ source }) => source.kind === "local" && import_node_fs27.default.existsSync(source.dir) ? [source.dir] : []
8220
8326
  ),
8221
8327
  ...new Set(podSourceDirs),
8222
8328
  // a target's own files may sit beside the project, such as an asset
8223
8329
  // catalog one folder up, and xcode builds them from there
8224
8330
  ...new Set(
8225
- [...module2.allSources, ...module2.resources].filter((file) => import_node_fs25.default.existsSync(file)).map((file) => import_node_path26.default.dirname(file))
8331
+ [...module2.allSources, ...module2.resources].filter((file) => import_node_fs27.default.existsSync(file)).map((file) => import_node_path28.default.dirname(file))
8226
8332
  )
8227
- ].map((dir) => import_node_fs25.default.realpathSync.native(dir))
8333
+ ].map((dir) => import_node_fs27.default.realpathSync.native(dir))
8228
8334
  ),
8229
8335
  projectFiles: [
8230
8336
  .../* @__PURE__ */ new Set([
@@ -8250,7 +8356,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options2 = {})
8250
8356
  resourceProducts,
8251
8357
  linkedProducts,
8252
8358
  localPackageDirs: [
8253
- ...new Set(localPackageDirs.map((dir) => import_node_fs25.default.realpathSync.native(dir)))
8359
+ ...new Set(localPackageDirs.map((dir) => import_node_fs27.default.realpathSync.native(dir)))
8254
8360
  ].sort(),
8255
8361
  binaryFrameworks: [...binaryFrameworks].map(([name, file]) => ({ name, path: file })).sort((left, right) => left.name.localeCompare(right.name)),
8256
8362
  sdkFrameworks: [...sdkFrameworks].filter(
@@ -8355,7 +8461,7 @@ function readNativeAppIdentityFromXcodeTarget(app, parseInfoPlist = parsePlistSo
8355
8461
  const rtcAppGroupIdentifier = nonEmptyString2(dictionary2.RTCAppGroupIdentifier);
8356
8462
  const screenShareExtensionBundleId = typeof dictionary2.ScreenShareExtensionBundleId === "string" ? dictionary2.ScreenShareExtensionBundleId : void 0;
8357
8463
  const rootModuleName = readRootModuleName(
8358
- app.allSources.filter((file) => /Delegate\.(?:swift|mm|m)$/.test(file) && import_node_fs26.default.existsSync(file)).map((file) => import_node_fs26.default.readFileSync(file, "utf8"))
8464
+ app.allSources.filter((file) => /Delegate\.(?:swift|mm|m)$/.test(file) && import_node_fs28.default.existsSync(file)).map((file) => import_node_fs28.default.readFileSync(file, "utf8"))
8359
8465
  );
8360
8466
  const identity2 = {
8361
8467
  ...app.keychainAccessGroups === void 0 ? {} : { keychainAccessGroups: app.keychainAccessGroups },
@@ -8379,7 +8485,7 @@ function readNativeAppIdentityFromXcodeTarget(app, parseInfoPlist = parsePlistSo
8379
8485
  googleSignIn: readGoogleSignInConfiguration(
8380
8486
  dictionary2,
8381
8487
  Object.fromEntries(
8382
- app.resources.filter((file) => file.endsWith(".plist")).map((file) => [file, parsePlistBytes(import_node_fs26.default.readFileSync(file), parseInfoPlist)])
8488
+ app.resources.filter((file) => file.endsWith(".plist")).map((file) => [file, parsePlistBytes(import_node_fs28.default.readFileSync(file), parseInfoPlist)])
8383
8489
  )
8384
8490
  ),
8385
8491
  supportedInterfaceOrientations,
@@ -8389,11 +8495,11 @@ function readNativeAppIdentityFromXcodeTarget(app, parseInfoPlist = parsePlistSo
8389
8495
  bundleIcons: resolveNativeBundleIcons(icons, catalogAlternateNames, (value) => value),
8390
8496
  appIconArtwork: resolveNativeAppIconArtwork(
8391
8497
  app.resources,
8392
- (file) => import_node_fs26.default.readFileSync(file, "utf8"),
8498
+ (file) => import_node_fs28.default.readFileSync(file, "utf8"),
8393
8499
  (file) => {
8394
- const extension = import_node_path27.default.extname(file).toLowerCase();
8500
+ const extension = import_node_path29.default.extname(file).toLowerCase();
8395
8501
  const contentType = extension === ".jpg" || extension === ".jpeg" ? "image/jpeg" : extension === ".webp" ? "image/webp" : "image/png";
8396
- return `data:${contentType};base64,${import_node_fs26.default.readFileSync(file).toString("base64")}`;
8502
+ return `data:${contentType};base64,${import_node_fs28.default.readFileSync(file).toString("base64")}`;
8397
8503
  },
8398
8504
  icons,
8399
8505
  app.appIconName,
@@ -8430,11 +8536,11 @@ function readNativeAppIdentityFromSources(projectRoot, platform, parseInfoPlist,
8430
8536
  const read = selectNativeAppIdentityReader(platform, {
8431
8537
  android: () => null,
8432
8538
  ios: () => {
8433
- const nested = import_node_path27.default.join(projectRoot, "ios");
8434
- const iosRoot = import_node_fs26.default.existsSync(nested) ? nested : projectRoot;
8539
+ const nested = import_node_path29.default.join(projectRoot, "ios");
8540
+ const iosRoot = import_node_fs28.default.existsSync(nested) ? nested : projectRoot;
8435
8541
  const prefix = iosRoot === nested ? "ios/" : "";
8436
8542
  const files = {};
8437
- for (const entry of import_node_fs26.default.readdirSync(iosRoot, { withFileTypes: true })) {
8543
+ for (const entry of import_node_fs28.default.readdirSync(iosRoot, { withFileTypes: true })) {
8438
8544
  if (entry.name === "Pods") continue;
8439
8545
  if (entry.isDirectory()) {
8440
8546
  const names = entry.name.endsWith(".xcodeproj") ? ["project.pbxproj"] : [
@@ -8442,17 +8548,17 @@ function readNativeAppIdentityFromSources(projectRoot, platform, parseInfoPlist,
8442
8548
  "AppDelegate.swift",
8443
8549
  "AppDelegate.mm",
8444
8550
  "AppDelegate.m",
8445
- ...import_node_fs26.default.readdirSync(import_node_path27.default.join(iosRoot, entry.name)).filter((name) => name.endsWith(".entitlements"))
8551
+ ...import_node_fs28.default.readdirSync(import_node_path29.default.join(iosRoot, entry.name)).filter((name) => name.endsWith(".entitlements"))
8446
8552
  ];
8447
8553
  for (const name of names) {
8448
8554
  const relative2 = `${prefix}${entry.name}/${name}`;
8449
- const file = import_node_path27.default.join(projectRoot, relative2);
8450
- if (import_node_fs26.default.existsSync(file)) files[relative2] = import_node_fs26.default.readFileSync(file, "utf8");
8555
+ const file = import_node_path29.default.join(projectRoot, relative2);
8556
+ if (import_node_fs28.default.existsSync(file)) files[relative2] = import_node_fs28.default.readFileSync(file, "utf8");
8451
8557
  }
8452
8558
  } else if (/AppDelegate\.(?:swift|mm|m)$|\.entitlements$/.test(entry.name)) {
8453
8559
  const relative2 = `${prefix}${entry.name}`;
8454
- const file = import_node_path27.default.join(projectRoot, relative2);
8455
- if (import_node_fs26.default.existsSync(file)) files[relative2] = import_node_fs26.default.readFileSync(file, "utf8");
8560
+ const file = import_node_path29.default.join(projectRoot, relative2);
8561
+ if (import_node_fs28.default.existsSync(file)) files[relative2] = import_node_fs28.default.readFileSync(file, "utf8");
8456
8562
  }
8457
8563
  }
8458
8564
  const identity2 = extractNativeAppIdentityFromFiles(
@@ -8469,41 +8575,41 @@ function readNativeAppIdentityFromSources(projectRoot, platform, parseInfoPlist,
8469
8575
  function readAndroidNativeAppIdentity(projectRoot, androidMergedManifest) {
8470
8576
  const files = {};
8471
8577
  if (androidMergedManifest) {
8472
- const file = import_node_path27.default.resolve(projectRoot, androidMergedManifest);
8473
- if (!import_node_fs26.default.existsSync(file)) return null;
8474
- files[androidMergedManifest] = import_node_fs26.default.readFileSync(file, "utf8");
8578
+ const file = import_node_path29.default.resolve(projectRoot, androidMergedManifest);
8579
+ if (!import_node_fs28.default.existsSync(file)) return null;
8580
+ files[androidMergedManifest] = import_node_fs28.default.readFileSync(file, "utf8");
8475
8581
  } else {
8476
- const androidRoot = import_node_path27.default.join(projectRoot, "android");
8477
- if (!import_node_fs26.default.existsSync(androidRoot)) return null;
8582
+ const androidRoot = import_node_path29.default.join(projectRoot, "android");
8583
+ if (!import_node_fs28.default.existsSync(androidRoot)) return null;
8478
8584
  const collect = (directory) => {
8479
- for (const entry of import_node_fs26.default.readdirSync(directory, { withFileTypes: true })) {
8480
- const file = import_node_path27.default.join(directory, entry.name);
8585
+ for (const entry of import_node_fs28.default.readdirSync(directory, { withFileTypes: true })) {
8586
+ const file = import_node_path29.default.join(directory, entry.name);
8481
8587
  if (entry.isDirectory()) collect(file);
8482
8588
  else if (entry.isFile() && entry.name === "AndroidManifest.xml")
8483
- files[import_node_path27.default.relative(projectRoot, file).split(import_node_path27.default.sep).join("/")] = import_node_fs26.default.readFileSync(file, "utf8");
8589
+ files[import_node_path29.default.relative(projectRoot, file).split(import_node_path29.default.sep).join("/")] = import_node_fs28.default.readFileSync(file, "utf8");
8484
8590
  }
8485
8591
  };
8486
- for (const module2 of import_node_fs26.default.readdirSync(androidRoot, { withFileTypes: true })) {
8592
+ for (const module2 of import_node_fs28.default.readdirSync(androidRoot, { withFileTypes: true })) {
8487
8593
  if (!module2.isDirectory()) continue;
8488
- const outputs = import_node_path27.default.join(
8594
+ const outputs = import_node_path29.default.join(
8489
8595
  androidRoot,
8490
8596
  module2.name,
8491
8597
  "build/intermediates/merged_manifests"
8492
8598
  );
8493
- if (import_node_fs26.default.existsSync(outputs)) collect(outputs);
8599
+ if (import_node_fs28.default.existsSync(outputs)) collect(outputs);
8494
8600
  }
8495
8601
  }
8496
8602
  for (const manifest of Object.keys(files)) {
8497
8603
  const resourceDirectory = androidMergedResourceValuesDirectory(manifest);
8498
8604
  if (!resourceDirectory) continue;
8499
- const absolute = import_node_path27.default.resolve(projectRoot, resourceDirectory);
8500
- if (!import_node_fs26.default.existsSync(absolute)) continue;
8501
- for (const entry of import_node_fs26.default.readdirSync(absolute, { withFileTypes: true })) {
8605
+ const absolute = import_node_path29.default.resolve(projectRoot, resourceDirectory);
8606
+ if (!import_node_fs28.default.existsSync(absolute)) continue;
8607
+ for (const entry of import_node_fs28.default.readdirSync(absolute, { withFileTypes: true })) {
8502
8608
  if (!entry.isDirectory() || !/^values(?:-|$)/.test(entry.name)) continue;
8503
- for (const resource of import_node_fs26.default.readdirSync(import_node_path27.default.join(absolute, entry.name))) {
8609
+ for (const resource of import_node_fs28.default.readdirSync(import_node_path29.default.join(absolute, entry.name))) {
8504
8610
  if (!resource.endsWith(".xml")) continue;
8505
8611
  const file = `${resourceDirectory}/${entry.name}/${resource}`;
8506
- files[file] = import_node_fs26.default.readFileSync(import_node_path27.default.resolve(projectRoot, file), "utf8");
8612
+ files[file] = import_node_fs28.default.readFileSync(import_node_path29.default.resolve(projectRoot, file), "utf8");
8507
8613
  }
8508
8614
  }
8509
8615
  }
@@ -8524,7 +8630,7 @@ function readIosNativeAppIdentity(projectRoot, parseInfoPlist, iosTarget, enviro
8524
8630
  parseInfoPlist,
8525
8631
  buildSdkVersion
8526
8632
  );
8527
- const projectManifestPath = import_node_path27.default.join(projectRoot, "package.json");
8633
+ const projectManifestPath = import_node_path29.default.join(projectRoot, "package.json");
8528
8634
  const projectRequire = (0, import_node_module2.createRequire)(projectManifestPath);
8529
8635
  let reanimatedManifestPath;
8530
8636
  try {
@@ -8538,22 +8644,22 @@ function readIosNativeAppIdentity(projectRoot, parseInfoPlist, iosTarget, enviro
8538
8644
  throw error;
8539
8645
  }
8540
8646
  const installedManifest = JSON.parse(
8541
- import_node_fs26.default.readFileSync(reanimatedManifestPath, "utf8")
8647
+ import_node_fs28.default.readFileSync(reanimatedManifestPath, "utf8")
8542
8648
  );
8543
8649
  const installedVersion = isRecord(installedManifest) ? nonEmptyString2(installedManifest.version) : void 0;
8544
8650
  if (!installedVersion) throw new Error("Reanimated package version is malformed");
8545
8651
  if (Number.parseInt(installedVersion, 10) < 4) return identity2;
8546
8652
  const defaults = JSON.parse(
8547
- import_node_fs26.default.readFileSync(
8548
- import_node_path27.default.join(
8549
- import_node_path27.default.dirname(reanimatedManifestPath),
8653
+ import_node_fs28.default.readFileSync(
8654
+ import_node_path29.default.join(
8655
+ import_node_path29.default.dirname(reanimatedManifestPath),
8550
8656
  "src/featureFlags/staticFlags.json"
8551
8657
  ),
8552
8658
  "utf8"
8553
8659
  )
8554
8660
  );
8555
8661
  if (!isRecord(defaults)) throw new Error("Reanimated static flags are malformed");
8556
- const manifest = JSON.parse(import_node_fs26.default.readFileSync(projectManifestPath, "utf8"));
8662
+ const manifest = JSON.parse(import_node_fs28.default.readFileSync(projectManifestPath, "utf8"));
8557
8663
  const reanimated = isRecord(manifest) ? manifest.reanimated : void 0;
8558
8664
  const overrides = isRecord(reanimated) ? reanimated.staticFeatureFlags : void 0;
8559
8665
  if (overrides !== void 0 && !isRecord(overrides)) {