Hi all! I'd like to compile a Swift command-line tool, then use that tool in a Swift project targeting iOS. I'm using macOS and Xcode, so ideally everything should be driven from Xcode (e.g. a 'Run Script' phase).
SPM lets you declare an executable as a package output, but doesn't seem to distinguish between host executables and target executables.
Is the answer to use Mint to build/install host executables? One of the tools I'm interested in using (SwiftyMocky-CLI) uses Mint, but it invokes Mint recursively at runtime(!) which causes problems in our CI. I suspect that can be improved, but Mint itself doesn't distinguish between host and target executables either, so the solution isn't obvious.
Any advice appreciated!