-
Notifications
You must be signed in to change notification settings - Fork 67
Open
Description
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
MaartenZonneveld, wongzigii, samueleperricone and FranckLetellier
Metadata
Metadata
Assignees
Labels
No labels