peachsim 0.1.1813 → 0.1.1814

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 (121) hide show
  1. package/README.md +2 -1
  2. package/cli/cloud-client.ts +5 -4
  3. package/cli/cloud-session.ts +14 -1
  4. package/cli/commands/compat.ts +12 -2
  5. package/cli/commands/control.ts +5 -0
  6. package/cli/commands/flow.ts +10 -5
  7. package/cli/commands/inspect/env.ts +3 -2
  8. package/cli/commands/inspect/wait-selector.ts +30 -9
  9. package/dist-lib/agent-daemon-client.cjs +1 -1
  10. package/dist-lib/agent-events.cjs +1 -1
  11. package/dist-lib/attached-projects.cjs +1 -1
  12. package/dist-lib/auth/shared-session.cjs +1 -1
  13. package/dist-lib/backend-origin.cjs +1 -1
  14. package/dist-lib/beta.cjs +1 -1
  15. package/dist-lib/beta.mjs +1 -1
  16. package/dist-lib/bridge-constants.cjs +1 -1
  17. package/dist-lib/bridge-contract-input.cjs +1 -1
  18. package/dist-lib/bridge-contract-input.mjs +1 -1
  19. package/dist-lib/bridge-contract.cjs +1 -1
  20. package/dist-lib/bridge-contract.mjs +1 -1
  21. package/dist-lib/bundle-channel.cjs +584 -449
  22. package/dist-lib/capture-contract.cjs +1 -1
  23. package/dist-lib/capture-contract.mjs +1 -1
  24. package/dist-lib/cloud-contract.cjs +1 -1
  25. package/dist-lib/cloud-contract.mjs +1 -1
  26. package/dist-lib/cloud-test-args.cjs +1 -1
  27. package/dist-lib/cloud-test-args.mjs +1 -1
  28. package/dist-lib/cloud.cjs +1 -1
  29. package/dist-lib/cloud.mjs +1 -1
  30. package/dist-lib/config.cjs +1 -1
  31. package/dist-lib/config.mjs +1 -1
  32. package/dist-lib/detox/index.cjs +2 -2
  33. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  34. package/dist-lib/expo-swift-bundle.cjs +112 -52
  35. package/dist-lib/expo-swift-metadata.cjs +1 -17
  36. package/dist-lib/expo-swift-metadata.mjs +1 -16
  37. package/dist-lib/home-paths.cjs +1 -1
  38. package/dist-lib/host/bridge-host.cjs +1963 -1891
  39. package/dist-lib/host/fetch-proxy-handler.cjs +2 -4
  40. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  41. package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
  42. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  43. package/dist-lib/host/websocket-proxy.cjs +1 -1
  44. package/dist-lib/index.cjs +7 -10
  45. package/dist-lib/jump-to-source-babel.cjs +1 -1
  46. package/dist-lib/jump-to-source-native.cjs +1 -1
  47. package/dist-lib/kotlin-host.cjs +1 -1
  48. package/dist-lib/menu.cjs +1 -1
  49. package/dist-lib/menu.mjs +1 -1
  50. package/dist-lib/metro-fingerprint-registry.cjs +1 -1
  51. package/dist-lib/metro-fingerprint-registry.mjs +1 -1
  52. package/dist-lib/metro-production-bundle.cjs +1 -1
  53. package/dist-lib/metro-production-bundle.mjs +1 -1
  54. package/dist-lib/metro.cjs +4 -6
  55. package/dist-lib/native-app-identity-project.cjs +3 -3
  56. package/dist-lib/native-app-identity-project.mjs +6 -6
  57. package/dist-lib/native-app-identity.cjs +1 -1
  58. package/dist-lib/native-app-identity.mjs +1 -1
  59. package/dist-lib/native-firebase-metadata.cjs +1 -1
  60. package/dist-lib/native-firebase-metadata.mjs +1 -1
  61. package/dist-lib/pdfium-raster.cjs +1 -1
  62. package/dist-lib/pdfium-raster.mjs +1 -1
  63. package/dist-lib/plist.cjs +1 -1
  64. package/dist-lib/plist.mjs +1 -1
  65. package/dist-lib/profiles.cjs +1 -1
  66. package/dist-lib/public-brand.cjs +1 -1
  67. package/dist-lib/public-origins-lib-esm.json +24 -24
  68. package/dist-lib/public-origins-lib.json +64 -67
  69. package/dist-lib/react-native-host-modules.cjs +1 -1
  70. package/dist-lib/react-native-host-modules.mjs +1 -1
  71. package/dist-lib/reap-browser.cjs +1 -1
  72. package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
  73. package/dist-lib/sdk.cjs +1 -1
  74. package/dist-lib/sdk.mjs +1 -1
  75. package/dist-lib/skills.cjs +616 -467
  76. package/dist-lib/swift-compile.cjs +27 -26
  77. package/dist-lib/swift-compile.mjs +34 -33
  78. package/dist-lib/swift-package.cjs +1 -1
  79. package/dist-lib/swift-package.mjs +1 -1
  80. package/dist-lib/swift-submit.cjs +2 -2
  81. package/dist-lib/swift-submit.mjs +2 -2
  82. package/dist-lib/swift-toolchain.cjs +5 -3
  83. package/dist-lib/swift.cjs +1 -1
  84. package/dist-lib/vite-swift.cjs +87 -41
  85. package/dist-lib/vite.cjs +2 -4
  86. package/dist-lib/worklet-executable.cjs +1 -1
  87. package/dist-lib/worklet-executable.mjs +1 -1
  88. package/dist-types/packages/peach-engine/src/react-native/host-services.d.ts +7 -0
  89. package/dist-types/packages/peach-engine/src/render-worker/host-service-protocol.d.ts +14 -2
  90. package/install.mjs +21 -8
  91. package/package.json +1 -1
  92. package/runtime-companion.json +1 -1
  93. package/sdk/ios/System/Library/Frameworks/SafariServices.framework/Headers/SFSafariViewController.h +17 -0
  94. package/sdk/ios/usr/lib/swift/Dispatch.swiftmodule/arm64-apple-ios-simulator.swiftinterface +5 -0
  95. package/sdk/ios/usr/lib/swift/Foundation.swiftmodule/arm64-apple-ios-simulator.swiftinterface +6 -0
  96. package/sdk/ios/usr/lib/swift/ObjectiveC.swiftmodule/arm64-apple-ios-simulator.swiftinterface +10 -1
  97. package/sdk/ios/usr/lib/swift/SwiftUI.swiftmodule/arm64-apple-ios-simulator.swiftinterface +4 -0
  98. package/sdk/ios/usr/lib/swift/SwiftUICore.swiftmodule/arm64-apple-ios-simulator.swiftinterface +11 -0
  99. package/sdk/ios/usr/lib/swift/UIKit.swiftmodule/arm64-apple-ios-simulator.swiftinterface +13 -0
  100. package/sdk/ios/wasm/include/string.h +1 -0
  101. package/src/expo-kotlin-host.ts +69 -35
  102. package/src/expo-swift-host.ts +45 -9
  103. package/src/expoSwiftContract.ts +2 -20
  104. package/src/nitro-adapter.lock.json +235 -235
  105. package/src/nitro-bundle.ts +2 -8
  106. package/src/nitro-superset.lock.json +14 -14
  107. package/src/nitro-superset.ts +2 -3
  108. package/src/nitroContract.ts +0 -29
  109. package/src/react-native-bridge-modules.ts +2 -9
  110. package/src/swift-compile.ts +2 -0
  111. package/src/swift-distribution.lock.json +8 -8
  112. package/src/swift-distribution.ts +1 -0
  113. package/src/swift-icu.ts +21 -27
  114. package/src/swift-project-user.ts +5 -0
  115. package/src/swift-shared-sdk.ts +4 -0
  116. package/src/swift-standins.ts +6 -1
  117. package/src/swift-submit.ts +2 -1
  118. package/src/swift-toolchain.ts +5 -2
  119. package/src/swift-wasm-prune.ts +10 -2
  120. package/src/turbo-runtime.lock.json +15 -15
  121. package/src/turbo-source.ts +160 -37
