In our software house, we want to create an XCFramework and distribute it using both Cocoapods and Swift Package Manager. Actually, we have two different projects: the first one uses Cocoapods for third party dependencies and the second one uses SPM for the same reason. The only difference between these projects are the dependencies of third party libraries: other than that, the code inside are exactly the same.
We want to understand if there's a way to create a unique project (that uses, for instance, Cocoapods), generate an XCFramework and distribute it using both Cocoapods and SPM without having issues and/or troubles derivated by the dependencies.