Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Oleg-E-Bakharev opened this issue Oct 29, 2022 · 2 comments · May be fixed by #9
Open

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

Oleg-E-Bakharev opened this issue Oct 29, 2022 · 2 comments · May be fixed by #9

Comments

@Oleg-E-Bakharev
Copy link

Oleg-E-Bakharev commented Oct 29, 2022

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
Copy link
Author

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 Oleg-E-Bakharev changed the title Doesn't run as Context Menu Command Doesn't run as Context Menu Command in Xcode 14.0.1 (14A400) Oct 29, 2022
@Oleg-E-Bakharev Oleg-E-Bakharev changed the title Doesn't run as Context Menu Command in Xcode 14.0.1 (14A400) Release 6.6.2 doesn't run as Context Menu Command in Xcode 14.0.1 (14A400) Oct 29, 2022
@Oleg-E-Bakharev Oleg-E-Bakharev changed the title Release 6.6.2 doesn't run as Context Menu Command in Xcode 14.0.1 (14A400) Doesn't run as Context Menu Command in Xcode Oct 29, 2022
@arkichek
Copy link

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 arkichek linked a pull request Nov 12, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants