I am trying to create a custom Swift xcframework "FrameworkA" for a client based on my own code, which has a dependency to another 3rd party framework "FrameworkB" (which I integrate through SPM). I'm having trouble figuring out the best way to do this.
In my case, I already have multiple targets in my project, and I have added another one for "FrameworkA", and added the relevant files to the framework target.
I can get my new framework to build if I add "FrameworkB" to "Framework and Libraries" section for my framework target, and adding it in code.
import FrameworkB
let frameworkKit = FrameworkKit()
Now, referencing Apple's documentation, I used xcodebuild archive
to create archive files for both "iOS" and "iOS Simulator".
However, when I read about 'umbrella frameworks', the answer listed here and Apple's documentation suggests that I shouldn't include a framework inside another framework.
So what are the concrete ways to accomplish this? I can't exclude the dependency because without it, my framework won't build at all.