peachsim 0.1.1964 → 0.1.1965

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 (83) 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 +156 -28
  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 +154 -27
  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 +155 -28
  31. package/dist-lib/host/fetch-proxy-handler.cjs +1 -1
  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 +1 -1
  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 +1 -1
  47. package/dist-lib/native-app-identity-project.cjs +1 -1
  48. package/dist-lib/native-app-identity-project.mjs +1 -1
  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 +156 -28
  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 +153 -26
  77. package/dist-lib/vite.cjs +1 -1
  78. package/dist-lib/worklet-executable.cjs +1 -1
  79. package/dist-lib/worklet-executable.mjs +1 -1
  80. package/package.json +1 -1
  81. package/src/swift-packages.ts +13 -1
  82. package/src/swift-standin-emit.ts +16 -3
  83. package/src/swift-standins.ts +144 -17
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1964 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1965 | (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;
@@ -11955,7 +11955,12 @@ function splitTopLevel(text5, separator) {
11955
11955
  function emitSwiftStandin(sourceGraphs, options) {
11956
11956
  const imported = new Set(options.imports);
11957
11957
  const importedTypeModules = options.importedTypeModules ?? /* @__PURE__ */ new Map();
11958
- const graphs = sourceGraphs.map(
11958
+ const ownIds = new Set(
11959
+ sourceGraphs.flatMap(
11960
+ (graph) => graph.symbols.map((symbol2) => symbol2.identifier.precise)
11961
+ )
11962
+ );
11963
+ const graphs = [...sourceGraphs, ...options.dependencyGraphs ?? []].map(
11959
11964
  (graph) => qualifyImportedTypes(graph, imported, importedTypeModules)
11960
11965
  );
11961
11966
  const nativeObjcProtocols = objcProtocolsInSwiftSignatures(graphs);
@@ -12539,7 +12544,8 @@ function emitSwiftStandin(sourceGraphs, options) {
12539
12544
  )
12540
12545
  ].filter((name3, at, all2) => all2.indexOf(name3) === at);
12541
12546
  const parentSymbol = superId.has(id) ? byId.get(superId.get(id)) : void 0;
12542
- if (!parentSymbol) list2.push(standinMarker);
12547
+ if (!parentSymbol || !ownIds.has(parentSymbol.identifier.precise))
12548
+ list2.push(standinMarker);
12543
12549
  const open = symbol2.accessLevel === "open" && (!parentSymbol || parentSymbol.accessLevel === "open");
12544
12550
  const objcName = /^c:objc\(cs\)(\w+)$/.exec(id)?.[1];
12545
12551
  emit(
@@ -12889,7 +12895,9 @@ function emitSwiftStandin(sourceGraphs, options) {
12889
12895
  return match ? [`${match[1]}|${LEADING_ATTRS.exec(text(symbol2))[2]}`] : [];
12890
12896
  })
12891
12897
  );
12892
- const roots = [...byId.values()].filter((symbol2) => !owner.has(symbol2.identifier.precise) && !unavailable(symbol2)).filter((symbol2) => {
12898
+ const roots = [...byId.values()].filter(
12899
+ (symbol2) => ownIds.has(symbol2.identifier.precise) && !owner.has(symbol2.identifier.precise) && !unavailable(symbol2)
12900
+ ).filter((symbol2) => {
12893
12901
  const name3 = /^c:@M@[^@]+@F@([^@]+)$/.exec(symbol2.identifier.precise)?.[1];
12894
12902
  return !name3 || !cExports.has(`${name3}|${text(symbol2)}`);
12895
12903
  }).sort((a, b) => pathOf(a).localeCompare(pathOf(b)));
@@ -12901,6 +12909,7 @@ function emitSwiftStandin(sourceGraphs, options) {
12901
12909
  for (const [name3, members2] of [...external].sort(([a], [b]) => a.localeCompare(b))) {
12902
12910
  const seen = /* @__PURE__ */ new Set();
12903
12911
  const kept = members2.filter((member) => {
12912
+ if (!ownIds.has(member.identifier.precise)) return false;
12904
12913
  const key2 = `${member.kind.identifier}|${text(member)}`;
12905
12914
  if (unavailable(member) || seen.has(key2)) return false;
12906
12915
  seen.add(key2);
@@ -31085,7 +31094,7 @@ function sourceClosureDigest(srcDir, entrypoints) {
31085
31094
  return hash.digest("hex");
31086
31095
  }
31087
31096
  var standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
31088
- var STANDIN_SOURCE_DIGEST = true ? "2c1ec9d203fa5a2da70c4346e1574b582e71d72dbd796d40431f29c4e3aeabad" : standinSourceDigest();
31097
+ var STANDIN_SOURCE_DIGEST = true ? "a7e1ecaaff6c8861c337b5c6049d14450807f5be059d246ba06f5abd6384bfe7" : standinSourceDigest();
31089
31098
 
31090
31099
  // src/expoSwiftContract.ts
31091
31100
  init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
@@ -31415,7 +31424,7 @@ async function packageTreeDigest(root) {
31415
31424
 
31416
31425
  // src/expo-native-prebuilt.ts
31417
31426
  var EXPO_NATIVE_ENTRY_NAME = "ios";
31418
- var EXPO_NATIVE_COMPILER_DIGEST = true ? "aabd8b1a975371fda074175e883d608df75f1aab0393e1a9b02f738d0f063fbd" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
31427
+ var EXPO_NATIVE_COMPILER_DIGEST = true ? "ab9c7903d2e3e389e43c53ecfe515193e8c405cf1fef52b82d78ff570dc3ea8e" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
31419
31428
  var IDENTITY_SOURCE_SKIPS = 1 | 4 | 8 | 16 | 32 | 64 | 128 | 4096;
31420
31429
  function readSources(value) {
31421
31430
  const sources = isRecord(value) ? value.sources : null;
@@ -32416,6 +32425,11 @@ function resolveSwiftPackages(options) {
32416
32425
  if (claimed.has(key2)) return true;
32417
32426
  const target = pkg.manifest.targets.get(name3);
32418
32427
  if (!target || target.type !== "regular" || placeholderPackage(pkg)) return false;
32428
+ const files2 = swiftTargetFiles(pkg.manifest, target);
32429
+ if (files2.every(
32430
+ (file) => file.endsWith(".swift") && import_node_fs62.default.readFileSync(file, "utf8").trim() === ""
32431
+ ))
32432
+ return false;
32419
32433
  claimed.add(key2);
32420
32434
  provided.delete(name3);
32421
32435
  for (const dependency of target.dependencies) {
@@ -32523,7 +32537,7 @@ function resolveSwiftPackages(options) {
32523
32537
  if (provided.has(name3) && placeholderPackage(pkg)) return;
32524
32538
  for (const dependency of pkg.manifest.targets.get(name3)?.dependencies ?? []) {
32525
32539
  if (dependency.kind === "target") visit3(pkg, dependency.name);
32526
- else {
32540
+ else if (!provided.has(dependency.name)) {
32527
32541
  const nested = dependencyPackage(pkg, dependency);
32528
32542
  if (nested && typeof nested !== "string")
32529
32543
  for (const root of nested.manifest.products.get(dependency.name)?.targets ?? [])
@@ -32532,6 +32546,7 @@ function resolveSwiftPackages(options) {
32532
32546
  }
32533
32547
  };
32534
32548
  for (const { product, source } of listed) {
32549
+ if (provided.has(product)) continue;
32535
32550
  const pkg = source.kind === "unnamed" ? unnamed(source, product) : packages.get(sourceKey(source));
32536
32551
  if (!pkg || typeof pkg === "string") continue;
32537
32552
  for (const root of pkg.manifest.products.get(product)?.targets ?? [])
@@ -33310,11 +33325,11 @@ ${uikit}${body}`
33310
33325
  function binaryHeaderSearchPaths(binary2, root, declaredFrameworks) {
33311
33326
  const artifact = xcframework(binary2);
33312
33327
  const slice = simulatorSlice(artifact.dir);
33313
- const found = surfaces(artifact.dir, slice);
33328
+ const found = surfaces(artifact.dir, binary2.target, slice);
33314
33329
  const frameworks = [
33315
33330
  ...new Set(
33316
33331
  found.flatMap(
33317
- (surface) => "modulemap" in surface && import_node_path64.default.basename(import_node_path64.default.dirname(surface.modulemap)) === "Modules" ? [import_node_path64.default.dirname(import_node_path64.default.dirname(surface.modulemap))] : []
33332
+ (surface) => "modulemap" in surface && import_node_path64.default.basename(import_node_path64.default.dirname(surface.modulemap)) === "Modules" ? [import_node_path64.default.dirname(surface.headers)] : []
33318
33333
  )
33319
33334
  )
33320
33335
  ];
@@ -33379,8 +33394,21 @@ function binaryHeaderSearchPaths(binary2, root, declaredFrameworks) {
33379
33394
  import_node_path64.default.join(pending, "frameworks", import_node_path64.default.basename(framework), part),
33380
33395
  { recursive: true, dereference: true }
33381
33396
  );
33397
+ const surface = found.find(
33398
+ (item) => "headers" in item && import_node_path64.default.dirname(item.headers) === framework
33399
+ );
33400
+ if (surface && "modulemap" in surface) {
33401
+ const modules = import_node_path64.default.join(
33402
+ pending,
33403
+ "frameworks",
33404
+ import_node_path64.default.basename(framework),
33405
+ "Modules"
33406
+ );
33407
+ import_node_fs66.default.mkdirSync(modules, { recursive: true });
33408
+ import_node_fs66.default.copyFileSync(surface.modulemap, import_node_path64.default.join(modules, "module.modulemap"));
33409
+ }
33382
33410
  }
33383
- for (const [index, directory] of headers.entries())
33411
+ for (const [index, directory] of headers.entries()) {
33384
33412
  import_node_fs66.default.cpSync(directory, import_node_path64.default.join(pending, "headers", String(index)), {
33385
33413
  recursive: true,
33386
33414
  dereference: true,
@@ -33388,6 +33416,15 @@ function binaryHeaderSearchPaths(binary2, root, declaredFrameworks) {
33388
33416
  filter: (source) => import_node_fs66.default.statSync(source).isDirectory() ? import_node_path64.default.dirname(source) !== directory || !import_node_path64.default.basename(source).startsWith("ios-") : !isBinaryLibraryFile(source)
33389
33417
  } : {}
33390
33418
  });
33419
+ const surface = found.find(
33420
+ (item) => "headers" in item && item.headers === directory
33421
+ );
33422
+ if (surface && "modulemap" in surface)
33423
+ import_node_fs66.default.copyFileSync(
33424
+ surface.modulemap,
33425
+ import_node_path64.default.join(pending, "headers", String(index), "module.modulemap")
33426
+ );
33427
+ }
33391
33428
  const contents = (0, import_node_crypto32.createHash)("sha256");
33392
33429
  for (const relative3 of import_node_fs66.default.readdirSync(pending, { recursive: true, encoding: "utf8" }).sort()) {
33393
33430
  const file = import_node_path64.default.join(pending, relative3);
@@ -33443,7 +33480,7 @@ function simulatorSlice(xcframeworkDir) {
33443
33480
  const slice = import_node_fs66.default.readdirSync(xcframeworkDir).filter((name3) => /^ios-.+-simulator$/.test(name3)).sort()[0];
33444
33481
  return slice ? import_node_path64.default.join(xcframeworkDir, slice) : null;
33445
33482
  }
33446
- function surfaces(xcframeworkDir, slice = simulatorSlice(xcframeworkDir)) {
33483
+ function surfaces(xcframeworkDir, target, slice = simulatorSlice(xcframeworkDir)) {
33447
33484
  const standaloneMap = import_node_path64.default.join(xcframeworkDir, "module.modulemap");
33448
33485
  if (import_node_fs66.default.existsSync(standaloneMap)) {
33449
33486
  const module2 = moduleMapName(import_node_fs66.default.readFileSync(standaloneMap, "utf8"));
@@ -33464,7 +33501,16 @@ function surfaces(xcframeworkDir, slice = simulatorSlice(xcframeworkDir)) {
33464
33501
  (name3) => name3.endsWith(".swiftinterface") && !name3.endsWith(".private.swiftinterface") && !name3.endsWith(".package.swiftinterface")
33465
33502
  );
33466
33503
  const chosen = interfaces.find((name3) => name3.startsWith("arm64-")) ?? interfaces[0] ?? null;
33467
- const modulemap = import_node_path64.default.join(framework, "Modules", "module.modulemap");
33504
+ let modulemap = import_node_path64.default.join(framework, "Modules", "module.modulemap");
33505
+ const headers2 = import_node_path64.default.join(framework, "Headers");
33506
+ if (!import_node_fs66.default.existsSync(modulemap) && files(headers2, (name3) => name3.endsWith(".h")).length) {
33507
+ const umbrella = import_node_fs66.default.existsSync(import_node_path64.default.join(headers2, `${module2}.h`)) ? `umbrella header "${module2}.h"` : 'umbrella "Headers"';
33508
+ modulemap = generatedModuleMap(
33509
+ `framework module ${module2} { ${umbrella} export * module * { export * } }
33510
+ `,
33511
+ true
33512
+ );
33513
+ }
33468
33514
  if (chosen) {
33469
33515
  const privateInterface = import_node_path64.default.join(
33470
33516
  swiftmodule,
@@ -33496,8 +33542,33 @@ function surfaces(xcframeworkDir, slice = simulatorSlice(xcframeworkDir)) {
33496
33542
  const module2 = moduleMapName(import_node_fs66.default.readFileSync(modulemap, "utf8"));
33497
33543
  if (module2) found.push(headerSurface(module2, modulemap, import_node_path64.default.dirname(modulemap)));
33498
33544
  }
33545
+ if (found.length === 0 && files(headers, (name3) => name3.endsWith(".h")).length) {
33546
+ const module2 = swiftTargetModuleName(target);
33547
+ const modulemap = generatedModuleMap(
33548
+ `module ${module2} { umbrella "." export * }
33549
+ `,
33550
+ false
33551
+ );
33552
+ found.push(headerSurface(module2, modulemap, headers));
33553
+ }
33499
33554
  return found;
33500
33555
  }
33556
+ function generatedModuleMap(text5, framework) {
33557
+ const dir = import_node_path64.default.join(
33558
+ cacheDir4,
33559
+ "modulemaps",
33560
+ key(text5),
33561
+ framework ? "Modules" : "Headers"
33562
+ );
33563
+ import_node_fs66.default.mkdirSync(dir, { recursive: true });
33564
+ const file = import_node_path64.default.join(dir, "module.modulemap");
33565
+ if (!import_node_fs66.default.existsSync(file)) {
33566
+ const pending = `${file}.${process.pid}.tmp`;
33567
+ import_node_fs66.default.writeFileSync(pending, text5);
33568
+ import_node_fs66.default.renameSync(pending, file);
33569
+ }
33570
+ return file;
33571
+ }
33501
33572
  function peachModuleDirs(toolchain, imports2, sdkIncludes) {
33502
33573
  const { moduleRoot, toolchainBin } = toolchain;
33503
33574
  if (swiftDistributionAt(moduleRoot)) return [import_node_path64.default.join(moduleRoot, "modules")];
@@ -33921,18 +33992,39 @@ function wasmFlags(toolchain, imports2) {
33921
33992
  ...toolchain.standinModules ? ["-I", toolchain.standinModules] : []
33922
33993
  ];
33923
33994
  }
33924
- function objcStandin(surface, binary2, toolchain, work, behavior) {
33995
+ function objcStandin(surface, binary2, toolchain, work, behavior, frameworks, siblings) {
33925
33996
  const view = objcView(
33926
33997
  surface,
33927
33998
  toolchain.toolchainBin,
33928
33999
  import_node_path64.default.join(toolchain.moduleRoot, "ios-simulator-stdlib"),
33929
34000
  cacheDir4,
33930
- import_node_path64.default.join(work, "objc")
34001
+ import_node_path64.default.join(work, "objc"),
34002
+ void 0,
34003
+ frameworks.dirs
33931
34004
  );
33932
34005
  const provided = new Set(swiftPeachModules(toolchain.moduleRoot));
33933
34006
  const headerModules = view.imports.filter(
33934
- (name3) => !STANDIN_IMPORTS.includes(name3) && provided.has(name3)
34007
+ (name3) => !STANDIN_IMPORTS.includes(name3) && (provided.has(name3) || siblings.has(name3))
33935
34008
  );
34009
+ const dependencyGraphs = headerModules.flatMap((module2) => {
34010
+ const dependency = frameworks.surfaces.get(module2);
34011
+ if (!dependency || module2 === surface.module) return [];
34012
+ return objcView(
34013
+ {
34014
+ module: dependency.module,
34015
+ modulemap: dependency.modulemap,
34016
+ headers: dependency.headers
34017
+ },
34018
+ toolchain.toolchainBin,
34019
+ import_node_path64.default.join(toolchain.moduleRoot, "ios-simulator-stdlib"),
34020
+ cacheDir4,
34021
+ import_node_path64.default.join(work, "dependencies", module2),
34022
+ void 0,
34023
+ frameworks.dirs.filter(
34024
+ (dir) => !import_node_fs66.default.existsSync(import_node_path64.default.join(dir, `${module2}.framework`))
34025
+ )
34026
+ ).graphs;
34027
+ });
33936
34028
  return graphStandin(
33937
34029
  surface.module,
33938
34030
  view.graphs,
@@ -33949,12 +34041,18 @@ function objcStandin(surface, binary2, toolchain, work, behavior) {
33949
34041
  (dependency) => swiftTargetModuleName(dependency.module)
33950
34042
  ) ?? []
33951
34043
  ])
33952
- ]
34044
+ ],
34045
+ false,
34046
+ /* @__PURE__ */ new Map(),
34047
+ null,
34048
+ /* @__PURE__ */ new Map(),
34049
+ /* @__PURE__ */ new Map(),
34050
+ dependencyGraphs
33953
34051
  );
33954
34052
  }
33955
34053
  var OBJC_UNREPRESENTABLE = "cannot be marked '@objc' because its type cannot be represented in Objective-C";
33956
34054
  var INERT_VALUE = /missing argument|cannot be constructed|has no member 'init'|no exact matches in call to initializer|cannot convert return expression|does not conform to '|extra argument|takes no arguments|could not be inferred|cannot infer/;
33957
- function graphStandin(module2, graphs, values, wasm, binary2, toolchain, work, behavior, imports2 = [], requireSwift = false, objcProperties = /* @__PURE__ */ new Map(), placeholder = null, inheritedConformances = /* @__PURE__ */ new Map(), projections = /* @__PURE__ */ new Map()) {
34055
+ function graphStandin(module2, graphs, values, wasm, binary2, toolchain, work, behavior, imports2 = [], requireSwift = false, objcProperties = /* @__PURE__ */ new Map(), placeholder = null, inheritedConformances = /* @__PURE__ */ new Map(), projections = /* @__PURE__ */ new Map(), dependencyGraphs = []) {
33958
34056
  const paths = new Set(
33959
34057
  graphs.flatMap(
33960
34058
  (graph) => graph.symbols.map((symbol2) => symbol2.pathComponents.join("."))
@@ -34010,6 +34108,7 @@ function graphStandin(module2, graphs, values, wasm, binary2, toolchain, work, b
34010
34108
  objcProperties,
34011
34109
  inheritedConformances,
34012
34110
  projections,
34111
+ dependencyGraphs,
34013
34112
  ...placeholder ? { exported: placeholder.exported, placeholder: binary2.placeholder.gap } : {}
34014
34113
  });
34015
34114
  for (const entry of skipped) {
@@ -34686,6 +34785,11 @@ async function sourceStandins(binaries, toolchain, provided, behavior) {
34686
34785
  }))
34687
34786
  });
34688
34787
  } else {
34788
+ const absent = missingArtifactGap(binary2);
34789
+ if (absent !== null) {
34790
+ gaps.set(binary2.target, absent);
34791
+ continue;
34792
+ }
34689
34793
  const resolved = xcframework(binary2);
34690
34794
  const dir = import_node_path64.default.join(artifact, String(index), import_node_path64.default.basename(resolved.dir));
34691
34795
  import_node_fs66.default.cpSync(resolved.dir, dir, { recursive: true, dereference: true });
@@ -34822,7 +34926,9 @@ function standinGenerationInputs(binaries, toolchain, behavior = {}, sourceDir)
34822
34926
  const modules = new Set(
34823
34927
  binaries.flatMap((binary2) => {
34824
34928
  try {
34825
- return binary2.publicHeaders !== void 0 || binary2.placeholder !== void 0 ? [swiftTargetModuleName(binary2.target)] : surfaces(xcframework(binary2).dir).map((surface) => surface.module);
34929
+ return binary2.publicHeaders !== void 0 || binary2.placeholder !== void 0 ? [swiftTargetModuleName(binary2.target)] : surfaces(xcframework(binary2).dir, binary2.target).map(
34930
+ (surface) => surface.module
34931
+ );
34826
34932
  } catch {
34827
34933
  return [];
34828
34934
  }
@@ -34855,7 +34961,9 @@ function standinGenerationInputs(binaries, toolchain, behavior = {}, sourceDir)
34855
34961
  if (binary2.publicHeaders !== void 0 && swiftTargetModuleName(binary2.target) !== binary2.target)
34856
34962
  parts.push(`module/${swiftTargetModuleName(binary2.target)}`);
34857
34963
  try {
34858
- if (binary2.publicHeaders === void 0 && surfaces(xcframework(binary2).dir).some((surface) => surface.kind === "swift"))
34964
+ if (binary2.publicHeaders === void 0 && surfaces(xcframework(binary2).dir, binary2.target).some(
34965
+ (surface) => surface.kind === "swift"
34966
+ ))
34859
34967
  parts.push(`interface-emulation/${WASI_EMULATION.join(",")}`);
34860
34968
  parts.push(
34861
34969
  binary2.target,
@@ -34883,10 +34991,14 @@ function standinGenerationInputs(binaries, toolchain, behavior = {}, sourceDir)
34883
34991
  }
34884
34992
  return (0, import_node_crypto32.createHash)("sha256").update(parts.join("\0")).digest("hex");
34885
34993
  }
34994
+ function missingArtifactGap(binary2) {
34995
+ if (swiftBinaryOnDisk(binary2)) return null;
34996
+ return `${import_node_path64.default.relative(process.cwd(), binary2.dir) || binary2.dir} is not on disk, and Xcode fails without it too; run the script that downloads or builds it, then run again`;
34997
+ }
34886
34998
  async function binaryStandins(binary2, toolchain, provided, behavior, frameworks, siblings) {
34887
34999
  if (provided.has(binary2.target)) return [];
34888
- if (!binary2.url && !import_node_fs66.default.existsSync(binary2.dir))
34889
- return `${import_node_path64.default.relative(process.cwd(), binary2.dir) || binary2.dir} is not on disk, and Xcode fails without it too; run the script that downloads or builds it, then run again`;
35000
+ const absent = missingArtifactGap(binary2);
35001
+ if (absent !== null) return absent;
34890
35002
  import_node_fs66.default.mkdirSync(cacheDir4, { recursive: true });
34891
35003
  const work = import_node_fs66.default.mkdtempSync(import_node_path64.default.join(cacheDir4, "work-"));
34892
35004
  let all;
@@ -34938,7 +35050,7 @@ ${roots.map((file) => ` header "${file}"`).join("\n")}
34938
35050
  ].join("\0");
34939
35051
  } else {
34940
35052
  const artifact = xcframework(binary2);
34941
- all = surfaces(artifact.dir);
35053
+ all = surfaces(artifact.dir, binary2.target);
34942
35054
  digest2 = artifact.digest;
34943
35055
  }
34944
35056
  } catch (error) {
@@ -34957,7 +35069,8 @@ ${roots.map((file) => ` header "${file}"`).join("\n")}
34957
35069
  );
34958
35070
  hash.update(digest2);
34959
35071
  hash.update([...siblings].sort().join("\0"));
34960
- if (found.some((surface) => surface.kind === "mixed")) hash.update(frameworks.digest);
35072
+ if (found.some((surface) => surface.kind === "mixed" || surface.kind === "objc"))
35073
+ hash.update(frameworks.digest);
34961
35074
  for (const surface of found) {
34962
35075
  hash.update(`${surface.kind}\0${surface.module}\0`);
34963
35076
  for (const file of surface.kind === "swift" ? [surface.interface] : surface.kind === "source" ? surface.sources : [
@@ -35034,7 +35147,9 @@ ${roots.map((file) => ` header "${file}"`).join("\n")}
35034
35147
  binary2,
35035
35148
  toolchain,
35036
35149
  dir,
35037
- new Map(Object.entries(configured.get(surface.module) ?? {}))
35150
+ new Map(Object.entries(configured.get(surface.module) ?? {})),
35151
+ frameworks,
35152
+ siblings
35038
35153
  ) : binary2.cxxHeaders ? await cxxStandin(surface, binary2, toolchain, dir) : cStandin(surface, binary2, toolchain, dir)
35039
35154
  );
35040
35155
  } catch (error) {
@@ -35079,6 +35194,7 @@ async function buildStandins(binaries, toolchain, provided, behavior) {
35079
35194
  import_node_fs66.default.mkdirSync(cacheDir4, { recursive: true });
35080
35195
  const modules = import_node_fs66.default.mkdtempSync(import_node_path64.default.join(cacheDir4, "modules-"));
35081
35196
  const frameworkDirs = /* @__PURE__ */ new Set();
35197
+ const frameworkSurfaces = /* @__PURE__ */ new Map();
35082
35198
  const frameworkInputs = [];
35083
35199
  const byModule = new Map(
35084
35200
  binaries.map((binary2) => [swiftTargetModuleName(binary2.target), binary2])
@@ -35102,16 +35218,26 @@ async function buildStandins(binaries, toolchain, provided, behavior) {
35102
35218
  frameworkInputs.push(`${binary2.target}\0${artifact.digest}`);
35103
35219
  const imports2 = /* @__PURE__ */ new Set();
35104
35220
  interfaceImports.set(binary2, imports2);
35105
- for (const surface of surfaces(artifact.dir)) {
35221
+ for (const surface of surfaces(artifact.dir, binary2.target)) {
35106
35222
  byModule.set(surface.module, binary2);
35107
35223
  if (surface.kind === "swift" || surface.kind === "mixed")
35108
35224
  for (const module2 of swiftImportNames(
35109
35225
  import_node_fs66.default.readFileSync(surface.interface, "utf8")
35110
35226
  ))
35111
35227
  imports2.add(module2);
35228
+ if (surface.kind === "objc" || surface.kind === "mixed")
35229
+ for (const file of files(surface.headers, (name3) => name3.endsWith(".h")))
35230
+ for (const module2 of clangImportNames(
35231
+ import_node_fs66.default.readFileSync(import_node_path64.default.join(surface.headers, file), "utf8")
35232
+ ))
35233
+ imports2.add(module2);
35112
35234
  if (surface.kind === "c") continue;
35235
+ if (surface.kind === "objc" || surface.kind === "mixed")
35236
+ frameworkSurfaces.set(surface.module, surface);
35237
+ if (surface.kind !== "swift" && import_node_path64.default.basename(import_node_path64.default.dirname(surface.modulemap)) !== "Modules")
35238
+ continue;
35113
35239
  frameworkDirs.add(
35114
- surface.kind === "swift" ? import_node_path64.default.resolve(surface.interface, "../../../..") : import_node_path64.default.resolve(surface.modulemap, "../../..")
35240
+ surface.kind === "swift" ? import_node_path64.default.resolve(surface.interface, "../../../..") : import_node_path64.default.resolve(surface.headers, "../..")
35115
35241
  );
35116
35242
  }
35117
35243
  } catch {
@@ -35120,7 +35246,8 @@ async function buildStandins(binaries, toolchain, provided, behavior) {
35120
35246
  const generatedToolchain = { ...toolchain, standinModules: modules };
35121
35247
  const frameworks = {
35122
35248
  dirs: [...frameworkDirs].sort(),
35123
- digest: (0, import_node_crypto32.createHash)("sha256").update(frameworkInputs.sort().join("\0")).digest("hex")
35249
+ digest: (0, import_node_crypto32.createHash)("sha256").update(frameworkInputs.sort().join("\0")).digest("hex"),
35250
+ surfaces: frameworkSurfaces
35124
35251
  };
35125
35252
  const siblings = new Map(
35126
35253
  binaries.map((binary2) => [
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1964 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1965 | (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.1964 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1965 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/bundleGlobalFooter.ts
4
4
  function findBundleFooter(source, prefix) {
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1964 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1965 | (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;