SwiftGenPlugin icon indicating copy to clipboard operation
SwiftGenPlugin copied to clipboard

XCode 26 Beta 1 fails to run SwiftGenPlugin. "Unsupported configuration"

Open potmo opened this issue 7 months ago • 4 comments

I just installed XCode 26 Beta 1 and after installing I get this error error: unsupported configuration: the aggregate target 'SwiftGenPlugin' has package dependencies, but targets that build for different platforms depend on it I have a xcode project that depends on a bunch of local swift packages that all depend on SwiftGenPlugin (in particluar .package(url: "https://github.com/SwiftGen/SwiftGenPlugin", from: "6.6.0"),). The project is targeted at MacOS, iOS and visionOS.

When running swiftgen with mint (in this case 6.6.3) I get the following error

🌱 Finding latest version of SwiftGen
🌱 Running swiftgen 6.6.3...
Executing configuration file swiftgen.yml
swiftgen: error: File ${DERIVED_SOURCES_DIR} not found.
swiftgen: error: It seems like there was an error running SwiftGen.

running mint run swiftgen config lint results in the output

Linting swiftgen.yml
> Common parent directory used for all input paths:  Sources/Klondike/Resources
> Common parent directory used for all output paths: ${DERIVED_SOURCES_DIR}
swiftgen: error: output_dir: Output directory ${DERIVED_SOURCES_DIR} does not exist.
> 1 entry for command xcassets:
swiftgen: error: xcassets.outputs.output: ${DERIVED_SOURCES_DIR} does not exist. Intermediate folders up to the output file must already exist to avoid misconfigurations, and won't be created for you.
 $ swiftgen xcassets --templatePath ../swiftgen-xcassets-template.stencil --param publicAccess --param enumName=XXX --output ${DERIVED_SOURCES_DIR}/Assets.swift Sources/XXX/Resources/Assets.xcassets

potmo avatar Jun 11 '25 18:06 potmo

Same

FranckLetellier avatar Jun 19 '25 13:06 FranckLetellier

companion issue in the swiftgen main repo: https://github.com/SwiftGen/SwiftGen/issues/1149

potmo avatar Jun 22 '25 16:06 potmo

This looks like a dup of https://github.com/swiftlang/swift-build/issues/614

dfed avatar Jun 30 '25 17:06 dfed

This looks like a dup of swiftlang/swift-build#614

and probably fixed then by https://github.com/swiftlang/swift-build/pull/615

potmo avatar Jul 01 '25 12:07 potmo