At the moment, the autogeneration step cannot be directly integrated. You have to trigger the generation manually before executing swift build
. That means that if you expect client packages to depend on yours, you will have to check the generated files into your tagged releases, so that the sources are available for clients to check out directly.
The feature you ask will most likely be implemented eventually, it just has not happened yet. See here for the design discussion.