The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build coreml-stable-diffusion-swift, reference main (211c77), with Swift 6.2 (beta) for Wasm on 22 Jun 2025 14:10:38 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/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: main
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
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 211c779 Update LICENSE
Cloned https://github.com/swiftuiux/coreml-stable-diffusion-swift.git
Revision (git rev-parse @):
211c779ebbc9344e8c7f6f5537b99afb8983cbeb
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/swiftuiux/coreml-stable-diffusion-swift.git at main
========================================
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-3":/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
[1270/3385] Fetching files, ml-stable-diffusion
Fetched https://github.com/JohnSundell/Files.git from cache (1.27s)
Fetched https://github.com/apple/ml-stable-diffusion.git from cache (1.31s)
Computing version for https://github.com/apple/ml-stable-diffusion.git
Computed https://github.com/apple/ml-stable-diffusion.git at 1.1.1 (2.61s)
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 (1.10s)
Computing version for https://github.com/JohnSundell/Files.git
Computed https://github.com/JohnSundell/Files.git at 4.3.0 (2.02s)
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.93s)
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/JohnSundell/Files.git
Working copy of https://github.com/JohnSundell/Files.git resolved at 4.3.0
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
[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/33] Compiling StableDiffusion Encoder.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/33] Compiling StableDiffusion ManagedMLModel.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/33] Compiling StableDiffusion MultilingualTextEncoder.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
[12/33] 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
[13/33] 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
[14/33] 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)
[15/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
[16/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
error: emit-module command failed with exit code 1 (use -v to see invocation)
[17/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