[iOS 26] Runtime crash: SyntaxError 'callGuardDEV' in valueUnpacker on iOS 26.5 beta (Reanimated 4.3.1 + worklets 0.8.3)
Description
Production TestFlight app crashes on launch on iOS 26.5 beta. The crash originates in valueUnpacker on Thread 1 — Hermes's worklet runtime throws a SyntaxError when trying to parse worklet source that contains callGuardDEV, a React Native dev-mode symbol that has no meaning inside the isolated worklets context.
This is iOS-only. Android (same codebase, same bundle version) is not affected.
Error
SyntaxError: Parsing source code unsupported: (function callGuardDEV_reactNati
at valueUnpacker (app:///main.jsbundle:28)
Crash type
EXC_CRASH (SIGABRT) — unhandled C++ exception propagates from Hermes through the worklets runtime to Thread 1 and aborts the process.
Termination Reason: SIGNAL 6 Abort trap: 6
Crashed thread backtrace (Thread 1):
0 libsystem_kernel.dylib 0x00000002374da1d0
1 libsystem_pthread.dylib 0x00000001e75537dc
2 libsystem_c.dylib 0x0000000193f0dc98
3 libc++abi.dylib 0x000000018503efd4 __cxa_throw
4 libc++abi.dylib 0x0000000185040b90
5 libobjc.A.dylib 0x0000000184f3f868
6 megui 0x0000000102c15f34 (offset +4054836 — inside worklets/Hermes JSI bridge)
7 libc++abi.dylib ...
8 libc++abi.dylib ...
...
12 megui 0x0000000102887da8
Environment
| Field | Value |
|---|---|
| react-native-reanimated | 4.3.1 |
| react-native-worklets | 0.8.3 |
| react-native | 0.85.3 |
| react | 19.2.3 |
| expo | 56.0.0-preview.12 |
| iOS | 26.5 (23F77) — beta |
| Device | iPhone 18,1 (iPhone 16) |
| Architecture | ARM-64 (New Architecture) |
| JS Engine | Hermes |
| Distribution | TestFlight (release build) |
| Android affected | No |
Babel config
module.exports = (api) => {
api.cache(true);
return {
presets: [["babel-preset-expo"]],
plugins: [
"@babel/plugin-syntax-dynamic-import",
"react-native-worklets/plugin",
],
};
};
Metro config
const { getSentryExpoConfig } = require("@sentry/react-native/metro");
const { wrapWithReanimatedMetroConfig } = require('react-native-reanimated/metro-config');
const config = getSentryExpoConfig(__dirname);
module.exports = wrapWithReanimatedMetroConfig(config);
Analysis
valueUnpacker deserializes worklets from their string representation using new Function(source) inside Hermes's worklets runtime. The callGuardDEV symbol is injected by React Native's Metro transformer in development mode around function calls. It has no binding in the isolated worklets runtime, causing Hermes to throw SyntaxError: Parsing source code unsupported.
Open questions:
- Why does the worklet source retain
callGuardDEVin a production (release) build? The worklets babel plugin should strip/transform this. - Why is this iOS 26.5-specific? Android is unaffected. Possibly Hermes on iOS 26 has stricter worklet context isolation, or a platform-specific Hermes build change surfaced this bug.
Related issues
- #9345 — Build failure on Xcode 26.4 with worklets 0.8.3 (different symptom, same OS generation)
- #9293 — EXC_BAD_ACCESS on iOS with Reanimated 4.3.0 + worklets 0.8.1 (different crash type)
- #5209 —
valueUnpacker is not a worklet(similar area, different error)
Steps to reproduce
No deterministic repro yet. The crash appears on every launch on affected devices (iOS 26.5 beta). Not reproducible on iOS 18.x or Android.
Happy to provide the full crash report or test a patch build if the team can point at a suspected root cause.
Hey! 👋
It looks like you've omitted a few important sections from the issue template.
Please complete Snack or a link to a repository, Reanimated version, React Native version and Platforms sections.
Hey! 👋
The issue doesn't seem to contain a minimal reproduction.
Could you provide a snack or a link to a GitHub repository under your username that reproduces the problem?
Having the same issue! I'm on IOS 26.3 though.
Running into the same here
Seems like tighter security on iOS. However, current main and future release won't have the callguard in JS code. However, I wonder how are other worklets affected in Legacy Mode
Running into the same issue 😢
*** Terminating app due to uncaught exception 'RCTFatalException: Unhandled JS Exception: SyntaxError: Parsing source code unsupported: (function callGuardDEV_reactNati', reason: 'Unhandled JS Exception: SyntaxError: Parsing source code unsupported: (function callGuardDEV_reactNati, stack:
SyntheticError@12140:2
handleException@12218:34
handleError@24139:43
anonymous@115401:25
reportFatalError@768:38
guardedLoadModule@97:42
metroRequire@43:91
get@100103:22
metroContext@100468:14
loadRoute@133608:41
getLayoutNode@133957:31
_loop3@133691:34
getDirectoryTree@133728:20
getRoutes@133404:40
getRoutes@133273:41
useStore@115449:46
ContextNavigator@139034:44
renderWithHooks@17554:31
beginWork@18837:31
workLoopSync@20875:24
renderRootSync@20764:18
performWorkOnRoot@20544:96
performWorkOnRootViaSchedulerTask@16777:21
This is under investigation. Until we fix the issue you can enable the Bundle Mode - it should fix this issue since it doesn't parse any code at runtime.
This was an issue on Expo's side - Will be fixed and a new build artifact will be uploaded tonight - just rebuild and it should work! Sorry for the inconvenience!
Hi @chrfalch thanks for approaching this asap. So no package updates, just a rebuild in the expo workflow context? I faced the issue same issue with 56.0.0-preview.13 now just upgraded to 56.0.0 next, I will execute a build.