# Xcframework with swift+objectiveC + C++

**URL:** <https://forums.swift.org/t/xcframework-with-swift-objectivec-c/58818>\
**Category:** Using Swift\
**Tags:** bridging, swiftui, xcframework\
**Created:** [July 10, 2022, 10:46am UTC](https://forums.swift.org/t/xcframework-with-swift-objectivec-c/58818 "2022-07-10T10:46:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![AlexMemomi](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/alexmemomi/32/24260_2.png) [@AlexMemomi](https://forums.swift.org/u/AlexMemomi)\
**Post date:** [July 10, 2022, 10:46am UTC](https://forums.swift.org/t/xcframework-with-swift-objectivec-c/58818/1 "2022-07-10T10:46:26Z")

</div>

Hi. We have a C++ cross-platform based project. It is designed as library with public API. We trying to warp it with some swift interface in order to make some standalone IOS module to distribute it to some other guys who will integrate it to final project as blackbox with public swift interface.  
So as far I understand xcframework - is something that apple wants to be as standard for such cases. But I cannot find any clear information about interop between C++ and swift. Current direct C++ binding to swift is in development stage. So the only way is to use Objective C warper + bridging header. But bridging header is not supported by xcframework concept.  
I'm getting error: "error: using bridging headers with module interfaces is unsupported" when build it with Bazel apple\_xcframework target ("-import-objc-header" copt key). So what is the correct way to do it?
