nicklockwood / SwiftFormat

A command-line tool and Xcode Extension for formatting Swift code
MIT License
7.77k stars 629 forks source link

Swift warning: BuildTools should be located under 'Sources/BuildTools' #1545

Open gsora opened 10 months ago

gsora commented 10 months ago

I added swiftformat as a linting target in my Xcode (version 15) project, as a Swift package.

While the target runs fine, I see the following error:

warning: 'buildtools': Source files for target BuildTools should be located under 'Sources/BuildTools', or a custom sources path can be set with the 'path' property in Package.swift

Is this a known issue?

Thanks!

nicklockwood commented 10 months ago

It's not a known issue. I'm not sure I fully understand the issue either, but I'm happy to accept a PR to correct it if you know what needs fixing.

stigi commented 3 months ago

In case somebody else get's annoyed by the warning, I was able to silence it by placing an empty Dummy.swift file next to Package.swift in BuildTools.