From 79b9c41e5e2428694bbf5ab691d0f533292bfb28 Mon Sep 17 00:00:00 2001 From: Riccardo Cipolleschi Date: Wed, 15 Jul 2026 15:35:32 +0200 Subject: [PATCH] fix(iOS): classify CFNetwork as a system framework in the header include-health ratchet The compose-xcframework job's "Verify composed headers" step failed the include-health ratchet with two NEW unresolvable includes: unresolved CoreModules/RCTInspectorWebSocketReporter.h -> CFNetwork/CFNetwork.h unresolved React/RCTInspectorWebSocketReporter.h -> CFNetwork/CFNetwork.h RCTInspectorWebSocketReporter.h (#57543) imports for CFHTTPMessageRef. CFNetwork is a real Apple system framework, always available in the SDK, but it was missing from the SDK_PREFIXES allowlist in headers-inventory.js, so the ratchet classified the include as unresolvable. Adding it alongside CoreFoundation/Security/Network fixes the classification; no baseline change is needed. --- packages/react-native/scripts/ios-prebuild/headers-inventory.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/react-native/scripts/ios-prebuild/headers-inventory.js b/packages/react-native/scripts/ios-prebuild/headers-inventory.js index 4b514c35286..b159fe06841 100644 --- a/packages/react-native/scripts/ios-prebuild/headers-inventory.js +++ b/packages/react-native/scripts/ios-prebuild/headers-inventory.js @@ -86,6 +86,7 @@ const SDK_PREFIXES = new Set([ 'Accessibility', 'AVFoundation', 'AVKit', + 'CFNetwork', 'CommonCrypto', 'CoreFoundation', 'CoreGraphics',