SwiftGenPlugin icon indicating copy to clipboard operation
SwiftGenPlugin copied to clipboard

Doesn't run as Context Menu Command in Xcode

Open Oleg-E-Bakharev opened this issue 3 years ago • 2 comments

I use SwifGenPlugin 6.6.2 with Xcode 14.0.1

image

Build log: `working directory: /Users/oleg/WB/sup0/WBPortal/Common tool mapping: swiftgen: /Users/oleg/DerivedData/WBPortal-drydlhcptbdwvfdkjlqizuorsswk/SourcePackages/artifacts/swiftgenplugin/swiftgen.artifactbundle/swiftgen/bin/swiftgen tool paths: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin /Applications/Xcode.app/Contents/Developer/usr/bin /bin /sbin /usr/bin /usr/sbin

Error: Unknown option '--target' Usage: swiftgen config run [--config ] [--quiet] [--normal] [--verbose] See 'swiftgen config run --help' for more information. swiftgen invocation failed: NSTaskTerminationReason(rawValue: 1):64`

Oleg-E-Bakharev avatar Oct 29 '22 16:10 Oleg-E-Bakharev

I have many local packages in my project. Adding SwiftGenPlugin as build plugin increase incremental compilation time by one second (average) per package Instead of build plugin I want use swiftgen as plugin command for manually generating resource code after resources change Now I can't do it.

Oleg-E-Bakharev avatar Oct 29 '22 16:10 Oleg-E-Bakharev

Same issue in Xcode 14.1. Can't run from command line also swift package --allow-writing-to-package-directory generate-code-for-resources. It's needed to allow writing permission on CI

arkichek avatar Nov 11 '22 09:11 arkichek