peachsim 0.1.1978 → 0.1.1980

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/cli/commands/inspect.ts +6 -2
  2. package/dist-lib/agent-daemon-client.cjs +1 -1
  3. package/dist-lib/agent-events.cjs +1 -1
  4. package/dist-lib/attached-projects.cjs +1 -1
  5. package/dist-lib/auth/shared-session.cjs +1 -1
  6. package/dist-lib/backend-origin.cjs +1 -1
  7. package/dist-lib/beta.cjs +1 -1
  8. package/dist-lib/beta.mjs +1 -1
  9. package/dist-lib/bridge-constants.cjs +1 -1
  10. package/dist-lib/bridge-contract-input.cjs +1 -1
  11. package/dist-lib/bridge-contract-input.mjs +1 -1
  12. package/dist-lib/bridge-contract.cjs +1 -1
  13. package/dist-lib/bridge-contract.mjs +1 -1
  14. package/dist-lib/bundle-channel.cjs +134 -35
  15. package/dist-lib/capture-contract.cjs +1 -1
  16. package/dist-lib/capture-contract.mjs +1 -1
  17. package/dist-lib/cloud-contract.cjs +1 -1
  18. package/dist-lib/cloud-contract.mjs +1 -1
  19. package/dist-lib/cloud-test-args.cjs +1 -1
  20. package/dist-lib/cloud-test-args.mjs +1 -1
  21. package/dist-lib/cloud.cjs +1 -1
  22. package/dist-lib/cloud.mjs +1 -1
  23. package/dist-lib/config.cjs +1 -1
  24. package/dist-lib/config.mjs +1 -1
  25. package/dist-lib/detox/index.cjs +1 -1
  26. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  27. package/dist-lib/expo-swift-bundle.cjs +133 -34
  28. package/dist-lib/expo-swift-metadata.cjs +1 -1
  29. package/dist-lib/expo-swift-metadata.mjs +1 -1
  30. package/dist-lib/home-paths.cjs +1 -1
  31. package/dist-lib/host/bridge-host.cjs +134 -35
  32. package/dist-lib/host/fetch-proxy-handler.cjs +1 -1
  33. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  34. package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
  35. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  36. package/dist-lib/host/websocket-proxy.cjs +1 -1
  37. package/dist-lib/index.cjs +1 -1
  38. package/dist-lib/jump-to-source-babel.cjs +1 -1
  39. package/dist-lib/jump-to-source-native.cjs +1 -1
  40. package/dist-lib/kotlin-host.cjs +1 -1
  41. package/dist-lib/menu.cjs +1 -1
  42. package/dist-lib/menu.mjs +1 -1
  43. package/dist-lib/metro-fingerprint-registry.cjs +1 -1
  44. package/dist-lib/metro-fingerprint-registry.mjs +1 -1
  45. package/dist-lib/metro-production-bundle.cjs +1 -1
  46. package/dist-lib/metro-production-bundle.mjs +1 -1
  47. package/dist-lib/metro.cjs +1 -1
  48. package/dist-lib/native-app-identity-project.cjs +1 -1
  49. package/dist-lib/native-app-identity-project.mjs +1 -1
  50. package/dist-lib/native-app-identity.cjs +1 -1
  51. package/dist-lib/native-app-identity.mjs +1 -1
  52. package/dist-lib/native-firebase-metadata.cjs +1 -1
  53. package/dist-lib/native-firebase-metadata.mjs +1 -1
  54. package/dist-lib/pdfium-raster.cjs +1 -1
  55. package/dist-lib/pdfium-raster.mjs +1 -1
  56. package/dist-lib/plist.cjs +1 -1
  57. package/dist-lib/plist.mjs +1 -1
  58. package/dist-lib/profiles.cjs +1 -1
  59. package/dist-lib/public-brand.cjs +1 -1
  60. package/dist-lib/public-origins-lib-esm.json +24 -24
  61. package/dist-lib/public-origins-lib.json +53 -53
  62. package/dist-lib/react-native-host-modules.cjs +1 -1
  63. package/dist-lib/react-native-host-modules.mjs +1 -1
  64. package/dist-lib/reap-browser.cjs +1 -1
  65. package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
  66. package/dist-lib/sdk.cjs +1 -1
  67. package/dist-lib/sdk.mjs +1 -1
  68. package/dist-lib/skills.cjs +134 -35
  69. package/dist-lib/swift-compile.cjs +1 -1
  70. package/dist-lib/swift-compile.mjs +1 -1
  71. package/dist-lib/swift-package.cjs +1 -1
  72. package/dist-lib/swift-package.mjs +1 -1
  73. package/dist-lib/swift-submit.cjs +1 -1
  74. package/dist-lib/swift-submit.mjs +1 -1
  75. package/dist-lib/swift-toolchain.cjs +1 -1
  76. package/dist-lib/swift.cjs +1 -1
  77. package/dist-lib/vite-swift.cjs +1 -1
  78. package/dist-lib/vite.cjs +1 -1
  79. package/dist-lib/worklet-executable.cjs +1 -1
  80. package/dist-lib/worklet-executable.mjs +1 -1
  81. package/package.json +1 -1
  82. package/src/expo-discovery-cache.ts +2 -0
  83. package/src/expo-native-workspace.ts +4 -1
  84. package/src/expo-swift-host.ts +144 -31
  85. package/src/expoSwiftContract.ts +1 -0
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1978 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1980 | (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;
@@ -30227,7 +30227,7 @@ async function hashWorkspaceInputs(app, everyByte, signal, sourceOnly = false, p
30227
30227
  }).join("\n");
