peachsim 0.1.1814 → 0.1.1815

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 (105) hide show
  1. package/cli/commands/control.ts +5 -2
  2. package/cli/commands/inspect.ts +43 -385
  3. package/cli/commands/package.ts +6 -1
  4. package/cli/commands/runtime.ts +2 -2
  5. package/cli/outbound-endpoints.ts +1 -1
  6. package/dist-lib/agent-daemon-client.cjs +1 -1
  7. package/dist-lib/agent-events.cjs +1 -1
  8. package/dist-lib/attached-projects.cjs +1 -1
  9. package/dist-lib/auth/shared-session.cjs +1 -1
  10. package/dist-lib/backend-origin.cjs +1 -1
  11. package/dist-lib/beta.cjs +1 -1
  12. package/dist-lib/beta.mjs +1 -1
  13. package/dist-lib/bridge-constants.cjs +1 -1
  14. package/dist-lib/bridge-contract-input.cjs +1 -1
  15. package/dist-lib/bridge-contract-input.mjs +1 -1
  16. package/dist-lib/bridge-contract.cjs +1 -1
  17. package/dist-lib/bridge-contract.mjs +1 -1
  18. package/dist-lib/bundle-channel.cjs +453 -331
  19. package/dist-lib/capture-contract.cjs +1 -1
  20. package/dist-lib/capture-contract.mjs +1 -1
  21. package/dist-lib/cloud-contract.cjs +1 -1
  22. package/dist-lib/cloud-contract.mjs +1 -1
  23. package/dist-lib/cloud-test-args.cjs +1 -1
  24. package/dist-lib/cloud-test-args.mjs +1 -1
  25. package/dist-lib/cloud.cjs +1 -1
  26. package/dist-lib/cloud.mjs +1 -1
  27. package/dist-lib/config.cjs +1 -1
  28. package/dist-lib/config.mjs +1 -1
  29. package/dist-lib/detox/index.cjs +89 -14
  30. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  31. package/dist-lib/expo-swift-bundle.cjs +26 -18
  32. package/dist-lib/expo-swift-metadata.cjs +1 -1
  33. package/dist-lib/expo-swift-metadata.mjs +1 -1
  34. package/dist-lib/home-paths.cjs +1 -1
  35. package/dist-lib/host/bridge-host.cjs +464 -336
  36. package/dist-lib/host/fetch-proxy-handler.cjs +14 -12
  37. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  38. package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
  39. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  40. package/dist-lib/host/websocket-proxy.cjs +1 -1
  41. package/dist-lib/index.cjs +15 -14
  42. package/dist-lib/jump-to-source-babel.cjs +1 -1
  43. package/dist-lib/jump-to-source-native.cjs +1 -1
  44. package/dist-lib/kotlin-host.cjs +1 -1
  45. package/dist-lib/menu.cjs +1 -1
  46. package/dist-lib/menu.mjs +1 -1
  47. package/dist-lib/metro-fingerprint-registry.cjs +1 -1
  48. package/dist-lib/metro-fingerprint-registry.mjs +1 -1
  49. package/dist-lib/metro-production-bundle.cjs +1 -1
  50. package/dist-lib/metro-production-bundle.mjs +1 -1
  51. package/dist-lib/metro.cjs +15 -14
  52. package/dist-lib/native-app-identity-project.cjs +4 -3
  53. package/dist-lib/native-app-identity-project.mjs +4 -3
  54. package/dist-lib/native-app-identity.cjs +1 -1
  55. package/dist-lib/native-app-identity.mjs +1 -1
  56. package/dist-lib/native-firebase-metadata.cjs +1 -1
  57. package/dist-lib/native-firebase-metadata.mjs +1 -1
  58. package/dist-lib/pdfium-raster.cjs +1 -1
  59. package/dist-lib/pdfium-raster.mjs +1 -1
  60. package/dist-lib/plist.cjs +1 -1
  61. package/dist-lib/plist.mjs +1 -1
  62. package/dist-lib/profiles.cjs +1 -1
  63. package/dist-lib/public-brand.cjs +1 -1
  64. package/dist-lib/public-origins-lib-esm.json +24 -24
  65. package/dist-lib/public-origins-lib.json +66 -63
  66. package/dist-lib/react-native-host-modules.cjs +1 -1
  67. package/dist-lib/react-native-host-modules.mjs +1 -1
  68. package/dist-lib/reap-browser.cjs +1 -1
  69. package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
  70. package/dist-lib/sdk.cjs +1 -1
  71. package/dist-lib/sdk.mjs +1 -1
  72. package/dist-lib/skills.cjs +503 -342
  73. package/dist-lib/swift-compile.cjs +4 -3
  74. package/dist-lib/swift-compile.mjs +4 -3
  75. package/dist-lib/swift-package.cjs +1 -1
  76. package/dist-lib/swift-package.mjs +1 -1
  77. package/dist-lib/swift-submit.cjs +1 -1
  78. package/dist-lib/swift-submit.mjs +1 -1
  79. package/dist-lib/swift-toolchain.cjs +1 -1
  80. package/dist-lib/swift.cjs +1 -1
  81. package/dist-lib/vite-swift.cjs +26 -18
  82. package/dist-lib/vite.cjs +14 -12
  83. package/dist-lib/worklet-executable.cjs +1 -1
  84. package/dist-lib/worklet-executable.mjs +1 -1
  85. package/dist-types/packages/peach-engine/src/engine/nativeReplayContract.d.ts +2 -0
  86. package/package.json +1 -1
  87. package/runtime-companion.json +1 -1
  88. package/src/cli-runtime.ts +32 -4
  89. package/src/expo-swift-ready.ts +16 -2
  90. package/src/installed-native-libraries.ts +79 -18
  91. package/src/nitro-adapter.lock.json +240 -240
  92. package/src/nitro-compile.ts +6 -3
  93. package/src/nitro-dependencies.ts +8 -2
  94. package/src/nitro-source.ts +34 -3
  95. package/src/nitro-superset.lock.json +14 -14
  96. package/src/nitroContract.ts +26 -3
  97. package/src/runtime-delivery.ts +2 -2
  98. package/src/swift-compile.ts +2 -1
  99. package/src/swift-distribution.lock.json +9 -8
  100. package/src/swift-installed-targets.ts +13 -0
  101. package/src/swift-standins.ts +8 -2
  102. package/src/turbo-bundle.ts +20 -1
  103. package/src/turbo-compile.ts +6 -12
  104. package/src/turbo-runtime.lock.json +19 -19
  105. package/src/turbo-source.ts +16 -0
