How on earth can I create a .framework from a Swift package?

See How to build Swift Package as XCFramework - #53 by monocularvision