nicklockwood / SwiftFormat

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

Universal build fails with `error: duplicate key found: '<ResolvedTarget: CommandLineTool>'` #1645

Open torarnv opened 3 months ago

torarnv commented 3 months ago

Adding .package(url: "https://github.com/nicklockwood/SwiftFormat", from: "0.53.4") as a dependency to my project results in swift build --arch x86_64 --arch arm64 failing:

❯ swift build --arch x86_64 --arch arm64
error: duplicate key found: '<ResolvedTarget: CommandLineTool>'