peachsim 0.1.1964 → 0.1.1966

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 (85) 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 +162 -31
  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 +160 -30
  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 +161 -31
  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 +2 -2
  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 +2 -2
  47. package/dist-lib/native-app-identity-project.cjs +2 -2
  48. package/dist-lib/native-app-identity-project.mjs +2 -2
  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 +162 -31
  68. package/dist-lib/swift-compile.cjs +2 -2
  69. package/dist-lib/swift-compile.mjs +2 -2
  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 +159 -29
  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/dist-types/packages/peach-compat/src/stubs/screen-transition-math.d.ts +15 -1
  81. package/package.json +1 -1
  82. package/src/swift-objc-standin.ts +7 -1
  83. package/src/swift-packages.ts +13 -1
  84. package/src/swift-standin-emit.ts +16 -3
  85. package/src/swift-standins.ts +145 -18
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1964 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1966 | (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);
@@ -13342,7 +13351,10 @@ function objcView(surface, toolchainBin, stdlib, cacheDir5, work, original, vend
13342
13351
  if (name3.endsWith(".swiftinterface"))
13343
13352
  import_node_fs26.default.writeFileSync(
13344
13353
  import_node_path23.default.join(to, name3),
13345
- import_node_fs26.default.readFileSync(import_node_path23.default.join(from, name3), "utf8").replace(/\bCoreFoundation\.(?=CG)/g, "CoreGraphics.").replace(/\bCoreFoundation\.(?=\w)/g, "Foundation.")
13354
+ import_node_fs26.default.readFileSync(import_node_path23.default.join(from, name3), "utf8").replace(/\bCoreFoundation\.(?=CG)/g, "CoreGraphics.").replace(/\bCoreFoundation\.(?=\w)/g, "Foundation.").replace(
13355
+ /\bFoundation\.Data\.(?=Base64(?:En|De)codingOptions\b)/g,
13356
+ "Foundation.NSData."
13357
+ )
13346
13358
  );
13347
13359
  }
