peachsim 0.1.2411 → 0.1.2412

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 (89) 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 +1 -1
  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 +1 -1
  11. package/dist-lib/bridge-contract.cjs +1 -1
  12. package/dist-lib/bridge-contract.mjs +1 -1
  13. package/dist-lib/bundle-channel.cjs +119 -22
  14. package/dist-lib/capture-contract.cjs +1 -1
  15. package/dist-lib/capture-contract.mjs +1 -1
  16. package/dist-lib/cloud-contract.cjs +1 -1
  17. package/dist-lib/cloud-contract.mjs +1 -1
  18. package/dist-lib/cloud-test-args.cjs +1 -1
  19. package/dist-lib/cloud-test-args.mjs +1 -1
  20. package/dist-lib/cloud.cjs +1 -1
  21. package/dist-lib/cloud.mjs +1 -1
  22. package/dist-lib/config.cjs +1 -1
  23. package/dist-lib/config.mjs +1 -1
  24. package/dist-lib/detox/index.cjs +1 -1
  25. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  26. package/dist-lib/expo-swift-bundle.cjs +118 -21
  27. package/dist-lib/expo-swift-metadata.cjs +1 -1
  28. package/dist-lib/expo-swift-metadata.mjs +1 -1
  29. package/dist-lib/home-paths.cjs +1 -1
  30. package/dist-lib/host/bridge-host.cjs +119 -22
  31. package/dist-lib/host/fetch-proxy-handler.cjs +3 -3
  32. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  33. package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
  34. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  35. package/dist-lib/host/websocket-proxy.cjs +1 -1
  36. package/dist-lib/index.cjs +9 -5
  37. package/dist-lib/jump-to-source-babel.cjs +1 -1
  38. package/dist-lib/jump-to-source-native.cjs +1 -1
  39. package/dist-lib/kotlin-host.cjs +1 -1
  40. package/dist-lib/menu.cjs +1 -1
  41. package/dist-lib/menu.mjs +1 -1
  42. package/dist-lib/metro-fingerprint-registry.cjs +1 -1
  43. package/dist-lib/metro-fingerprint-registry.mjs +1 -1
  44. package/dist-lib/metro-production-bundle.cjs +1 -1
  45. package/dist-lib/metro-production-bundle.mjs +1 -1
  46. package/dist-lib/metro.cjs +9 -5
  47. package/dist-lib/native-app-identity-project.cjs +8 -4
  48. package/dist-lib/native-app-identity-project.mjs +8 -4
  49. package/dist-lib/native-app-identity.cjs +1 -1
  50. package/dist-lib/native-app-identity.mjs +1 -1
  51. package/dist-lib/native-firebase-metadata.cjs +1 -1
  52. package/dist-lib/native-firebase-metadata.mjs +1 -1
  53. package/dist-lib/pdfium-raster.cjs +1 -1
  54. package/dist-lib/pdfium-raster.mjs +1 -1
  55. package/dist-lib/plist.cjs +1 -1
  56. package/dist-lib/plist.mjs +1 -1
  57. package/dist-lib/profiles.cjs +1 -1
  58. package/dist-lib/public-brand.cjs +1 -1
  59. package/dist-lib/public-origins-lib-esm.json +24 -24
  60. package/dist-lib/public-origins-lib.json +53 -53
  61. package/dist-lib/react-native-host-modules.cjs +1 -1
  62. package/dist-lib/react-native-host-modules.mjs +1 -1
  63. package/dist-lib/reap-browser.cjs +1 -1
  64. package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
  65. package/dist-lib/sdk.cjs +1 -1
  66. package/dist-lib/sdk.mjs +1 -1
  67. package/dist-lib/skills.cjs +119 -22
  68. package/dist-lib/swift-compile.cjs +1 -1
  69. package/dist-lib/swift-compile.mjs +1 -1
  70. package/dist-lib/swift-package.cjs +1 -1
  71. package/dist-lib/swift-package.mjs +1 -1
  72. package/dist-lib/swift-submit.cjs +1 -1
  73. package/dist-lib/swift-submit.mjs +1 -1
  74. package/dist-lib/swift-toolchain.cjs +1 -1
  75. package/dist-lib/swift.cjs +1 -1
  76. package/dist-lib/vite-swift.cjs +116 -19
  77. package/dist-lib/vite.cjs +3 -3
  78. package/dist-lib/worklet-executable.cjs +1 -1
  79. package/dist-lib/worklet-executable.mjs +1 -1
  80. package/dist-types/packages/peach-engine/src/engine/image-loader.d.ts +1 -0
  81. package/dist-types/packages/peach-engine/src/render-worker/compositor-gpu.d.ts +1 -0
  82. package/dist-types/packages/peach-engine/src/render-worker/compositor-protocol.d.ts +4 -0
  83. package/dist-types/packages/peach-engine/src/render-worker/native-widgetContract.d.ts +5 -0
  84. package/package.json +1 -1
  85. package/src/expo-native-workspace.ts +4 -0
  86. package/src/swift-host.ts +82 -15
  87. package/src/swift-objc-compile.ts +5 -0
  88. package/src/swift-packages.ts +46 -0
  89. package/src/xcode-project.ts +17 -7
