Build Information
Failed to build coreml-stable-diffusion-swift, reference 1.0.0 (d00632
), with Swift 6.2 (beta) for Wasm on 22 Jun 2025 14:11:25 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/swiftuiux/coreml-stable-diffusion-swift.git
Reference: 1.0.0
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/swiftuiux/coreml-stable-diffusion-swift
* tag 1.0.0 -> FETCH_HEAD
HEAD is now at d00632b Update HelperImage.swift
Cloned https://github.com/swiftuiux/coreml-stable-diffusion-swift.git
Revision (git rev-parse @):
d00632ba63f7efcf9f0a124715debe09487e5a3b
SUCCESS checkout https://github.com/swiftuiux/coreml-stable-diffusion-swift.git at 1.0.0
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.2
Building package at path: $PWD
https://github.com/swiftuiux/coreml-stable-diffusion-swift.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:44384f43f933eaa0f42803e9ef7c3d8388c5841ccc831a15a5edf63d8c273423
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest
warning: 'spi-builder-workspace': /host/spi-builder-workspace/Package.swift:20:10: warning: 'package(url:_:)' is deprecated: use specific requirement APIs instead (e.g. use 'branch:' instead of '.branch') [#DeprecatedDeclaration]
18 | dependencies: [
19 | // Dependencies declare other packages that this package depends on.
20 | .package(url: "https://github.com/apple/ml-stable-diffusion.git", .exactItem("1.1.1")),
| `- warning: 'package(url:_:)' is deprecated: use specific requirement APIs instead (e.g. use 'branch:' instead of '.branch') [#DeprecatedDeclaration]
21 | .package(url: "https://github.com/JohnSundell/Files.git",
22 | from: "4.2.0")
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
Fetching https://github.com/JohnSundell/Files.git
Fetching https://github.com/apple/ml-stable-diffusion.git
[1/1248] Fetching files
[1237/3385] Fetching files, ml-stable-diffusion
Fetched https://github.com/JohnSundell/Files.git from cache (0.32s)
[278/2137] Fetching ml-stable-diffusion
Fetched https://github.com/apple/ml-stable-diffusion.git from cache (1.05s)
Computing version for https://github.com/apple/ml-stable-diffusion.git
Computed https://github.com/apple/ml-stable-diffusion.git at 1.1.1 (1.53s)
Fetching https://github.com/apple/swift-argument-parser.git
[1/15380] Fetching swift-argument-parser
Fetched https://github.com/apple/swift-argument-parser.git from cache (0.98s)
Computing version for https://github.com/JohnSundell/Files.git
Computed https://github.com/JohnSundell/Files.git at 4.3.0 (1.53s)
Computing version for https://github.com/apple/swift-argument-parser.git
Computed https://github.com/apple/swift-argument-parser.git at 1.5.1 (0.49s)
Creating working copy for https://github.com/apple/swift-argument-parser.git
Working copy of https://github.com/apple/swift-argument-parser.git resolved at 1.5.1
Creating working copy for https://github.com/apple/ml-stable-diffusion.git
Working copy of https://github.com/apple/ml-stable-diffusion.git resolved at 1.1.1
Creating working copy for https://github.com/JohnSundell/Files.git
Working copy of https://github.com/JohnSundell/Files.git resolved at 4.3.0
[1/1] Compiling plugin GenerateManual
Building for debugging...
[1/5] Write sources
[4/5] Write swift-version-24593BA9C3E375BF.txt
[6/30] Compiling StableDiffusion TextEncoder.swift
/host/spi-builder-workspace/.build/checkouts/ml-stable-diffusion/swift/StableDiffusion/pipeline/CGImage+vImage.swift:4:8: error: no such module 'Foundation'
2 | // Copyright (C) 2022 Apple Inc. All Rights Reserved.
3 |
4 | import Foundation
| `- error: no such module 'Foundation'
5 | import Accelerate
6 | import CoreML
[7/30] Compiling StableDiffusion TextEncoderXL.swift
/host/spi-builder-workspace/.build/checkouts/ml-stable-diffusion/swift/StableDiffusion/pipeline/CGImage+vImage.swift:4:8: error: no such module 'Foundation'
2 | // Copyright (C) 2022 Apple Inc. All Rights Reserved.
3 |
4 | import Foundation
| `- error: no such module 'Foundation'
5 | import Accelerate
6 | import CoreML
[8/30] Compiling StableDiffusion TorchRandomSource.swift
/host/spi-builder-workspace/.build/checkouts/ml-stable-diffusion/swift/StableDiffusion/pipeline/CGImage+vImage.swift:4:8: error: no such module 'Foundation'
2 | // Copyright (C) 2022 Apple Inc. All Rights Reserved.
3 |
4 | import Foundation
| `- error: no such module 'Foundation'
5 | import Accelerate
6 | import CoreML
[9/30] Compiling StableDiffusion StableDiffusionPipeline.swift
/host/spi-builder-workspace/.build/checkouts/ml-stable-diffusion/swift/StableDiffusion/pipeline/CGImage+vImage.swift:4:8: error: no such module 'Foundation'
2 | // Copyright (C) 2022 Apple Inc. All Rights Reserved.
3 |
4 | import Foundation
| `- error: no such module 'Foundation'
5 | import Accelerate
6 | import CoreML
[10/30] Compiling StableDiffusion StableDiffusionXL+Resources.swift
/host/spi-builder-workspace/.build/checkouts/ml-stable-diffusion/swift/StableDiffusion/pipeline/CGImage+vImage.swift:4:8: error: no such module 'Foundation'
2 | // Copyright (C) 2022 Apple Inc. All Rights Reserved.
3 |
4 | import Foundation
| `- error: no such module 'Foundation'
5 | import Accelerate
6 | import CoreML
[11/30] Compiling StableDiffusion StableDiffusionXLPipeline.swift
/host/spi-builder-workspace/.build/checkouts/ml-stable-diffusion/swift/StableDiffusion/pipeline/CGImage+vImage.swift:4:8: error: no such module 'Foundation'
2 | // Copyright (C) 2022 Apple Inc. All Rights Reserved.
3 |
4 | import Foundation
| `- error: no such module 'Foundation'
5 | import Accelerate
6 | import CoreML
error: emit-module command failed with exit code 1 (use -v to see invocation)
[12/33] Emitting module Files
/host/spi-builder-workspace/.build/checkouts/Files/Sources/Files.swift:25:8: error: no such module 'Foundation'
23 | */
24 |
25 | import Foundation
| `- error: no such module 'Foundation'
26 |
27 | // MARK: - Locations
[13/33] Compiling Files Files.swift
/host/spi-builder-workspace/.build/checkouts/Files/Sources/Files.swift:25:8: error: no such module 'Foundation'
23 | */
24 |
25 | import Foundation
| `- error: no such module 'Foundation'
26 |
27 | // MARK: - Locations
[14/33] Compiling StableDiffusion ResourceManaging.swift
/host/spi-builder-workspace/.build/checkouts/ml-stable-diffusion/swift/StableDiffusion/pipeline/CGImage+vImage.swift:4:8: error: no such module 'Foundation'
2 | // Copyright (C) 2022 Apple Inc. All Rights Reserved.
3 |
4 | import Foundation
| `- error: no such module 'Foundation'
5 | import Accelerate
6 | import CoreML
[15/33] Compiling StableDiffusion SafetyChecker.swift
/host/spi-builder-workspace/.build/checkouts/ml-stable-diffusion/swift/StableDiffusion/pipeline/CGImage+vImage.swift:4:8: error: no such module 'Foundation'
2 | // Copyright (C) 2022 Apple Inc. All Rights Reserved.
3 |
4 | import Foundation
| `- error: no such module 'Foundation'
5 | import Accelerate
6 | import CoreML
[16/33] Compiling StableDiffusion SampleTimer.swift
/host/spi-builder-workspace/.build/checkouts/ml-stable-diffusion/swift/StableDiffusion/pipeline/CGImage+vImage.swift:4:8: error: no such module 'Foundation'
2 | // Copyright (C) 2022 Apple Inc. All Rights Reserved.
3 |
4 | import Foundation
| `- error: no such module 'Foundation'
5 | import Accelerate
6 | import CoreML
[17/33] Compiling StableDiffusion Scheduler.swift
/host/spi-builder-workspace/.build/checkouts/ml-stable-diffusion/swift/StableDiffusion/pipeline/CGImage+vImage.swift:4:8: error: no such module 'Foundation'
2 | // Copyright (C) 2022 Apple Inc. All Rights Reserved.
3 |
4 | import Foundation
| `- error: no such module 'Foundation'
5 | import Accelerate
6 | import CoreML
[18/33] Compiling StableDiffusion StableDiffusionPipeline+Resources.swift
/host/spi-builder-workspace/.build/checkouts/ml-stable-diffusion/swift/StableDiffusion/pipeline/CGImage+vImage.swift:4:8: error: no such module 'Foundation'
2 | // Copyright (C) 2022 Apple Inc. All Rights Reserved.
3 |
4 | import Foundation
| `- error: no such module 'Foundation'
5 | import Accelerate
6 | import CoreML
[19/33] Compiling StableDiffusion StableDiffusionPipeline.Configuration.swift
/host/spi-builder-workspace/.build/checkouts/ml-stable-diffusion/swift/StableDiffusion/pipeline/CGImage+vImage.swift:4:8: error: no such module 'Foundation'
2 | // Copyright (C) 2022 Apple Inc. All Rights Reserved.
3 |
4 | import Foundation
| `- error: no such module 'Foundation'
5 | import Accelerate
6 | import CoreML
error: emit-module command failed with exit code 1 (use -v to see invocation)
[20/33] Emitting module StableDiffusion
/host/spi-builder-workspace/.build/checkouts/ml-stable-diffusion/swift/StableDiffusion/pipeline/CGImage+vImage.swift:4:8: error: no such module 'Foundation'
2 | // Copyright (C) 2022 Apple Inc. All Rights Reserved.
3 |
4 | import Foundation
| `- error: no such module 'Foundation'
5 | import Accelerate
6 | import CoreML
BUILD FAILURE 6.2 wasm