@@ -47,7 +47,10 @@ export type NitroCompiledModule = CompiledModule<
47
47
  >
48
48
  /** an app's compiled C++ TurboModule providers. the module names they
49
49
  * register are read from the executable, as React Native reads its map. */
50
- export type TurboCompiledModule = CompiledModule<CompiledPackage>
50
+ export type TurboCompiledModule = CompiledModule<CompiledPackage> & {
51
+ /** installed providers left out because they link a prebuilt binary, with why. */
52
+ unavailable?: { name: string; diagnostic: string }[]
53
+ }
51
54
 
52
55
  function readCompiledPackage(value: unknown): CompiledPackage | null {
53
56
  if (typeof value !== 'object' || value === null) return null
@@ -143,8 +146,28 @@ function readCompiledMetadata<Package extends CompiledPackage>(
143
146
 
144
147
  export const readNitroMetadata = (value: unknown): NitroCompiledModule | null =>
145
148
  readCompiledMetadata('Nitro', value, readNitroPackage, (entry) => entry.hybridObjects)
146
- export const readTurboMetadata = (value: unknown): TurboCompiledModule | null =>
147
- readCompiledMetadata('TurboModule', value, readCompiledPackage, () => [])
149
+ export function readTurboMetadata(value: unknown): TurboCompiledModule | null {
150
+ const metadata = readCompiledMetadata(
151
+ 'TurboModule',
152
+ value,
153
+ readCompiledPackage,
154
+ () => [],
155
+ )
156
+ if (!metadata) return null
157
+ const listed = Reflect.get(Object(value), 'unavailable')
158
+ if (listed === undefined) return metadata
159
+ if (!Array.isArray(listed)) throw new Error('invalid TurboModule compilation metadata')
160
+ const unavailable = listed.map((entry) => {
161
+ if (
162
+ !isRecord(entry) ||
163
+ typeof entry.name !== 'string' ||
164
+ typeof entry.diagnostic !== 'string'
165
+ )
166
+ throw new Error('invalid TurboModule compilation metadata')
167
+ return { name: entry.name, diagnostic: entry.diagnostic }
168
+ })
169
+ return { ...metadata, unavailable }
170
+ }
148
171
 
149
172
  export function readNitroFooter(source: string): NitroCompiledModule | null {
150
173
  return readNitroMetadata(readBundleMetadataFooter(source, 'nitro'))
@@ -11,7 +11,7 @@
11
11
  // out as a bare require.
12
12
 
13
13
  import { createRuntimeDelivery, type RuntimeProduct } from '@contrast/runtime-delivery'
14
- import { verifyCliCompanion } from './cli-runtime'
14
+ import { ensureCliCompanion } from './cli-runtime'
15
15
  import {
16
16
  cacheDir,
17
17
  configFilePath,
@@ -38,7 +38,7 @@ export const RNX_RUNTIME_PRODUCT: RuntimeProduct = {
38
38
  // engine-tenant/ beneath it. index.html is what the daemon and the
39
39
  // vite/metro plugins serve, so its absence means the tarball is not one.
40
40
  installedMarker: 'index.html',
41
- verifyInstall: verifyCliCompanion,
41
+ verifyInstall: ensureCliCompanion,
42
42
  env: {
43
43
  cdnOrigin: 'PEACH_CDN_ORIGIN',
44
44
  channel: 'PEACH_RUNTIME_CHANNEL',
@@ -796,7 +796,8 @@ const OPTIONAL_FRAMEWORK_DEPENDENCIES: Record<string, string[]> = {
796
796
  TOCropViewController: [],
797
797
  RiveRuntime: ['MetalKit'],
798
798
  MetalKit: ['ModelIO'],
799
- DatadogCore: [],
799
+ DatadogInternal: [],
800
+ DatadogCore: ['DatadogInternal'],
800
801
  DatadogLogs: ['DatadogCore'],
801
802
  DatadogRUM: ['DatadogCore'],
802
803
  DatadogTrace: ['DatadogCore'],
@@ -1,10 +1,10 @@
1
1
  {
2
- "id": "6742aac7746a6ce9",
2
+ "id": "92d08dea86eafc17",
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": "af1852646c60b5cde579f3465df69967e16810b3",
7
+ "source": "e5fb86f09228f6a9802a802657fea000ed6a3118",
8
8
  "targets": [
9
9
  "ImagePlayground",
10
10
  "QuickLookThumbnailing",
@@ -138,6 +138,7 @@
138
138
  "ModelIOEnums",
139
139
  "ModelIO",
140
140
  "MetalKit",
141
+ "DatadogInternal",
141
142
  "DatadogCore",
142
143
  "DatadogLogs",
143
144
  "DatadogRUM",
@@ -230,16 +231,16 @@
230
231
  },
231
232
  "hosts": {
232
233
  "darwin-arm64": {
233
- "sha256": "80c63bad6b21a02244c09832dd1344a1aa52894bf5ed391b94771b036f385d08",
234
- "size": 99101780
234
+ "sha256": "b97c1ef24c74d88fe5b03240ac21017959884861a7ab3d298bc4b97e74e1bd02",
235
+ "size": 98848007
235
236
  },
236
237
  "linux-x64": {
237
- "sha256": "9f58c786fa96313a3aefe564c7af5eadda21a22ac996df49d16bfdd2c73456be",
238
- "size": 101818987
238
+ "sha256": "2beb12ad379dc2e618029a69c36b92d55c8f1b43b78e9600d97c13f17a1dab8f",
239
+ "size": 101566420
239
240
  },
240
241
  "linux-arm64": {
241
- "sha256": "2174623c31e5909128486b5516976060004d80697bdfcf46198b6150f7de1cc8",
242
- "size": 101312935
242
+ "sha256": "5ea72a514d3f67aaf477babb848c14177b57b6cbc1671ea075075586a4c38d6a",
243
+ "size": 101056003
243
244
  }
244
245
  }
245
246
  }
@@ -137,6 +137,19 @@ export function applyInstalledSwiftTargets(
137
137
  const module = moduleMapName(snapshot.input.files[file] ?? '')
138
138
  return !collection.targets.some((target) => target.name === module)
139
139
  })
140
+ // a header the installed search paths already supply, and its module covers,
141
+ // must not also reach the target as a second textual copy
142
+ for (const file of Object.keys(collection.files)) {
143
+ const prefix = `${generated.path}/include/`
144
+ if (!file.startsWith(prefix)) continue
145
+ const include = file.slice(prefix.length)
146
+ if (
147
+ native.headerSearchPaths.some(
148
+ (directory) => snapshot.input.files[`${directory}/${include}`] !== undefined,
149
+ )
150
+ )
151
+ delete collection.files[file]
152
+ }
140
153
  const flags = originalModuleFlags(native.flags)
141
154
  generated.clangSettings = [
142
155
  { tool: 'c', flags: [...flags, ...ndebug, ...search] },
@@ -305,12 +305,18 @@ function stageDeclaredFramework(
305
305
  ): void {
306
306
  const name = path.basename(framework, '.framework')
307
307
  const own = `${name}-Swift.h`
308
- const modulemap = fs.readFileSync(
308
+ const declaration = fs.readFileSync(
309
309
  path.join(framework, 'Modules/module.modulemap'),
310
310
  'utf8',
311
311
  )
312
+ // expo's use_frameworks setup removes React's framework module from the pod's
313
+ // module map, so the module is declared again from the umbrella the framework ships.
314
+ const modulemap = declaration.includes(`framework module ${name}`)
315
+ ? declaration
316
+ : `framework module ${name} {\n umbrella header "${name}-umbrella.h"\n export *\n}\n`
312
317
  const umbrella = /umbrella header "([^"]+)"/.exec(modulemap)?.[1]
313
- if (!umbrella) throw new Error(`${name} module map names no umbrella header`)
318
+ if (!umbrella || !fs.existsSync(path.join(framework, 'Headers', umbrella)))
319
+ throw new Error(`${name} module map names no umbrella header`)
314
320
  const headers = new Map(
315
321
  fs
316
322
  .readdirSync(path.join(framework, 'Headers'))
@@ -1,6 +1,7 @@
1
1
  import { createRequire } from 'node:module'
2
2
  import path from 'node:path'
3
3
  import { prepareNativeAppRoot } from './expo-native-workspace'
4
+ import { installedNativeLibraries } from './installed-native-libraries'
4
5
  import {
5
6
  compiledModuleAssets,
6
7
  compiledModuleRequestHandler,
@@ -10,6 +11,7 @@ import { swiftDistributionRoot } from './swift-distribution'
10
11
  import { icuUrl, type SwiftArtifact } from './swift-host'
11
12
  import { compileTurboModule } from './turbo-compile'
12
13
  import { discoverTurboProviders } from './turbo-source'
14
+ import { installedXcodeWorkspace } from './xcode-project'
13
15
  import type { TurboCompiledModule } from './nitroContract'
14
16
 
15
17
  export const TURBO_ROUTE = '/__peach/turbo'
@@ -38,6 +40,21 @@ export async function compileTurboApp(
38
40
  // the app's own committed ios directory has no installed pods: the compile
39
41
  // reads the prepared workspace, as the Nitro compile does
40
42
  const projectRoot = await prepareNativeAppRoot(appRoot)
43
+ const installed = installedXcodeWorkspace(projectRoot)
44
+ ? installedNativeLibraries(providers, projectRoot, module, iosTarget)
45
+ : null
46
+ // a provider that links a prebuilt binary stays out of the executable, so
47
+ // the app finds its modules absent where it calls them, as on a device
48
+ // that never linked the pod.
49
+ const unavailable = [...(installed?.unavailable ?? [])].map(([name, diagnostic]) => ({
50
+ name,
51
+ diagnostic,
52
+ }))
53
+ const compiled = providers.filter(({ name }) => !installed?.unavailable.has(name))
54
+ if (compiled.length === 0) {
55
+ for (const { diagnostic } of unavailable) console.warn(`[peach] ${diagnostic}`)
56
+ return null
57
+ }
41
58
  const { artifact, collection } = await compileTurboModule({
42
59
  appRoot,
43
60
  reactNativeRoot: path.dirname(
@@ -45,10 +62,11 @@ export async function compileTurboApp(
45
62
  'react-native/package.json',
46
63
  ),
47
64
  ),
48
- providers,
65
+ providers: compiled,
49
66
  moduleRoot: module,
50
67
  projectRoot,
51
68
  iosTarget,
69
+ installedPods: installed?.pods,
52
70
  })
53
71
  return {
54
72
  artifact,
@@ -59,6 +77,7 @@ export async function compileTurboApp(
59
77
  hash: artifact.hash,
60
78
  icuUrl: icuUrl(origin, artifact),
61
79
  bundleFiles: artifact.package.bundleFiles.files,
80
+ ...(unavailable.length > 0 ? { unavailable } : {}),
62
81
  },
63
82
  }
64
83
  }
@@ -2,7 +2,6 @@ import { createHash } from 'node:crypto'
2
2
  import fs from 'node:fs'
3
3
  import os from 'node:os'
4
4
  import path from 'node:path'
5
- import { installedNativeLibraries } from './installed-native-libraries'
6
5
  import { readIosAppTarget } from './native-app-identity-project'
7
6
  import {
8
7
  committedAdapterLocks,
@@ -36,6 +35,7 @@ import {
36
35
  collectTurboSources,
37
36
  prepareTurboSourceDependencies,
38
37
  TURBO_CORE_TARGET,
38
+ type TurboInstalledPod,
39
39
  type TurboProvider,
40
40
  type TurboSourceCollection,
41
41
  } from './turbo-source'
@@ -171,6 +171,8 @@ export async function compileTurboModule(options: {
171
171
  moduleRoot: string
172
172
  projectRoot: string
173
173
  iosTarget?: string
174
+ /** the installed workspace's pods; without them the podspecs' literal source membership applies. */
175
+ installedPods?: ReadonlyMap<string, TurboInstalledPod>
174
176
  }): Promise<{ artifact: SwiftArtifact; collection: TurboSourceCollection }> {
175
177
  await prepareTurboSourceDependencies(options.reactNativeRoot)
176
178
  const key = createHash('sha256')
@@ -186,15 +188,7 @@ export async function compileTurboModule(options: {
186
188
  reactNativeRoot: options.reactNativeRoot,
187
189
  providers: options.providers,
188
190
  codegenDir: path.join(scratch, 'codegen'),
189
- // without installed pods the podspecs' literal source membership applies
190
- installedPods: installedXcodeWorkspace(options.projectRoot)
191
- ? installedNativeLibraries(
192
- options.providers,
193
- options.projectRoot,
194
- options.moduleRoot,
195
- options.iosTarget,
196
- )
197
- : undefined,
191
+ installedPods: options.installedPods,
198
192
  })
199
193
  const swiftTargets = collection.targets.filter((target) =>
200
194
  Object.keys(collection.files).some(
@@ -211,7 +205,7 @@ export async function compileTurboModule(options: {
211
205
  options.projectRoot,
212
206
  `Swift TurboModule providers (${workspaceSwift.map(({ name }) => name).join(', ')})`,
213
207
  )
214
- await prepareXcodeSwiftPackages(workspace)
208
+ await prepareXcodeSwiftPackages(workspace, options.iosTarget)
215
209
  await withXcodeProject(
216
210
  workspace,
217
211
  {
@@ -298,7 +292,7 @@ export async function compileTurboModule(options: {
298
292
  options.projectRoot,
299
293
  `the modules no collected source provides (${missing.join(', ')})`,
300
294
  )
301
- await prepareXcodeSwiftPackages(workspace)
295
+ await prepareXcodeSwiftPackages(workspace, options.iosTarget)
302
296
  dependencies = await withXcodeProject(
303
297
  workspace,
304
298
  {
@@ -12,7 +12,7 @@
12
12
  "checksum": "d91882af99821a296c3db4459896b46ceaef37e9a30caad14e5f24cf6b964ae9"
13
13
  },
14
14
  "framework": {
15
- "distribution": "6742aac7746a6ce9",
15
+ "distribution": "92d08dea86eafc17",
16
16
  "wireAbi": "246b8412514b644113e6a26252c8ebd6de49ab4156ac5f5c98bb9e4c2ff2568b"
17
17
  },
18
18
  "archives": [
@@ -20,64 +20,64 @@
20
20
  "headers": {
21
21
  "reactNativeJsi": "0f8c2defbca69a27a848a81ae72363073bf9602fd316e57a75811be1a0528358"
22
22
  },
23
- "sha256": "c545a333753d9dfed546f713e3006119e508b0bd54afd51e73d0822cc4157be4",
24
- "size": 25407
23
+ "sha256": "1c025e16714e307807927e6dc402e5969380379348b81239ae0e51893579bf86",
24
+ "size": 25410
25
25
  },
26
26
  {
27
27
  "headers": {
28
28
  "reactNativeJsi": "21a624ea24fd17d56bf26832d496fc1177067f89640414c20e6486c7984dfb0a"
29
29
  },
30
- "sha256": "258b039af8a7b62fcf7c0ba77d9fbb61fc099c300a762ac6d183b2fc912e74e2",
31
- "size": 26141
30
+ "sha256": "5f3ff09bd19438a4241b04886b8faed29653c9a0496f71456fed04773024743d",
31
+ "size": 26143
32
32
  },
33
33
  {
34
34
  "headers": {
35
35
  "reactNativeJsi": "324aefd8591d9ce688bce7589c4c2b516cd33ecb95d35c47239a87a8fcf6a8da"
36
36
  },
37
- "sha256": "12899d30723de10d44a6a20dd80d0d9e9c38e7b2824e6cc929123c3c73cffc96",
38
- "size": 25397
37
+ "sha256": "f338727cb59425568a5431cb46fee1929a0eeb7e74e137784c3a6b4032e3b8f7",
38
+ "size": 25399
39
39
  },
40
40
  {
41
41
  "headers": {
42
42
  "reactNativeJsi": "33596664ee7d7a6623f0796a6feb429543316c3a41b211150acda6e1d835286c"
43
43
  },
44
- "sha256": "36e909c7e35d251e5768ebddc96cc1af5e831846d2154f7941d25c00f91180b4",
45
- "size": 25172
44
+ "sha256": "aa26e40d43b57677bae9770d4fae08005974d97727ede149a6075ec1e9f49330",
45
+ "size": 25175
46
46
  },
47
47
  {
48
48
  "headers": {
49
49
  "reactNativeJsi": "66b2cd5a38511195207f6c8a76aba735f9b9cc66a52a0d00780ffe5d331623f7"
50
50
  },
51
- "sha256": "f99036ae09b8ab1f3a2404975e0dd45b549b8b3eeb562f53df9586afb936a114",
52
- "size": 25406
51
+ "sha256": "b16b3f3357aa86ad40c207bbb81d4a4ce21152f7c9dfdc092e4d070895dd1868",
52
+ "size": 25410
53
53
  },
54
54
  {
55
55
  "headers": {
56
56
  "reactNativeJsi": "96db4e758dd53e9320cef7cad485e00aa06e7a982cefd920f17007de8a5bd9f9"
57
57
  },
58
- "sha256": "19a9f1ca4cd22d871eaa07ab04047a0f79026fc78c27a782208eca9269370f96",
59
- "size": 26142
58
+ "sha256": "38ea876c785d0febcf2428d98d539e7394c0fd25b930843750a8a24352973736",
59
+ "size": 26143
60
60
  },
61
61
  {
62
62
  "headers": {
63
63
  "reactNativeJsi": "aeab590ddd1218df963462242d3954ce467b0fa88f70e91429e4ffc74d230893"
64
64
  },
65
- "sha256": "2a97bada6dc57b9bd92a8768c13889ebdae59d00b807f2068e99c3b392324dc9",
66
- "size": 26143
65
+ "sha256": "a5874458a8784cfa5aaea1f4e2ca3b5a5de1c1f0192daae419a4b1b0d4d921f4",
66
+ "size": 26144
67
67
  },
68
68
  {
69
69
  "headers": {
70
70
  "reactNativeJsi": "b5fb260522384dd7ab07d740cdc534b529922446fcec798341c7817d9eaa49f4"
71
71
  },
72
- "sha256": "bb3101c5b644641aedd4eae36e0763c27da095056e586a41885dddfbec1f9860",
73
- "size": 25273
72
+ "sha256": "d2032854a6a40112f989cc819eb08ea810872bf8f0493da984ac73baffb68381",
73
+ "size": 25275
74
74
  },
75
75
  {
76
76
  "headers": {
77
77
  "reactNativeJsi": "c6b391a1e870ccf7cdd534be63582862840f8245b99ebd253317deece1e6ffd5"
78
78
  },
79
- "sha256": "7607621dcdbf5449527b4507a17d8c3203930be199a684a036b9a1eb5f917a5f",
80
- "size": 26147
79
+ "sha256": "6c0ef47aa726477eeb9fd3968287b90aca798f47777eaaccb526ca41dce1430e",
80
+ "size": 26149
81
81
  }
82
82
  ]
83
83
  }
@@ -1186,6 +1186,7 @@ export async function collectTurboSources(options: {
1186
1186
  // an include a file names, resolved as clang would against the pod's own
1187
1187
  // directory, then the search paths CocoaPods gives a module pod. unresolved
1188
1188
  // names are the SDK's own headers.
1189
+ const podFileLists = new Map<string, Set<string>>()
1189
1190
  const resolve = (from: Scan, include: string, quoted: boolean) => {
1190
1191
  if (quoted) {
1191
1192
  const relative = path.posix.normalize(
@@ -1261,6 +1262,21 @@ export async function collectTurboSources(options: {
1261
1262
  )
1262
1263
  return
1263
1264
  }
1265
+ if (quoted && from.root) {
1266
+ // a pod's private headers share one flattened header map, so a quoted
1267
+ // include reaches a sibling in another directory of the same pod
1268
+ let files = podFileLists.get(from.root)
1269
+ if (!files) {
1270
+ files = new Set()
1271
+ walkFiles(from.root, '', files)
1272
+ podFileLists.set(from.root, files)
1273
+ }
1274
+ const found = [...files].find((file) => file.endsWith(`/${include}`))
1275
+ if (found) {
1276
+ alias(own, original(from.targetName, from.label, from.root, found, false))
1277
+ return
1278
+ }
1279
+ }
1264
1280
  if (codegen && HEADER.test(include)) {
1265
1281
  const generated = codegenSpecRoot(codegen)
1266
1282
  const relative = path.posix.normalize(include.replace(/^ReactCodegen\//, ''))