package/dist-lib/sdk.mjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2411 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2412 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  var __defProp = Object.defineProperty;
3
3
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4
4
  var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2411 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2412 | (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;
@@ -46503,7 +46503,7 @@ var swiftCoverageProvenance;
46503
46503
  var init_provenance = __esm({
46504
46504
  "src/swift-coverage/provenance.ts"() {
46505
46505
  "use strict";
46506
- swiftCoverageProvenance = true ? JSON.parse('{"swift-coverage/indexdump.ts":"0d82d8eeb96bf377f409ea7e33274c341a710c0e071f6b6e17571a23d8d92412","swift-coverage/indexing.ts":"633ccf19eec1f382a8847d0ee1dca42a2792a3c60aafd43622ed5152b09b8272","swift-coverage/types.ts":"bd8fae54ea6c53e110cd8a5d7b57c1d532dd0166e09fdaea63c4f270c3780dd1","swift-coverage/source.ts":"c151758a9f67631bc61473c375df0dc017da6902a34533b2cf4fc4fd7d19b6ee","swift-coverage/package.ts":"1f0068be7461fa7c5a7a891faf318f305cbed2e94c19667ba76627f7e5be260b","swift-coverage/xcode.ts":"65a500b806ce1c3a496de27f2e0ad77287c0f6795c618342c08af647f92af1fa","swift-coverage/xcode-assets.ts":"d98d6294b359528f7733b26db6f80f554782354faa235605f9562be4ad98b8a3","swift-coverage/xcode-asset-symbols.ts":"1b2a67733bc9d139b351466270205452a6172140bc25080d72619e2952c44671","swift-coverage/xcode-bridging.ts":"33184be8c5daf6646aa5a1276a4e15531f1be27b7c26f56550e0fbb1fc678a11","swift-coverage/xcode-packages.ts":"5c83f56357d880243ab485b260d23abd0094583ffa2287dac6e9e7eb18c3673d","swift-coverage/xcode-strings.ts":"f2dd4c7cd8ef77035184b0132909c2fa09fd20ed06b7757c2f1f960bfdde031c","swift-coverage/reader.ts":"da559b67ecd1161dea70c980b5f98f2c55af3550f0714479100fa5e9e813625c","swift-coverage/provenance.ts":"f5039c16e63c6129e22b71203f58982c68cef6e282a4f236b93da28edd39c108","swift-package-manifest.ts":"a19fe4c5e2efe18bbc3ece544ff2c8be660170d63274cccb0ab58e53083050e4","swift-package.ts":"851417572ca9aff699ad368bdc3ff05309b0256e483d40812b9c0beb869d0a5b","swift-source-file.ts":"8becce5e73b76a61d9d202c1ecfb39b1238e9bbf0e77841f1c51c98fa9ac7bd3","swift-toolchain.ts":"dec93d0206df8efbd9f538d1f3e3f6173f6eb022cb9ad6b02271481db7578d77","home-paths.ts":"d1606390f0e8e50f0ff72544eadb3d49dfabf08e004c1218f2998c36fb8995dd","xcode-header-search.ts":"4a775ba92c7b23ce71dd6bb08c188c4bccd6e1ed500cc9fc7850030b945fc8d4","xcode-project.ts":"b0da81ab133ad067978e174c2f62f5a9655dfe6b5639bc4b884f3137a8136144","xcode-target-members.ts":"2f25aaf5a3aa34395983c75935491c06bd68554c47ff1cb06b49c79499c03db0","xcode-json-project.ts":"41990ebbe4b488eef34e74c4608b4b48e5a5b299ba98ca7fbcfdfa0e77be63b6","openstep-plist.ts":"74e6ce1dac80c9c318e0e9f5e3e8cd19a898a8820c36fc160609695bcb59dcd3"}') : swiftCoverageSourceDigests((0, import_node_path.join)(__sootsim_import_meta_dirname, ".."));
46506
+ swiftCoverageProvenance = true ? JSON.parse('{"swift-coverage/indexdump.ts":"0d82d8eeb96bf377f409ea7e33274c341a710c0e071f6b6e17571a23d8d92412","swift-coverage/indexing.ts":"633ccf19eec1f382a8847d0ee1dca42a2792a3c60aafd43622ed5152b09b8272","swift-coverage/types.ts":"bd8fae54ea6c53e110cd8a5d7b57c1d532dd0166e09fdaea63c4f270c3780dd1","swift-coverage/source.ts":"c151758a9f67631bc61473c375df0dc017da6902a34533b2cf4fc4fd7d19b6ee","swift-coverage/package.ts":"1f0068be7461fa7c5a7a891faf318f305cbed2e94c19667ba76627f7e5be260b","swift-coverage/xcode.ts":"65a500b806ce1c3a496de27f2e0ad77287c0f6795c618342c08af647f92af1fa","swift-coverage/xcode-assets.ts":"d98d6294b359528f7733b26db6f80f554782354faa235605f9562be4ad98b8a3","swift-coverage/xcode-asset-symbols.ts":"1b2a67733bc9d139b351466270205452a6172140bc25080d72619e2952c44671","swift-coverage/xcode-bridging.ts":"33184be8c5daf6646aa5a1276a4e15531f1be27b7c26f56550e0fbb1fc678a11","swift-coverage/xcode-packages.ts":"5c83f56357d880243ab485b260d23abd0094583ffa2287dac6e9e7eb18c3673d","swift-coverage/xcode-strings.ts":"f2dd4c7cd8ef77035184b0132909c2fa09fd20ed06b7757c2f1f960bfdde031c","swift-coverage/reader.ts":"da559b67ecd1161dea70c980b5f98f2c55af3550f0714479100fa5e9e813625c","swift-coverage/provenance.ts":"f5039c16e63c6129e22b71203f58982c68cef6e282a4f236b93da28edd39c108","swift-package-manifest.ts":"a19fe4c5e2efe18bbc3ece544ff2c8be660170d63274cccb0ab58e53083050e4","swift-package.ts":"851417572ca9aff699ad368bdc3ff05309b0256e483d40812b9c0beb869d0a5b","swift-source-file.ts":"8becce5e73b76a61d9d202c1ecfb39b1238e9bbf0e77841f1c51c98fa9ac7bd3","swift-toolchain.ts":"dec93d0206df8efbd9f538d1f3e3f6173f6eb022cb9ad6b02271481db7578d77","home-paths.ts":"d1606390f0e8e50f0ff72544eadb3d49dfabf08e004c1218f2998c36fb8995dd","xcode-header-search.ts":"4a775ba92c7b23ce71dd6bb08c188c4bccd6e1ed500cc9fc7850030b945fc8d4","xcode-project.ts":"5e7daa9fabfa1c7f38e7b7e11bb0d4168e26d958b1acdb65e54e06e7de5c6804","xcode-target-members.ts":"2f25aaf5a3aa34395983c75935491c06bd68554c47ff1cb06b49c79499c03db0","xcode-json-project.ts":"41990ebbe4b488eef34e74c4608b4b48e5a5b299ba98ca7fbcfdfa0e77be63b6","openstep-plist.ts":"74e6ce1dac80c9c318e0e9f5e3e8cd19a898a8820c36fc160609695bcb59dcd3"}') : swiftCoverageSourceDigests((0, import_node_path.join)(__sootsim_import_meta_dirname, ".."));
46507
46507
  }
46508
46508
  });
46509
46509
 
@@ -72751,12 +72751,16 @@ function readXcodeAppTarget(input, targetName2, configurationName, options = {})
72751
72751
  );
