Skip to content

[Parity] Assertion failed: (kindHasOutputInfo() && "invalid call for value kind"), function getOutputInfo, file BuildValue.h, line 395 #9183

@kcieplak

Description

@kcieplak

Is it reproducible with SwiftPM command-line tools: swift build, swift test, swift package etc?

  • Confirmed reproduction steps with SwiftPM CLI. The description text must include reproduction steps with either of command-line SwiftPM commands, swift build, swift test, swift package etc.

Description

https://github.com/yonaskolb/XcodeGen.git
MacOS

The following package does not build using the 'swifbuild' backend but does with 'native'

swift build `--buildsystem=swiftbuild` fails to build package
Planning Swift module AEXML (arm64)
    cd /private/tmp
info: Planning Swift module AEXML (arm64)
    cd /private/tmp
    builtin-SwiftDriver -- /Users/kcieplak/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2025-09-07-a.xctoolchain/usr/bin/swiftc -module-name AEXML -Onone -enforce-exclusivity\=checked @/private/tmp/XcodeGen/.build/arm64-apple-macosx/Intermediates.noindex/AEXML.build/Debug/AEXML.build/Objects-normal/arm64/AEXML.SwiftFileList -DSWIFT_PACKAGE -DDEBUG -DSWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE -DXcode -I /Users/kcieplak/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2025-09-07-a.xctoolchain/usr/lib/swift/macosx/testing -L /Users/kcieplak/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2025-09-07-a.xctoolchain/usr/lib/swift/macosx/testing -plugin-path /Users/kcieplak/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2025-09-07-a.xctoolchain/usr/lib/swift/host/plugins/testing -sdk /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -F /Applications/Xcode2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks -F /Applications/Xcode2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/PrivateFrameworks -I /Applications/Xcode2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/lib -L /Applications/Xcode2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/lib -g -plugin-path /Applications/Xcode2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host/plugins/testing -enable-experimental-feature DebugDescriptionMacro -sdk /Applications/Xcode2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX16.0.sdk -target arm64-apple-macos15.0.0 -g -module-cache-path /private/tmp/XcodeGen/.build/arm64-apple-macosx/ModuleCache.noindex -Xfrontend -serialize-debugging-options -enable-testing -suppress-warnings -Xcc -D_LIBCPP_HARDENING_MODE\=_LIBCPP_HARDENING_MODE_DEBUG -swift-version 5 -I /private/tmp/XcodeGen/.build/arm64-apple-macosx/Products/Debug -Isystem /Applications/Xcode2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/lib -F /private/tmp/XcodeGen/.build/arm64-apple-macosx/Products/Debug -F /Applications/Xcode2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks -c -j14 -enable-batch-mode -incremental -output-file-map /private/tmp/XcodeGen/.build/arm64-apple-macosx/Intermediates.noindex/AEXML.build/Debug/AEXML.build/Objects-normal/arm64/AEXML-OutputFileMap.json -use-frontend-parseable-output -save-temps -no-color-diagnostics -explicit-module-build -module-cache-path /private/tmp/XcodeGen/.build/arm64-apple-macosx/Intermediates.noindex/SwiftExplicitPrecompiledModules -clang-scanner-module-cache-path /private/tmp/XcodeGen/.build/arm64-apple-macosx/ModuleCache.noindex -sdk-module-cache-path /private/tmp/XcodeGen/.build/arm64-apple-macosx/ModuleCache.noindex -serialize-diagnostics -emit-dependencies -emit-module -emit-module-path /private/tmp/XcodeGen/.build/arm64-apple-macosx/Intermediates.noindex/AEXML.build/Debug/AEXML.build/Objects-normal/arm64/AEXML.swiftmodule -validate-clang-modules-once -clang-build-session-file /private/tmp/XcodeGen/.build/arm64-apple-macosx/ModuleCache.noindex/Session.modulevalidation -package-name aexml -Xcc -I/private/tmp/XcodeGen/.build/arm64-apple-macosx/Intermediates.noindex/AEXML.build/Debug/AEXML.build/swift-overrides.hmap -emit-const-values -Xfrontend -const-gather-protocols-file -Xfrontend /private/tmp/XcodeGen/.build/arm64-apple-macosx/Intermediates.noindex/AEXML.build/Debug/AEXML.build/Objects-normal/arm64/AEXML_const_extract_protocols.json -Xcc -I/private/tmp/XcodeGen/.build/arm64-apple-macosx/Products/Debug/include -Xcc -I/private/tmp/XcodeGen/.build/arm64-apple-macosx/Intermediates.noindex/AEXML.build/Debug/AEXML.build/DerivedSources-normal/arm64 -Xcc -I/private/tmp/XcodeGen/.build/arm64-apple-macosx/Intermediates.noindex/AEXML.build/Debug/AEXML.build/DerivedSources/arm64 -Xcc -I/private/tmp/XcodeGen/.build/arm64-apple-macosx/Intermediates.noindex/AEXML.build/Debug/AEXML.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -emit-objc-header -emit-objc-header-path /private/tmp/XcodeGen/.build/arm64-apple-macosx/Intermediates.noindex/AEXML.build/Debug/AEXML.build/Objects-normal/arm64/AEXML-Swift.h -working-directory /private/tmp -experimental-emit-module-separately -disable-cmo
Assertion failed: (kindHasOutputInfo() && "invalid call for value kind"), function getOutputInfo, file BuildValue.h, line 395.

Expected behavior

Builds

Actual behavior

Fails to build

Steps to reproduce

git clone https://github.com/yonaskolb/XcodeGen.git
swift build --build-system=swiftbuild

Swift Package Manager version/commit hash

No response

Swift & OS version (output of swift --version ; uname -a)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions