Contents

mainTarget

The target that contains the main entry point of the executable.

Declaration

let mainTarget: any Target

Discussion

Every executable product has exactly one main executable target. This target will always be one of the targets in the product’s targets array.

See Also

Inspecting an Executable Target