72752
72752
  const allTargets = projects2.flatMap(projectTargets);
72753
72753
  const appTargets = allTargets.filter(
72754
- (ref) => isIosAppTarget(ref, options) || targetName2 !== void 0 && ref.target.name === targetName2 && ref.target.productType === APP_EXTENSION
72754
+ (ref) => options.frameworkMachOType ? ref.target.name === targetName2 && FRAMEWORK_PRODUCTS.has(str2(ref.target.productType) ?? "") : isIosAppTarget(ref, options) || targetName2 !== void 0 && ref.target.name === targetName2 && ref.target.productType === APP_EXTENSION
72755
72755
  );
72756
72756
  const appTargetNames = appTargets.map((ref) => str2(ref.target.name) ?? ref.id);
72757
72757
  const container = import_node_path63.default.basename(xcodeprojOrWorkspace);
72758
72758
  const named = targetName2 ? appTargets.filter((ref) => ref.target.name === targetName2) : appTargets;
72759
72759
  if (named.length !== 1) {
72760
+ if (options.frameworkMachOType)
72761
+ throw new Error(
72762
+ `${container} must declare one framework target named ${targetName2}`
72763
+ );
72760
72764
  if (appTargets.length === 0)
72761
72765
  throw new Error(
72762
72766
  `${container} has no application targets; open a project or workspace that contains one`
@@ -73019,7 +73023,7 @@ function readXcodeAppTarget(input, targetName2, configurationName, options = {})
73019
73023
  DEVELOPMENT_LANGUAGE: str2(ref.project.project.developmentRegion) ?? "en"
73020
73024
  },
73021
73025
  options,
73022
- workspaceBuild
73026
+ ref === app && options.frameworkMachOType ? { ...workspaceBuild, MACH_O_TYPE: options.frameworkMachOType } : workspaceBuild
73023
73027
  );
73024
73028
  for (const file of read) xcconfigs.add(file);
73025
73029
  const swiftVersion = Number.parseFloat(settings2("SWIFT_VERSION") || "5");
@@ -76168,7 +76172,7 @@ var init_swift_standin_digest = __esm({
76168
76172
  STANDIN_DIGEST_ENTRYPOINTS = ["swift-standins.ts", "swift-objc-compile.ts"];
76169
76173
  SPECIFIER = /from\s*['"]([^'"]+)['"]|import\s*\(\s*['"]([^'"]+)['"]\s*\)/g;
76170
76174
  standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
76171
- STANDIN_SOURCE_DIGEST = true ? "2d765e977c08a74dad452d5ca662fba6baa967ccf18a7456e60717372076300b" : standinSourceDigest();
76175
+ STANDIN_SOURCE_DIGEST = true ? "467738b34c64972f28a4f51bb4a9e09b15d846aaf5143fa94e95cf779eb7bf82" : standinSourceDigest();
76172
76176
  }
76173
76177
  });
76174
76178
 
@@ -76663,7 +76667,7 @@ __export(expo_native_prebuilt_exports, {
76663
76667
  servedExpoSwift: () => servedExpoSwift
76664
76668
  });
76665
76669
  function expoNativeCompilerDigestValue() {
76666
- return true ? "597989454586f59dbc644cd900c03323035076688be5a3fc1f805b114bf5a4f3" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
76670
+ return true ? "d4d0faa36585edc650e4af73f22815b669e67e40bd5df77ec7d25f8d87e65a0f" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
76667
76671
  }
76668
76672
  function readSources(value) {
76669
76673
  const sources = isRecord(value) ? value.sources : null;
@@ -77837,6 +77841,7 @@ function resolveSwiftPackages(options) {
77837
77841
  targets: [],
77838
77842
  nativePackages: [],
77839
77843
  nativeProducts: [],
77844
+ sourceFrameworks: [],
77840
77845
  unavailable: /* @__PURE__ */ new Map(),
77841
77846
  modules: /* @__PURE__ */ new Map(),
77842
77847
  binaries: [],
@@ -77845,6 +77850,7 @@ function resolveSwiftPackages(options) {
77845
77850
  const pins = resolved.length > 0 ? readPins(resolved) : null;
77846
77851
  const checkouts = remoteSwiftCheckouts(rootDir);
77847
77852
  const packages = /* @__PURE__ */ new Map();
77853
+ const sourceFrameworks = /* @__PURE__ */ new Map();
77848
77854
  const packageKey = (source) => import_node_path78.default.isAbsolute(source) ? source : swiftPackageIdentity(source);
77849
77855
  const sourceKey = (source) => packageKey(source.kind === "local" ? import_node_path78.default.resolve(source.dir) : source.url);
77850
77856
  const load2 = (source) => {
@@ -77868,6 +77874,7 @@ function resolveSwiftPackages(options) {
77868
77874
  loaded3 = {
77869
77875
  source: source.url,
77870
77876
  remote: true,
77877
+ revision: pin2.revision,
77871
77878
  manifest: swiftPackageManifest(
77872
77879
  fetchedCheckout(checkouts, identity2, pin2),
77873
77880
  void 0,
@@ -77919,6 +77926,7 @@ function resolveSwiftPackages(options) {
77919
77926
  const targetOutcomes = /* @__PURE__ */ new Map();
77920
77927
  const resolveTarget = (pkg, name3) => {
77921
77928
  const key2 = `${pkg.manifest.dir}\0${name3}`;
77929
+ if (sourceFrameworks.has(key2)) return [];
77922
77930
  if (targetOutcomes.has(key2)) return targetOutcomes.get(key2);
77923
77931
  targetOutcomes.set(key2, []);
77924
77932
  const outcome = (() => {
@@ -78014,6 +78022,18 @@ function resolveSwiftPackages(options) {
78014
78022
  if (!binaryOnly && claimed.has(key2)) return true;
78015
78023
  const target = pkg.manifest.targets.get(name3);
78016
78024
  if (target?.type === "binary") {
78025
+ const recipe2 = target.checksum ? sourceFrameworkRecipes.get(target.checksum) : void 0;
78026
+ if (recipe2 && pkg.revision === recipe2.revision && name3 === recipe2.target) {
78027
+ sourceFrameworks.set(key2, {
78028
+ packageTarget: import_node_path78.default.join(pkg.manifest.dir, "#target", name3),
78029
+ project: import_node_path78.default.join(pkg.manifest.dir, recipe2.project),
78030
+ target: name3,
78031
+ configuration: recipe2.configuration,
78032
+ machOType: recipe2.machOType
78033
+ });
78034
+ providedTargets.delete(name3);
78035
+ return true;
78036
+ }
78017
78037
  const changed = !options.standinTargets?.has(name3) && shippedBinaryDiffers(name3, target.checksum);
78018
78038
  if (changed) providedTargets.delete(name3);
78019
78039
  return changed;
@@ -78058,6 +78078,7 @@ function resolveSwiftPackages(options) {
78058
78078
  for (const pkg of packages.values()) {
78059
78079
  if (typeof pkg === "string") continue;
78060
78080
  for (const [name3, target] of pkg.manifest.targets) {
78081
+ if (sourceFrameworks.has(`${pkg.manifest.dir}\0${name3}`)) continue;
78061
78082
  if (target.type === "test" || target.type === "plugin" || target.type === "macro")
78062
78083
  continue;
78063
78084
  if (target.type === "executable") continue;
@@ -78275,6 +78296,8 @@ function resolveSwiftPackages(options) {
78275
78296
  const id = targetId(pkg, name3);
78276
78297
  if (emitted.has(id)) return id;
78277
78298
  emitted.add(id);
78299
+ const framework = sourceFrameworks.get(`${pkg.manifest.dir}\0${name3}`);
78300
+ if (framework) result.sourceFrameworks.push(framework);
78278
78301
  const target = pkg.manifest.targets.get(name3);
78279
78302
  if (!target) throw new Error(`missing resolved package target ${name3}`);
78280
78303
  const dependencies = target.type === "macro" ? [] : target.dependencies.flatMap((dependency) => {
@@ -78321,7 +78344,7 @@ function resolveSwiftPackages(options) {
78321
78344
  result.nativeProducts.push({ name: name3, packageDir: manifest.dir, source });
78322
78345
  return result;
78323
78346
  }
78324
- var import_node_child_process43, import_node_crypto46, import_node_fs81, import_node_path78, import_promises8, import_node_util11, swiftBinaryOnDisk, SWIFT_PLACEHOLDER_PACKAGES, placeholderPackage, UNSUPPORTED_NATIVE, BINARY, blockers, verified, execFileAsync2, checkoutKey;
78347
+ var import_node_child_process43, import_node_crypto46, import_node_fs81, import_node_path78, import_promises8, import_node_util11, swiftBinaryOnDisk, SWIFT_PLACEHOLDER_PACKAGES, placeholderPackage, sourceFrameworkRecipes, UNSUPPORTED_NATIVE, BINARY, blockers, verified, execFileAsync2, checkoutKey;
78325
78348
  var init_swift_packages = __esm({
78326
78349
  "src/swift-packages.ts"() {
78327
78350
  "use strict";
@@ -78343,6 +78366,18 @@ var init_swift_packages = __esm({
78343
78366
  swiftBinaryOnDisk = (binary2) => binary2.url !== null || import_node_fs81.default.existsSync(binary2.dir);
78344
78367
  SWIFT_PLACEHOLDER_PACKAGES = /* @__PURE__ */ new Map();
78345
78368
  placeholderPackage = (pkg) => SWIFT_PLACEHOLDER_PACKAGES.get(swiftPackageIdentity(pkg.manifest.dir));
78369
+ sourceFrameworkRecipes = /* @__PURE__ */ new Map([
78370
+ [
78371
+ "438de2c5afb7dde20b640af35dd841961aa2aa4d2719e40c92d48bd2aa5dca56",
78372
+ {
78373
+ revision: "a49e7c2148ac9e38bd35ef4f13bc9d6ea3ff0b81",
78374
+ project: "Sentry.xcodeproj",
78375
+ target: "Sentry",
78376
+ configuration: "Release",
78377
+ machOType: "staticlib"
78378
+ }
78379
+ ]
78380
+ ]);
78346
78381
  UNSUPPORTED_NATIVE = /\.(s|S)$/;
78347
78382
  BINARY = "is a binary framework";
78348
78383
  blockers = (reasons) => [...new Set(reasons.flat())];
@@ -82253,6 +82288,11 @@ function* xcodeObjCInputSteps(app, binaries, moduleRoot, products, sourceRoot =
82253
82288
  }
82254
82289
  return regular ? source : null;
82255
82290
  };
82291
+ for (const directory2 of target.objc.headerSearchPaths) {
82292
+ if (isSdkInclude(directory2)) continue;
82293
+ const file = availableHeader(import_node_path83.default.join(directory2, "module.modulemap"));
82294
+ if (file) queue2.push({ file, origin: directory2 });
82295
+ }
82256
82296
  for (const name3 of forced) {
82257
82297
  const file = [...quoted2, ...includes].filter((directory2) => !isSdkInclude(directory2)).map((directory2) => availableHeader(import_node_path83.default.resolve(directory2, name3))).find((candidate) => candidate !== null);
82258
82298
  if (file) queue2.push({ file });
@@ -87168,17 +87208,15 @@ async function swiftPackages(entry, app) {
87168
87208
  }
87169
87209
  function xcodeInputKey(layout2, file, relative6) {
87170
87210
  const owner = layout2.targetDirs.get(file);
87211
+ const checkouts = layout2.checkouts;
87212
+ const checkoutPath = file.startsWith(`${checkouts}${import_node_path91.default.sep}`) ? import_node_path91.default.relative(checkouts, file).split(import_node_path91.default.sep).join("/") : null;
87171
87213
  if (owner) {
87172
- const input = file.endsWith(".swift") ? relative6.split("/").map(
87214
+ const input = file.endsWith(".swift") ? (checkoutPath ?? relative6).split("/").map(
87173
87215
  (part) => part === "." || part === ".." ? part : part.replaceAll("%", "%25").replace(/^\./, "%2E")
87174
- ).join("/") : relative6;
87216
+ ).join("/") : checkoutPath ?? relative6;
87175
87217
  return import_node_path91.default.posix.join(owner, input);
87176
87218
  }
87177
- const checkouts = layout2.checkouts;
87178
- return file.startsWith(`${checkouts}${import_node_path91.default.sep}`) ? import_node_path91.default.posix.join(
87179
- XCODE_PACKAGES_DIR,
87180
- import_node_path91.default.relative(checkouts, file).split(import_node_path91.default.sep).join("/")
87181
- ) : relative6 === ".." || relative6.startsWith("../") ? import_node_path91.default.posix.join("external", file.split(import_node_path91.default.sep).join("/")) : relative6;
87219
+ return checkoutPath !== null ? import_node_path91.default.posix.join(XCODE_PACKAGES_DIR, checkoutPath) : relative6 === ".." || relative6.startsWith("../") ? import_node_path91.default.posix.join("external", file.split(import_node_path91.default.sep).join("/")) : relative6;
87182
87220
  }
87183
87221
  async function withXcodeLayout(root, run11) {
87184
87222
  const scope2 = /* @__PURE__ */ new Map();
@@ -87196,7 +87234,7 @@ function xcodeLayout(root) {
87196
87234
  async function buildXcodeLayout(root) {
87197
87235
  const registered = xcodeProjects().get(root);
87198
87236
  if (!registered) return null;
87199
- const app = readXcodeAppTargetPrepared(
87237
+ const appTarget = readXcodeAppTargetPrepared(
87200
87238
  registered.xcodeproj,
87201
87239
  registered.target,
87202
87240
  registered.configuration,
@@ -87206,6 +87244,51 @@ async function buildXcodeLayout(root) {
87206
87244
  nativeModules: registered.nativeModules
87207
87245
  }
87208
87246
  );
87247
+ const { packages, standins, projectGaps, binaries } = await swiftPackages(
87248
+ registered,
87249
+ appTarget
87250
+ );
87251
+ const sourceFrameworks = new Map(
87252
+ packages.sourceFrameworks.map(
87253
+ ({ packageTarget, project: project2, target, configuration, machOType }) => {
87254
+ const framework = readXcodeAppTarget(project2, target, configuration, {
87255
+ prepareGeneratedSources: true,
87256
+ frameworkMachOType: machOType
87257
+ });
87258
+ if (framework.moduleName !== target || framework.allSources.length === 0)
87259
+ throw new Error(
87260
+ `${project2}: ${target} did not produce its declared source module`
87261
+ );
87262
+ if (framework.linkedProducts.length > 0 || framework.binaryFrameworks.some(({ path: path151 }) => path151))
87263
+ throw new Error(
87264
+ `${project2}: ${target} has external dependencies outside the source framework build`
87265
+ );
87266
+ return [packageTarget, framework];
87267
+ }
87268
+ )
87269
+ );
87270
+ const frameworkTargets = [...sourceFrameworks.values()];
87271
+ const app = {
87272
+ ...appTarget,
87273
+ frameworks: [
87274
+ ...appTarget.frameworks,
87275
+ ...frameworkTargets.flatMap((framework) => [...framework.frameworks, framework])
87276
+ ],
87277
+ projectFiles: [
87278
+ ...appTarget.projectFiles,
87279
+ ...frameworkTargets.flatMap((framework) => framework.projectFiles)
87280
+ ],
87281
+ resourceProducts: [
87282
+ ...appTarget.resourceProducts,
87283
+ ...frameworkTargets.flatMap((framework) => framework.resourceProducts)
87284
+ ],
87285
+ sdkFrameworks: [
87286
+ .../* @__PURE__ */ new Set([
87287
+ ...appTarget.sdkFrameworks,
87288
+ ...frameworkTargets.flatMap((framework) => framework.sdkFrameworks)
87289
+ ])
87290
+ ]
87291
+ };
87209
87292
  const appSources = app.allSources;
87210
87293
  const checkouts = remoteSwiftCheckouts(app.rootDir);
87211
87294
  const files2 = /* @__PURE__ */ new Set([
@@ -87221,10 +87304,6 @@ async function buildXcodeLayout(root) {
87221
87304
  const resourceBundles = [
87222
87305
  { target: app.moduleName, sourcePath: XCODE_APP_DIR, path: "." }
87223
87306
  ];
87224
- const { packages, standins, projectGaps, binaries } = await swiftPackages(
87225
- registered,
87226
- app
87227
- );
87228
87307
  const targets = [];
87229
87308
  const frameworkNames = /* @__PURE__ */ new Map();
87230
87309
  const usedNames = new Set(
@@ -87699,7 +87778,14 @@ async function buildXcodeLayout(root) {
87699
87778
  )
87700
87779
  });
87701
87780
  }
87702
- const graphTargets = [...app.sourceLinkGraph.targets, ...packages.sourceLinks.targets];
87781
+ const graphTargets = [
87782
+ ...app.sourceLinkGraph.targets,
87783
+ ...frameworkTargets.flatMap((framework) => framework.sourceLinkGraph.targets),
87784
+ ...packages.sourceLinks.targets.map((target) => {
87785
+ const source = sourceFrameworks.get(target.id);
87786
+ return source ? { ...target, dependencies: [{ target: source.id, attributes: [] }] } : target;
87787
+ })
87788
+ ];
87703
87789
  const applicationBuildVersion = app.sourceLinkGraph.targets.find(
87704
87790
  (target) => target.id === app.sourceLinkGraph.entry
87705
87791
  ).buildVersion;
@@ -88776,11 +88862,22 @@ async function compile(packagePath, stamp, moduleRootOverride, hosted, snapshot,
88776
88862
  const parsed2 = compileTargets(input);
88777
88863
  const targets = parsed2.map((target) => swiftTargetModuleName(target.name));
88778
88864
  const byPath = [...parsed2].sort((left, right) => right.path.length - left.path.length);
88865
+ const clangModulesByTarget = new Map(
88866
+ (input.nativeTargets ?? []).map(({ name: name3, headerSearchPaths }) => [
88867
+ name3,
88868
+ headerSearchPaths.flatMap((directory2) => {
88869
+ const map2 = input.files[import_node_path91.default.posix.join(directory2, "module.modulemap")];
88870
+ return map2 === void 0 ? [] : moduleMapModules(map2).map(({ name: name4 }) => name4);
88871
+ })
88872
+ ])
88873
+ );
88779
88874
  const providedByFile = (file) => {
88780
88875
  const owner = byPath.find(
88781
88876
  (target) => target.path === "." ? true : file.startsWith(`${target.path}/`)
88782
88877
  );
88783
- return owner?.experimentalFeatures?.includes("BuiltinModule") ? ["Builtin"] : [];
88878
+ if (!owner) return [];
88879
+ const clangModules = clangModulesByTarget.get(owner.name) ?? [];
88880
+ return owner.experimentalFeatures?.includes("BuiltinModule") ? [...clangModules, "Builtin"] : clangModules;
88784
88881
  };
88785
88882
  const missing2 = missingSwiftModules(
88786
88883
  input.files,
@@ -99706,7 +99803,7 @@ var init_nitro_superset = __esm({
99706
99803
  init_nitroContract();
99707
99804
  init_swift_standin_digest();
99708
99805
  NITRO_SUPERSET_ENTRY_NAME = "superset";
99709
- NITRO_COMPILER_DIGEST = true ? "200edee93984f7047fae48391fe047fd172bb293adddde9d3782536a44d2ddb0" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
99806
+ NITRO_COMPILER_DIGEST = true ? "09d634619adc6638e3825b30f0b525d9161241c4f85cc899ea493a7d4c2773e4" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
99710
99807
  nitroSupersetLock = parseLock(nitro_superset_lock_default);
99711
99808
  nitroSupersetKey = (inputs) => nativeEntryKey({ ...inputs, compiler: NITRO_COMPILER_DIGEST });
99712
99809
  published2 = /* @__PURE__ */ new Map();
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2411 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2412 | (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;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2411 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2412 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  var __defProp = Object.defineProperty;
3
3
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4
4
  var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2411 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2412 | (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 __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2411 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2412 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/swift-package.ts
4
4
  function swiftManifestSettings(target) {
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2411 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2412 | (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 __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2411 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2412 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/is-record.ts
4
4
  function isRecord(value) {
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2411 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2412 | (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;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2411 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2412 | (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 __defProp = Object.defineProperty;