@@ -1,9 +1,8 @@
1
1
  // the shared Nitro executable (plans/peach/native-prebuild-registry.md). every
2
2
  // compiled Nitro provider links one Swift, Foundation and UIKit closure that is
3
3
  // most of an executable's bytes, so building each app's own copy ships the same
4
- // closure per app. one executable of every provider in
5
- // COMPILED_NITRO_NATIVE_PACKAGES is published under a content address on the
6
- // prebuilt registry, and an app whose providers are byte-identical to the ones
4
+ // closure per app. one executable of every provider in the lock is published
5
+ // under a content address on the prebuilt registry, and an app whose providers are byte-identical to the ones
7
6
  // it was built from points its metadata at that address: the browser downloads
8
7
  // it once for every app, port and deployment. an app with a provider outside
9
8
  // the lock, a different provider build, or a HybridObject or view its config
@@ -17,35 +17,6 @@ export const NITRO_GUEST_PLATFORM = 'ios'
17
17
  * (react-native-xcode.sh), so the guest bundle's mode selects it. */
18
18
  export type NitroBuildConfiguration = 'Debug' | 'Release'
19
19
 
20
- /** installed Nitro providers whose original native source Peach compiles in
21
- * place of any hand-written answer. */
22
- export const COMPILED_NITRO_NATIVE_PACKAGES: readonly string[] = [
23
- 'react-native-nitro-base64',
24
- 'react-native-nitro-buffer',
25
- 'react-native-nitro-geocoder',
26
- 'react-native-nitro-haptics',
27
- 'react-native-nitro-sound',
28
- 'react-native-nitro-cookies',
29
- 'react-native-nitro-geolocation',
30
- 'react-native-nitro-markdown',
31
- 'react-native-nitro-network-info',
32
- 'react-native-nitro-audio-manager',
33
- 'react-native-nitro-sqlite',
34
- 'react-native-nitro-sensors-kit',
35
- 'react-native-nitro-speech',
36
- ]
37
-
38
- /** installed C++ TurboModule providers whose original native source Peach
39
- * compiles in place of any hand-written answer. */
40
- export const COMPILED_TURBO_NATIVE_PACKAGES: readonly string[] = [
41
- '@expensify/react-native-wallet',
42
- 'react-native-background-actions',
43
- 'react-native-get-random-values',
44
- 'react-native-quick-base64',
45
- 'react-native-screenshot-aware',
46
- 'stream-chat-expo',
47
- ]
48
-
49
20
  interface CompiledModule<Package> {
50
21
  platform: typeof NITRO_GUEST_PLATFORM
51
22
  /** the original providers this one executable registers, by package name. */
@@ -9,10 +9,6 @@ import path from 'node:path'
9
9
  import { PEACH_ANSWERED_NATIVE_PACKAGE_NAMES } from '../../peach-compat/src/generated/supported-native-packages'
10
10
 
11
11
  const answeredPackages: ReadonlySet<string> = new Set(PEACH_ANSWERED_NATIVE_PACKAGE_NAMES)
12
- import {
13
- COMPILED_EXPO_NATIVE_PACKAGES,
14
- type ExpoSwiftSourceUnit,
15
- } from './expoSwiftContract'
16
12
  import { swiftCodeMask, swiftSourceClosure } from './swift-compile'
17
13
  import { xcodeNativeFlags, xcodeObjCInputs } from './swift-objc-compile'
18
14
  import { SWIFT_NATIVE_INPUT_ROOT, SWIFT_NATIVE_SDK_INCLUDE } from './swiftContract'
@@ -21,6 +17,7 @@ import {
21
17
  listXcodeAppTargets,
22
18
  readXcodeAppTarget,
23
19
  } from './xcode-project'
20
+ import type { ExpoSwiftSourceUnit } from './expoSwiftContract'
24
21
 
25
22
  interface MethodInfo {
26
23
  jsName: string
@@ -620,11 +617,7 @@ function collectInstalledSwiftBridgeUnits(
620
617
  const namespacesSeen = new Set(units.map((unit) => unit.namespace))
621
618
  for (const packageName of Object.keys(dependencies).sort()) {
622
619
  signal?.throwIfAborted()
623
- if (
624
- answeredPackages.has(packageName) &&
625
- !COMPILED_EXPO_NATIVE_PACKAGES.ios.includes(packageName)
626
- )
627
- continue
620
+ if (answeredPackages.has(packageName)) continue
628
621
  let pkgRoot: string | null = null
629
622
  try {
630
623
  pkgRoot = fs.realpathSync(
@@ -174,6 +174,7 @@ async function runCompiler(
174
174
  const child = options.lease
175
175
  ? options.lease.spawn(command, args, launch, options.frameworkLease)
176
176
  : spawn(command, args, launch)
177
+ // cross-request-promise: one child process owns this stop, inside the call that spawned it
177
178
  let stopping: Promise<void> | undefined
178
179
  try {
179
180
  return await new Promise<string>((resolve, reject) => {
@@ -5511,6 +5512,7 @@ function projectDiagnostic(
5511
5512
  }
5512
5513
 
5513
5514
  const ROOT_LOCKS = Symbol.for('peachsim.swiftCompile.rootLocks')
5515
+ // cross-request-promise: swift builds run only in node (cli, dev server, build container), never a worker
5514
5516
  const host = globalThis as typeof globalThis & {
5515
5517
  [ROOT_LOCKS]?: Map<string, Promise<unknown>>
5516
5518
  }
@@ -1,10 +1,10 @@
1
1
  {
2
- "id": "af69e0877dcfc948",
2
+ "id": "6742aac7746a6ce9",
3
3
  "release": "swift-6.4.0-RELEASE-custom-a560ff35bf882b5c",
4
4
  "wasmSdkId": "swift-6.4.0-RELEASE_wasm-peach-5d385b68",
5
5
  "wasmSdkUrl": "https://r2.sootsim.com/swift-wasm-sdk/swift-6.4.0-RELEASE_wasm-peach-5d385b68.artifactbundle.tar.gz",
6
6
  "wasmSdkChecksum": "d91882af99821a296c3db4459896b46ceaef37e9a30caad14e5f24cf6b964ae9",
7
- "source": "85e7a5155755f4400d2bd7010abdd09f62dd6f34",
7
+ "source": "af1852646c60b5cde579f3465df69967e16810b3",
8
8
  "targets": [
9
9
  "ImagePlayground",
10
10
  "QuickLookThumbnailing",
@@ -230,16 +230,16 @@
230
230
  },
231
231
  "hosts": {
232
232
  "darwin-arm64": {
233
- "sha256": "dd96208b7ea40e1d8e93d61a716e30191a5e57800074e65837222c042617b96e",
234
- "size": 99097618
233
+ "sha256": "80c63bad6b21a02244c09832dd1344a1aa52894bf5ed391b94771b036f385d08",
234
+ "size": 99101780
235
235
  },
236
236
  "linux-x64": {
237
- "sha256": "bd0ef2a7d0fab414a415a9c2619c0c8c890b792856b1cbdb158a6f74b8d75502",
238
- "size": 101817050
237
+ "sha256": "9f58c786fa96313a3aefe564c7af5eadda21a22ac996df49d16bfdd2c73456be",
238
+ "size": 101818987
239
239
  },
240
240
  "linux-arm64": {
241
- "sha256": "37006a7363e6af15a31c65afaa3d6e0480bdd59c5d835f923e44e69dcae81e53",
242
- "size": 101308927
241
+ "sha256": "2174623c31e5909128486b5516976060004d80697bdfcf46198b6150f7de1cc8",
242
+ "size": 101312935
243
243
  }
244
244
  }
245
245
  }
@@ -57,6 +57,7 @@ export interface SwiftModule {
57
57
  toolchainBin: string
58
58
  }
59
59
 
60
+ // cross-request-promise: distribution installs run only in node (cli, build container), never a worker
60
61
  const installs = new Map<
61
62
  string,
62
63
  {
package/src/swift-icu.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { execFile } from 'node:child_process'
2
- import { createHash } from 'node:crypto'
2
+ import { createHash, randomUUID } from 'node:crypto'
3
3
  import { existsSync, readFileSync } from 'node:fs'
4
4
  import { mkdir, readFile, rename, writeFile } from 'node:fs/promises'
5
5
  import os from 'node:os'
@@ -34,10 +34,10 @@ const compressBrotli = promisify(brotliCompress)
34
34
  const inflateGzip = promisify(gunzip)
35
35
  const ARCHIVE = 'wasi/lib_FoundationICU.a'
36
36
  const MEMBER = 'icu_packaged_data.cpp.obj'
37
- const raw = new Map<string, Promise<Buffer>>()
38
- const assets = new Map<string, Promise<SwiftIcuAsset>>()
39
- const brotliMemoryCache = new Map<string, Promise<Buffer>>()
40
- function cachedBrotli(
37
+ const raw = new Map<string, Buffer>()
38
+ const assets = new Map<string, SwiftIcuAsset>()
39
+ const brotliMemoryCache = new Map<string, Buffer>()
40
+ async function cachedBrotli(
41
41
  bytes: Buffer,
42
42
  quality: 4 | 11,
43
43
  cacheKey?: string,
@@ -51,13 +51,11 @@ function cachedBrotli(
51
51
  if (cached) return cached
52
52
  const dir = path.join(os.homedir(), '.peach', 'cache', 'swift-brotli')
53
53
  const file = path.join(dir, `${key}${quality === 11 ? '' : '-q4'}.br`)
54
- const pending = (async () => {
55
- try {
56
- return await readFile(file)
57
- } catch {
58
- // an unreadable cache entry is recomputed
59
- }
60
- const compressed = await compressBrotli(bytes, {
54
+ let compressed: Buffer
55
+ try {
56
+ compressed = await readFile(file)
57
+ } catch {
58
+ compressed = await compressBrotli(bytes, {
61
59
  params: {
62
60
  [zlibConstants.BROTLI_PARAM_QUALITY]: quality,
63
61
  [zlibConstants.BROTLI_PARAM_LGWIN]: 24,
@@ -65,17 +63,15 @@ function cachedBrotli(
65
63
  })
66
64
  try {
67
65
  await mkdir(dir, { recursive: true })
68
- const tmp = `${file}.${process.pid}.${Date.now()}.tmp`
66
+ const tmp = `${file}.${randomUUID()}.tmp`
69
67
  await writeFile(tmp, compressed)
70
68
  await rename(tmp, file)
71
69
  } catch {
72
70
  // cache persistence is opportunistic
73
71
  }
74
- return compressed
75
- })()
76
- brotliMemoryCache.set(cacheId, pending)
77
- void pending.catch(() => brotliMemoryCache.delete(cacheId))
78
- return pending
72
+ }
73
+ brotliMemoryCache.set(cacheId, compressed)
74
+ return compressed
79
75
  }
80
76
 
81
77
  // release assets pay the quality 11 cost once; dev requests use quality 4 so
@@ -102,18 +98,16 @@ export async function swiftIcuBrotliQ4(icu: SwiftIcuAsset): Promise<Buffer> {
102
98
  )
103
99
  }
104
100
 
105
- function memo<T>(
106
- cache: Map<string, Promise<T>>,
101
+ async function memo<T>(
102
+ cache: Map<string, T>,
107
103
  key: string,
108
104
  load: () => Promise<T>,
109
105
  ): Promise<T> {
110
- let pending = cache.get(key)
111
- if (!pending) {
112
- pending = load()
113
- pending.catch(() => cache.delete(key))
114
- cache.set(key, pending)
115
- }
116
- return pending
106
+ const cached = cache.get(key)
107
+ if (cached !== undefined) return cached
108
+ const value = await load()
109
+ cache.set(key, value)
110
+ return value
117
111
  }
118
112
 
119
113
  /** the raw blob, for a harness that fills an artifact in node. */
@@ -161,6 +161,11 @@ export function resetSwiftProjectState(root: string, user: SwiftProjectUser): vo
161
161
  '-ignore_readdir_race',
162
162
  '-user',
163
163
  String(user.uid),
164
+ // the build root is the user's after prepareSwiftProjectProcess; removing
165
+ // it would fail every later build in this container
166
+ '!',
167
+ '-path',
168
+ root,
164
169
  '-delete',
165
170
  ])
166
171
  }
@@ -29,6 +29,8 @@ export function swiftSharedSdkRoot(moduleRoot: string, distribution: boolean): s
29
29
  if (!fs.existsSync(headers)) {
30
30
  fs.mkdirSync(path.dirname(headers), { recursive: true })
31
31
  const staging = fs.mkdtempSync(`${headers}-`)
32
+ // mkdtemp is owner-only; the unprivileged project compiler reads the view
33
+ fs.chmodSync(staging, 0o755)
32
34
  fs.cpSync(root, staging, { recursive: true, preserveTimestamps: true })
33
35
  try {
34
36
  fs.renameSync(staging, headers)
@@ -292,6 +294,8 @@ export function swiftSharedSdkViewOptions(
292
294
  if (!fs.existsSync(manifest)) {
293
295
  fs.mkdirSync(path.dirname(view), { recursive: true })
294
296
  const staging = fs.mkdtempSync(`${view}-`)
297
+ // mkdtemp is owner-only; the unprivileged project compiler reads the view
298
+ fs.chmodSync(staging, 0o755)
295
299
  const realRoot = path.dirname(bundle)
296
300
  // headers in the sysroot include each other through "..", and the os resolves ".."
297
301
  // through a symlinked directory into the real bundle, which would make one file's
@@ -680,12 +680,17 @@ function peachModuleDirs(
680
680
  peach.has(name),
681
681
  )
682
682
  const plugins = swiftMacroPlugins(moduleRoot)
683
- if (plugins.stale)
683
+ if (plugins.stale) {
684
684
  exec('sh', [
685
685
  path.join(moduleRoot, 'scripts/build-preview-plugin.sh'),
686
686
  toolchainBin,
687
687
  plugins.libraries[0]!,
688
688
  ])
689
+ fs.writeFileSync(
690
+ path.join(path.dirname(plugins.libraries[0]!), 'compiler-release'),
691
+ `${toolchain.release}\n`,
692
+ )
693
+ }
689
694
  for (const target of targets)
690
695
  exec(
691
696
  path.join(toolchainBin, 'swift'),
@@ -135,7 +135,8 @@ export const MAX_SWIFT_COMPILE_IMAGE_TOTAL_BYTES = 16 * 1024 * 1024
135
135
  // UIApplication.isIdleTimerDisabled.
136
136
  // 60: `peach.net_en0_ipv4` answers the en0 IPv4 address getifaddrs lists.
137
137
  // 61: `peach.dyld_image_uuid` supplies the compiled app image identity.
138
- export const SWIFT_HOST_ABI = 61
138
+ // 62: fetch headers replies carry `setCookies`, the response's Set-Cookie list.
139
+ export const SWIFT_HOST_ABI = 62
139
140
 
140
141
  export interface SwiftImageUpload {
141
142
  /** the raster file picked for the asset (has the extension). */
@@ -345,8 +345,11 @@ export function ensureSwiftLinuxRuntime(release: string): void {
345
345
  fs.rmSync(download, { force: true })
346
346
  }
347
347
  }
348
- fs.rmSync(plan.link, { force: true })
349
- fs.symlinkSync('../../libxml2.so.2', plan.link)
348
+ // a concurrent compile reads this link, so replace it by rename, never remove it first
349
+ const staged = `${plan.link}.${process.pid}.tmp`
350
+ fs.rmSync(staged, { force: true })
351
+ fs.symlinkSync('../../libxml2.so.2', staged)
352
+ fs.renameSync(staged, plan.link)
350
353
  // the archive's merged-usr sysroot supplies native manifest startup objects.
351
354
  for (const name of ['lib', 'lib64']) {
352
355
  try {
@@ -1066,6 +1066,13 @@ export function pruneSwiftWasmLink(
1066
1066
  }
1067
1067
  }
1068
1068
 
1069
+ // a nested type's descriptor reaches its parent by a relative offset the
1070
+ // assembler resolves without a relocation when both sit in one segment.
1071
+ for (let n = pref.length - 1; n > 2; n--) {
1072
+ const outer = pref.slice(0, n)
1073
+ if (obj.typePrefixesInObj.has(outer)) markTypeLive(obj, outer)
1074
+ }
1075
+
1069
1076
  const mnName = `${pref}Mn`
1070
1077
  for (let i = 0; i < obj.symNames.length; i++) {
1071
1078
  if (obj.symNames[i] === mnName && (obj.symFlags[i]! & 0x10) === 0) {
@@ -1744,9 +1751,10 @@ export function pruneSwiftWasmLink(
1744
1751
  prunedMap.set(o.file, outPath)
1745
1752
  }
1746
1753
 
1747
- const extraCoreConcurrencyObjs = allSdkObjFiles
1754
+ const extraSdkObjs = allSdkObjFiles
1748
1755
  .filter(
1749
1756
  (f) =>
1757
+ f.startsWith('libDarwin__') ||
1750
1758
  (f.startsWith('libswiftCore__') && f !== 'libswiftCore__Swift.o') ||
1751
1759
  (f.startsWith('libswift_Concurrency__') &&
1752
1760
  f !== 'libswift_Concurrency___Concurrency.o'),
@@ -1786,7 +1794,7 @@ export function pruneSwiftWasmLink(
1786
1794
  }
1787
1795
  }
1788
1796
  }
1789
- outTokens.push(...extraCoreConcurrencyObjs)
1797
+ outTokens.push(...extraSdkObjs)
1790
1798
  continue
1791
1799
  }
1792
1800
  if (t === '--end-lib') {
@@ -12,7 +12,7 @@
12
12
  "checksum": "d91882af99821a296c3db4459896b46ceaef37e9a30caad14e5f24cf6b964ae9"
13
13
  },
14
14
  "framework": {
15
- "distribution": "af69e0877dcfc948",
15
+ "distribution": "6742aac7746a6ce9",
16
16
  "wireAbi": "246b8412514b644113e6a26252c8ebd6de49ab4156ac5f5c98bb9e4c2ff2568b"
17
17
  },
18
18
  "archives": [
@@ -20,63 +20,63 @@
20
20
  "headers": {
21
21
  "reactNativeJsi": "0f8c2defbca69a27a848a81ae72363073bf9602fd316e57a75811be1a0528358"
22
22
  },
23
- "sha256": "42f42eaba0cbbc305c26bc45b64b19a9c22a1782550873707cc2a94d5226450e",
24
- "size": 25406
23
+ "sha256": "c545a333753d9dfed546f713e3006119e508b0bd54afd51e73d0822cc4157be4",
24
+ "size": 25407
25
25
  },
26
26
  {
27
27
  "headers": {
28
28
  "reactNativeJsi": "21a624ea24fd17d56bf26832d496fc1177067f89640414c20e6486c7984dfb0a"
29
29
  },
30
- "sha256": "5de281f851fc5bcc41103be001ac54fd3380fdbe508a306a80ef50065a828d4f",
31
- "size": 26142
30
+ "sha256": "258b039af8a7b62fcf7c0ba77d9fbb61fc099c300a762ac6d183b2fc912e74e2",
31
+ "size": 26141
32
32
  },
33
33
  {
34
34
  "headers": {
35
35
  "reactNativeJsi": "324aefd8591d9ce688bce7589c4c2b516cd33ecb95d35c47239a87a8fcf6a8da"
36
36
  },
37
- "sha256": "a15c6b4b615e997e449bbc26c237d7b01c17518e290ec2d25290dd1afe5d8fec",
38
- "size": 25398
37
+ "sha256": "12899d30723de10d44a6a20dd80d0d9e9c38e7b2824e6cc929123c3c73cffc96",
38
+ "size": 25397
39
39
  },
40
40
  {
41
41
  "headers": {
42
42
  "reactNativeJsi": "33596664ee7d7a6623f0796a6feb429543316c3a41b211150acda6e1d835286c"
43
43
  },
44
- "sha256": "d7e2c1bb4ae3f9e7ae7d72123b9ad32e2c0662607b124cbf42c47aa229e252c0",
45
- "size": 25175
44
+ "sha256": "36e909c7e35d251e5768ebddc96cc1af5e831846d2154f7941d25c00f91180b4",
45
+ "size": 25172
46
46
  },
47
47
  {
48
48
  "headers": {
49
49
  "reactNativeJsi": "66b2cd5a38511195207f6c8a76aba735f9b9cc66a52a0d00780ffe5d331623f7"
50
50
  },
51
- "sha256": "ad4a1e580e01af0f0af9d4f60c4cff765e8208297148674d0904c5a4bbb9bb0f",
52
- "size": 25407
51
+ "sha256": "f99036ae09b8ab1f3a2404975e0dd45b549b8b3eeb562f53df9586afb936a114",
52
+ "size": 25406
53
53
  },
54
54
  {
55
55
  "headers": {
56
56
  "reactNativeJsi": "96db4e758dd53e9320cef7cad485e00aa06e7a982cefd920f17007de8a5bd9f9"
57
57
  },
58
- "sha256": "59746bf6932eb3ac91e52a1117c7a03f3b7c2eedf4747dd9aa3cbfd2edc23daa",
58
+ "sha256": "19a9f1ca4cd22d871eaa07ab04047a0f79026fc78c27a782208eca9269370f96",
59
59
  "size": 26142
60
60
  },
61
61
  {
62
62
  "headers": {
63
63
  "reactNativeJsi": "aeab590ddd1218df963462242d3954ce467b0fa88f70e91429e4ffc74d230893"
64
64
  },
65
- "sha256": "6c9e3167ca6aa79c95ba785803d07548dc2f5f437f071128888ee7cca695b630",
65
+ "sha256": "2a97bada6dc57b9bd92a8768c13889ebdae59d00b807f2068e99c3b392324dc9",
66
66
  "size": 26143
67
67
  },
68
68
  {
69
69
  "headers": {
70
70
  "reactNativeJsi": "b5fb260522384dd7ab07d740cdc534b529922446fcec798341c7817d9eaa49f4"
71
71
  },
72
- "sha256": "a19e57ff608a43a42d5832eda613cde0bd23c17de5580237681e92d891f8f90d",
72
+ "sha256": "bb3101c5b644641aedd4eae36e0763c27da095056e586a41885dddfbec1f9860",
73
73
  "size": 25273
74
74
  },
75
75
  {
76
76
  "headers": {
77
77
  "reactNativeJsi": "c6b391a1e870ccf7cdd534be63582862840f8245b99ebd253317deece1e6ffd5"
78
78
  },
79
- "sha256": "8df00d552caf87b6ca0119a827ed3ac63a1b2852f14541ec0edb63dc79d35df7",
79
+ "sha256": "7607621dcdbf5449527b4507a17d8c3203930be199a684a036b9a1eb5f917a5f",
80
80
  "size": 26147
81
81
  }
82
82
  ]