The Swift Package Manager doesn’t currently provide a way for a package manifest to declare that a target provides the main module for an executable. Instead, SwiftPM infers this by looking for a compilable source file with a base name of main at the top level of the target directory.