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
@@ -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;
@@ -27148,7 +27148,7 @@ var import_node_fs35 = require("node:fs");
27148
27148
  var import_node_path35 = require("node:path");
27149
27149
 
27150
27150
  // src/swift-coverage/provenance.ts
27151
- var swiftCoverageProvenance = true ? JSON.parse('{"swift-coverage/indexdump.ts":"0d82d8eeb96bf377f409ea7e33274c341a710c0e071f6b6e17571a23d8d92412","swift-coverage/indexing.ts":"633ccf19eec1f382a8847d0ee1dca42a2792a3c60aafd43622ed5152b09b8272","swift-coverage/types.ts":"bd8fae54ea6c53e110cd8a5d7b57c1d532dd0166e09fdaea63c4f270c3780dd1","swift-coverage/source.ts":"c151758a9f67631bc61473c375df0dc017da6902a34533b2cf4fc4fd7d19b6ee","swift-coverage/package.ts":"1f0068be7461fa7c5a7a891faf318f305cbed2e94c19667ba76627f7e5be260b","swift-coverage/xcode.ts":"65a500b806ce1c3a496de27f2e0ad77287c0f6795c618342c08af647f92af1fa","swift-coverage/xcode-assets.ts":"d98d6294b359528f7733b26db6f80f554782354faa235605f9562be4ad98b8a3","swift-coverage/xcode-asset-symbols.ts":"1b2a67733bc9d139b351466270205452a6172140bc25080d72619e2952c44671","swift-coverage/xcode-bridging.ts":"33184be8c5daf6646aa5a1276a4e15531f1be27b7c26f56550e0fbb1fc678a11","swift-coverage/xcode-packages.ts":"5c83f56357d880243ab485b260d23abd0094583ffa2287dac6e9e7eb18c3673d","swift-coverage/xcode-strings.ts":"f2dd4c7cd8ef77035184b0132909c2fa09fd20ed06b7757c2f1f960bfdde031c","swift-coverage/reader.ts":"da559b67ecd1161dea70c980b5f98f2c55af3550f0714479100fa5e9e813625c","swift-coverage/provenance.ts":"f5039c16e63c6129e22b71203f58982c68cef6e282a4f236b93da28edd39c108","swift-package-manifest.ts":"a19fe4c5e2efe18bbc3ece544ff2c8be660170d63274cccb0ab58e53083050e4","swift-package.ts":"851417572ca9aff699ad368bdc3ff05309b0256e483d40812b9c0beb869d0a5b","swift-source-file.ts":"8becce5e73b76a61d9d202c1ecfb39b1238e9bbf0e77841f1c51c98fa9ac7bd3","swift-toolchain.ts":"dec93d0206df8efbd9f538d1f3e3f6173f6eb022cb9ad6b02271481db7578d77","home-paths.ts":"d1606390f0e8e50f0ff72544eadb3d49dfabf08e004c1218f2998c36fb8995dd","xcode-header-search.ts":"4a775ba92c7b23ce71dd6bb08c188c4bccd6e1ed500cc9fc7850030b945fc8d4","xcode-project.ts":"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, ".."));
27151
+ var swiftCoverageProvenance = true ? JSON.parse('{"swift-coverage/indexdump.ts":"0d82d8eeb96bf377f409ea7e33274c341a710c0e071f6b6e17571a23d8d92412","swift-coverage/indexing.ts":"633ccf19eec1f382a8847d0ee1dca42a2792a3c60aafd43622ed5152b09b8272","swift-coverage/types.ts":"bd8fae54ea6c53e110cd8a5d7b57c1d532dd0166e09fdaea63c4f270c3780dd1","swift-coverage/source.ts":"c151758a9f67631bc61473c375df0dc017da6902a34533b2cf4fc4fd7d19b6ee","swift-coverage/package.ts":"1f0068be7461fa7c5a7a891faf318f305cbed2e94c19667ba76627f7e5be260b","swift-coverage/xcode.ts":"65a500b806ce1c3a496de27f2e0ad77287c0f6795c618342c08af647f92af1fa","swift-coverage/xcode-assets.ts":"d98d6294b359528f7733b26db6f80f554782354faa235605f9562be4ad98b8a3","swift-coverage/xcode-asset-symbols.ts":"1b2a67733bc9d139b351466270205452a6172140bc25080d72619e2952c44671","swift-coverage/xcode-bridging.ts":"33184be8c5daf6646aa5a1276a4e15531f1be27b7c26f56550e0fbb1fc678a11","swift-coverage/xcode-packages.ts":"5c83f56357d880243ab485b260d23abd0094583ffa2287dac6e9e7eb18c3673d","swift-coverage/xcode-strings.ts":"f2dd4c7cd8ef77035184b0132909c2fa09fd20ed06b7757c2f1f960bfdde031c","swift-coverage/reader.ts":"da559b67ecd1161dea70c980b5f98f2c55af3550f0714479100fa5e9e813625c","swift-coverage/provenance.ts":"f5039c16e63c6129e22b71203f58982c68cef6e282a4f236b93da28edd39c108","swift-package-manifest.ts":"a19fe4c5e2efe18bbc3ece544ff2c8be660170d63274cccb0ab58e53083050e4","swift-package.ts":"851417572ca9aff699ad368bdc3ff05309b0256e483d40812b9c0beb869d0a5b","swift-source-file.ts":"8becce5e73b76a61d9d202c1ecfb39b1238e9bbf0e77841f1c51c98fa9ac7bd3","swift-toolchain.ts":"dec93d0206df8efbd9f538d1f3e3f6173f6eb022cb9ad6b02271481db7578d77","home-paths.ts":"d1606390f0e8e50f0ff72544eadb3d49dfabf08e004c1218f2998c36fb8995dd","xcode-header-search.ts":"4a775ba92c7b23ce71dd6bb08c188c4bccd6e1ed500cc9fc7850030b945fc8d4","xcode-project.ts":"5e7daa9fabfa1c7f38e7b7e11bb0d4168e26d958b1acdb65e54e06e7de5c6804","xcode-target-members.ts":"2f25aaf5a3aa34395983c75935491c06bd68554c47ff1cb06b49c79499c03db0","xcode-json-project.ts":"41990ebbe4b488eef34e74c4608b4b48e5a5b299ba98ca7fbcfdfa0e77be63b6","openstep-plist.ts":"74e6ce1dac80c9c318e0e9f5e3e8cd19a898a8820c36fc160609695bcb59dcd3"}') : swiftCoverageSourceDigests((0, import_node_path.join)(__sootsim_import_meta_dirname, ".."));
27152
27152
 
27153
27153
  // src/swift-coverage/xcode-asset-symbols.ts
27154
27154
  var import_node_fs34 = require("node:fs");
@@ -32152,12 +32152,16 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
32152
32152
  );
32153
32153
  const allTargets = projects2.flatMap(projectTargets);
32154
32154
  const appTargets = allTargets.filter(
32155
- (ref) => isIosAppTarget(ref, options) || targetName !== void 0 && ref.target.name === targetName && ref.target.productType === APP_EXTENSION
32155
+ (ref) => options.frameworkMachOType ? ref.target.name === targetName && FRAMEWORK_PRODUCTS.has(str(ref.target.productType) ?? "") : isIosAppTarget(ref, options) || targetName !== void 0 && ref.target.name === targetName && ref.target.productType === APP_EXTENSION
32156
32156
  );
32157
32157
  const appTargetNames = appTargets.map((ref) => str(ref.target.name) ?? ref.id);
32158
32158
  const container = import_node_path41.default.basename(xcodeprojOrWorkspace);
32159
32159
  const named = targetName ? appTargets.filter((ref) => ref.target.name === targetName) : appTargets;
32160
32160
  if (named.length !== 1) {
32161
+ if (options.frameworkMachOType)
32162
+ throw new Error(
32163
+ `${container} must declare one framework target named ${targetName}`
32164
+ );
32161
32165
  if (appTargets.length === 0)
32162
32166
  throw new Error(
32163
32167
  `${container} has no application targets; open a project or workspace that contains one`
@@ -32420,7 +32424,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
32420
32424
  DEVELOPMENT_LANGUAGE: str(ref.project.project.developmentRegion) ?? "en"
32421
32425
  },
32422
32426
  options,
32423
- workspaceBuild
32427
+ ref === app && options.frameworkMachOType ? { ...workspaceBuild, MACH_O_TYPE: options.frameworkMachOType } : workspaceBuild
32424
32428
  );
32425
32429
  for (const file of read) xcconfigs.add(file);
32426
32430
  const swiftVersion = Number.parseFloat(settings2("SWIFT_VERSION") || "5");
