SwiftGen / SwiftGenPlugin

SwiftGen plugin for SPM
MIT License
95 stars 63 forks source link

Doesn't run as Context Menu Command in Xcode #8

Open Oleg-E-Bakharev opened 2 years ago

Oleg-E-Bakharev commented 2 years ago

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 commented 2 years ago

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.

arkichek commented 2 years ago

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