-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Open
Labels
Description
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 packageetc.
Description
Running swift build --swift-sdk swift-6.2-RELEASE_wasm --build-system swiftbuild fails.
Building for debugging...
[0/100] Constructing description
[0/100] Planning 66 / 151
[0/100] Planning deferred tasks
error: unable to resolve run destination SDK: 'webassembly'
error: unable to resolve product type 'org.swift.product-type.common.object'
error: unable to resolve run destination SDK: 'webassembly'
error: unable to find sdk 'webassembly'
error: Couldn't look up product type 'org.swift.product-type.common.object' in domain '': Couldn't load spec with identifier 'org.swift.product-type.common.object'
warning: There are no architectures to compile for because the VALID_ARCHS build setting is an empty list.
error: unable to resolve run destination SDK: 'webassembly'
error: unable to resolve run destination SDK: 'webassembly'
error: unable to find sdk 'webassembly'
error: unable to resolve product type 'org.swift.product-type.common.object'
error: unable to resolve run destination SDK: 'webassembly'
error: unable to find sdk 'webassembly'
error: Couldn't look up product type 'org.swift.product-type.common.object' in domain '': Couldn't load spec with identifier 'org.swift.product-type.common.object'
warning: There are no architectures to compile for because the VALID_ARCHS build setting is an empty list.
error: unable to resolve run destination SDK: 'webassembly'
error: unable to resolve run destination SDK: 'webassembly'
error: unable to find sdk 'webassembly'
warning: There are no architectures to compile for because the VALID_ARCHS build setting is an empty list.
error: Build failed
SWBTaskExecution/BuildDescriptionManager.swift:121:init(fs:buildDescriptionMemoryCacheEvictionPolicy:maxCacheSize:) Evicted cached build description at '/Users/dschaefer2/tmp/genertest/.build/wasm32-unknown-wasip1/Intermediates.noindex/XCBuildData/7830a15ca8521dc7fca85f200e058d71.xcbuilddata'
Program ended with exit code: 1
I also see the same error with the Linux cross SDKs. But let's start with WASM.
Expected behavior
Package builds properly and produces a wasm executable.
Actual behavior
No response
Steps to reproduce
No response
Swift Package Manager version/commit hash
No response
Swift & OS version (output of swift --version ; uname -a)
No response
kateinoigakukun