Skip to content

[MOO-2251] App crash fix occured by folly in debug build#202

Open
saurabhchavan1711 wants to merge 1 commit intomainfrom
moo/MOO-2251-App_crash_fix_due_to_folly
Open

[MOO-2251] App crash fix occured by folly in debug build#202
saurabhchavan1711 wants to merge 1 commit intomainfrom
moo/MOO-2251-App_crash_fix_due_to_folly

Conversation

@saurabhchavan1711
Copy link

Problem
Debug builds crash with SIGABRT in F14SetFallback.h:234 on Xcode 26 when the New Architecture passes data through F14 hash maps.

Root Cause
Folly uses reinterpret_cast to access std::unordered_set private internals — an unsafe hack. Xcode 26's libc++ changed the internal layout, causing a debug-only assertion (FOLLY_SAFE_DCHECK) to fail. Release builds are unaffected as they already define NDEBUG.

Fix
Define NDEBUG=1 for all pod targets in Debug configuration, matching Release behavior. Must apply to all targets because F14SetFallback.h is a header-only template compiled by any including target.

@saurabhchavan1711 saurabhchavan1711 changed the title App crash fix by folly in debug build App crash fix occured by folly in debug build Mar 18, 2026
@saurabhchavan1711 saurabhchavan1711 changed the title App crash fix occured by folly in debug build [MOO-2251] App crash fix occured by folly in debug build Mar 18, 2026
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.

1 participant