What this thread does
The problem
An Expo dependency change leaves Android crashing before the first screen, Swift compilation failing, or a successful iOS build unable to install. Choose the branch by the first meaningful error and whether it happens during compilation, JS startup or device installation. These are separate failure families.
Versions, licence and service scope — checked 2026-10-20
| Component | Verified scope | Licence / price scope |
|---|---|---|
| Expo SDK 55 | React Native 0.83; Legacy Architecture removed, per release notes | Expo repository MIT licence; EAS prices not evaluated |
| Expo SDK 56 | React Native 0.85, per release notes; macro fix identified in expo 56.0.6 | Local build diagnosis; no paid plan recommendation |
| Expo SDK 57 | React Native 0.86, per release notes | No confirmed instance of these exact failures established here |
| Expo SDK 58 | React Native 0.88, per release notes | No confirmed instance of these exact failures established here |
These are SDK families, not latest patch claims. Historical issue versions below identify reproductions or fixes; do not copy their pins into a different SDK.
When to pick which branch
| First failure | Investigate first | First commands |
|---|---|---|
| Android module registration | UI/core native compatibility | npm ls expo @expo/ui expo-modules-core; npx expo-doctor |
| Swift macro expansion | Autolinking, macro plugin and build-host architecture | npm ls expo expo-modules-autolinking; uname -m |
| Bridgeless JS initialization | Dependency alignment and stale dev-client/Metro state | npx expo install --check; npx expo start --clear |
| Build succeeds, physical device install fails | CLI device-handshake code | npm ls expo @expo/cli; xed ios |
Android UI class missing
Exact exception prefix java.lang.NoClassDefFoundError: Failed resolution of: with descriptor Lexpo/modules/kotlin/views/ComposeViewFunctionDefinitionBuilder; occurs in ExpoUIModule startup. AliMousaDev's #47179, opened 2026-06-23, reports an old UI canary on SDK 54. Expo contributor intergalacticspacehighway calls it a “very old version” and recommends the SDK 56 stable UI line, then confirms that SDK upgrade is needed for that recommendation (2026-06-24; checked 2026-10-20).
The supported diagnosis is a UI/native-core compatibility mismatch, not missing application JavaScript. First run the inventory above. For an app already on SDK 56, run npx expo install @expo/ui, npx expo install --fix, then npx expo run:android to rebuild its native client. On an older SDK, plan the compatible SDK move first using the official upgrade guide. Do not force the recommended UI package into SDK 54/55, add a keep rule as a guessed fix, or expect a Metro restart to add a missing native class. The issue does not prove this is a fresh SDK 57/58 regression.
iOS macro implementation missing
Exact message external macro implementation type 'ExpoModulesMacros.OptimizedFunctionAttachedMacro' could not be found appears in kartik385's #46318, opened 2026-05-26. The compiler cannot load the macro plugin; the related #46301 documents an autolinking path that assumes a nested rather than hoisted dependency layout. Kudo's 2026-05-29 maintainer answer identifies expo 56.0.6 and npx expo install --fix; AdamC03 confirms the fix. Checked 2026-10-20.
For that SDK 56 case, update the expo dependency within the SDK 56 line if below the documented fix, then run npx expo install --fix and npx pod-install, followed by npx expo run:ios. Review old autolinking patches first; Kudo says they can preserve the broken implementation. Do not indiscriminately downgrade crypto or copy historical macro-plugin overrides across host architectures. The issue was closed again on 2026-10-26 as a duplicate of #46301, with expo 56.0.6 confirmed as the fix.
Bridgeless MessageQueue failure
Exact message ReferenceError: Property 'MessageQueue' doesn't exist is verified in agomezn97's #46162, opened 2026-05-22 after a 55-to-56 upgrade. The report locates the failure in development-only JS initialization; the later UIManager failure is reported as teardown fallout. The precise offending module is not established. The issue was closed on 2026-05-22 as completed for lacking a valid minimal reproduction; no human maintainer diagnosis or confirmed fix was found. Checked 2026-11-24.
Run npx expo install --fix, npx expo-doctor, npx expo start --clear, then rebuild with npx expo run:android or npx expo run:ios for the affected platform. This is a diagnostic repair sequence, not a confirmed universal cure. WillyReyno reports cache clearing helped; jpunlay reports reinstalling the dev app helped; others still fail. Reinstall only a disposable development app if accepting loss of its local data. Do not inject a fake global MessageQueue, diagnose UIManager from the last log line, or use the SDK 54 comment suggesting newArchEnabled: false on SDK 55 and later, where Legacy Architecture is unavailable.
Physical iOS device handshake failure
Exact message TypeError: Cannot convert object to primitive value at LockdowndClient.startSession is reproduced by ezgna on a blank project in #46123, opened 2026-05-21. kitten's merged fix #46128, merged 2026-05-22, removes coercion of a pairing record in debug logging. Checked 2026-10-20.
Run npm ls expo @expo/cli, update expo within the chosen SDK line, then npx expo install --fix and retry npx expo run:ios --device. Verify the resolved CLI includes that fix; the first published fixed CLI patch was not established here. For a build already working in Xcode, xed ios and Xcode Run is the reported workaround in Jayesh-JainX's #46828, opened 2026-06-11. Do not rewrite app UI, delete pairing records blindly, or dump pairing records to logs to diagnose this logging bug.
Recommendation and mistakes
Start with package inventory and a single matching error branch. For generated native projects, follow Expo's upgrade guide before regeneration; preserve manual native edits. Avoid repeating clean builds without changing the mismatched package or broken autolinking path. A merged fix is not proof that your lockfile contains its published release.
A prompt to give your agent
Read the linked issue, maintainer replies, merged fix and official SDK notes before proposing a change. Do not guess from the error name. Record installed Expo, CLI, UI/core and React Native versions, platform, architecture, build mode and first error. Match one branch, distinguish confirmed cause from hypothesis, and make one compatible change. Rebuild only the affected native client and report the actual result. If our SDK or exact error has no matching source, say so rather than importing an older workaround.
Limits
No app, emulator, native build, EAS build or migration was run. Evidence comes from several GitHub reporters and Expo contributors, not a representative survey. The requested C++ debug-header failure was not verified in a fetched Expo issue/doc and is omitted as a remedy. MessageQueue lacks a human maintainer diagnosis. SDK 57/58 release compatibility was checked, but these exact regressions and fixes were not reproduced there. No latest patch, EAS price or first fixed Lockdownd CLI release is claimed.
Started from a post by @kartik385, packaged by the editor. Original post