Swift package dependency add external dependencies for frameworks

Hello, I have my own library which is publised under cocoapods. i decide to publish it via Swift Package Manager (spm).

In fact, my library depends on another external frameoworks. how can I manage that ?

for example in the podspec :

spec.subspec 'Google-Mobile-Ads-SDK' do |dfp|     dfp.vendored_frameworks = 'BlueStackDFPAdapter.xcframework'     dfp.dependency 'BlueStack-SDK/Core'     dfp.dependency 'Google-Mobile-Ads-SDK','9.13.0'

  end

how can we move it to the spm? thank you.

Hello, To explain the problem much better, I want my framework supports SPM. So , my framework depends on another framework. how can we deal with that ? thank you

Library not loaded: @rpath/FBLPromises framework FBLPromises referenced by framework added as target in swift package manager

Swift package dependency add external dependencies for frameworks
 
 
Q