Build Information
Successful build of coreml-stable-diffusion-swift, reference 1.0.0 (d00632
), with Swift 6.1 for macOS (SPM) on 30 Apr 2025 00:29:52 UTC.
Swift 6 data race errors: 0
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Build Log
========================================
RunAll
========================================
Builder version: 4.61.1
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 /Users/admin/builder/spi-builder-workspace/.git/
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: macosSpm
Swift version: 6.1
Building package at path: $PWD
https://github.com/swiftuiux/coreml-stable-diffusion-swift.git
https://github.com/swiftuiux/coreml-stable-diffusion-swift.git
{
"dependencies" : [
{
"identity" : "ml-stable-diffusion",
"requirement" : {
"exact" : [
"1.1.1"
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/ml-stable-diffusion.git"
},
{
"identity" : "files",
"requirement" : {
"range" : [
{
"lower_bound" : "4.2.0",
"upper_bound" : "5.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/JohnSundell/Files.git"
}
],
"manifest_display_name" : "coreml-stable-diffusion-swift",
"name" : "coreml-stable-diffusion-swift",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "13.0"
},
{
"name" : "ios",
"version" : "16.2"
}
],
"products" : [
{
"name" : "coreml-stable-diffusion-swift",
"targets" : [
"coreml-stable-diffusion-swift"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "coreml_stable_diffusion_swiftTests",
"module_type" : "SwiftTarget",
"name" : "coreml-stable-diffusion-swiftTests",
"path" : "Tests/coreml-stable-diffusion-swiftTests",
"sources" : [
"coreml_stable_diffusion_swiftTests.swift"
],
"target_dependencies" : [
"coreml-stable-diffusion-swift"
],
"type" : "test"
},
{
"c99name" : "coreml_stable_diffusion_swift",
"module_type" : "SwiftTarget",
"name" : "coreml-stable-diffusion-swift",
"path" : "Sources/coreml-stable-diffusion-swift",
"product_dependencies" : [
"StableDiffusion",
"Files"
],
"product_memberships" : [
"coreml-stable-diffusion-swift"
],
"sources" : [
"enum/Errors.swift",
"enum/ProgressState.swift",
"ext/NSImage+.swift",
"ext/URL+.swift",
"helper/HelperFile.swift",
"helper/HelperImage.swift",
"helper/HelperPipeline.swift",
"manager/GenerativeManager.swift",
"model/GenerativeModel.swift",
"model/Scheduler.swift",
"protocol/IGenerativeManager.swift"
],
"type" : "library"
}
],
"tools_version" : "5.7"
}
warning: 'spi-builder-workspace': /Users/admin/builder/spi-builder-workspace/Package.swift:20:10: warning: 'package(url:_:)' is deprecated: use specific requirement APIs instead (e.g. use 'branch:' instead of '.branch')
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')
21 | .package(url: "https://github.com/JohnSundell/Files.git",
22 | from: "4.2.0")
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
[1/1] Compiling plugin GenerateManual
Building for debugging...
[1/5] Write sources
[4/5] Write swift-version-2F0A5646E1D333AE.txt
[6/31] Emitting module StableDiffusion
[7/33] Compiling StableDiffusion BPETokenizer+Reading.swift
[8/33] Compiling StableDiffusion BPETokenizer.swift
[9/33] Compiling StableDiffusion TorchRandomSource.swift
[10/33] Compiling StableDiffusion Unet.swift
[11/33] Compiling StableDiffusion TextEncoder.swift
[12/33] Compiling StableDiffusion TextEncoderXL.swift
[13/33] Compiling StableDiffusion RandomSource.swift
[14/33] Compiling StableDiffusion ResourceManaging.swift
[15/33] Compiling StableDiffusion SafetyChecker.swift
[16/33] Compiling StableDiffusion Decoder.swift
[17/33] Compiling StableDiffusion Encoder.swift
[18/33] Compiling StableDiffusion ManagedMLModel.swift
[19/33] Compiling StableDiffusion StableDiffusionPipeline.Configuration.swift
[20/33] Compiling StableDiffusion StableDiffusionPipeline.swift
[21/33] Compiling StableDiffusion MultilingualTextEncoder.swift
[22/33] Compiling StableDiffusion NumPyRandomSource.swift
[23/33] Compiling StableDiffusion NvRandomSource.swift
[24/33] Compiling StableDiffusion SampleTimer.swift
[25/33] Compiling StableDiffusion Scheduler.swift
[26/33] Compiling StableDiffusion StableDiffusionPipeline+Resources.swift
[27/33] Compiling StableDiffusion StableDiffusionXL+Resources.swift
[28/33] Compiling StableDiffusion StableDiffusionXLPipeline.swift
[29/33] Compiling StableDiffusion CGImage+vImage.swift
[30/33] Compiling StableDiffusion ControlNet.swift
[31/33] Compiling StableDiffusion DPMSolverMultistepScheduler.swift
[32/33] Emitting module Files
[33/33] Compiling Files Files.swift
[34/44] Compiling coreml_stable_diffusion_swift GenerativeModel.swift
[35/45] Compiling coreml_stable_diffusion_swift Errors.swift
[36/45] Compiling coreml_stable_diffusion_swift ProgressState.swift
[37/45] Compiling coreml_stable_diffusion_swift IGenerativeManager.swift
[38/45] Compiling coreml_stable_diffusion_swift Scheduler.swift
[39/45] Compiling coreml_stable_diffusion_swift GenerativeManager.swift
/Users/admin/builder/spi-builder-workspace/Sources/coreml-stable-diffusion-swift/manager/GenerativeManager.swift:27:17: warning: non-sendable type '[GenerativeModel]' cannot be returned from actor-isolated implementation to caller of protocol requirement 'loadModels()'; this is an error in the Swift 6 language mode
25 | /// Load list of models
26 | /// - Returns: List of models
27 | public func loadModels() async -> [GenerativeModel] {
| `- warning: non-sendable type '[GenerativeModel]' cannot be returned from actor-isolated implementation to caller of protocol requirement 'loadModels()'; this is an error in the Swift 6 language mode
28 | await listOfModels()
29 | }
/Users/admin/builder/spi-builder-workspace/Sources/coreml-stable-diffusion-swift/model/GenerativeModel.swift:12:15: note: consider making struct 'GenerativeModel' conform to the 'Sendable' protocol
10 | /// Model profile description
11 | @available(iOS 16.2, macOS 13.1, *)
12 | public struct GenerativeModel: Hashable, Identifiable{
| `- note: consider making struct 'GenerativeModel' conform to the 'Sendable' protocol
13 |
14 | // MARK: - Life circle
/Users/admin/builder/spi-builder-workspace/Sources/coreml-stable-diffusion-swift/manager/GenerativeManager.swift:37:17: warning: non-sendable parameter type 'StableDiffusionPipeline.Configuration' (aka 'PipelineConfiguration') cannot be sent from caller of protocol requirement 'generate(with:by:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
35 | /// - Returns: An array of `imageCount` optional images.
36 | /// The images will be nil if safety checks were performed and found the result to be un-safe
37 | public func generate(
| `- warning: non-sendable parameter type 'StableDiffusionPipeline.Configuration' (aka 'PipelineConfiguration') cannot be sent from caller of protocol requirement 'generate(with:by:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
38 | with config: StableDiffusionPipeline.Configuration,
39 | by pipeline: StableDiffusionPipeline
/Users/admin/builder/spi-builder-workspace/.build/checkouts/ml-stable-diffusion/swift/StableDiffusion/pipeline/StableDiffusionPipeline.Configuration.swift:15:15: note: struct 'PipelineConfiguration' does not conform to the 'Sendable' protocol
13 |
14 | /// Image generation configuration
15 | public struct PipelineConfiguration: Hashable {
| `- note: struct 'PipelineConfiguration' does not conform to the 'Sendable' protocol
16 |
17 | /// Text prompt to guide sampling
/Users/admin/builder/spi-builder-workspace/Sources/coreml-stable-diffusion-swift/protocol/IGenerativeManager.swift:9:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'StableDiffusion'
7 |
8 | import Foundation
9 | import StableDiffusion
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'StableDiffusion'
10 | import CoreML
11 |
/Users/admin/builder/spi-builder-workspace/Sources/coreml-stable-diffusion-swift/manager/GenerativeManager.swift:37:17: warning: non-sendable parameter type 'StableDiffusionPipeline' cannot be sent from caller of protocol requirement 'generate(with:by:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
35 | /// - Returns: An array of `imageCount` optional images.
36 | /// The images will be nil if safety checks were performed and found the result to be un-safe
37 | public func generate(
| `- warning: non-sendable parameter type 'StableDiffusionPipeline' cannot be sent from caller of protocol requirement 'generate(with:by:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
38 | with config: StableDiffusionPipeline.Configuration,
39 | by pipeline: StableDiffusionPipeline
/Users/admin/builder/spi-builder-workspace/.build/checkouts/ml-stable-diffusion/swift/StableDiffusion/pipeline/StableDiffusionPipeline.swift:60:15: note: struct 'StableDiffusionPipeline' does not conform to the 'Sendable' protocol
58 | /// [Hugging Face Diffusers Pipeline](https://github.com/huggingface/diffusers/blob/main/src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py)
59 | @available(iOS 16.2, macOS 13.1, *)
60 | public struct StableDiffusionPipeline: StableDiffusionPipelineProtocol {
| `- note: struct 'StableDiffusionPipeline' does not conform to the 'Sendable' protocol
61 |
62 | /// Model to generate embeddings for tokenized input text
/Users/admin/builder/spi-builder-workspace/Sources/coreml-stable-diffusion-swift/manager/GenerativeManager.swift:28:16: warning: non-sendable result type '[GenerativeModel]' cannot be sent from nonisolated context in call to global function 'listOfModels()'; this is an error in the Swift 6 language mode
26 | /// - Returns: List of models
27 | public func loadModels() async -> [GenerativeModel] {
28 | await listOfModels()
| `- warning: non-sendable result type '[GenerativeModel]' cannot be sent from nonisolated context in call to global function 'listOfModels()'; this is an error in the Swift 6 language mode
29 | }
30 |
/Users/admin/builder/spi-builder-workspace/Sources/coreml-stable-diffusion-swift/model/GenerativeModel.swift:12:15: note: consider making struct 'GenerativeModel' conform to the 'Sendable' protocol
10 | /// Model profile description
11 | @available(iOS 16.2, macOS 13.1, *)
12 | public struct GenerativeModel: Hashable, Identifiable{
| `- note: consider making struct 'GenerativeModel' conform to the 'Sendable' protocol
13 |
14 | // MARK: - Life circle
[40/45] Compiling coreml_stable_diffusion_swift NSImage+.swift
[41/45] Compiling coreml_stable_diffusion_swift HelperPipeline.swift
[42/45] Emitting module coreml_stable_diffusion_swift
/Users/admin/builder/spi-builder-workspace/Sources/coreml-stable-diffusion-swift/manager/GenerativeManager.swift:27:17: warning: non-sendable type '[GenerativeModel]' cannot be returned from actor-isolated implementation to caller of protocol requirement 'loadModels()'; this is an error in the Swift 6 language mode
25 | /// Load list of models
26 | /// - Returns: List of models
27 | public func loadModels() async -> [GenerativeModel] {
| `- warning: non-sendable type '[GenerativeModel]' cannot be returned from actor-isolated implementation to caller of protocol requirement 'loadModels()'; this is an error in the Swift 6 language mode
28 | await listOfModels()
29 | }
/Users/admin/builder/spi-builder-workspace/Sources/coreml-stable-diffusion-swift/model/GenerativeModel.swift:12:15: note: consider making struct 'GenerativeModel' conform to the 'Sendable' protocol
10 | /// Model profile description
11 | @available(iOS 16.2, macOS 13.1, *)
12 | public struct GenerativeModel: Hashable, Identifiable{
| `- note: consider making struct 'GenerativeModel' conform to the 'Sendable' protocol
13 |
14 | // MARK: - Life circle
/Users/admin/builder/spi-builder-workspace/Sources/coreml-stable-diffusion-swift/manager/GenerativeManager.swift:37:17: warning: non-sendable parameter type 'StableDiffusionPipeline.Configuration' (aka 'PipelineConfiguration') cannot be sent from caller of protocol requirement 'generate(with:by:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
35 | /// - Returns: An array of `imageCount` optional images.
36 | /// The images will be nil if safety checks were performed and found the result to be un-safe
37 | public func generate(
| `- warning: non-sendable parameter type 'StableDiffusionPipeline.Configuration' (aka 'PipelineConfiguration') cannot be sent from caller of protocol requirement 'generate(with:by:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
38 | with config: StableDiffusionPipeline.Configuration,
39 | by pipeline: StableDiffusionPipeline
/Users/admin/builder/spi-builder-workspace/.build/checkouts/ml-stable-diffusion/swift/StableDiffusion/pipeline/StableDiffusionPipeline.Configuration.swift:15:15: note: struct 'PipelineConfiguration' does not conform to the 'Sendable' protocol
13 |
14 | /// Image generation configuration
15 | public struct PipelineConfiguration: Hashable {
| `- note: struct 'PipelineConfiguration' does not conform to the 'Sendable' protocol
16 |
17 | /// Text prompt to guide sampling
/Users/admin/builder/spi-builder-workspace/Sources/coreml-stable-diffusion-swift/protocol/IGenerativeManager.swift:9:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'StableDiffusion'
7 |
8 | import Foundation
9 | import StableDiffusion
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'StableDiffusion'
10 | import CoreML
11 |
/Users/admin/builder/spi-builder-workspace/Sources/coreml-stable-diffusion-swift/manager/GenerativeManager.swift:37:17: warning: non-sendable parameter type 'StableDiffusionPipeline' cannot be sent from caller of protocol requirement 'generate(with:by:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
35 | /// - Returns: An array of `imageCount` optional images.
36 | /// The images will be nil if safety checks were performed and found the result to be un-safe
37 | public func generate(
| `- warning: non-sendable parameter type 'StableDiffusionPipeline' cannot be sent from caller of protocol requirement 'generate(with:by:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
38 | with config: StableDiffusionPipeline.Configuration,
39 | by pipeline: StableDiffusionPipeline
/Users/admin/builder/spi-builder-workspace/.build/checkouts/ml-stable-diffusion/swift/StableDiffusion/pipeline/StableDiffusionPipeline.swift:60:15: note: struct 'StableDiffusionPipeline' does not conform to the 'Sendable' protocol
58 | /// [Hugging Face Diffusers Pipeline](https://github.com/huggingface/diffusers/blob/main/src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py)
59 | @available(iOS 16.2, macOS 13.1, *)
60 | public struct StableDiffusionPipeline: StableDiffusionPipelineProtocol {
| `- note: struct 'StableDiffusionPipeline' does not conform to the 'Sendable' protocol
61 |
62 | /// Model to generate embeddings for tokenized input text
[43/45] Compiling coreml_stable_diffusion_swift HelperFile.swift
[44/45] Compiling coreml_stable_diffusion_swift URL+.swift
[45/45] Compiling coreml_stable_diffusion_swift HelperImage.swift
Build complete! (21.53s)
warning: 'spi-builder-workspace': /Users/admin/builder/spi-builder-workspace/Package.swift:20:10: warning: 'package(url:_:)' is deprecated: use specific requirement APIs instead (e.g. use 'branch:' instead of '.branch')
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')
21 | .package(url: "https://github.com/JohnSundell/Files.git",
22 | from: "4.2.0")
Fetching https://github.com/JohnSundell/Files.git
Fetching https://github.com/apple/ml-stable-diffusion.git
[1/1236] Fetching files
[236/3346] Fetching files, ml-stable-diffusion
Fetched https://github.com/apple/ml-stable-diffusion.git from cache (2.03s)
Fetched https://github.com/JohnSundell/Files.git from cache (2.03s)
Computing version for https://github.com/JohnSundell/Files.git
Computed https://github.com/JohnSundell/Files.git at 4.2.0 (2.64s)
Computing version for https://github.com/apple/ml-stable-diffusion.git
Computed https://github.com/apple/ml-stable-diffusion.git at 1.1.1 (0.49s)
Fetching https://github.com/apple/swift-argument-parser.git from cache
Fetched https://github.com/apple/swift-argument-parser.git from cache (0.67s)
Computing version for https://github.com/apple/swift-argument-parser.git
Computed https://github.com/apple/swift-argument-parser.git at 1.5.0 (1.17s)
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.0
Creating working copy for https://github.com/JohnSundell/Files.git
Working copy of https://github.com/JohnSundell/Files.git resolved at 4.2.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
Build complete.
{
"dependencies" : [
{
"identity" : "ml-stable-diffusion",
"requirement" : {
"exact" : [
"1.1.1"
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/ml-stable-diffusion.git"
},
{
"identity" : "files",
"requirement" : {
"range" : [
{
"lower_bound" : "4.2.0",
"upper_bound" : "5.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/JohnSundell/Files.git"
}
],
"manifest_display_name" : "coreml-stable-diffusion-swift",
"name" : "coreml-stable-diffusion-swift",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "13.0"
},
{
"name" : "ios",
"version" : "16.2"
}
],
"products" : [
{
"name" : "coreml-stable-diffusion-swift",
"targets" : [
"coreml-stable-diffusion-swift"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "coreml_stable_diffusion_swiftTests",
"module_type" : "SwiftTarget",
"name" : "coreml-stable-diffusion-swiftTests",
"path" : "Tests/coreml-stable-diffusion-swiftTests",
"sources" : [
"coreml_stable_diffusion_swiftTests.swift"
],
"target_dependencies" : [
"coreml-stable-diffusion-swift"
],
"type" : "test"
},
{
"c99name" : "coreml_stable_diffusion_swift",
"module_type" : "SwiftTarget",
"name" : "coreml-stable-diffusion-swift",
"path" : "Sources/coreml-stable-diffusion-swift",
"product_dependencies" : [
"StableDiffusion",
"Files"
],
"product_memberships" : [
"coreml-stable-diffusion-swift"
],
"sources" : [
"enum/Errors.swift",
"enum/ProgressState.swift",
"ext/NSImage+.swift",
"ext/URL+.swift",
"helper/HelperFile.swift",
"helper/HelperImage.swift",
"helper/HelperPipeline.swift",
"manager/GenerativeManager.swift",
"model/GenerativeModel.swift",
"model/Scheduler.swift",
"protocol/IGenerativeManager.swift"
],
"type" : "library"
}
],
"tools_version" : "5.7"
}
warning: 'spi-builder-workspace': /Users/admin/builder/spi-builder-workspace/Package.swift:20:10: warning: 'package(url:_:)' is deprecated: use specific requirement APIs instead (e.g. use 'branch:' instead of '.branch')
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')
21 | .package(url: "https://github.com/JohnSundell/Files.git",
22 | from: "4.2.0")
Done.