Steps to reproduce:
mkdir SomeToolName cd SomeToolName swift package init --type executable
- Open the
SomeToolName/Package.swiftfile with Xcode
products: [ .executable( name: "stn", targets: ["SomeToolName"] ), ],
- Try to build the project
- The line
@testable import SomeToolNamefails to build with the error
/Users/revolt/SomeToolName/Tests/SomeToolNameTests/SomeToolNameTests.swift:2:18 No such module 'SomeToolName'
- The project should build.
- I noticed that
stngets autocompleted on that line, but in that case, it fails to build with the error
Undefined symbol: _$s3stn12SomeToolNameVACycfC
Am I doing something wrong, or is this (executable name customization and testing) not supported (yet)?