30228
30228
  };
30229
30229
  const steersNative = (relative3) => !relative3.includes(import_node_path51.default.sep) || relative3.startsWith(`patches${import_node_path51.default.sep}`) || nativeDirectories.some(
30230
- (directory) => relative3 === directory || relative3.startsWith(directory + import_node_path51.default.sep)
30230
+ (directory) => directory === "" || relative3 === directory || relative3.startsWith(directory + import_node_path51.default.sep)
30231
30231
  );
30232
30232
  const walk3 = async (directory) => {
30233
30233
  const entries = await import_node_fs52.default.promises.readdir(directory, { withFileTypes: true });
@@ -30799,12 +30799,12 @@ function sharedDir() {
30799
30799
  var strings = (value) => Array.isArray(value) && value.every((item) => typeof item === "string");
30800
30800
  var stringRecord = (value) => isRecord(value) && Object.values(value).every((item) => typeof item === "string");
30801
30801
  function isExpoSwiftSourceUnit(value) {
30802
- return isRecord(value) && typeof value.namespace === "string" && typeof value.moduleId === "string" && (value.nativeAppIdentity === void 0 || isNativeAppIdentity(value.nativeAppIdentity)) && strings(value.classes) && strings(value.bridgeModules) && strings(value.appDelegateSubscribers) && strings(value.reactDelegateHandlers) && stringRecord(value.files) && strings(value.frameworks) && (value.nativeTargets === void 0 || Array.isArray(value.nativeTargets) && value.nativeTargets.every(isRecord)) && (value.nativeFiles === void 0 || stringRecord(value.nativeFiles)) && (value.resources === void 0 || stringRecord(value.resources)) && (value.resourceBundles === void 0 || isSwiftResourceBundles(value.resourceBundles)) && (value.swiftLanguageMode === void 0 || typeof value.swiftLanguageMode === "number");
30802
+ return isRecord(value) && typeof value.namespace === "string" && typeof value.moduleId === "string" && (value.nativeAppIdentity === void 0 || isNativeAppIdentity(value.nativeAppIdentity)) && strings(value.classes) && strings(value.bridgeModules) && strings(value.appDelegateSubscribers) && strings(value.reactDelegateHandlers) && stringRecord(value.files) && strings(value.frameworks) && (value.workspaceSources === void 0 || strings(value.workspaceSources)) && (value.nativeTargets === void 0 || Array.isArray(value.nativeTargets) && value.nativeTargets.every(isRecord)) && (value.nativeFiles === void 0 || stringRecord(value.nativeFiles)) && (value.resources === void 0 || stringRecord(value.resources)) && (value.resourceBundles === void 0 || isSwiftResourceBundles(value.resourceBundles)) && (value.swiftLanguageMode === void 0 || typeof value.swiftLanguageMode === "number");
30803
30803
  }
30804
30804
  var isDigest = (value) => /^[0-9a-f]{64}$/.test(value);
30805
30805
  var digestRecord = (value) => stringRecord(value) && Object.values(value).every(isDigest);
30806
30806
  function isStoredUnit(value) {
30807
- return isRecord(value) && typeof value.namespace === "string" && typeof value.moduleId === "string" && strings(value.classes) && strings(value.bridgeModules) && strings(value.appDelegateSubscribers) && strings(value.reactDelegateHandlers) && digestRecord(value.files) && strings(value.frameworks) && (value.nativeTargets === void 0 || strings(value.nativeTargets) && value.nativeTargets.every(isDigest)) && (value.nativeFiles === void 0 || digestRecord(value.nativeFiles)) && (value.resources === void 0 || digestRecord(value.resources)) && (value.resourceBundles === void 0 || isSwiftResourceBundles(value.resourceBundles)) && (value.swiftLanguageMode === void 0 || typeof value.swiftLanguageMode === "number");
30807
+ return isRecord(value) && typeof value.namespace === "string" && typeof value.moduleId === "string" && strings(value.classes) && strings(value.bridgeModules) && strings(value.appDelegateSubscribers) && strings(value.reactDelegateHandlers) && digestRecord(value.files) && strings(value.frameworks) && (value.workspaceSources === void 0 || strings(value.workspaceSources)) && (value.nativeTargets === void 0 || strings(value.nativeTargets) && value.nativeTargets.every(isDigest)) && (value.nativeFiles === void 0 || digestRecord(value.nativeFiles)) && (value.resources === void 0 || digestRecord(value.resources)) && (value.resourceBundles === void 0 || isSwiftResourceBundles(value.resourceBundles)) && (value.swiftLanguageMode === void 0 || typeof value.swiftLanguageMode === "number");
30808
30808
  }
30809
30809
  function readExpoDiscovery(key2) {
30810
30810
  let parsed;
@@ -31515,7 +31515,7 @@ async function packageTreeDigest(root) {
31515
31515
 
31516
31516
  // src/expo-native-prebuilt.ts
31517
31517
  var EXPO_NATIVE_ENTRY_NAME = "ios";
31518
- var EXPO_NATIVE_COMPILER_DIGEST = true ? "f90ae0c677af73a61bbcfab75e5af9dbfa9d67bf02b9a8e619d0974c8297742f" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
31518
+ var EXPO_NATIVE_COMPILER_DIGEST = true ? "9b0c766d8fabc5a17b7a5192068af220bfdd1fdb80b28a47c3f3432a2409376b" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
31519
31519
  var IDENTITY_SOURCE_SKIPS = 1 | 4 | 8 | 16 | 32 | 64 | 128 | 4096;
31520
31520
  function readSources(value) {
31521
31521
  const sources = isRecord(value) ? value.sources : null;
@@ -41825,11 +41825,16 @@ function cloneUnits(units) {
41825
41825
  appDelegateSubscribers: unit2.appDelegateSubscribers.slice(),
41826
41826
  reactDelegateHandlers: unit2.reactDelegateHandlers.slice(),
41827
41827
  frameworks: unit2.frameworks.slice(),
41828
+ ...unit2.workspaceSources ? { workspaceSources: unit2.workspaceSources.slice() } : {},
41828
41829
  files: { ...unit2.files },
41829
41830
  ...unit2.nativeFiles ? { nativeFiles: { ...unit2.nativeFiles } } : {},
41830
41831
  ...unit2.headerAliases ? { headerAliases: { ...unit2.headerAliases } } : {},
41831
41832
  ...unit2.resources ? { resources: { ...unit2.resources } } : {},
41832
- ...unit2.resourceBundles ? { resourceBundles: unit2.resourceBundles.map((bundle) => ({ ...bundle })) } : {},
41833
+ ...unit2.resourceBundles ? {
41834
+ resourceBundles: unit2.resourceBundles.map((bundle) => ({
41835
+ ...bundle
41836
+ }))
41837
+ } : {},
41833
41838
  ...unit2.nativeTargets ? { nativeTargets: unit2.nativeTargets.map(cloneNativeTarget) } : {}
41834
41839
  }));
41835
41840
  }
@@ -42272,24 +42277,40 @@ async function collectExpoSwiftSourcesUncached(appRoot, signal, installedWorkspa
42272
42277
  installed?.input.files["Package.swift"] ?? ""
42273
42278
  );
42274
42279
  const units = [];
42280
+ const dependencyUnits = [];
42281
+ const processed = /* @__PURE__ */ new Set();
42275
42282
  const namespacesSeen = /* @__PURE__ */ new Set();
42276
42283
  const namespaceGroups = /* @__PURE__ */ new Map();
42277
42284
  let answeredInstalled = false;
42278
42285
  let needsNativeWorkspace = false;
42279
42286
  let bytes = 0;
42280
42287
  let fileCount = 0;
42281
- for (const [packageName, entry] of Object.entries(search).sort(
42282
- ([a], [b]) => a.localeCompare(b)
42283
- )) {
42288
+ const entries = Object.entries(search).sort(([a], [b]) => a.localeCompare(b));
42289
+ const queue = entries.slice();
42290
+ const queued = new Set(entries.map(([name3]) => name3));
42291
+ const reconsider = () => {
42292
+ for (const entry of entries)
42293
+ if (!processed.has(entry[0]) && !queued.has(entry[0])) {
42294
+ queue.push(entry);
42295
+ queued.add(entry[0]);
42296
+ }
42297
+ };
42298
+ for (const [packageName, entry] of queue) {
42299
+ queued.delete(packageName);
42300
+ if (processed.has(packageName)) continue;
42284
42301
  if (!entry || typeof entry !== "object")
42285
42302
  throw new Error("invalid Expo autolinking entry");
42286
42303
  const sourceRoot = Reflect.get(entry, "path");
42287
42304
  if (typeof sourceRoot !== "string")
42288
42305
  throw new Error("Expo autolinking entry has no path");
42289
42306
  const canonical = import_node_fs73.default.realpathSync(sourceRoot);
42290
- if (canonical.split(import_node_path71.default.sep).includes("node_modules") && peachAnsweredNativePackages().has(packageName)) {
42307
+ const answered2 = canonical.split(import_node_path71.default.sep).includes("node_modules") && peachAnsweredNativePackages().has(packageName);
42308
+ if (answered2) {
42291
42309
  answeredInstalled = true;
42292
- continue;
42310
+ if (installed || prepareNative) {
42311
+ processed.add(packageName);
42312
+ continue;
42313
+ }
42293
42314
  }
42294
42315
  for (const name3 of ["expo-module.config.json", "unimodule.json"]) {
42295
42316
  const descriptor = import_node_path71.default.join(canonical, name3);
@@ -42316,8 +42337,21 @@ async function collectExpoSwiftSourcesUncached(appRoot, signal, installedWorkspa
42316
42337
  const subscriberNames = delegateNames("appDelegateSubscribers");
42317
42338
  const handlerNames = delegateNames("reactDelegateHandlers");
42318
42339
  const deferredToWorkspace = prepareNative && !installedWorkspace && Array.isArray(pods) && pods.length > 0;
42319
- if ((!Array.isArray(modules) || modules.length === 0) && subscriberNames.length === 0 && handlerNames.length === 0)
42320
- continue;
42340
+ const dependencyOnly = answered2 || (!Array.isArray(modules) || modules.length === 0) && subscriberNames.length === 0 && handlerNames.length === 0;
42341
+ if (dependencyOnly) {
42342
+ if (installed || prepareNative || !Array.isArray(namespaces)) {
42343
+ processed.add(packageName);
42344
+ continue;
42345
+ }
42346
+ const imports2 = new Set(
42347
+ [...units, ...dependencyUnits].flatMap(
42348
+ (unit2) => Object.values(unit2.files).flatMap((source) => swiftImportNames(source))
42349
+ )
42350
+ );
42351
+ if (!namespaces.some((name3) => typeof name3 === "string" && imports2.has(name3)))
42352
+ continue;
42353
+ }
42354
+ processed.add(packageName);
42321
42355
  if (!Array.isArray(namespaces) || namespaces.length === 0 || !namespaces.every(
42322
42356
  (name3) => typeof name3 === "string" && /^[A-Za-z_][A-Za-z0-9_]*$/.test(name3)
42323
42357
  ))
@@ -42328,9 +42362,10 @@ async function collectExpoSwiftSourcesUncached(appRoot, signal, installedWorkspa
42328
42362
  }
42329
42363
  if (namespaces.length > 1 && !installed) {
42330
42364
  if (!nativeWorkspaceAvailable()) {
42331
- report(
42332
- `${packageName}: ${namespaces.join(", ")} need CocoaPods target membership, which only a Mac prepares; not compiled`
42333
- );
42365
+ if (!answered2)
42366
+ report(
42367
+ `${packageName}: ${namespaces.join(", ")} need CocoaPods target membership, which only a Mac prepares; not compiled`
42368
+ );
42334
42369
  continue;
42335
42370
  }
42336
42371
  const prepared = await prepareExpoNativeWorkspace(appRoot, signal, iosTarget);
@@ -42423,8 +42458,13 @@ async function collectExpoSwiftSourcesUncached(appRoot, signal, installedWorkspa
42423
42458
  walk3(file, binary2 || framework);
42424
42459
  continue;
42425
42460
  }
42426
- if (!binary2 && target.isFile() && /\.(?:mm?|c|cc|cpp)$/.test(child.name))
42427
- nativeSources.add(import_node_path71.default.relative(ios, file));
42461
+ if (!binary2 && target.isFile() && /\.(?:mm?|c|cc|cpp)$/.test(child.name)) {
42462
+ const source2 = linked ?? resolveSource(file);
42463
+ if (import_node_fs73.default.statSync(source2).size > 4096 || !/^(?:\s|\/\/[^\n]*|\/\*[\s\S]*?\*\/)*$/.test(
42464
+ import_node_fs73.default.readFileSync(source2, "utf8")
42465
+ ))
42466
+ nativeSources.add(import_node_path71.default.relative(ios, file));
42467
+ }
42428
42468
  if (!target.isFile() || !child.name.endsWith(".swift")) continue;
42429
42469
  const source = linked ?? resolveSource(file);
42430
42470
  if (sources.has(source)) continue;
@@ -42501,6 +42541,24 @@ ${import_node_fs73.default.readFileSync(source, "utf8")}`;
42501
42541
  const podspecFloor = podspec ? /\.platforms\s*=\s*\{\s*:ios\s*=>\s*['"](\d+(?:\.\d+){0,2})['"]/.exec(
42502
42542
  import_node_fs73.default.readFileSync(import_node_path71.default.join(ios, podspec), "utf8")
42503
42543
  )?.[1] : void 0;
42544
+ if (dependencyOnly && Object.keys(files2).length > 0) {
42545
+ dependencyUnits.push({
42546
+ namespace,
42547
+ moduleId: namespace,
42548
+ classes: [],
42549
+ bridgeModules: [],
42550
+ appDelegateSubscribers: [],
42551
+ reactDelegateHandlers: [],
42552
+ files: files2,
42553
+ frameworks: [...frameworks],
42554
+ ...nativeSources.size ? { workspaceSources: [namespace] } : {},
42555
+ ...podspecFloor ? {
42556
+ nativeTargets: [synthesizedNativeTarget(namespace, podspecFloor)]
42557
+ } : {}
42558
+ });
42559
+ reconsider();
42560
+ }
42561
+ if (dependencyOnly) continue;
42504
42562
  for (const declaration of declarations) {
42505
42563
  const className = declaration.reference;
42506
42564
  const owner = className.split(".")[0];
@@ -42533,10 +42591,13 @@ ${import_node_fs73.default.readFileSync(source, "utf8")}`;
42533
42591
  files: closure,
42534
42592
  frameworks: [...frameworks],
42535
42593
  ...absentFrameworks.length > 0 ? { absentFrameworks } : {},
42536
- ...podspecFloor ? { nativeTargets: [synthesizedNativeTarget(namespace, podspecFloor)] } : {}
42594
+ ...podspecFloor ? {
42595
+ nativeTargets: [synthesizedNativeTarget(namespace, podspecFloor)]
42596
+ } : {}
42537
42597
  };
42538
42598
  unit2.files[EXPO_SWIFT_ENTRY] = expoEntry([unit2]);
42539
42599
  units.push(unit2);
42600
+ reconsider();
42540
42601
  }
42541
42602
  }
42542
42603
  if (namespaces.length > 1) {
@@ -42653,23 +42714,26 @@ ${import_node_fs73.default.readFileSync(file, "utf8")}`;
42653
42714
  );
42654
42715
  const allFiles = Object.assign(
42655
42716
  {},
42656
- ...units.map((unit2) => unit2.files)
42717
+ ...[...units, ...dependencyUnits].map((unit2) => unit2.files)
42657
42718
  );
42658
- const targets = [...new Set(units.map((unit2) => unit2.namespace))].map((namespace) => ({
42719
+ const targets = [
42720
+ ...new Set([...units, ...dependencyUnits].map((unit2) => unit2.namespace))
42721
+ ].map((namespace) => ({
42659
42722
  name: namespace,
42660
42723
  path: `Sources/${namespace}`
42661
42724
  }));
42662
42725
  const dependencies = swiftTargetDependencies(allFiles, targets);
42663
42726
  const byNamespace = /* @__PURE__ */ new Map();
42664
- for (const unit2 of units) {
42665
- const entries = byNamespace.get(unit2.namespace) ?? [];
42666
- entries.push(unit2);
42667
- byNamespace.set(unit2.namespace, entries);
42727
+ for (const unit2 of [...units, ...dependencyUnits]) {
42728
+ const entries2 = byNamespace.get(unit2.namespace) ?? [];
42729
+ entries2.push(unit2);
42730
+ byNamespace.set(unit2.namespace, entries2);
42668
42731
  }
42669
42732
  for (const unit2 of units) {
42670
42733
  const included = /* @__PURE__ */ new Set([unit2.namespace]);
42734
+ const ownDependencies = swiftTargetDependencies(unit2.files, targets).get(unit2.namespace) ?? [];
42671
42735
  const visit3 = (namespace) => {
42672
- for (const dependency of dependencies.get(namespace) ?? []) {
42736
+ for (const dependency of namespace === unit2.namespace ? ownDependencies : dependencies.get(namespace) ?? []) {
42673
42737
  if (!byNamespace.has(dependency) || included.has(dependency)) continue;
42674
42738
  included.add(dependency);
42675
42739
  visit3(dependency);
@@ -42686,6 +42750,12 @@ ${import_node_fs73.default.readFileSync(file, "utf8")}`;
42686
42750
  ...dependency.flatMap((item) => item.frameworks)
42687
42751
  ])
42688
42752
  ];
42753
+ unit2.workspaceSources = [
42754
+ .../* @__PURE__ */ new Set([
42755
+ ...unit2.workspaceSources ?? [],
42756
+ ...dependency.flatMap((item) => item.workspaceSources ?? [])
42757
+ ])
42758
+ ];
42689
42759
  unit2.nativeTargets = [
42690
42760
  ...new Map(
42691
42761
  [
@@ -42708,11 +42778,19 @@ ${import_node_fs73.default.readFileSync(file, "utf8")}`;
42708
42778
  if (name3.startsWith(`Sources/${namespace}/`)) unit2.files[name3] = source;
42709
42779
  }
42710
42780
  }
42711
- unit2.files["Package.swift"] = expoManifest(
42712
- unit2.files,
42713
- "",
42714
- targetSettings2([...included].flatMap((namespace) => byNamespace.get(namespace)))
42781
+ const settings = targetSettings2(
42782
+ [...included].flatMap((namespace) => byNamespace.get(namespace))
42715
42783
  );
42784
+ if (!installed)
42785
+ for (const namespace of included)
42786
+ settings.set(namespace, {
42787
+ languageMode: 5,
42788
+ mainActorIsolation: false,
42789
+ resources: false,
42790
+ ...settings.get(namespace),
42791
+ dependencies: (namespace === unit2.namespace ? ownDependencies : dependencies.get(namespace) ?? []).filter((name3) => included.has(name3)).map((name3) => ({ kind: "target", name: name3 }))
42792
+ });
42793
+ unit2.files["Package.swift"] = expoManifest(unit2.files, "", settings);
42716
42794
  }
42717
42795
  if (nativeAppIdentity)
42718
42796
  for (const unit2 of units) unit2.nativeAppIdentity = nativeAppIdentity;
@@ -42751,8 +42829,21 @@ let package = Package(name: "PeachExpo", targets: [${declarations.join(", ")}, .
42751
42829
  function targetSettings2(units) {
42752
42830
  const settings = /* @__PURE__ */ new Map();
42753
42831
  for (const unit2 of units) {
42754
- for (const target of swiftManifestTargets(unit2.files["Package.swift"] ?? ""))
42755
- settings.set(target.name, target);
42832
+ for (const target of swiftManifestTargets(unit2.files["Package.swift"] ?? "")) {
42833
+ const previous = settings.get(target.name);
42834
+ const dependencies = [
42835
+ ...previous?.dependencies ?? [],
42836
+ ...target.dependencies ?? []
42837
+ ];
42838
+ settings.set(target.name, {
42839
+ ...target,
42840
+ dependencies: [
42841
+ ...new Map(
42842
+ dependencies.map((dependency) => [JSON.stringify(dependency), dependency])
42843
+ ).values()
42844
+ ]
42845
+ });
42846
+ }
42756
42847
  if (unit2.swiftLanguageMode !== void 0)
42757
42848
  settings.set(unit2.namespace, {
42758
42849
  ...settings.get(unit2.namespace),
@@ -43113,7 +43204,11 @@ async function compileExpoSwiftModulesTraced(root, base, publishArtifact, option
43113
43204
  projectFor(packagePath).nativeFiles = unit2.nativeFiles;
43114
43205
  projectFor(packagePath).headerAliases = unit2.headerAliases;
43115
43206
  projectFor(packagePath).resourceBundles = unit2.resourceBundles;
43116
- projectFor(packagePath).bundleFiles = unit2.resources ? { files: unit2.resources, bundles: unit2.resourceBundles ?? [], watched: [] } : void 0;
43207
+ projectFor(packagePath).bundleFiles = unit2.resources ? {
43208
+ files: unit2.resources,
43209
+ bundles: unit2.resourceBundles ?? [],
43210
+ watched: []
43211
+ } : void 0;
43117
43212
  const stamp = sourceContentStamp(packagePath, module2.root);
43118
43213
  const failed = readFailedCompilation(packagePath);
43119
43214
  if (failed?.stamp === stamp) {
@@ -43289,8 +43384,12 @@ async function compileExpoSwiftModulesTraced(root, base, publishArtifact, option
43289
43384
  linked.push(unit2);
43290
43385
  } catch (error) {
43291
43386
  signal.throwIfAborted();
43387
+ const message = error instanceof Error ? error.message : String(error);
43388
+ const missingImports = [...message.matchAll(/^ (\S+)/gm)].map(
43389
+ (match) => match[1]
43390
+ );
43292
43391
  const diagnostic = [
43293
- error instanceof Error ? error.message : String(error),
43392
+ error instanceof SwiftMissingModulesError && unit2.workspaceSources?.length ? `${unit2.workspaceSources.map((name3) => `${name3} needs a Mac-prepared workspace`).join("; ")}; unresolved imports: ${missingImports.join(", ")}` : message,
43294
43393
  ...gaps.get(unit2) ?? []
43295
43394
  ].join("\n");
43296
43395
  const unitFiles = [...Object.keys(unit2.files), ...expoUnitAppPaths(unit2)];
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1978 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1980 | (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.1978 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1980 | (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.1978 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1980 | (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;