@@ -122,14 +122,15 @@ overlay**. The layout contract is defined and validated in code:
122122 rejected.
123123- ` headers-inventory.js ` : scans the source tree to build the live header
124124 inventory that feeds the spec.
125- - ` headers-compose.js ` : emits the layout. ` emitReactFrameworkHeaders() ` writes the
126- ` React/ ` and bare-aliased headers into every slice's ` React.framework/Headers ` ,
127- and ` buildReactNativeHeadersXcframework() ` assembles the headers-only
128- ` ReactNativeHeaders.xcframework ` carrying every other namespace (incl. ` react/ ` )
129- plus the third-party dependency namespaces (` folly ` , ` glog ` , ` boost ` , ` fmt ` ,
130- ` double-conversion ` , ` fast_float ` ). The Hermes public headers (` <hermes/...> ` )
131- are folded in only on the SwiftPM consumer side (` ensureHeadersLayout ` ); the
132- published prebuild artifact does not yet carry them (TODO in ` xcframework.js ` ).
125+ - ` headers-compose.js ` : emits the layout. ` emitReactFrameworkHeaders() ` writes
126+ the ` React/ ` and bare-aliased headers into every slice's
127+ ` React.framework/Headers ` , and ` buildReactNativeHeadersXcframework() `
128+ assembles the headers-only ` ReactNativeHeaders.xcframework ` carrying every
129+ other namespace (incl. ` react/ ` ) plus the third-party dependency namespaces
130+ (` folly ` , ` glog ` , ` boost ` , ` fmt ` , ` double-conversion ` , ` fast_float ` ). The
131+ Hermes public headers (` <hermes/...> ` ) are folded in only on the SwiftPM
132+ consumer side (` ensureHeadersLayout ` ); the published prebuild artifact does
133+ not yet carry them (TODO in ` xcframework.js ` ).
133134
134135### Artifacts
135136
@@ -138,19 +139,20 @@ The prebuild (`xcframework.js`) always produces:
138139- ` React.xcframework ` — the compiled React core. Each slice's ` React.framework `
139140 carries the headers-spec layout (every ` <React/...> ` header + the framework
140141 module map), which is what both CocoaPods and SwiftPM consume.
141- - ` ReactNativeHeaders.xcframework ` — headers-only; carries every other namespace.
142- Consumed by SwiftPM as a ` binaryTarget ` and by CocoaPods via the
142+ - ` ReactNativeHeaders.xcframework ` — headers-only; carries every other
143+ namespace. Consumed by SwiftPM as a ` binaryTarget ` and by CocoaPods via the
143144 ` React-Core-prebuilt ` pod (headers flattened onto the header search path).
144145
145146### CocoaPods consumption
146147
147148The ` React-Core-prebuilt ` pod vends ` React.xcframework ` (so ` <React/...> ` and
148- ` @import React; ` resolve through the framework module via ` FRAMEWORK_SEARCH_PATHS ` )
149- and flattens ` ReactNativeHeaders.xcframework ` 's headers into a top-level ` Headers/ `
150- exposed on the pod header search path (so ` <react/...> ` , ` <yoga/...> ` , ` <folly/...> `
151- resolve). ` rncore.rb ` adds the ` HEADER_SEARCH_PATHS ` entry to
152- ` React-Core-prebuilt/Headers ` for podspec, aggregate (main app), and third-party
153- pod targets. No ` -ivfsoverlay ` flags are added.
149+ ` @import React; ` resolve through the framework module via
150+ ` FRAMEWORK_SEARCH_PATHS ` ) and flattens ` ReactNativeHeaders.xcframework ` 's
151+ headers into a top-level ` Headers/ ` exposed on the pod header search path (so
152+ ` <react/...> ` , ` <yoga/...> ` , ` <folly/...> ` resolve). ` rncore.rb ` adds the
153+ ` HEADER_SEARCH_PATHS ` entry to ` React-Core-prebuilt/Headers ` for podspec,
154+ aggregate (main app), and third-party pod targets. No ` -ivfsoverlay ` flags are
155+ added.
154156
155157## Integrating in your project with Cocoapods
156158
0 commit comments