Bitrise not respecting public/private headers

If you run the xcodebuild command from a Script step, there’s absolutely no Bitrise specific thing going on. That’s just pure Xcode Command Line tools (xcodebuild), exactly the way you run it.

I’d suggest you to try these local debug/reproduction steps, and let us know if that helps / how that goes: