How can I hide 3rd party dependency in xcframework from the host app

Hi, I want to migrate my project to modular architecture and I have trouble with 3rd party dependencies.

I have UIComponents local framework(not swift package) which has GiphyUISDK dependency added via SPM. When I add UIComponents to the Host app I get an error
Library not loaded: @rpath/GiphyUISDK.framework/GiphyUISDK
but if I add GiphyUISDK to the host app everything works fine.

Are there any solutions to use 3rd party dependencies in local framework without adding them to the Host app? I want to encapsulate dependencies in local framework.