Get a .swiftinterface from a .swiftmodule?

Hello Swift community,

My app uses a third party binary framework compiled with Swift 5.1. The problem is that the developers didn't enable "Build Libraries for Distribution" flag on Xcode, so now it won't work with Swift 5.1.1 (Xcode 11.2).

Is there a way to convert the embedded *.swiftmodule files into *.swiftinterface? On any workaround to this problem?

Thanks

'Build Libraries for Distribution' affects how the module is built in the first place, so you unfortunately can't retroactively enable it for this module. You'll need to ask the vendor to distribute their framework as an xcframework and enable Build Libraries for Distribution.

2 Likes