I’ve been using
https://github.com/luca992/multiplatform-swiftpackage for a project at work, but recently switched off of it, since it seems to build all XCFrameworks. Due to the way another project was set up, the library I’m working on had to be set up as a cocoapod as well. When I ran createSwiftPackage, it was building release/debug XCFrameworks for all targets, then doing this again for the pods, which meant building took way too long.