danger/swift

Calling `danger-swift edit` with Xcode 14.0 command line tools fails

iwt-dahlborn opened this issue · 0 comments

I was trying to edit DangerFile.swift using the danger-swift edit command but I get the following error:

ERROR: commandFailed(command: "cd /Users/***/.danger-swift/Scripts/Cache/***-Dangerfile && /usr/bin/env xcrun --sdk macosx swift package generate-xcodeproj --xcconfig-overrides /var/folders/***/config.xcconfig", exitCode: 1, stdout: "", stderr: "warning: Xcode can open and build Swift Packages directly. \'generate-xcodeproj\' is no longer needed and will be deprecated soon.\nwarning: \'***-dangerfile\': \'Dangerfile\' was identified as an executable target given the presence of a \'main.swift\' file. Starting with tools version 5.4.0 executable targets should be declared as \'executableTarget()\'\nerror: \'***-dangerfile\': library product \'DangerDependencies\' should not contain executable targets (it has \'Dangerfile\')\n")

when I switch back to the Xcode 13.4.1 command line tools everything seems to be working correctly so this seems to be some kind of incompatibility with Xcode 14 or swift 5.7