13348
13360
  } else {
@@ -22155,7 +22167,7 @@ var darwinRecordsRegion = (quoted) => quoted.length ? ["-Wl,--start-lib", ...quo
22155
22167
  var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
22156
22168
  var MULTI_MANIFEST_VERSION = 66;
22157
22169
  var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
22158
- var compilerSourceDigest = true ? "777d4db5d7a8d74f3fc33c50d60c04b62ad2fdce4bce2e2eec8c4e358d61ce92" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
22170
+ var compilerSourceDigest = true ? "43445ac597f2b7673127e43186400d0f6863caf82dafb48c31ce3b516719ce13" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
22159
22171
  function swiftArtifactHash(input, release, moduleRoot) {
22160
22172
  const hash = (0, import_node_crypto17.createHash)("sha256");
22161
22173
  hash.update(`swift-compile
@@ -31085,7 +31097,7 @@ function sourceClosureDigest(srcDir, entrypoints) {
31085
31097
  return hash.digest("hex");
31086
31098
  }
31087
31099
  var standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
31088
- var STANDIN_SOURCE_DIGEST = true ? "2c1ec9d203fa5a2da70c4346e1574b582e71d72dbd796d40431f29c4e3aeabad" : standinSourceDigest();
31100
+ var STANDIN_SOURCE_DIGEST = true ? "05087ee542759092b4dbe08e7a7c0a03416fa45a27f3c2e9b633d6d5ce98186a" : standinSourceDigest();
31089
31101
 
31090
31102
  // src/expoSwiftContract.ts
31091
31103
  init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
@@ -31415,7 +31427,7 @@ async function packageTreeDigest(root) {
31415
31427
 
31416
31428
  // src/expo-native-prebuilt.ts
31417
31429
  var EXPO_NATIVE_ENTRY_NAME = "ios";
31418
- var EXPO_NATIVE_COMPILER_DIGEST = true ? "aabd8b1a975371fda074175e883d608df75f1aab0393e1a9b02f738d0f063fbd" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
31430
+ var EXPO_NATIVE_COMPILER_DIGEST = true ? "9fd2ff84edb7b369a3643fb86c96987ded6cba6ac0477de1cb94ecd8e4b6f59a" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
31419
31431
  var IDENTITY_SOURCE_SKIPS = 1 | 4 | 8 | 16 | 32 | 64 | 128 | 4096;
31420
31432
  function readSources(value) {
31421
31433
  const sources = isRecord(value) ? value.sources : null;
@@ -32416,6 +32428,11 @@ function resolveSwiftPackages(options) {
32416
32428
  if (claimed.has(key2)) return true;
32417
32429
  const target = pkg.manifest.targets.get(name3);
32418
32430
  if (!target || target.type !== "regular" || placeholderPackage(pkg)) return false;
32431
+ const files2 = swiftTargetFiles(pkg.manifest, target);
32432
+ if (files2.every(
32433
+ (file) => file.endsWith(".swift") && import_node_fs62.default.readFileSync(file, "utf8").trim() === ""
32434
+ ))
32435
+ return false;
32419
32436
  claimed.add(key2);
32420
32437
  provided.delete(name3);
32421
32438
  for (const dependency of target.dependencies) {
@@ -32523,7 +32540,7 @@ function resolveSwiftPackages(options) {
32523
32540
  if (provided.has(name3) && placeholderPackage(pkg)) return;
32524
32541
  for (const dependency of pkg.manifest.targets.get(name3)?.dependencies ?? []) {
32525
32542
  if (dependency.kind === "target") visit3(pkg, dependency.name);
32526
- else {
32543
+ else if (!provided.has(dependency.name)) {
32527
32544
  const nested = dependencyPackage(pkg, dependency);
32528
32545
  if (nested && typeof nested !== "string")
32529
32546
  for (const root of nested.manifest.products.get(dependency.name)?.targets ?? [])
@@ -32532,6 +32549,7 @@ function resolveSwiftPackages(options) {
32532
32549
  }
32533
32550
  };
32534
32551
  for (const { product, source } of listed) {
32552
+ if (provided.has(product)) continue;
32535
32553
  const pkg = source.kind === "unnamed" ? unnamed(source, product) : packages.get(sourceKey(source));
32536
32554
  if (!pkg || typeof pkg === "string") continue;
32537
32555
  for (const root of pkg.manifest.products.get(product)?.targets ?? [])
@@ -33310,11 +33328,11 @@ ${uikit}${body}`
33310
33328
  function binaryHeaderSearchPaths(binary2, root, declaredFrameworks) {
33311
33329
  const artifact = xcframework(binary2);
33312
33330
  const slice = simulatorSlice(artifact.dir);
33313
- const found = surfaces(artifact.dir, slice);
33331
+ const found = surfaces(artifact.dir, binary2.target, slice);
33314
33332
  const frameworks = [
33315
33333
  ...new Set(
33316
33334
  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))] : []
33335
+ (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
33336
  )
33319
33337
  )
33320
33338
  ];
@@ -33379,8 +33397,21 @@ function binaryHeaderSearchPaths(binary2, root, declaredFrameworks) {
33379
33397
  import_node_path64.default.join(pending, "frameworks", import_node_path64.default.basename(framework), part),
33380
33398
  { recursive: true, dereference: true }
33381
33399
  );
33400
+ const surface = found.find(
33401
+ (item) => "headers" in item && import_node_path64.default.dirname(item.headers) === framework
33402
+ );
33403
+ if (surface && "modulemap" in surface) {
33404
+ const modules = import_node_path64.default.join(
33405
+ pending,
33406
+ "frameworks",
33407
+ import_node_path64.default.basename(framework),
33408
+ "Modules"
33409
+ );
33410
+ import_node_fs66.default.mkdirSync(modules, { recursive: true });
33411
+ import_node_fs66.default.copyFileSync(surface.modulemap, import_node_path64.default.join(modules, "module.modulemap"));
33412
+ }
33382
33413
  }
33383
- for (const [index, directory] of headers.entries())
33414
+ for (const [index, directory] of headers.entries()) {
33384
33415
  import_node_fs66.default.cpSync(directory, import_node_path64.default.join(pending, "headers", String(index)), {
33385
33416
  recursive: true,
33386
33417
  dereference: true,
@@ -33388,6 +33419,15 @@ function binaryHeaderSearchPaths(binary2, root, declaredFrameworks) {
33388
33419
  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
33420
  } : {}
33390
33421
  });
33422
+ const surface = found.find(
33423
+ (item) => "headers" in item && item.headers === directory
33424
+ );
33425
+ if (surface && "modulemap" in surface)
33426
+ import_node_fs66.default.copyFileSync(
33427
+ surface.modulemap,
33428
+ import_node_path64.default.join(pending, "headers", String(index), "module.modulemap")
33429
+ );
33430
+ }
33391
33431
  const contents = (0, import_node_crypto32.createHash)("sha256");
33392
33432
  for (const relative3 of import_node_fs66.default.readdirSync(pending, { recursive: true, encoding: "utf8" }).sort()) {
33393
33433
  const file = import_node_path64.default.join(pending, relative3);
@@ -33443,7 +33483,7 @@ function simulatorSlice(xcframeworkDir) {
33443
33483
  const slice = import_node_fs66.default.readdirSync(xcframeworkDir).filter((name3) => /^ios-.+-simulator$/.test(name3)).sort()[0];
33444
33484
  return slice ? import_node_path64.default.join(xcframeworkDir, slice) : null;
33445
33485
  }
33446
- function surfaces(xcframeworkDir, slice = simulatorSlice(xcframeworkDir)) {
33486
+ function surfaces(xcframeworkDir, target, slice = simulatorSlice(xcframeworkDir)) {
33447
33487
  const standaloneMap = import_node_path64.default.join(xcframeworkDir, "module.modulemap");
33448
33488
  if (import_node_fs66.default.existsSync(standaloneMap)) {
33449
33489
  const module2 = moduleMapName(import_node_fs66.default.readFileSync(standaloneMap, "utf8"));
@@ -33464,7 +33504,16 @@ function surfaces(xcframeworkDir, slice = simulatorSlice(xcframeworkDir)) {
33464
33504
  (name3) => name3.endsWith(".swiftinterface") && !name3.endsWith(".private.swiftinterface") && !name3.endsWith(".package.swiftinterface")
33465
33505
  );
33466
33506
  const chosen = interfaces.find((name3) => name3.startsWith("arm64-")) ?? interfaces[0] ?? null;
33467
- const modulemap = import_node_path64.default.join(framework, "Modules", "module.modulemap");
33507
+ let modulemap = import_node_path64.default.join(framework, "Modules", "module.modulemap");
33508
+ const headers2 = import_node_path64.default.join(framework, "Headers");
33509
+ if (!import_node_fs66.default.existsSync(modulemap) && files(headers2, (name3) => name3.endsWith(".h")).length) {
33510
+ const umbrella = import_node_fs66.default.existsSync(import_node_path64.default.join(headers2, `${module2}.h`)) ? `umbrella header "${module2}.h"` : 'umbrella "Headers"';
33511
+ modulemap = generatedModuleMap(
33512
+ `framework module ${module2} { ${umbrella} export * module * { export * } }
33513
+ `,
33514
+ true
33515
+ );
33516
+ }
33468
33517
  if (chosen) {
33469
33518
  const privateInterface = import_node_path64.default.join(
33470
33519
  swiftmodule,
@@ -33496,8 +33545,33 @@ function surfaces(xcframeworkDir, slice = simulatorSlice(xcframeworkDir)) {
33496
33545
  const module2 = moduleMapName(import_node_fs66.default.readFileSync(modulemap, "utf8"));
33497
33546
  if (module2) found.push(headerSurface(module2, modulemap, import_node_path64.default.dirname(modulemap)));
33498
33547
  }
33548
+ if (found.length === 0 && files(headers, (name3) => name3.endsWith(".h")).length) {
33549
+ const module2 = swiftTargetModuleName(target);
33550
+ const modulemap = generatedModuleMap(
33551
+ `module ${module2} { umbrella "." export * }
33552
+ `,
33553
+ false
33554
+ );
33555
+ found.push(headerSurface(module2, modulemap, headers));
33556
+ }
33499
33557
  return found;
33500
33558
  }
33559
+ function generatedModuleMap(text5, framework) {
33560
+ const dir = import_node_path64.default.join(
33561
+ cacheDir4,
33562
+ "modulemaps",
33563
+ key(text5),
33564
+ framework ? "Modules" : "Headers"
33565
+ );
33566
+ import_node_fs66.default.mkdirSync(dir, { recursive: true });
33567
+ const file = import_node_path64.default.join(dir, "module.modulemap");
33568
+ if (!import_node_fs66.default.existsSync(file)) {
33569
+ const pending = `${file}.${process.pid}.tmp`;
33570
+ import_node_fs66.default.writeFileSync(pending, text5);
33571
+ import_node_fs66.default.renameSync(pending, file);
33572
+ }
33573
+ return file;
33574
+ }
33501
33575
  function peachModuleDirs(toolchain, imports2, sdkIncludes) {
33502
33576
  const { moduleRoot, toolchainBin } = toolchain;
33503
33577
  if (swiftDistributionAt(moduleRoot)) return [import_node_path64.default.join(moduleRoot, "modules")];
@@ -33921,18 +33995,39 @@ function wasmFlags(toolchain, imports2) {
33921
33995
  ...toolchain.standinModules ? ["-I", toolchain.standinModules] : []
33922
33996
  ];
33923
33997
  }
33924
- function objcStandin(surface, binary2, toolchain, work, behavior) {
33998
+ function objcStandin(surface, binary2, toolchain, work, behavior, frameworks, siblings) {
33925
33999
  const view = objcView(
33926
34000
  surface,
33927
34001
  toolchain.toolchainBin,
33928
34002
  import_node_path64.default.join(toolchain.moduleRoot, "ios-simulator-stdlib"),
33929
34003
  cacheDir4,
33930
- import_node_path64.default.join(work, "objc")
34004
+ import_node_path64.default.join(work, "objc"),
34005
+ void 0,
34006
+ frameworks.dirs
33931
34007
  );
33932
34008
  const provided = new Set(swiftPeachModules(toolchain.moduleRoot));
33933
34009
  const headerModules = view.imports.filter(
33934
- (name3) => !STANDIN_IMPORTS.includes(name3) && provided.has(name3)
34010
+ (name3) => !STANDIN_IMPORTS.includes(name3) && (provided.has(name3) || siblings.has(name3))
33935
34011
  );
34012
+ const dependencyGraphs = headerModules.flatMap((module2) => {
34013
+ const dependency = frameworks.surfaces.get(module2);
34014
+ if (!dependency || module2 === surface.module) return [];
34015
+ return objcView(
34016
+ {
34017
+ module: dependency.module,
34018
+ modulemap: dependency.modulemap,
34019
+ headers: dependency.headers
34020
+ },
34021
+ toolchain.toolchainBin,
34022
+ import_node_path64.default.join(toolchain.moduleRoot, "ios-simulator-stdlib"),
34023
+ cacheDir4,
34024
+ import_node_path64.default.join(work, "dependencies", module2),
34025
+ void 0,
34026
+ frameworks.dirs.filter(
34027
+ (dir) => !import_node_fs66.default.existsSync(import_node_path64.default.join(dir, `${module2}.framework`))
34028
+ )
34029
+ ).graphs;
34030
+ });
33936
34031
  return graphStandin(
33937
34032
  surface.module,
33938
34033
  view.graphs,
@@ -33949,12 +34044,18 @@ function objcStandin(surface, binary2, toolchain, work, behavior) {
33949
34044
  (dependency) => swiftTargetModuleName(dependency.module)
33950
34045
  ) ?? []
33951
34046
  ])
33952
- ]
34047
+ ],
34048
+ false,
34049
+ /* @__PURE__ */ new Map(),
34050
+ null,
34051
+ /* @__PURE__ */ new Map(),
34052
+ /* @__PURE__ */ new Map(),
34053
+ dependencyGraphs
33953
34054
  );
33954
34055
  }
33955
34056
  var OBJC_UNREPRESENTABLE = "cannot be marked '@objc' because its type cannot be represented in Objective-C";
33956
34057
  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()) {
34058
+ 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
34059
  const paths = new Set(
33959
34060
  graphs.flatMap(
33960
34061
  (graph) => graph.symbols.map((symbol2) => symbol2.pathComponents.join("."))
@@ -34010,6 +34111,7 @@ function graphStandin(module2, graphs, values, wasm, binary2, toolchain, work, b
34010
34111
  objcProperties,
34011
34112
  inheritedConformances,
34012
34113
  projections,
34114
+ dependencyGraphs,
34013
34115
  ...placeholder ? { exported: placeholder.exported, placeholder: binary2.placeholder.gap } : {}
34014
34116
  });
34015
34117
  for (const entry of skipped) {
@@ -34686,6 +34788,11 @@ async function sourceStandins(binaries, toolchain, provided, behavior) {
34686
34788
  }))
34687
34789
  });
34688
34790
  } else {
34791
+ const absent = missingArtifactGap(binary2);
34792
+ if (absent !== null) {
34793
+ gaps.set(binary2.target, absent);
34794
+ continue;
34795
+ }
34689
34796
  const resolved = xcframework(binary2);
34690
34797
  const dir = import_node_path64.default.join(artifact, String(index), import_node_path64.default.basename(resolved.dir));
34691
34798
  import_node_fs66.default.cpSync(resolved.dir, dir, { recursive: true, dereference: true });
@@ -34822,7 +34929,9 @@ function standinGenerationInputs(binaries, toolchain, behavior = {}, sourceDir)
34822
34929
  const modules = new Set(
34823
34930
  binaries.flatMap((binary2) => {
34824
34931
  try {
34825
- return binary2.publicHeaders !== void 0 || binary2.placeholder !== void 0 ? [swiftTargetModuleName(binary2.target)] : surfaces(xcframework(binary2).dir).map((surface) => surface.module);
34932
+ return binary2.publicHeaders !== void 0 || binary2.placeholder !== void 0 ? [swiftTargetModuleName(binary2.target)] : surfaces(xcframework(binary2).dir, binary2.target).map(
34933
+ (surface) => surface.module
34934
+ );
34826
34935
  } catch {
34827
34936
  return [];
34828
34937
  }
@@ -34855,7 +34964,9 @@ function standinGenerationInputs(binaries, toolchain, behavior = {}, sourceDir)
34855
34964
  if (binary2.publicHeaders !== void 0 && swiftTargetModuleName(binary2.target) !== binary2.target)
34856
34965
  parts.push(`module/${swiftTargetModuleName(binary2.target)}`);
34857
34966
  try {
34858
- if (binary2.publicHeaders === void 0 && surfaces(xcframework(binary2).dir).some((surface) => surface.kind === "swift"))
34967
+ if (binary2.publicHeaders === void 0 && surfaces(xcframework(binary2).dir, binary2.target).some(
34968
+ (surface) => surface.kind === "swift"
34969
+ ))
34859
34970
  parts.push(`interface-emulation/${WASI_EMULATION.join(",")}`);
34860
34971
  parts.push(
34861
34972
  binary2.target,
@@ -34883,10 +34994,14 @@ function standinGenerationInputs(binaries, toolchain, behavior = {}, sourceDir)
34883
34994
  }
34884
34995
  return (0, import_node_crypto32.createHash)("sha256").update(parts.join("\0")).digest("hex");
34885
34996
  }
34997
+ function missingArtifactGap(binary2) {
34998
+ if (swiftBinaryOnDisk(binary2)) return null;
34999
+ 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
+ }
34886
35001
  async function binaryStandins(binary2, toolchain, provided, behavior, frameworks, siblings) {
34887
35002
  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`;
35003
+ const absent = missingArtifactGap(binary2);
35004
+ if (absent !== null) return absent;
34890
35005
  import_node_fs66.default.mkdirSync(cacheDir4, { recursive: true });
34891
35006
  const work = import_node_fs66.default.mkdtempSync(import_node_path64.default.join(cacheDir4, "work-"));
34892
35007
  let all;
@@ -34938,7 +35053,7 @@ ${roots.map((file) => ` header "${file}"`).join("\n")}
34938
35053
  ].join("\0");
34939
35054
  } else {
34940
35055
  const artifact = xcframework(binary2);
34941
- all = surfaces(artifact.dir);
35056
+ all = surfaces(artifact.dir, binary2.target);
34942
35057
  digest2 = artifact.digest;
34943
35058
  }
34944
35059
  } catch (error) {
@@ -34957,7 +35072,8 @@ ${roots.map((file) => ` header "${file}"`).join("\n")}
34957
35072
  );
34958
35073
  hash.update(digest2);
34959
35074
  hash.update([...siblings].sort().join("\0"));
34960
- if (found.some((surface) => surface.kind === "mixed")) hash.update(frameworks.digest);
35075
+ if (found.some((surface) => surface.kind === "mixed" || surface.kind === "objc"))
35076
+ hash.update(frameworks.digest);
34961
35077
  for (const surface of found) {
34962
35078
  hash.update(`${surface.kind}\0${surface.module}\0`);
34963
35079
  for (const file of surface.kind === "swift" ? [surface.interface] : surface.kind === "source" ? surface.sources : [
@@ -35034,7 +35150,9 @@ ${roots.map((file) => ` header "${file}"`).join("\n")}
35034
35150
  binary2,
35035
35151
  toolchain,
35036
35152
  dir,
35037
- new Map(Object.entries(configured.get(surface.module) ?? {}))
35153
+ new Map(Object.entries(configured.get(surface.module) ?? {})),
35154
+ frameworks,
35155
+ siblings
35038
35156
  ) : binary2.cxxHeaders ? await cxxStandin(surface, binary2, toolchain, dir) : cStandin(surface, binary2, toolchain, dir)
35039
35157
  );
35040
35158
  } catch (error) {
@@ -35079,6 +35197,7 @@ async function buildStandins(binaries, toolchain, provided, behavior) {
35079
35197
  import_node_fs66.default.mkdirSync(cacheDir4, { recursive: true });
35080
35198
  const modules = import_node_fs66.default.mkdtempSync(import_node_path64.default.join(cacheDir4, "modules-"));
35081
35199
  const frameworkDirs = /* @__PURE__ */ new Set();
35200
+ const frameworkSurfaces = /* @__PURE__ */ new Map();
35082
35201
  const frameworkInputs = [];
35083
35202
  const byModule = new Map(
35084
35203
  binaries.map((binary2) => [swiftTargetModuleName(binary2.target), binary2])
@@ -35102,16 +35221,26 @@ async function buildStandins(binaries, toolchain, provided, behavior) {
35102
35221
  frameworkInputs.push(`${binary2.target}\0${artifact.digest}`);
35103
35222
  const imports2 = /* @__PURE__ */ new Set();
35104
35223
  interfaceImports.set(binary2, imports2);
35105
- for (const surface of surfaces(artifact.dir)) {
35224
+ for (const surface of surfaces(artifact.dir, binary2.target)) {
35106
35225
  byModule.set(surface.module, binary2);
35107
35226
  if (surface.kind === "swift" || surface.kind === "mixed")
35108
35227
  for (const module2 of swiftImportNames(
35109
35228
  import_node_fs66.default.readFileSync(surface.interface, "utf8")
35110
35229
  ))
35111
35230
  imports2.add(module2);
35231
+ if (surface.kind === "objc" || surface.kind === "mixed")
35232
+ for (const file of files(surface.headers, (name3) => name3.endsWith(".h")))
35233
+ for (const module2 of clangImportNames(
35234
+ import_node_fs66.default.readFileSync(import_node_path64.default.join(surface.headers, file), "utf8")
35235
+ ))
35236
+ imports2.add(module2);
35112
35237
  if (surface.kind === "c") continue;
35238
+ if (surface.kind === "objc" || surface.kind === "mixed")
35239
+ frameworkSurfaces.set(surface.module, surface);
35240
+ if (surface.kind !== "swift" && import_node_path64.default.basename(import_node_path64.default.dirname(surface.modulemap)) !== "Modules")
35241
+ continue;
35113
35242
  frameworkDirs.add(
35114
- surface.kind === "swift" ? import_node_path64.default.resolve(surface.interface, "../../../..") : import_node_path64.default.resolve(surface.modulemap, "../../..")
35243
+ surface.kind === "swift" ? import_node_path64.default.resolve(surface.interface, "../../../..") : import_node_path64.default.resolve(surface.headers, "../..")
35115
35244
  );
35116
35245
  }
35117
35246
  } catch {
@@ -35120,7 +35249,8 @@ async function buildStandins(binaries, toolchain, provided, behavior) {
35120
35249
  const generatedToolchain = { ...toolchain, standinModules: modules };
35121
35250
  const frameworks = {
35122
35251
  dirs: [...frameworkDirs].sort(),
35123
- digest: (0, import_node_crypto32.createHash)("sha256").update(frameworkInputs.sort().join("\0")).digest("hex")
35252
+ digest: (0, import_node_crypto32.createHash)("sha256").update(frameworkInputs.sort().join("\0")).digest("hex"),
35253
+ surfaces: frameworkSurfaces
35124
35254
  };
35125
35255
  const siblings = new Map(
35126
35256
  binaries.map((binary2) => [
@@ -35164,7 +35294,7 @@ async function buildStandins(binaries, toolchain, provided, behavior) {
35164
35294
  siblings.get(binary2)
35165
35295
  );
35166
35296
  console.error(
35167
- `[swift-standins] ${binary2.target} ${typeof result === "string" ? `gap: ${result}` : "ready"} in ${Date.now() - started}ms`
35297
+ `[swift-standins] ${binary2.target} ${typeof result === "string" ? `gap: ${gapText(result)}` : "ready"} in ${Date.now() - started}ms`
35168
35298
  );
35169
35299
  if (typeof result === "string") {
35170
35300
  gaps.set(binary2.target, result);
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1964 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1966 | (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.1966 | (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.1966 | (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;