@@ -33735,6 +33739,18 @@ function shippedBinaryDiffers(target, checksum) {
33735
33739
  var swiftBinaryOnDisk = (binary) => binary.url !== null || import_node_fs43.default.existsSync(binary.dir);
33736
33740
  var SWIFT_PLACEHOLDER_PACKAGES = /* @__PURE__ */ new Map();
33737
33741
  var placeholderPackage = (pkg) => SWIFT_PLACEHOLDER_PACKAGES.get(swiftPackageIdentity(pkg.manifest.dir));
33742
+ var sourceFrameworkRecipes = /* @__PURE__ */ new Map([
33743
+ [
33744
+ "438de2c5afb7dde20b640af35dd841961aa2aa4d2719e40c92d48bd2aa5dca56",
33745
+ {
33746
+ revision: "a49e7c2148ac9e38bd35ef4f13bc9d6ea3ff0b81",
33747
+ project: "Sentry.xcodeproj",
33748
+ target: "Sentry",
33749
+ configuration: "Release",
33750
+ machOType: "staticlib"
33751
+ }
33752
+ ]
33753
+ ]);
33738
33754
  function remoteSwiftCheckouts(root) {
33739
33755
  const prepared = preparedSwiftCheckouts(root);
33740
33756
  if (prepared) return prepared;
@@ -33834,6 +33850,7 @@ function resolveSwiftPackages(options) {
33834
33850
  targets: [],
33835
33851
  nativePackages: [],
33836
33852
  nativeProducts: [],
33853
+ sourceFrameworks: [],
33837
33854
  unavailable: /* @__PURE__ */ new Map(),
33838
33855
  modules: /* @__PURE__ */ new Map(),
33839
33856
  binaries: [],
@@ -33842,6 +33859,7 @@ function resolveSwiftPackages(options) {
33842
33859
  const pins = resolved.length > 0 ? readPins(resolved) : null;
33843
33860
  const checkouts = remoteSwiftCheckouts(rootDir);
33844
33861
  const packages = /* @__PURE__ */ new Map();
33862
+ const sourceFrameworks = /* @__PURE__ */ new Map();
33845
33863
  const packageKey = (source) => import_node_path44.default.isAbsolute(source) ? source : swiftPackageIdentity(source);
33846
33864
  const sourceKey = (source) => packageKey(source.kind === "local" ? import_node_path44.default.resolve(source.dir) : source.url);
33847
33865
  const load2 = (source) => {
@@ -33865,6 +33883,7 @@ function resolveSwiftPackages(options) {
33865
33883
  loaded2 = {
33866
33884
  source: source.url,
33867
33885
  remote: true,
33886
+ revision: pin2.revision,
33868
33887
  manifest: swiftPackageManifest(
33869
33888
  fetchedCheckout(checkouts, identity2, pin2),
33870
33889
  void 0,
@@ -33916,6 +33935,7 @@ function resolveSwiftPackages(options) {
33916
33935
  const targetOutcomes = /* @__PURE__ */ new Map();
33917
33936
  const resolveTarget = (pkg, name3) => {
33918
33937
  const key2 = `${pkg.manifest.dir}\0${name3}`;
33938
+ if (sourceFrameworks.has(key2)) return [];
33919
33939
  if (targetOutcomes.has(key2)) return targetOutcomes.get(key2);
33920
33940
  targetOutcomes.set(key2, []);
33921
33941
  const outcome = (() => {
@@ -34011,6 +34031,18 @@ function resolveSwiftPackages(options) {
34011
34031
  if (!binaryOnly && claimed.has(key2)) return true;
34012
34032
  const target = pkg.manifest.targets.get(name3);
34013
34033
  if (target?.type === "binary") {
34034
+ const recipe = target.checksum ? sourceFrameworkRecipes.get(target.checksum) : void 0;
34035
+ if (recipe && pkg.revision === recipe.revision && name3 === recipe.target) {
34036
+ sourceFrameworks.set(key2, {
34037
+ packageTarget: import_node_path44.default.join(pkg.manifest.dir, "#target", name3),
34038
+ project: import_node_path44.default.join(pkg.manifest.dir, recipe.project),
34039
+ target: name3,
34040
+ configuration: recipe.configuration,
34041
+ machOType: recipe.machOType
34042
+ });
34043
+ providedTargets.delete(name3);
34044
+ return true;
34045
+ }
34014
34046
  const changed = !options.standinTargets?.has(name3) && shippedBinaryDiffers(name3, target.checksum);
34015
34047
  if (changed) providedTargets.delete(name3);
34016
34048
  return changed;
@@ -34055,6 +34087,7 @@ function resolveSwiftPackages(options) {
34055
34087
  for (const pkg of packages.values()) {
34056
34088
  if (typeof pkg === "string") continue;
34057
34089
  for (const [name3, target] of pkg.manifest.targets) {
34090
+ if (sourceFrameworks.has(`${pkg.manifest.dir}\0${name3}`)) continue;
34058
34091
  if (target.type === "test" || target.type === "plugin" || target.type === "macro")
34059
34092
  continue;
34060
34093
  if (target.type === "executable") continue;
@@ -34272,6 +34305,8 @@ function resolveSwiftPackages(options) {
34272
34305
  const id = targetId(pkg, name3);
34273
34306
  if (emitted.has(id)) return id;
34274
34307
  emitted.add(id);
34308
+ const framework = sourceFrameworks.get(`${pkg.manifest.dir}\0${name3}`);
34309
+ if (framework) result.sourceFrameworks.push(framework);
34275
34310
  const target = pkg.manifest.targets.get(name3);
34276
34311
  if (!target) throw new Error(`missing resolved package target ${name3}`);
34277
34312
  const dependencies = target.type === "macro" ? [] : target.dependencies.flatMap((dependency) => {
@@ -34369,7 +34404,7 @@ function sourceClosureDigest(srcDir, entrypoints, excludedFiles) {
34369
34404
  return hash.digest("hex");
34370
34405
  }
34371
34406
  var standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
34372
- var STANDIN_SOURCE_DIGEST = true ? "2d765e977c08a74dad452d5ca662fba6baa967ccf18a7456e60717372076300b" : standinSourceDigest();
34407
+ var STANDIN_SOURCE_DIGEST = true ? "467738b34c64972f28a4f51bb4a9e09b15d846aaf5143fa94e95cf779eb7bf82" : standinSourceDigest();
34373
34408
 
34374
34409
  // src/swift-standins.ts
34375
34410
  var import_node_child_process32 = require("node:child_process");
@@ -38599,6 +38634,11 @@ function* xcodeObjCInputSteps(app, binaries, moduleRoot, products, sourceRoot =
38599
38634
  }
38600
38635
  return regular ? source : null;
38601
38636
  };
38637
+ for (const directory of target.objc.headerSearchPaths) {
38638
+ if (isSdkInclude(directory)) continue;
38639
+ const file = availableHeader(import_node_path53.default.join(directory, "module.modulemap"));
38640
+ if (file) queue.push({ file, origin: directory });
38641
+ }
38602
38642
  for (const name3 of forced) {
38603
38643
  const file = [...quoted2, ...includes].filter((directory) => !isSdkInclude(directory)).map((directory) => availableHeader(import_node_path53.default.resolve(directory, name3))).find((candidate) => candidate !== null);
38604
38644
  if (file) queue.push({ file });
@@ -40249,17 +40289,15 @@ var XCODE_FRAMEWORKS_DIR = "__frameworks__";
40249
40289
  var XCODE_PACKAGES_DIR = SWIFT_REMOTE_PACKAGES_DIR;
40250
40290
  function xcodeInputKey(layout2, file, relative2) {
40251
40291
  const owner = layout2.targetDirs.get(file);
40292
+ const checkouts = layout2.checkouts;
40293
+ const checkoutPath = file.startsWith(`${checkouts}${import_node_path58.default.sep}`) ? import_node_path58.default.relative(checkouts, file).split(import_node_path58.default.sep).join("/") : null;
40252
40294
  if (owner) {
40253
- const input = file.endsWith(".swift") ? relative2.split("/").map(
40295
+ const input = file.endsWith(".swift") ? (checkoutPath ?? relative2).split("/").map(
40254
40296
  (part) => part === "." || part === ".." ? part : part.replaceAll("%", "%25").replace(/^\./, "%2E")
40255
- ).join("/") : relative2;
40297
+ ).join("/") : checkoutPath ?? relative2;
40256
40298
  return import_node_path58.default.posix.join(owner, input);
40257
40299
  }
40258
- const checkouts = layout2.checkouts;
40259
- return file.startsWith(`${checkouts}${import_node_path58.default.sep}`) ? import_node_path58.default.posix.join(
40260
- XCODE_PACKAGES_DIR,
40261
- import_node_path58.default.relative(checkouts, file).split(import_node_path58.default.sep).join("/")
40262
- ) : relative2 === ".." || relative2.startsWith("../") ? import_node_path58.default.posix.join("external", file.split(import_node_path58.default.sep).join("/")) : relative2;
40300
+ return checkoutPath !== null ? import_node_path58.default.posix.join(XCODE_PACKAGES_DIR, checkoutPath) : relative2 === ".." || relative2.startsWith("../") ? import_node_path58.default.posix.join("external", file.split(import_node_path58.default.sep).join("/")) : relative2;
40263
40301
  }
40264
40302
  var layoutScope = new import_node_async_hooks2.AsyncLocalStorage();
40265
40303
  async function withXcodeLayout(root, run5) {
@@ -40278,7 +40316,7 @@ function xcodeLayout(root) {
40278
40316
  async function buildXcodeLayout(root) {
40279
40317
  const registered = xcodeProjects().get(root);
40280
40318
  if (!registered) return null;
40281
- const app = readXcodeAppTargetPrepared(
40319
+ const appTarget = readXcodeAppTargetPrepared(
40282
40320
  registered.xcodeproj,
40283
40321
  registered.target,
40284
40322
  registered.configuration,
@@ -40288,6 +40326,51 @@ async function buildXcodeLayout(root) {
40288
40326
  nativeModules: registered.nativeModules
40289
40327
  }
40290
40328
  );
40329
+ const { packages, standins, projectGaps, binaries } = await swiftPackages(
40330
+ registered,
40331
+ appTarget
40332
+ );
40333
+ const sourceFrameworks = new Map(
40334
+ packages.sourceFrameworks.map(
40335
+ ({ packageTarget, project, target, configuration, machOType }) => {
40336
+ const framework = readXcodeAppTarget(project, target, configuration, {
40337
+ prepareGeneratedSources: true,
40338
+ frameworkMachOType: machOType
40339
+ });
40340
+ if (framework.moduleName !== target || framework.allSources.length === 0)
40341
+ throw new Error(
40342
+ `${project}: ${target} did not produce its declared source module`
40343
+ );
40344
+ if (framework.linkedProducts.length > 0 || framework.binaryFrameworks.some(({ path: path55 }) => path55))
40345
+ throw new Error(
40346
+ `${project}: ${target} has external dependencies outside the source framework build`
40347
+ );
40348
+ return [packageTarget, framework];
40349
+ }
40350
+ )
40351
+ );
40352
+ const frameworkTargets = [...sourceFrameworks.values()];
40353
+ const app = {
40354
+ ...appTarget,
40355
+ frameworks: [
40356
+ ...appTarget.frameworks,
40357
+ ...frameworkTargets.flatMap((framework) => [...framework.frameworks, framework])
40358
+ ],
40359
+ projectFiles: [
40360
+ ...appTarget.projectFiles,
40361
+ ...frameworkTargets.flatMap((framework) => framework.projectFiles)
40362
+ ],
40363
+ resourceProducts: [
40364
+ ...appTarget.resourceProducts,
40365
+ ...frameworkTargets.flatMap((framework) => framework.resourceProducts)
40366
+ ],
40367
+ sdkFrameworks: [
40368
+ .../* @__PURE__ */ new Set([
40369
+ ...appTarget.sdkFrameworks,
40370
+ ...frameworkTargets.flatMap((framework) => framework.sdkFrameworks)
40371
+ ])
40372
+ ]
40373
+ };
40291
40374
  const appSources = app.allSources;
40292
40375
  const checkouts = remoteSwiftCheckouts(app.rootDir);
40293
40376
  const files2 = /* @__PURE__ */ new Set([
@@ -40303,10 +40386,6 @@ async function buildXcodeLayout(root) {
40303
40386
  const resourceBundles = [
40304
40387
  { target: app.moduleName, sourcePath: XCODE_APP_DIR, path: "." }
40305
40388
  ];
40306
- const { packages, standins, projectGaps, binaries } = await swiftPackages(
40307
- registered,
40308
- app
40309
- );
40310
40389
  const targets = [];
40311
40390
  const frameworkNames = /* @__PURE__ */ new Map();
40312
40391
  const usedNames = new Set(
@@ -40781,7 +40860,14 @@ async function buildXcodeLayout(root) {
40781
40860
  )
40782
40861
  });
40783
40862
  }
40784
- const graphTargets = [...app.sourceLinkGraph.targets, ...packages.sourceLinks.targets];
40863
+ const graphTargets = [
40864
+ ...app.sourceLinkGraph.targets,
40865
+ ...frameworkTargets.flatMap((framework) => framework.sourceLinkGraph.targets),
40866
+ ...packages.sourceLinks.targets.map((target) => {
40867
+ const source = sourceFrameworks.get(target.id);
40868
+ return source ? { ...target, dependencies: [{ target: source.id, attributes: [] }] } : target;
40869
+ })
40870
+ ];
40785
40871
  const applicationBuildVersion = app.sourceLinkGraph.targets.find(
40786
40872
  (target) => target.id === app.sourceLinkGraph.entry
40787
40873
  ).buildVersion;
@@ -41798,11 +41884,22 @@ async function compile(packagePath, stamp, moduleRootOverride, hosted, snapshot,
41798
41884
  const parsed = compileTargets(input);
41799
41885
  const targets = parsed.map((target) => swiftTargetModuleName(target.name));
41800
41886
  const byPath = [...parsed].sort((left, right) => right.path.length - left.path.length);
41887
+ const clangModulesByTarget = new Map(
41888
+ (input.nativeTargets ?? []).map(({ name: name3, headerSearchPaths }) => [
41889
+ name3,
41890
+ headerSearchPaths.flatMap((directory) => {
41891
+ const map = input.files[import_node_path58.default.posix.join(directory, "module.modulemap")];
41892
+ return map === void 0 ? [] : moduleMapModules(map).map(({ name: name4 }) => name4);
41893
+ })
41894
+ ])
41895
+ );
41801
41896
  const providedByFile = (file) => {
41802
41897
  const owner = byPath.find(
41803
41898
  (target) => target.path === "." ? true : file.startsWith(`${target.path}/`)
41804
41899
  );
41805
- return owner?.experimentalFeatures?.includes("BuiltinModule") ? ["Builtin"] : [];
41900
+ if (!owner) return [];
41901
+ const clangModules = clangModulesByTarget.get(owner.name) ?? [];
41902
+ return owner.experimentalFeatures?.includes("BuiltinModule") ? [...clangModules, "Builtin"] : clangModules;
41806
41903
  };
41807
41904
  const missing = missingSwiftModules(
41808
41905
  input.files,
package/dist-lib/vite.cjs 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
  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;
@@ -3988,7 +3988,7 @@ var STANDIN_SOURCE_DIGEST;
3988
3988
  var init_swift_standin_digest = __esm({
3989
3989
  "src/swift-standin-digest.ts"() {
3990
3990
  "use strict";
3991
- STANDIN_SOURCE_DIGEST = true ? "2d765e977c08a74dad452d5ca662fba6baa967ccf18a7456e60717372076300b" : standinSourceDigest();
3991
+ STANDIN_SOURCE_DIGEST = true ? "467738b34c64972f28a4f51bb4a9e09b15d846aaf5143fa94e95cf779eb7bf82" : standinSourceDigest();
3992
3992
  }
3993
3993
  });
3994
3994
 
@@ -4459,7 +4459,7 @@ var swiftCoverageProvenance;
4459
4459
  var init_provenance = __esm({
4460
4460
  "src/swift-coverage/provenance.ts"() {
4461
4461
  "use strict";
4462
- 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, ".."));
4462
+ 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, ".."));
4463
4463
  }
4464
4464
  });
4465
4465
 
@@ -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
  var __defProp = Object.defineProperty;
3
3
  var __typeError = (msg) => {
4
4
  throw TypeError(msg);
@@ -242,6 +242,7 @@ export declare function queryImageCache(uris: readonly string[]): Record<string,
242
242
  export declare function abortImagePrefetch(requestId: number): boolean;
243
243
  export declare function notifyFileStorageChanged(): boolean;
244
244
  export declare function releaseSnapshotImage(appId: string): void;
245
+ export declare function forgetSnapshotImage(appId: string): void;
245
246
  export declare function trimSnapshotImages(keepFraction: number): string[];
246
247
  export declare function storeSnapshotBitmap(appId: string, bitmap: ImageBitmap): void;
247
248
  export declare function getStoredSnapshotImage(appId: string, ctx?: RenderContext): SkImage | null;
@@ -97,6 +97,7 @@ export interface CompositorGpuFrame {
97
97
  readonly appId: string;
98
98
  readonly width: number;
99
99
  readonly height: number;
100
+ readonly isCurrent: () => boolean;
100
101
  }, done: (committed: boolean) => void): void;
101
102
  sampleThumbnail(display: CompositorGpuDisplay, size: {
102
103
  readonly width: number;
@@ -1319,9 +1319,13 @@ export type CompositorHostToWorker = {
1319
1319
  type: 'nativeWidgetVisibility';
1320
1320
  identity: NativeWidgetIdentity;
1321
1321
  visible: boolean;
1322
+ interactive: boolean;
1322
1323
  } | {
1323
1324
  type: 'retireNativeWidget';
1324
1325
  identity: NativeWidgetIdentity;
1326
+ } | {
1327
+ type: 'releaseNativeWidgetFrame';
1328
+ frameId: string;
1325
1329
  } | {
1326
1330
  type: 'resizeNativeWidget';
1327
1331
  identity: NativeWidgetIdentity;
@@ -3,6 +3,7 @@ import type { SwiftEntryOptions } from '../../../../../src/swiftContract.ts';
3
3
  import type { ExpoWidgetEntry } from './expo-widgetContract.d.ts';
4
4
  export interface NativeWidgetView {
5
5
  visible: boolean;
6
+ interactive: boolean;
6
7
  dpr: number;
7
8
  width: number;
8
9
  height: number;
@@ -13,6 +14,7 @@ export interface NativeWidgetIdentity {
13
14
  readonly instanceId: string;
14
15
  readonly generation: number;
15
16
  readonly surfaceId: NativeWidgetSurfaceId;
17
+ readonly retainedFrameId?: string;
16
18
  }
17
19
  export type NativeActivityPresentation = 'lockScreen' | 'compactLeading' | 'compactTrailing' | 'minimal' | 'expandedLeading' | 'expandedTrailing' | 'expandedCenter' | 'expandedBottom';
18
20
  export type NativeWidgetContent = {
@@ -77,6 +79,9 @@ export type NativeWidgetHomeCommand = {
77
79
  } | {
78
80
  type: 'nativeWidgetHomeRetire';
79
81
  requestId: number;
82
+ } | {
83
+ type: 'nativeWidgetHomeReleaseFrame';
84
+ frameId: string;
80
85
  } | {
81
86
  type: 'nativeWidgetHomeLinkResult';
82
87
  requestId: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "peachsim",
3
- "version": "0.1.2411",
3
+ "version": "0.1.2412",
4
4
  "description": "Vite and Metro plugins, testing drivers, and SDK exports for peach.",
5
5
  "author": "Tamagui LLC",
6
6
  "license": "SEE LICENSE IN LICENSE",
@@ -124,6 +124,10 @@ export async function hashExpoSourceWorkspace(app: string, signal?: AbortSignal)
124
124
  return { root, hash }
125
125
  }
126
126
 
127
+ export async function hashExpoNativeWorkspaceInputs(app: string) {
128
+ return (await hashWorkspaceInputs(app, false, undefined, true)).nativeHash
129
+ }
130
+
127
131
  // a portable producer cannot claim the live app's hash unless the prepared
128
132
  // copy actually holds those bytes, including files outside the native graph.
129
133
  export async function verifyExpoWorkspaceCopy(app: string, work: string) {
package/src/swift-host.ts CHANGED
@@ -57,6 +57,7 @@ import { swiftDistributionRoot, swiftModuleToolchain } from './swift-distributio
57
57
  import { xcodeNativeFlags, xcodeObjCInputsAsync } from './swift-objc-compile'
58
58
  import {
59
59
  isSwiftNativeTranslationUnit,
60
+ moduleMapModules,
60
61
  swiftImplicitResourcePaths,
61
62
  swiftManifestSettings,
62
63
  swiftMetalSourceFiles,
@@ -789,11 +790,15 @@ function xcodeInputKey(
789
790
  relative: string,
790
791
  ): string {
791
792
  const owner = layout.targetDirs.get(file)
793
+ const checkouts = layout.checkouts
794
+ const checkoutPath = file.startsWith(`${checkouts}${path.sep}`)
795
+ ? path.relative(checkouts, file).split(path.sep).join('/')
796
+ : null
792
797
  if (owner) {
793
798
  // swiftpm ignores sources beneath hidden directories, including pnpm's
794
799
  // .pnpm store, even when xcode explicitly includes those files.
795
800
  const input = file.endsWith('.swift')
796
- ? relative
801
+ ? (checkoutPath ?? relative)
797
802
  .split('/')
798
803
  .map((part) =>
799
804
  part === '.' || part === '..'
@@ -801,15 +806,11 @@ function xcodeInputKey(
801
806
  : part.replaceAll('%', '%25').replace(/^\./, '%2E'),
802
807
  )
803
808
  .join('/')
804
- : relative
809
+ : (checkoutPath ?? relative)
805
810
  return path.posix.join(owner, input)
806
811
  }
807
- const checkouts = layout.checkouts
808
- return file.startsWith(`${checkouts}${path.sep}`)
809
- ? path.posix.join(
810
- XCODE_PACKAGES_DIR,
811
- path.relative(checkouts, file).split(path.sep).join('/'),
812
- )
812
+ return checkoutPath !== null
813
+ ? path.posix.join(XCODE_PACKAGES_DIR, checkoutPath)
813
814
  : relative === '..' || relative.startsWith('../')
814
815
  ? path.posix.join('external', file.split(path.sep).join('/'))
815
816
  : relative
@@ -869,7 +870,7 @@ function xcodeLayout(root: string): XcodeLayout | null {
869
870
  async function buildXcodeLayout(root: string): Promise<XcodeLayout | null> {
870
871
  const registered = xcodeProjects().get(root)
871
872
  if (!registered) return null
872
- const app = readXcodeAppTargetPrepared(
873
+ const appTarget = readXcodeAppTargetPrepared(
873
874
  registered.xcodeproj,
874
875
  registered.target,
875
876
  registered.configuration,
@@ -879,6 +880,54 @@ async function buildXcodeLayout(root: string): Promise<XcodeLayout | null> {
879
880
  nativeModules: registered.nativeModules,
880
881
  },
881
882
  )
883
+ const { packages, standins, projectGaps, binaries } = await swiftPackages(
884
+ registered,
885
+ appTarget,
886
+ )
887
+ const sourceFrameworks = new Map(
888
+ packages.sourceFrameworks.map(
889
+ ({ packageTarget, project, target, configuration, machOType }) => {
890
+ const framework = readXcodeAppTarget(project, target, configuration, {
891
+ prepareGeneratedSources: true,
892
+ frameworkMachOType: machOType,
893
+ })
894
+ if (framework.moduleName !== target || framework.allSources.length === 0)
895
+ throw new Error(
896
+ `${project}: ${target} did not produce its declared source module`,
897
+ )
898
+ if (
899
+ framework.linkedProducts.length > 0 ||
900
+ framework.binaryFrameworks.some(({ path }) => path)
901
+ )
902
+ throw new Error(
903
+ `${project}: ${target} has external dependencies outside the source framework build`,
904
+ )
905
+ return [packageTarget, framework] as const
906
+ },
907
+ ),
908
+ )
909
+ const frameworkTargets = [...sourceFrameworks.values()]
910
+ const app = {
911
+ ...appTarget,
912
+ frameworks: [
913
+ ...appTarget.frameworks,
914
+ ...frameworkTargets.flatMap((framework) => [...framework.frameworks, framework]),
915
+ ],
916
+ projectFiles: [
917
+ ...appTarget.projectFiles,
918
+ ...frameworkTargets.flatMap((framework) => framework.projectFiles),
919
+ ],
920
+ resourceProducts: [
921
+ ...appTarget.resourceProducts,
922
+ ...frameworkTargets.flatMap((framework) => framework.resourceProducts),
923
+ ],
924
+ sdkFrameworks: [
925
+ ...new Set([
926
+ ...appTarget.sdkFrameworks,
927
+ ...frameworkTargets.flatMap((framework) => framework.sdkFrameworks),
928
+ ]),
929
+ ],
930
+ }
882
931
  const appSources = app.allSources
883
932
  const checkouts = remoteSwiftCheckouts(app.rootDir)
884
933
  const files = new Set([
@@ -894,10 +943,6 @@ async function buildXcodeLayout(root: string): Promise<XcodeLayout | null> {
894
943
  const resourceBundles: SwiftResourceBundle[] = [
895
944
  { target: app.moduleName, sourcePath: XCODE_APP_DIR, path: '.' },
896
945
  ]
897
- const { packages, standins, projectGaps, binaries } = await swiftPackages(
898
- registered,
899
- app,
900
- )
901
946
  const targets: XcodeLayout['targets'] = []
902
947
  const frameworkNames = new Map<XcodeModuleTarget, string>()
903
948
  const usedNames = new Set(
@@ -1519,7 +1564,16 @@ async function buildXcodeLayout(root: string): Promise<XcodeLayout | null> {
1519
1564
  ),
1520
1565
  })
1521
1566
  }
1522
- const graphTargets = [...app.sourceLinkGraph.targets, ...packages.sourceLinks.targets]
1567
+ const graphTargets = [
1568
+ ...app.sourceLinkGraph.targets,
1569
+ ...frameworkTargets.flatMap((framework) => framework.sourceLinkGraph.targets),
1570
+ ...packages.sourceLinks.targets.map((target) => {
1571
+ const source = sourceFrameworks.get(target.id)
1572
+ return source
1573
+ ? { ...target, dependencies: [{ target: source.id, attributes: [] }] }
1574
+ : target
1575
+ }),
1576
+ ]
1523
1577
  const applicationBuildVersion = app.sourceLinkGraph.targets.find(
1524
1578
  (target) => target.id === app.sourceLinkGraph.entry,
1525
1579
  )!.buildVersion
@@ -3052,11 +3106,24 @@ async function compile(
3052
3106
  // feature, exactly when its import compiles. longest path first, so a
3053
3107
  // nested target's files read its own settings.
3054
3108
  const byPath = [...parsed].sort((left, right) => right.path.length - left.path.length)
3109
+ const clangModulesByTarget = new Map(
3110
+ (input.nativeTargets ?? []).map(({ name, headerSearchPaths }) => [
3111
+ name,
3112
+ headerSearchPaths.flatMap((directory) => {
3113
+ const map = input.files[path.posix.join(directory, 'module.modulemap')]
3114
+ return map === undefined ? [] : moduleMapModules(map).map(({ name }) => name)
3115
+ }),
3116
+ ]),
3117
+ )
3055
3118
  const providedByFile = (file: string): readonly string[] => {
3056
3119
  const owner = byPath.find((target) =>
3057
3120
  target.path === '.' ? true : file.startsWith(`${target.path}/`),
3058
3121
  )
3059
- return owner?.experimentalFeatures?.includes('BuiltinModule') ? ['Builtin'] : []
3122
+ if (!owner) return []
3123
+ const clangModules = clangModulesByTarget.get(owner.name) ?? []
3124
+ return owner.experimentalFeatures?.includes('BuiltinModule')
3125
+ ? [...clangModules, 'Builtin']
3126
+ : clangModules
3060
3127
  }
3061
3128
  const missing = missingSwiftModules(
3062
3129
  input.files,
@@ -678,6 +678,11 @@ function* xcodeObjCInputSteps(
678
678
  }
679
679
  return regular ? source : null
680
680
  }
681
+ for (const directory of target.objc.headerSearchPaths) {
682
+ if (isSdkInclude(directory)) continue
683
+ const file = availableHeader(path.join(directory, 'module.modulemap'))
684
+ if (file) queue.push({ file, origin: directory })
685
+ }
681
686
  // a forced include on the search path is found like a quoted include; an
682
687
  // sdk header is no project input
683
688
  for (const name of forced) {