You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
React Native Codegen 0.86.0 always emits a States.cpp translation unit, but GenerateStateCpp.js currently renders no state definitions (StateTemplate returns an empty string). For component libraries whose generated state source has no other definitions, Xcode 26.4.1 libtool reports the compiled object as symbol-less.
Environment
@react-native/codegen: 0.86.0
React Native: 0.86.0
Xcode: 26.4.1
SDK: iOS simulator
configuration: Release, new architecture
Reproduction
Generate component code for libraries such as rnscreens or safeareacontext, then build the generated ReactCodegen target in Release. The generated source contains only the header include and empty namespace.
libtool: warning: States-89020dfa9f92f64072c3fa149a6beab6.o has no symbols
libtool: warning: States-07dedd22012e4ff4426f2b40f6fb19ed.o has no symbols
Verified source-level fix
Have GenerateStateCpp emit a unique external-linkage function based on the sanitized library name, for example:
extern"C"voidRnscreensStatesLinkerAnchor() {}
A regenerated Release object then exposes _RnscreensStatesLinkerAnchor in nm -g, and libtool no longer reports an empty object. This fixes the source without warning flags, suppression, or log filtering.
Missing reproducer: We could not detect a reproducible example in your issue report. Reproducers are mandatory and we can accept only one of those as a valid reproducer:
For majority of bugs: send us a Pull Request with the RNTesterPlayground.js edited to reproduce your bug.
Activity
react-native-bot commentedon Jul 13, 2026
Warning
Missing reproducer: We could not detect a reproducible example in your issue report. Reproducers are mandatory and we can accept only one of those as a valid reproducer:
You can read more about about it on our website: How to report a bug.
react-native-bot commentedon Aug 7, 2026
This issue is waiting for author's feedback since 24 days. Please provide the requested feedback or this will be closed in 7 days.
react-native-bot commentedon Sep 1, 2026
This issue is waiting for author's feedback since 24 days. Please provide the requested feedback or this will be closed in 7 days.
react-native-bot commentedon Sep 8, 2026
This issue was closed because the author hasn't provided the requested feedback after 7 days.