I had a similar error in a different project, after upgrading MacOS (and Swift to Swift 5?). Solved it by deleting .build directory, and re-building the project.
Did you try the example project github.com/onderweg/swift-from-go ?
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.