Skip to content

fix(deps): move expo-modules-core to what expo bundles - #925

Merged
thinkclay merged 1 commit into
mainfrom
fix/expo-modules-core-pin
Sep 26, 2026
Merged

thinkclay merged 1 commit into
mainfrom
fix/expo-modules-core-pin

Conversation

@thinkclay

Copy link
Copy Markdown
Contributor

Closes #916.

expo-modules-core was pinned at 56.0.22 while [email protected] bundles ~56.0.26 — four patches below the core that every other Expo native module is compiled against. That is the ITMS-90863 shape (#683): compiled against one ExpoModulesCore API surface, linked against another. iOS dyld tolerates it; Apple's Mac-compatibility check does not.

The pin was not load-bearing, and I had guessed wrong about why

#916 recorded my inference that it traced to the custom Animated drawer's Reanimated/Worklets matrix. It does not. The history:

commit what it did
72ccda702 added the override at 55.0.7, for the ui-storybook-native app
a9704c496 set 56.0.22 in "align 22 SDK 56 packages with what expo expects"

That second one is #689 — the fix for ITMS-90863 — and its message is explicit that this version was the reference point, not a constraint:

expo-image at 56.0.9 and expo-image-manipulator at 56.0.14, against an expo-modules-core pinned at 56.0.22

It moved the satellites up to this pin. The satellites then moved on with the catalog — expo-image-manipulator is at 56.0.26 today, expo-image at 56.0.13 — and this stayed behind. So the skew #689 closed had simply inverted: the core now sits below the modules compiled against it.

Nothing caught it in between because expo install --check only inspects apps/scaffald's direct dependencies, and this is transitive, held by a root pnpm.overrides entry. The check that existed to prevent #683 structurally could not see the package #683 was about. scripts/check-expo-alignment.mjs from #917 walks the installed tree, which is how it surfaced.

Moved in lockstep — override and catalog — per #501, since the override outranks the catalog and a half-move is silent. The reason now lives next to the pin instead of being reconstructible only from two old commits.

Verified natively, because nothing in CI can see this failure mode

#683 shipped through a green build and was caught at Apple delivery. A green CI here proves nothing, so I built and ran it:

expo prebuild --platform ios    ok, no tracked files changed
pod install                     149 pods, "Installing ExpoModulesCore (56.0.26)"
xcodebuild -workspace … Debug   ** BUILD SUCCEEDED **, 0 diagnostics
launch on iPhone 17 Pro         dev client UI renders, PID alive, no crash report

The launch is the part that matters. These are dynamic frameworks, so their symbols resolve at load time — which is precisely how #683 survived a build. dyld loaded ExpoModulesCore 56.0.26 alongside ExpoImage and ExpoImageManipulator with no missing-symbol abort. nm -u on both of those frameworks also shows zero undefined exposedDefinition symbols, the #683 signature.

The dev client running on the simulator

Expected state for a dev client with no Metro attached — "Scaffald (development) / Development Build / No development servers found". The point is that it got that far.

Static checks

Also corrected the comment in check-expo-alignment.mjs, which cited this pin as an example of a deliberate override. It wasn't one — and the lesson worth keeping is to check why a pin exists before assuming it is load-bearing, which is the mistake I made when filing #916.

Caveat

This was a Debug simulator build. Apple's checker runs against a Release build for a real device, and the precompiled ExpoModulesCore.xcframework may differ by slice. The symbol evidence and a clean dyld load are strong, but the conclusive test is the next EAS iOS build — worth watching that one rather than assuming.

🤖 Generated with Claude Code

`expo-modules-core` was pinned at 56.0.22 while [email protected] bundles
~56.0.26 — four patches below the core every other Expo native module is
compiled against. That is the ITMS-90863 shape (#683): compiled against one
ExpoModulesCore API surface, linked against another. iOS dyld tolerates it;
Apple's Mac-compatibility check does not.

## The pin was not load-bearing, and I had guessed wrong about why

#916 recorded my inference that it traced to the custom Animated drawer's
Reanimated/Worklets matrix. It does not. The history:

  72ccda7  added the override at 55.0.7, for the ui-storybook-native app
  a9704c4  set 56.0.22 in "align 22 SDK 56 packages with what expo expects"

That second commit is #689, the fix for ITMS-90863, and its message is
explicit that this version was the REFERENCE POINT rather than a constraint:
"expo-image at 56.0.9 and expo-image-manipulator at 56.0.14, against an
expo-modules-core pinned at 56.0.22". It moved the satellites UP to this pin.

The satellites then moved on with the catalog — expo-image-manipulator is at
56.0.26 today, expo-image at 56.0.13 — and this stayed behind. So the skew
#689 closed had simply inverted: the core is now below the modules compiled
against it.

Nothing consulted it in between because `expo install --check` only inspects
apps/scaffald's DIRECT dependencies, and this is transitive, held by a root
`pnpm.overrides` entry. The check that existed to prevent #683 structurally
could not see the package #683 was about. scripts/check-expo-alignment.mjs
(#907) walks the installed tree and is what surfaced it.

Moved in lockstep — override and catalog — per #501, since the override
outranks the catalog and a half-move is silent. The reason is now written next
to the pin instead of being reconstructible only from two old commits.

## Verified natively, because nothing in CI can see this failure mode

#683 shipped through a green build and was caught at Apple delivery, so a
green CI here proves nothing. Built and ran it:

  expo prebuild --platform ios       ok, no tracked files changed
  pod install                        149 pods, ExpoModulesCore (56.0.26)
  xcodebuild -workspace … Debug      ** BUILD SUCCEEDED **, 0 diagnostics
  launch on iPhone 17 Pro            dev client UI renders, PID alive,
                                     no crash report

The launch is the part that matters. These are dynamic frameworks, so their
symbols resolve at LOAD time — which is exactly how #683 survived a build.
dyld loaded ExpoModulesCore 56.0.26 alongside ExpoImage and
ExpoImageManipulator without a missing-symbol abort. `nm -u` on both of those
frameworks also shows zero undefined `exposedDefinition` symbols, the #683
signature.

Static checks: check-expo-alignment 39/39 agree with no override exception
left, overrides/catalog aligned (9 pairs), `expo install --check` up to date,
Expo autolinking exports match the installed CLI, prepush green.

Also corrected the comment in check-expo-alignment.mjs, which cited this pin
as an example of a deliberate override — it was not one.

Co-Authored-By: Claude Opus 5 <[email protected]>
@thinkclay
thinkclay merged commit eaaeaa7 into main Sep 26, 2026
9 checks passed
@thinkclay
thinkclay deleted the fix/expo-modules-core-pin branch September 26, 2026 23:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

deps: expo-modules-core is pinned 4 patches below what expo bundles, and the old gate could never see it

1 participant