peachsim 0.1.2410 → 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 (119) hide show
  1. package/README.md +2 -5
  2. package/cli/internal-child-contract.ts +0 -1
  3. package/cli/internal-child.ts +0 -6
  4. package/cli/outbound-endpoints.ts +0 -23
  5. package/dist-lib/agent-daemon-client.cjs +1 -1
  6. package/dist-lib/agent-events.cjs +1 -1
  7. package/dist-lib/attached-projects.cjs +1 -1
  8. package/dist-lib/auth/shared-session.cjs +1 -1
  9. package/dist-lib/backend-origin.cjs +1 -1
  10. package/dist-lib/beta.cjs +1 -1
  11. package/dist-lib/beta.mjs +1 -1
  12. package/dist-lib/bridge-constants.cjs +1 -1
  13. package/dist-lib/bridge-contract-input.cjs +1 -1
  14. package/dist-lib/bridge-contract-input.mjs +1 -1
  15. package/dist-lib/bridge-contract.cjs +1 -1
  16. package/dist-lib/bridge-contract.mjs +1 -1
  17. package/dist-lib/bundle-channel.cjs +10390 -4177
  18. package/dist-lib/capture-contract.cjs +1 -1
  19. package/dist-lib/capture-contract.mjs +1 -1
  20. package/dist-lib/cloud-contract.cjs +1 -1
  21. package/dist-lib/cloud-contract.mjs +1 -1
  22. package/dist-lib/cloud-test-args.cjs +1 -1
  23. package/dist-lib/cloud-test-args.mjs +1 -1
  24. package/dist-lib/cloud.cjs +1 -1
  25. package/dist-lib/cloud.mjs +1 -1
  26. package/dist-lib/config.cjs +1 -1
  27. package/dist-lib/config.mjs +1 -1
  28. package/dist-lib/detox/index.cjs +1 -1
  29. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  30. package/dist-lib/expo-swift-bundle.cjs +11656 -5443
  31. package/dist-lib/expo-swift-metadata.cjs +1 -1
  32. package/dist-lib/expo-swift-metadata.mjs +1 -1
  33. package/dist-lib/home-paths.cjs +1 -1
  34. package/dist-lib/host/bridge-host.cjs +12910 -6697
  35. package/dist-lib/host/fetch-proxy-handler.cjs +925 -151
  36. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  37. package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
  38. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  39. package/dist-lib/host/websocket-proxy.cjs +1 -1
  40. package/dist-lib/index.cjs +1018 -240
  41. package/dist-lib/jump-to-source-babel.cjs +1 -1
  42. package/dist-lib/jump-to-source-native.cjs +1 -1
  43. package/dist-lib/kotlin-host.cjs +1 -1
  44. package/dist-lib/menu.cjs +1 -1
  45. package/dist-lib/menu.mjs +1 -1
  46. package/dist-lib/metro-fingerprint-registry.cjs +1 -1
  47. package/dist-lib/metro-fingerprint-registry.mjs +1 -1
  48. package/dist-lib/metro-production-bundle.cjs +1 -1
  49. package/dist-lib/metro-production-bundle.mjs +1 -1
  50. package/dist-lib/metro.cjs +934 -156
  51. package/dist-lib/native-app-identity-project.cjs +9 -5
  52. package/dist-lib/native-app-identity-project.mjs +9 -5
  53. package/dist-lib/native-app-identity.cjs +1 -1
  54. package/dist-lib/native-app-identity.mjs +1 -1
  55. package/dist-lib/native-firebase-metadata.cjs +1 -1
  56. package/dist-lib/native-firebase-metadata.mjs +1 -1
  57. package/dist-lib/pdfium-raster.cjs +1 -1
  58. package/dist-lib/pdfium-raster.mjs +1 -1
  59. package/dist-lib/plist.cjs +1 -1
  60. package/dist-lib/plist.mjs +1 -1
  61. package/dist-lib/profiles.cjs +1 -1
  62. package/dist-lib/public-brand.cjs +1 -1
  63. package/dist-lib/public-origins-lib-esm.json +24 -24
  64. package/dist-lib/public-origins-lib.json +124 -104
  65. package/dist-lib/react-native-host-modules.cjs +1 -1
  66. package/dist-lib/react-native-host-modules.mjs +1 -1
  67. package/dist-lib/reap-browser.cjs +1 -1
  68. package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
  69. package/dist-lib/sdk.cjs +1 -1
  70. package/dist-lib/sdk.mjs +1 -1
  71. package/dist-lib/skills.cjs +14016 -7803
  72. package/dist-lib/swift-compile.cjs +62 -14
  73. package/dist-lib/swift-compile.mjs +62 -13
  74. package/dist-lib/swift-package.cjs +1 -1
  75. package/dist-lib/swift-package.mjs +1 -1
  76. package/dist-lib/swift-submit.cjs +1 -1
  77. package/dist-lib/swift-submit.mjs +1 -1
  78. package/dist-lib/swift-toolchain.cjs +1 -1
  79. package/dist-lib/swift.cjs +1 -1
  80. package/dist-lib/vite-swift.cjs +190 -36
  81. package/dist-lib/vite.cjs +3101 -2327
  82. package/dist-lib/worklet-executable.cjs +1 -1
  83. package/dist-lib/worklet-executable.mjs +1 -1
  84. package/dist-types/packages/peach-engine/src/engine/image-loader.d.ts +1 -0
  85. package/dist-types/packages/peach-engine/src/render-worker/compositor-gpu.d.ts +1 -0
  86. package/dist-types/packages/peach-engine/src/render-worker/compositor-protocol.d.ts +4 -0
  87. package/dist-types/packages/peach-engine/src/render-worker/native-widgetContract.d.ts +5 -0
  88. package/kotlin/sdk.tar.gz +0 -0
  89. package/package.json +3 -3
  90. package/sdk/ios/System/Library/Frameworks/AuthenticationServices.framework/Headers/ASWebAuthenticationSession.h +1 -1
  91. package/sdk/ios/System/Library/Frameworks/Photos.framework/Headers/PHAsset.h +1 -1
  92. package/sdk/ios/System/Library/Frameworks/Photos.framework/Headers/PHAssetResource.h +1 -1
  93. package/sdk/ios/System/Library/Frameworks/Photos.framework/Headers/PHChange.h +1 -1
  94. package/sdk/ios/System/Library/Frameworks/Photos.framework/Headers/PHFetchOptions.h +1 -1
  95. package/sdk/ios/System/Library/Frameworks/Photos.framework/Headers/PHFetchResult.h +1 -1
  96. package/sdk/ios/System/Library/Frameworks/Photos.framework/Headers/PHImageManager.h +2 -2
  97. package/sdk/ios/System/Library/Frameworks/Photos.framework/Headers/PHObject.h +1 -1
  98. package/sdk/ios/System/Library/Frameworks/Photos.framework/Headers/PHPhotoLibrary.h +2 -2
  99. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDevice.h +1 -1
  100. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIVibrancyEffect.h +1 -1
  101. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIVisualEffectView.h +1 -1
  102. package/sdk/ios/System/Library/Frameworks/UIKitActivity.framework/Headers/UIKitActivity.h +1 -1
  103. package/src/expo-native-workspace.ts +4 -0
  104. package/src/nitro-adapter.lock.json +262 -262
  105. package/src/nitro-superset.lock.json +4 -4
  106. package/src/podspec-cocoapods.ts +934 -0
  107. package/src/podspec-prism.ts +66 -0
  108. package/src/podspec-ruby-stdlib.ts +1121 -0
  109. package/src/podspec-ruby.ts +5175 -0
  110. package/src/podspec-sources.ts +25 -112
  111. package/src/swift-compile.ts +70 -12
  112. package/src/swift-distribution.lock.json +9 -8
  113. package/src/swift-host.ts +96 -19
  114. package/src/swift-objc-compile.ts +5 -0
  115. package/src/swift-packages.ts +46 -0
  116. package/src/turbo-runtime.lock.json +19 -19
  117. package/src/xcode-project.ts +17 -7
  118. package/cli/drivers/linux-cocoapods.lock.json +0 -303
  119. package/cli/drivers/linux-cocoapods.ts +0 -99
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2410 | (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;
@@ -18781,7 +18781,7 @@ var darwinRecordsRegion = (quoted2) => quoted2.length ? ["-Wl,--start-lib", ...q
18781
18781
  var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
18782
18782
  var MULTI_MANIFEST_VERSION = 71;
18783
18783
  var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
18784
- var compilerSourceDigest = true ? "d287f3ad479477c70004707c1336f37c9baeb81aef1880544a5ca236e088ca16" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
18784
+ var compilerSourceDigest = true ? "5bdda04d424b3a504c042269bf0bebf701fc0435974970611138a79db9b959cd" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
18785
18785
  function swiftArtifactHash(input, release, moduleRoot) {
18786
18786
  const hash = (0, import_node_crypto14.createHash)("sha256");
18787
18787
  hash.update(`swift-compile
@@ -19301,6 +19301,8 @@ var ARCH_ARM64 = /\barch\(\s*arm64\s*\)/g;
19301
19301
  var NOT_ON_IOS = /\b(?:os\(\s*WASI\s*\)|canImport\(\s*FoundationNetworking\s*\))/g;
19302
19302
  var DELEGATE_CLASS = /^class\s+[A-Za-z_]\w*\s*(?:<[^>{]*>)?\s*:[^{]*\b(?:UIApplicationDelegate|UISceneDelegate|UIWindowSceneDelegate)\b[^{]*\{/;
19303
19303
  var ARM64_MACRO = /^__(?:aarch64|arm64|AARCH64|ARM)/;
19304
+ var WASM_MACRO = /\b__(?:wasm(?:32|64)?|wasi)__\b/;
19305
+ var ARCH_WASM32 = /\barch\(\s*wasm32\s*\)/;
19304
19306
  var C_WORDS = new Set(
19305
19307
  "auto bool break case char const continue default do double else enum extern false float for goto if inline int long register restrict return short signed sizeof static struct switch true typedef union unsigned void volatile while YES NO NULL nil Nil id self super instancetype".split(
19306
19308
  " "
@@ -19318,18 +19320,28 @@ function headerNamesByArch(headers) {
19318
19320
  }
19319
19321
  };
19320
19322
  })();
19321
- const names = { arm64: /* @__PURE__ */ new Set(), wasm: /* @__PURE__ */ new Set() };
19323
+ const names = {
19324
+ arm64: /* @__PURE__ */ new Set(),
19325
+ wasm: /* @__PURE__ */ new Set(),
19326
+ withoutWasm: /* @__PURE__ */ new Set()
19327
+ };
19328
+ const withoutWasm = { ...archEnvironments.wasm, defines: emptyMacroEnvironment.defines };
19322
19329
  for (const header of headers) {
19323
19330
  const code = stripCCode(header);
19324
19331
  const wasm = cActiveCode(code, archEnvironments.wasm).match(/[A-Za-z_]\w*/g) ?? [];
19325
19332
  for (const name3 of wasm) names.wasm.add(name3);
19333
+ if (WASM_MACRO.test(code))
19334
+ for (const match of cActiveCode(code, withoutWasm).matchAll(
19335
+ /\b([A-Za-z_]\w*)\s*\(/g
19336
+ ))
19337
+ names.withoutWasm.add(match[1]);
19326
19338
  if (!/\b__(?:aarch64|arm64|AARCH64|ARM)/.test(code)) continue;
19327
19339
  for (const name3 of cActiveCode(code, archEnvironments.arm64).match(/[A-Za-z_]\w*/g) ?? [])
19328
19340
  names.arm64.add(name3);
19329
19341
  }
19330
19342
  return names;
19331
19343
  }
19332
- function swiftTargetsOnWasmArch(targets, swiftSources, headers) {
19344
+ function swiftTargetArchitectures(targets, swiftSources, headers) {
19333
19345
  const byName = new Map(targets.map((target) => [target.name, target]));
19334
19346
  const namesByTarget = /* @__PURE__ */ new Map();
19335
19347
  const targetNames = (target) => {
@@ -19339,6 +19351,7 @@ function swiftTargetsOnWasmArch(targets, swiftSources, headers) {
19339
19351
  return names;
19340
19352
  };
19341
19353
  const onWasm = /* @__PURE__ */ new Set();
19354
+ const withoutWasm = /* @__PURE__ */ new Map();
19342
19355
  for (const [name3, sources] of swiftSources) {
19343
19356
  const target = byName.get(name3);
19344
19357
  if (!target) continue;
@@ -19350,6 +19363,12 @@ function swiftTargetsOnWasmArch(targets, swiftSources, headers) {
19350
19363
  })
19351
19364
  ].map(targetNames);
19352
19365
  const wasm = new Set(visible.flatMap((names) => [...names.wasm]));
19366
+ if (sources.some((source) => ARCH_WASM32.test(source))) {
19367
+ const unavailable2 = new Set(
19368
+ visible.flatMap((names) => [...names.withoutWasm]).filter((name4) => !wasm.has(name4))
19369
+ );
19370
+ if (unavailable2.size) withoutWasm.set(name3, unavailable2);
19371
+ }
19353
19372
  const arm64Only = [...new Set(visible.flatMap((names) => [...names.arm64]))].filter(
19354
19373
  (name4) => !wasm.has(name4) && !C_WORDS.has(name4)
19355
19374
  );
@@ -19358,7 +19377,41 @@ function swiftTargetsOnWasmArch(targets, swiftSources, headers) {
19358
19377
  if (sources.some((source) => named.test(source) && named.test(swiftCodeMask(source))))
19359
19378
  onWasm.add(name3);
19360
19379
  }
19361
- return onWasm;
19380
+ return { onWasm, withoutWasm };
19381
+ }
19382
+ function swiftWasmCallGuards(source, unavailable2) {
19383
+ if (!ARCH_WASM32.test(source)) return source;
19384
+ const code = swiftCodeMask(source);
19385
+ const clauses = /^[ \t]*#(if|elseif|else|endif)\b([^\n]*)/gm;
19386
+ const stack = [];
19387
+ const edits = [];
19388
+ for (const directive of code.matchAll(clauses)) {
19389
+ const kind = directive[1];
19390
+ if (kind !== "if") {
19391
+ const previous = stack.pop();
19392
+ if (previous) {
19393
+ const body = code.slice(previous.body, directive.index);
19394
+ for (const match of body.matchAll(/\b([A-Za-z_]\w*)\s*\(/g)) {
19395
+ if (!unavailable2.has(match[1])) continue;
19396
+ const condition = ARCH_WASM32.exec(code.slice(previous.start, previous.body));
19397
+ edits.push([
19398
+ previous.start + condition.index,
19399
+ condition[0].length,
19400
+ "true".padEnd(condition[0].length)
19401
+ ]);
19402
+ break;
19403
+ }
19404
+ }
19405
+ }
19406
+ if (kind !== "endif")
19407
+ stack.push(
19408
+ /^\s*!\s*arch\(\s*wasm32\s*\)\s*$/.test(directive[2]) ? { start: directive.index, body: directive.index + directive[0].length } : void 0
19409
+ );
19410
+ }
19411
+ let out = source;
19412
+ for (const [at, width, replacement] of edits.sort((a, b) => b[0] - a[0]))
19413
+ out = out.slice(0, at) + replacement + out.slice(at + width);
19414
+ return out;
19362
19415
  }
19363
19416
  function compiledSwiftSources(files2, targets, overlayFrameworks, headers, nativeSourceGlue = false) {
19364
19417
  const ordered = [...targets].sort((a, b) => b.path.length - a.path.length);
@@ -19379,7 +19432,7 @@ function compiledSwiftSources(files2, targets, overlayFrameworks, headers, nativ
19379
19432
  for (const { source, owner } of owners.values())
19380
19433
  if (owner)
19381
19434
  swiftSources.set(owner.name, [...swiftSources.get(owner.name) ?? [], source]);
19382
- const wasmArch = swiftTargetsOnWasmArch(targets, swiftSources, headers);
19435
+ const { onWasm, withoutWasm } = swiftTargetArchitectures(targets, swiftSources, headers);
19383
19436
  return new Map(
19384
19437
  [...owners].map(([file, { source, owner }]) => {
19385
19438
  if (nativeSourceGlue && import_node_path28.default.posix.basename(file) === "OneNativeSource.generated.swift")
@@ -19387,11 +19440,12 @@ function compiledSwiftSources(files2, targets, overlayFrameworks, headers, nativ
19387
19440
  const manifest = /(?:^|\/)Package(?:@swift-[\d.]+)?\.swift$/.test(file);
19388
19441
  if (manifest && (!owner || /^Package(?:@swift-[\d.]+)?\.swift$/.test(file)))
19389
19442
  return [file, source];
19443
+ const unavailable2 = owner && withoutWasm.get(owner.name);
19390
19444
  const ios = swiftSourceAsIOS(
19391
- source,
19445
+ unavailable2 ? swiftWasmCallGuards(source, unavailable2) : source,
19392
19446
  overlayFrameworks,
19393
19447
  owner?.defines?.includes(SWIFT_XCODE_BUILD_CONDITION) && !owner.defines.includes("SWIFT_PACKAGE") ? false : void 0,
19394
- !owner || !wasmArch.has(owner.name)
19448
+ !owner || !onWasm.has(owner.name)
19395
19449
  );
19396
19450
  return [file, withPreconcurrencyFoundationModules(ios)];
19397
19451
  })
@@ -19533,7 +19587,6 @@ var FOUNDATION_OVERLAY_TYPES = /* @__PURE__ */ new Set([
19533
19587
  "NSAssertionHandler",
19534
19588
  "NSAttributedStringFormattingContextKey",
19535
19589
  "NSBundleResourceRequest",
19536
- "NSCollectionChangeType",
19537
19590
  "NSConditionLock",
19538
19591
  "NSException",
19539
19592
  "NSExtensionItem",
@@ -19571,9 +19624,6 @@ var FOUNDATION_OVERLAY_TYPES = /* @__PURE__ */ new Set([
19571
19624
  "NSMetadataQueryAttributeValueTuple",
19572
19625
  "NSMetadataQueryDelegate",
19573
19626
  "NSMetadataQueryResultGroup",
19574
- "NSOrderedCollectionChange",
19575
- "NSOrderedCollectionDifference",
19576
- "NSOrderedCollectionDifferenceCalculationOptions",
19577
19627
  "NSPointerArray",
19578
19628
  "NSPredicateValidating",
19579
19629
  "NSProxy",
@@ -27098,7 +27148,7 @@ var import_node_fs35 = require("node:fs");
27098
27148
  var import_node_path35 = require("node:path");
27099
27149
 
27100
27150
  // src/swift-coverage/provenance.ts
27101
- 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, ".."));
27102
27152
 
27103
27153
  // src/swift-coverage/xcode-asset-symbols.ts
27104
27154
  var import_node_fs34 = require("node:fs");
@@ -32102,12 +32152,16 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
32102
32152
  );
32103
32153
  const allTargets = projects2.flatMap(projectTargets);
32104
32154
  const appTargets = allTargets.filter(
32105
- (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
32106
32156
  );
32107
32157
  const appTargetNames = appTargets.map((ref) => str(ref.target.name) ?? ref.id);
32108
32158
  const container = import_node_path41.default.basename(xcodeprojOrWorkspace);
32109
32159
  const named = targetName ? appTargets.filter((ref) => ref.target.name === targetName) : appTargets;
32110
32160
  if (named.length !== 1) {
32161
+ if (options.frameworkMachOType)
32162
+ throw new Error(
32163
+ `${container} must declare one framework target named ${targetName}`
32164
+ );
32111
32165
  if (appTargets.length === 0)
32112
32166
  throw new Error(
32113
32167
  `${container} has no application targets; open a project or workspace that contains one`
@@ -32370,7 +32424,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
32370
32424
  DEVELOPMENT_LANGUAGE: str(ref.project.project.developmentRegion) ?? "en"
32371
32425
  },
32372
32426
  options,
32373
- workspaceBuild
32427
+ ref === app && options.frameworkMachOType ? { ...workspaceBuild, MACH_O_TYPE: options.frameworkMachOType } : workspaceBuild
32374
32428
  );
32375
32429
  for (const file of read) xcconfigs.add(file);
32376
32430
  const swiftVersion = Number.parseFloat(settings2("SWIFT_VERSION") || "5");
@@ -33685,6 +33739,18 @@ function shippedBinaryDiffers(target, checksum) {
33685
33739
  var swiftBinaryOnDisk = (binary) => binary.url !== null || import_node_fs43.default.existsSync(binary.dir);
33686
33740
  var SWIFT_PLACEHOLDER_PACKAGES = /* @__PURE__ */ new Map();
33687
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
+ ]);
33688
33754
  function remoteSwiftCheckouts(root) {
33689
33755
  const prepared = preparedSwiftCheckouts(root);
33690
33756
  if (prepared) return prepared;
@@ -33784,6 +33850,7 @@ function resolveSwiftPackages(options) {
33784
33850
  targets: [],
33785
33851
  nativePackages: [],
33786
33852
  nativeProducts: [],
33853
+ sourceFrameworks: [],
33787
33854
  unavailable: /* @__PURE__ */ new Map(),
33788
33855
  modules: /* @__PURE__ */ new Map(),
33789
33856
  binaries: [],
@@ -33792,6 +33859,7 @@ function resolveSwiftPackages(options) {
33792
33859
  const pins = resolved.length > 0 ? readPins(resolved) : null;
33793
33860
  const checkouts = remoteSwiftCheckouts(rootDir);
33794
33861
  const packages = /* @__PURE__ */ new Map();
33862
+ const sourceFrameworks = /* @__PURE__ */ new Map();
33795
33863
  const packageKey = (source) => import_node_path44.default.isAbsolute(source) ? source : swiftPackageIdentity(source);
33796
33864
  const sourceKey = (source) => packageKey(source.kind === "local" ? import_node_path44.default.resolve(source.dir) : source.url);
33797
33865
  const load2 = (source) => {
@@ -33815,6 +33883,7 @@ function resolveSwiftPackages(options) {
33815
33883
  loaded2 = {
33816
33884
  source: source.url,
33817
33885
  remote: true,
33886
+ revision: pin2.revision,
33818
33887
  manifest: swiftPackageManifest(
33819
33888
  fetchedCheckout(checkouts, identity2, pin2),
33820
33889
  void 0,
@@ -33866,6 +33935,7 @@ function resolveSwiftPackages(options) {
33866
33935
  const targetOutcomes = /* @__PURE__ */ new Map();
33867
33936
  const resolveTarget = (pkg, name3) => {
33868
33937
  const key2 = `${pkg.manifest.dir}\0${name3}`;
33938
+ if (sourceFrameworks.has(key2)) return [];
33869
33939
  if (targetOutcomes.has(key2)) return targetOutcomes.get(key2);
33870
33940
  targetOutcomes.set(key2, []);
33871
33941
  const outcome = (() => {
@@ -33961,6 +34031,18 @@ function resolveSwiftPackages(options) {
33961
34031
  if (!binaryOnly && claimed.has(key2)) return true;
33962
34032
  const target = pkg.manifest.targets.get(name3);
33963
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
+ }
33964
34046
  const changed = !options.standinTargets?.has(name3) && shippedBinaryDiffers(name3, target.checksum);
33965
34047
  if (changed) providedTargets.delete(name3);
33966
34048
  return changed;
@@ -34005,6 +34087,7 @@ function resolveSwiftPackages(options) {
34005
34087
  for (const pkg of packages.values()) {
34006
34088
  if (typeof pkg === "string") continue;
34007
34089
  for (const [name3, target] of pkg.manifest.targets) {
34090
+ if (sourceFrameworks.has(`${pkg.manifest.dir}\0${name3}`)) continue;
34008
34091
  if (target.type === "test" || target.type === "plugin" || target.type === "macro")
34009
34092
  continue;
34010
34093
  if (target.type === "executable") continue;
@@ -34222,6 +34305,8 @@ function resolveSwiftPackages(options) {
34222
34305
  const id = targetId(pkg, name3);
34223
34306
  if (emitted.has(id)) return id;
34224
34307
  emitted.add(id);
34308
+ const framework = sourceFrameworks.get(`${pkg.manifest.dir}\0${name3}`);
34309
+ if (framework) result.sourceFrameworks.push(framework);
34225
34310
  const target = pkg.manifest.targets.get(name3);
34226
34311
  if (!target) throw new Error(`missing resolved package target ${name3}`);
34227
34312
  const dependencies = target.type === "macro" ? [] : target.dependencies.flatMap((dependency) => {
@@ -34319,7 +34404,7 @@ function sourceClosureDigest(srcDir, entrypoints, excludedFiles) {
34319
34404
  return hash.digest("hex");
34320
34405
  }
34321
34406
  var standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
34322
- var STANDIN_SOURCE_DIGEST = true ? "33613fe0a59b84be02c11350a1382f0d95184a98af5ca339e388eff115c7ac07" : standinSourceDigest();
34407
+ var STANDIN_SOURCE_DIGEST = true ? "467738b34c64972f28a4f51bb4a9e09b15d846aaf5143fa94e95cf779eb7bf82" : standinSourceDigest();
34323
34408
 
34324
34409
  // src/swift-standins.ts
34325
34410
  var import_node_child_process32 = require("node:child_process");
@@ -38549,6 +38634,11 @@ function* xcodeObjCInputSteps(app, binaries, moduleRoot, products, sourceRoot =
38549
38634
  }
38550
38635
  return regular ? source : null;
38551
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
+ }
38552
38642
  for (const name3 of forced) {
38553
38643
  const file = [...quoted2, ...includes].filter((directory) => !isSdkInclude(directory)).map((directory) => availableHeader(import_node_path53.default.resolve(directory, name3))).find((candidate) => candidate !== null);
38554
38644
  if (file) queue.push({ file });
@@ -39690,8 +39780,7 @@ var RNX_INTERNAL_CHILDREN = {
39690
39780
  playwrightInstall: "playwright-install",
39691
39781
  playwrightHost: "playwright-host",
39692
39782
  syncHttp: "sync-http",
39693
- pdfRaster: "pdf-raster",
39694
- linuxCocoaPods: "linux-cocoapods"
39783
+ pdfRaster: "pdf-raster"
39695
39784
  };
39696
39785
 
39697
39786
  // cli/self-invocation.ts
@@ -40200,17 +40289,15 @@ var XCODE_FRAMEWORKS_DIR = "__frameworks__";
40200
40289
  var XCODE_PACKAGES_DIR = SWIFT_REMOTE_PACKAGES_DIR;
40201
40290
  function xcodeInputKey(layout2, file, relative2) {
40202
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;
40203
40294
  if (owner) {
40204
- const input = file.endsWith(".swift") ? relative2.split("/").map(
40295
+ const input = file.endsWith(".swift") ? (checkoutPath ?? relative2).split("/").map(
40205
40296
  (part) => part === "." || part === ".." ? part : part.replaceAll("%", "%25").replace(/^\./, "%2E")
40206
- ).join("/") : relative2;
40297
+ ).join("/") : checkoutPath ?? relative2;
40207
40298
  return import_node_path58.default.posix.join(owner, input);
40208
40299
  }
40209
- const checkouts = layout2.checkouts;
40210
- return file.startsWith(`${checkouts}${import_node_path58.default.sep}`) ? import_node_path58.default.posix.join(
40211
- XCODE_PACKAGES_DIR,
40212
- import_node_path58.default.relative(checkouts, file).split(import_node_path58.default.sep).join("/")
40213
- ) : 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;
40214
40301
  }
40215
40302
  var layoutScope = new import_node_async_hooks2.AsyncLocalStorage();
40216
40303
  async function withXcodeLayout(root, run5) {
@@ -40229,7 +40316,7 @@ function xcodeLayout(root) {
40229
40316
  async function buildXcodeLayout(root) {
40230
40317
  const registered = xcodeProjects().get(root);
40231
40318
  if (!registered) return null;
40232
- const app = readXcodeAppTargetPrepared(
40319
+ const appTarget = readXcodeAppTargetPrepared(
40233
40320
  registered.xcodeproj,
40234
40321
  registered.target,
40235
40322
  registered.configuration,
@@ -40239,6 +40326,51 @@ async function buildXcodeLayout(root) {
40239
40326
  nativeModules: registered.nativeModules
40240
40327
  }
40241
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
+ };
40242
40374
  const appSources = app.allSources;
40243
40375
  const checkouts = remoteSwiftCheckouts(app.rootDir);
40244
40376
  const files2 = /* @__PURE__ */ new Set([
@@ -40254,10 +40386,6 @@ async function buildXcodeLayout(root) {
40254
40386
  const resourceBundles = [
40255
40387
  { target: app.moduleName, sourcePath: XCODE_APP_DIR, path: "." }
40256
40388
  ];
40257
- const { packages, standins, projectGaps, binaries } = await swiftPackages(
40258
- registered,
40259
- app
40260
- );
40261
40389
  const targets = [];
40262
40390
  const frameworkNames = /* @__PURE__ */ new Map();
40263
40391
  const usedNames = new Set(
@@ -40732,7 +40860,14 @@ async function buildXcodeLayout(root) {
40732
40860
  )
40733
40861
  });
40734
40862
  }
40735
- 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
+ ];
40736
40871
  const applicationBuildVersion = app.sourceLinkGraph.targets.find(
40737
40872
  (target) => target.id === app.sourceLinkGraph.entry
40738
40873
  ).buildVersion;
@@ -41033,13 +41168,21 @@ function buildSwiftResourceTable(project, baseUrl, inputs) {
41033
41168
  return swiftResourceBundleForFile(bundles, key2)?.path ?? ".";
41034
41169
  }
41035
41170
  ).map((image) => ({ ...image, file: bundled.get(image.file) ?? image.file }));
41036
- const colors = enumerateBundleColors(catalogFiles, readContents2);
41037
- const symbols = enumerateBundleSymbols(catalogFiles, readContents2, (file) => {
41171
+ const catalogBundle = (file) => {
41038
41172
  const disk = byRelative.get(file);
41039
- if (!disk) throw new Error(`symbol source ${file} has no input file`);
41173
+ if (!disk) throw new Error(`catalog source ${file} has no input file`);
41040
41174
  const key2 = layout2 ? xcodeInputKey(layout2, disk, file) : file;
41041
41175
  return swiftResourceBundleForFile(bundles, key2)?.path ?? ".";
41042
- });
41176
+ };
41177
+ const colors = enumerateBundleColors(catalogFiles, readContents2);
41178
+ const packageCatalogs = Map.groupBy(catalogFiles, catalogBundle);
41179
+ packageCatalogs.delete(".");
41180
+ for (const [bundle, files2] of packageCatalogs)
41181
+ for (const [name3, color] of Object.entries(
41182
+ enumerateBundleColors(files2, readContents2)
41183
+ ))
41184
+ colors[`${bundle}/${name3}`] = color;
41185
+ const symbols = enumerateBundleSymbols(catalogFiles, readContents2, catalogBundle);
41043
41186
  const table = /* @__PURE__ */ Object.create(null);
41044
41187
  const images = {};
41045
41188
  const metalSources = {};
@@ -41741,11 +41884,22 @@ async function compile(packagePath, stamp, moduleRootOverride, hosted, snapshot,
41741
41884
  const parsed = compileTargets(input);
41742
41885
  const targets = parsed.map((target) => swiftTargetModuleName(target.name));
41743
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
+ );
41744
41896
  const providedByFile = (file) => {
41745
41897
  const owner = byPath.find(
41746
41898
  (target) => target.path === "." ? true : file.startsWith(`${target.path}/`)
41747
41899
  );
41748
- 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;
41749
41903
  };
41750
41904
  const missing = missingSwiftModules(
41751
41905
  input.files,