https://github.com/facebook/react-native/issues/49245#issuecomment-2665527685
Check that the following line:
SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) DEBUG";
has been added inside project.pbxproj
in debug XCBuildConfiguration
block:
83CBBA201A601CBA00E9B192 /* Debug / = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
CLANG_CXX_LANGUAGE_STANDARD = "c++20";
...
REACT_NATIVE_PATH = "${PODS_ROOT}/../../node_modules/react-native";
SDKROOT = iphoneos;
SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) DEBUG";
USE_HERMES = true;
};
name = Debug;
};