The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Successful build of stable-diffusion, reference main (e5d960), with Swift 6.1 for macOS (SPM) on 28 Apr 2025 18:30:24 UTC.

Swift 6 data race errors: 1

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.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/apple/ml-stable-diffusion.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/apple/ml-stable-diffusion
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at e5d960c Update README.md for converting-models-to-coreml reference
Cloned https://github.com/apple/ml-stable-diffusion.git
Revision (git rev-parse @):
e5d960c41a6a4ab200b8db379194127607b1c590
SUCCESS checkout https://github.com/apple/ml-stable-diffusion.git at main
Fetching https://github.com/huggingface/swift-transformers.git
Fetching https://github.com/apple/swift-argument-parser.git from cache
[1/3111] Fetching swift-transformers
Fetched https://github.com/apple/swift-argument-parser.git from cache (0.73s)
Fetched https://github.com/huggingface/swift-transformers.git from cache (1.18s)
Computing version for https://github.com/huggingface/swift-transformers.git
Computed https://github.com/huggingface/swift-transformers.git at 0.1.8 (1.72s)
Computing version for https://github.com/apple/swift-argument-parser.git
Computed https://github.com/apple/swift-argument-parser.git at 1.3.0 (0.48s)
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.3.0
Creating working copy for https://github.com/huggingface/swift-transformers.git
Working copy of https://github.com/huggingface/swift-transformers.git resolved at 0.1.8
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
  "identity": ".resolve-product-dependencies",
  "name": "resolve-dependencies",
  "url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "version": "unspecified",
  "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "dependencies": [
    {
      "identity": "ml-stable-diffusion",
      "name": "stable-diffusion",
      "url": "https://github.com/apple/ml-stable-diffusion.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/ml-stable-diffusion",
      "dependencies": [
        {
          "identity": "swift-argument-parser",
          "name": "swift-argument-parser",
          "url": "https://github.com/apple/swift-argument-parser.git",
          "version": "1.3.0",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-argument-parser",
          "dependencies": [
          ]
        },
        {
          "identity": "swift-transformers",
          "name": "swift-transformers",
          "url": "https://github.com/huggingface/swift-transformers.git",
          "version": "0.1.8",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-transformers",
          "dependencies": [
            {
              "identity": "swift-argument-parser",
              "name": "swift-argument-parser",
              "url": "https://github.com/apple/swift-argument-parser.git",
              "version": "1.3.0",
              "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-argument-parser",
              "dependencies": [
              ]
            }
          ]
        }
      ]
    }
  ]
}
Fetching https://github.com/apple/ml-stable-diffusion.git
[1/2110] Fetching ml-stable-diffusion
Fetched https://github.com/apple/ml-stable-diffusion.git from cache (1.63s)
Fetching https://github.com/huggingface/swift-transformers.git from cache
Fetching https://github.com/apple/swift-argument-parser.git from cache
Fetched https://github.com/huggingface/swift-transformers.git from cache (0.49s)
Fetched https://github.com/apple/swift-argument-parser.git from cache (0.50s)
Computing version for https://github.com/huggingface/swift-transformers.git
Computed https://github.com/huggingface/swift-transformers.git at 0.1.8 (0.56s)
Computing version for https://github.com/apple/swift-argument-parser.git
Computed https://github.com/apple/swift-argument-parser.git at 1.3.0 (0.05s)
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 main (e5d960c)
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.3.0
Creating working copy for https://github.com/huggingface/swift-transformers.git
Working copy of https://github.com/huggingface/swift-transformers.git resolved at 0.1.8
Found 2 product dependencies
  - swift-argument-parser
  - swift-transformers
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/apple/ml-stable-diffusion.git
https://github.com/apple/ml-stable-diffusion.git
{
  "dependencies" : [
    {
      "identity" : "swift-argument-parser",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.2.3",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-argument-parser.git"
    },
    {
      "identity" : "swift-transformers",
      "requirement" : {
        "exact" : [
          "0.1.8"
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/huggingface/swift-transformers.git"
    }
  ],
  "manifest_display_name" : "stable-diffusion",
  "name" : "stable-diffusion",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "13.0"
    },
    {
      "name" : "ios",
      "version" : "16.0"
    }
  ],
  "products" : [
    {
      "name" : "StableDiffusion",
      "targets" : [
        "StableDiffusion"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "StableDiffusionSample",
      "targets" : [
        "StableDiffusionCLI"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "StableDiffusionTests",
      "module_type" : "SwiftTarget",
      "name" : "StableDiffusionTests",
      "path" : "swift/StableDiffusionTests",
      "resources" : [
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/swift/StableDiffusionTests/Resources/merges.txt",
          "rule" : {
            "copy" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/swift/StableDiffusionTests/Resources/vocab.json",
          "rule" : {
            "copy" : {
            }
          }
        }
      ],
      "sources" : [
        "StableDiffusionTests.swift"
      ],
      "target_dependencies" : [
        "StableDiffusion"
      ],
      "type" : "test"
    },
    {
      "c99name" : "StableDiffusionCLI",
      "module_type" : "SwiftTarget",
      "name" : "StableDiffusionCLI",
      "path" : "swift/StableDiffusionCLI",
      "product_dependencies" : [
        "ArgumentParser"
      ],
      "product_memberships" : [
        "StableDiffusionSample"
      ],
      "sources" : [
        "main.swift"
      ],
      "target_dependencies" : [
        "StableDiffusion"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "StableDiffusion",
      "module_type" : "SwiftTarget",
      "name" : "StableDiffusion",
      "path" : "swift/StableDiffusion",
      "product_dependencies" : [
        "Transformers"
      ],
      "product_memberships" : [
        "StableDiffusion",
        "StableDiffusionSample"
      ],
      "sources" : [
        "pipeline/CGImage+vImage.swift",
        "pipeline/ControlNet.swift",
        "pipeline/DPMSolverMultistepScheduler.swift",
        "pipeline/Decoder.swift",
        "pipeline/DiscreteFlowScheduler.swift",
        "pipeline/Encoder.swift",
        "pipeline/ManagedMLModel.swift",
        "pipeline/MultiModalDiffusionTransformer.swift",
        "pipeline/MultilingualTextEncoder.swift",
        "pipeline/NumPyRandomSource.swift",
        "pipeline/NvRandomSource.swift",
        "pipeline/RandomSource.swift",
        "pipeline/ResourceManaging.swift",
        "pipeline/SafetyChecker.swift",
        "pipeline/SampleTimer.swift",
        "pipeline/Scheduler.swift",
        "pipeline/StableDiffusion3Pipeline+Resources.swift",
        "pipeline/StableDiffusion3Pipeline.swift",
        "pipeline/StableDiffusionPipeline+Resources.swift",
        "pipeline/StableDiffusionPipeline.Configuration.swift",
        "pipeline/StableDiffusionPipeline.swift",
        "pipeline/StableDiffusionXL+Resources.swift",
        "pipeline/StableDiffusionXLPipeline.swift",
        "pipeline/TextEncoder.swift",
        "pipeline/TextEncoderT5.swift",
        "pipeline/TextEncoderXL.swift",
        "pipeline/TorchRandomSource.swift",
        "pipeline/Unet.swift",
        "tokenizer/BPETokenizer+Reading.swift",
        "tokenizer/BPETokenizer.swift",
        "tokenizer/T5Tokenizer.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.8"
}
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/17] Write sources
[2/17] Write StableDiffusionSample-entitlement.plist
[2/17] Write sources
[8/17] Copying gpt2_tokenizer_config.json
[8/17] Copying t5_tokenizer_config.json
[10/17] Write sources
[13/17] Write swift-version-2F0A5646E1D333AE.txt
[15/34] Compiling ArgumentParserToolInfo ToolInfo.swift
[16/34] Emitting module ArgumentParserToolInfo
[17/72] Compiling ArgumentParser AsyncParsableCommand.swift
[18/72] Compiling ArgumentParser CommandConfiguration.swift
[19/72] Compiling ArgumentParser EnumerableFlag.swift
[20/72] Compiling ArgumentParser ExpressibleByArgument.swift
[21/76] Emitting module ArgumentParser
[22/76] Compiling ArgumentParser ArgumentHelp.swift
[23/76] Compiling ArgumentParser ArgumentVisibility.swift
[24/76] Compiling ArgumentParser CompletionKind.swift
[25/76] Compiling ArgumentParser Errors.swift
[26/76] Compiling ArgumentParser BashCompletionsGenerator.swift
[27/76] Compiling ArgumentParser CompletionsGenerator.swift
[28/76] Compiling ArgumentParser FishCompletionsGenerator.swift
[29/76] Compiling ArgumentParser ZshCompletionsGenerator.swift
[30/76] Compiling ArgumentParser Argument.swift
[31/76] Compiling ArgumentParser ParsableArguments.swift
[32/76] Compiling ArgumentParser ParsableArgumentsValidation.swift
[33/76] Compiling ArgumentParser ParsableCommand.swift
[34/76] Compiling ArgumentParser ArgumentDecoder.swift
[35/76] Compiling ArgumentParser InputOrigin.swift
[36/76] Compiling ArgumentParser Name.swift
[37/76] Compiling ArgumentParser Parsed.swift
[38/76] Compiling ArgumentParser ParsedValues.swift
[39/76] Compiling ArgumentParser ArgumentDefinition.swift
[40/76] Compiling ArgumentParser ArgumentSet.swift
[41/76] Compiling ArgumentParser CommandParser.swift
[42/76] Compiling ArgumentParser InputKey.swift
[43/76] Compiling ArgumentParser Platform.swift
[44/76] Compiling ArgumentParser SequenceExtensions.swift
[45/76] Compiling ArgumentParser StringExtensions.swift
[46/76] Compiling ArgumentParser Tree.swift
[47/76] Compiling Hub resource_bundle_accessor.swift
[48/76] Compiling Hub Hub.swift
[49/76] Compiling Hub Downloader.swift
[50/76] Emitting module Hub
[51/76] Compiling Hub HubApi.swift
[52/76] Compiling ArgumentParser Flag.swift
[53/76] Compiling ArgumentParser NameSpecification.swift
[54/76] Compiling ArgumentParser Option.swift
[55/76] Compiling ArgumentParser OptionGroup.swift
[56/76] Compiling ArgumentParser ParserError.swift
[57/76] Compiling ArgumentParser SplitArguments.swift
[58/76] Compiling ArgumentParser DumpHelpGenerator.swift
[59/76] Compiling ArgumentParser HelpCommand.swift
[60/76] Compiling ArgumentParser HelpGenerator.swift
[61/76] Compiling ArgumentParser MessageInfo.swift
[62/76] Compiling ArgumentParser UsageGenerator.swift
[63/76] Compiling ArgumentParser CollectionExtensions.swift
[64/88] Compiling Tokenizers UnigramTokenizer.swift
[65/88] Compiling Tokenizers Trie.swift
[66/89] Compiling Tokenizers TokenLattice.swift
[67/89] Compiling Tokenizers Tokenizer.swift
[68/89] Emitting module Tokenizers
[69/89] Compiling Tokenizers ByteEncoder.swift
[70/89] Compiling Tokenizers Decoder.swift
[71/89] Compiling Tokenizers PostProcessor.swift
[72/89] Compiling Tokenizers Normalizer.swift
[73/89] Compiling Tokenizers BPETokenizer.swift
[74/89] Compiling Tokenizers BertTokenizer.swift
[75/89] Compiling Tokenizers PreTokenizer.swift
[76/89] Compiling TensorUtils LogitsProcessor.swift
[77/89] Emitting module TensorUtils
[78/89] Compiling TensorUtils MLShapedArray+Utils.swift
[79/89] Compiling TensorUtils MLMultiArray+Utils.swift
[80/89] Compiling TensorUtils TopPLogitsWarper.swift
[81/89] Compiling TensorUtils TopKLogitsWarper.swift
[82/89] Compiling TensorUtils TemperatureLogitsWarper.swift
[83/89] Compiling TensorUtils RepetitionPenaltyWarper.swift
[84/89] Compiling TensorUtils LogitsWarper.swift
[85/89] Compiling TensorUtils Math.swift
[86/89] Compiling Tokenizers Utils.swift
[87/92] Compiling Generation GenerationConfig.swift
[88/92] Emitting module Generation
[89/92] Compiling Generation Generation.swift
[90/95] Compiling Models LanguageModelTypes.swift
[91/95] Compiling Models LanguageModel.swift
[92/95] Emitting module Models
[93/124] Emitting module StableDiffusion
/Users/admin/builder/spi-builder-workspace/swift/StableDiffusion/tokenizer/T5Tokenizer.swift:12:5: warning: 'public' modifier is redundant for initializer declared in a public extension
10 |     /// Assumes the file is already present at local url.
11 |     /// `fileURL` is a complete local file path for the given model
12 |     public init(fileURL: URL) throws  {
   |     `- warning: 'public' modifier is redundant for initializer declared in a public extension
13 |         let data = try Data(contentsOf: fileURL)
14 |         let parsed = try JSONSerialization.jsonObject(with: data, options: [])
[94/127] Compiling StableDiffusion DiscreteFlowScheduler.swift
[95/127] Compiling StableDiffusion Encoder.swift
[96/127] Compiling StableDiffusion ManagedMLModel.swift
[97/127] Compiling StableDiffusion SafetyChecker.swift
[98/127] Compiling StableDiffusion SampleTimer.swift
[99/127] Compiling StableDiffusion Scheduler.swift
[100/127] Compiling StableDiffusion CGImage+vImage.swift
[101/127] Compiling StableDiffusion ControlNet.swift
[102/127] Compiling StableDiffusion DPMSolverMultistepScheduler.swift
[103/127] Compiling StableDiffusion Decoder.swift
[104/127] Compiling StableDiffusion StableDiffusionXLPipeline.swift
[105/127] Compiling StableDiffusion TextEncoder.swift
[106/127] Compiling StableDiffusion TextEncoderT5.swift
[107/127] Compiling StableDiffusion BPETokenizer+Reading.swift
/Users/admin/builder/spi-builder-workspace/swift/StableDiffusion/tokenizer/T5Tokenizer.swift:12:5: warning: 'public' modifier is redundant for initializer declared in a public extension
10 |     /// Assumes the file is already present at local url.
11 |     /// `fileURL` is a complete local file path for the given model
12 |     public init(fileURL: URL) throws  {
   |     `- warning: 'public' modifier is redundant for initializer declared in a public extension
13 |         let data = try Data(contentsOf: fileURL)
14 |         let parsed = try JSONSerialization.jsonObject(with: data, options: [])
[108/127] Compiling StableDiffusion BPETokenizer.swift
/Users/admin/builder/spi-builder-workspace/swift/StableDiffusion/tokenizer/T5Tokenizer.swift:12:5: warning: 'public' modifier is redundant for initializer declared in a public extension
10 |     /// Assumes the file is already present at local url.
11 |     /// `fileURL` is a complete local file path for the given model
12 |     public init(fileURL: URL) throws  {
   |     `- warning: 'public' modifier is redundant for initializer declared in a public extension
13 |         let data = try Data(contentsOf: fileURL)
14 |         let parsed = try JSONSerialization.jsonObject(with: data, options: [])
[109/127] Compiling StableDiffusion T5Tokenizer.swift
/Users/admin/builder/spi-builder-workspace/swift/StableDiffusion/tokenizer/T5Tokenizer.swift:12:5: warning: 'public' modifier is redundant for initializer declared in a public extension
10 |     /// Assumes the file is already present at local url.
11 |     /// `fileURL` is a complete local file path for the given model
12 |     public init(fileURL: URL) throws  {
   |     `- warning: 'public' modifier is redundant for initializer declared in a public extension
13 |         let data = try Data(contentsOf: fileURL)
14 |         let parsed = try JSONSerialization.jsonObject(with: data, options: [])
[110/127] Compiling StableDiffusion StableDiffusion3Pipeline+Resources.swift
[111/127] Compiling StableDiffusion StableDiffusion3Pipeline.swift
[112/127] Compiling StableDiffusion StableDiffusionPipeline+Resources.swift
[113/127] Compiling StableDiffusion MultiModalDiffusionTransformer.swift
[114/127] Compiling StableDiffusion MultilingualTextEncoder.swift
[115/127] Compiling StableDiffusion NumPyRandomSource.swift
[116/127] Compiling StableDiffusion StableDiffusionPipeline.Configuration.swift
[117/127] Compiling StableDiffusion StableDiffusionPipeline.swift
[118/127] Compiling StableDiffusion StableDiffusionXL+Resources.swift
[119/127] Compiling StableDiffusion NvRandomSource.swift
[120/127] Compiling StableDiffusion RandomSource.swift
[121/127] Compiling StableDiffusion ResourceManaging.swift
[122/127] Compiling StableDiffusion TextEncoderXL.swift
[123/127] Compiling StableDiffusion TorchRandomSource.swift
[124/127] Compiling StableDiffusion Unet.swift
[125/129] Emitting module StableDiffusionCLI
/Users/admin/builder/spi-builder-workspace/swift/StableDiffusionCLI/main.swift:17:16: warning: static property 'configuration' is not concurrency-safe because non-'Sendable' type 'CommandConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
 15 | struct StableDiffusionSample: ParsableCommand {
 16 |
 17 |     static let configuration = CommandConfiguration(
    |                `- warning: static property 'configuration' is not concurrency-safe because non-'Sendable' type 'CommandConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
 18 |         abstract: "Run stable diffusion to generate images guided by a text prompt",
 19 |         version: "0.1"
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Types/CommandConfiguration.swift:13:15: note: struct 'CommandConfiguration' does not conform to the 'Sendable' protocol
 11 |
 12 | /// The configuration for a command.
 13 | public struct CommandConfiguration {
    |               `- note: struct 'CommandConfiguration' does not conform to the 'Sendable' protocol
 14 |   /// The name of the command to use on the command line.
 15 |   ///
/Users/admin/builder/spi-builder-workspace/swift/StableDiffusionCLI/main.swift:4:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ArgumentParser'
  2 | // Copyright (C) 2022 Apple Inc. All Rights Reserved.
  3 |
  4 | import ArgumentParser
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ArgumentParser'
  5 | import CoreGraphics
  6 | import CoreML
    :
 15 | struct StableDiffusionSample: ParsableCommand {
 16 |
 17 |     static let configuration = CommandConfiguration(
    |                |- note: add '@MainActor' to make static property 'configuration' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 18 |         abstract: "Run stable diffusion to generate images guided by a text prompt",
 19 |         version: "0.1"
/Users/admin/builder/spi-builder-workspace/swift/StableDiffusionCLI/main.swift:371:1: warning: extension declares a conformance of imported type 'Script' to imported protocol 'ExpressibleByArgument'; this will not behave correctly if the owners of 'StableDiffusion' introduce this conformance in the future
369 |
370 | @available(iOS 16.2, macOS 13.1, *)
371 | extension Script: ExpressibleByArgument {}
    | |- warning: extension declares a conformance of imported type 'Script' to imported protocol 'ExpressibleByArgument'; this will not behave correctly if the owners of 'StableDiffusion' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
372 |
373 | if #available(iOS 16.2, macOS 13.1, *) {
[126/129] Compiling StableDiffusionCLI main.swift
/Users/admin/builder/spi-builder-workspace/swift/StableDiffusionCLI/main.swift:17:16: warning: static property 'configuration' is not concurrency-safe because non-'Sendable' type 'CommandConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
 15 | struct StableDiffusionSample: ParsableCommand {
 16 |
 17 |     static let configuration = CommandConfiguration(
    |                `- warning: static property 'configuration' is not concurrency-safe because non-'Sendable' type 'CommandConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
 18 |         abstract: "Run stable diffusion to generate images guided by a text prompt",
 19 |         version: "0.1"
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Types/CommandConfiguration.swift:13:15: note: struct 'CommandConfiguration' does not conform to the 'Sendable' protocol
 11 |
 12 | /// The configuration for a command.
 13 | public struct CommandConfiguration {
    |               `- note: struct 'CommandConfiguration' does not conform to the 'Sendable' protocol
 14 |   /// The name of the command to use on the command line.
 15 |   ///
/Users/admin/builder/spi-builder-workspace/swift/StableDiffusionCLI/main.swift:4:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ArgumentParser'
  2 | // Copyright (C) 2022 Apple Inc. All Rights Reserved.
  3 |
  4 | import ArgumentParser
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ArgumentParser'
  5 | import CoreGraphics
  6 | import CoreML
    :
 15 | struct StableDiffusionSample: ParsableCommand {
 16 |
 17 |     static let configuration = CommandConfiguration(
    |                |- note: add '@MainActor' to make static property 'configuration' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 18 |         abstract: "Run stable diffusion to generate images guided by a text prompt",
 19 |         version: "0.1"
/Users/admin/builder/spi-builder-workspace/swift/StableDiffusionCLI/main.swift:371:1: warning: extension declares a conformance of imported type 'Script' to imported protocol 'ExpressibleByArgument'; this will not behave correctly if the owners of 'StableDiffusion' introduce this conformance in the future
369 |
370 | @available(iOS 16.2, macOS 13.1, *)
371 | extension Script: ExpressibleByArgument {}
    | |- warning: extension declares a conformance of imported type 'Script' to imported protocol 'ExpressibleByArgument'; this will not behave correctly if the owners of 'StableDiffusion' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
372 |
373 | if #available(iOS 16.2, macOS 13.1, *) {
[126/129] Write Objects.LinkFileList
[127/129] Linking StableDiffusionSample
[128/129] Applying StableDiffusionSample
Build complete! (15.02s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "swift-argument-parser",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.2.3",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-argument-parser.git"
    },
    {
      "identity" : "swift-transformers",
      "requirement" : {
        "exact" : [
          "0.1.8"
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/huggingface/swift-transformers.git"
    }
  ],
  "manifest_display_name" : "stable-diffusion",
  "name" : "stable-diffusion",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "13.0"
    },
    {
      "name" : "ios",
      "version" : "16.0"
    }
  ],
  "products" : [
    {
      "name" : "StableDiffusion",
      "targets" : [
        "StableDiffusion"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "StableDiffusionSample",
      "targets" : [
        "StableDiffusionCLI"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "StableDiffusionTests",
      "module_type" : "SwiftTarget",
      "name" : "StableDiffusionTests",
      "path" : "swift/StableDiffusionTests",
      "resources" : [
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/swift/StableDiffusionTests/Resources/merges.txt",
          "rule" : {
            "copy" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/swift/StableDiffusionTests/Resources/vocab.json",
          "rule" : {
            "copy" : {
            }
          }
        }
      ],
      "sources" : [
        "StableDiffusionTests.swift"
      ],
      "target_dependencies" : [
        "StableDiffusion"
      ],
      "type" : "test"
    },
    {
      "c99name" : "StableDiffusionCLI",
      "module_type" : "SwiftTarget",
      "name" : "StableDiffusionCLI",
      "path" : "swift/StableDiffusionCLI",
      "product_dependencies" : [
        "ArgumentParser"
      ],
      "product_memberships" : [
        "StableDiffusionSample"
      ],
      "sources" : [
        "main.swift"
      ],
      "target_dependencies" : [
        "StableDiffusion"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "StableDiffusion",
      "module_type" : "SwiftTarget",
      "name" : "StableDiffusion",
      "path" : "swift/StableDiffusion",
      "product_dependencies" : [
        "Transformers"
      ],
      "product_memberships" : [
        "StableDiffusion",
        "StableDiffusionSample"
      ],
      "sources" : [
        "pipeline/CGImage+vImage.swift",
        "pipeline/ControlNet.swift",
        "pipeline/DPMSolverMultistepScheduler.swift",
        "pipeline/Decoder.swift",
        "pipeline/DiscreteFlowScheduler.swift",
        "pipeline/Encoder.swift",
        "pipeline/ManagedMLModel.swift",
        "pipeline/MultiModalDiffusionTransformer.swift",
        "pipeline/MultilingualTextEncoder.swift",
        "pipeline/NumPyRandomSource.swift",
        "pipeline/NvRandomSource.swift",
        "pipeline/RandomSource.swift",
        "pipeline/ResourceManaging.swift",
        "pipeline/SafetyChecker.swift",
        "pipeline/SampleTimer.swift",
        "pipeline/Scheduler.swift",
        "pipeline/StableDiffusion3Pipeline+Resources.swift",
        "pipeline/StableDiffusion3Pipeline.swift",
        "pipeline/StableDiffusionPipeline+Resources.swift",
        "pipeline/StableDiffusionPipeline.Configuration.swift",
        "pipeline/StableDiffusionPipeline.swift",
        "pipeline/StableDiffusionXL+Resources.swift",
        "pipeline/StableDiffusionXLPipeline.swift",
        "pipeline/TextEncoder.swift",
        "pipeline/TextEncoderT5.swift",
        "pipeline/TextEncoderXL.swift",
        "pipeline/TorchRandomSource.swift",
        "pipeline/Unet.swift",
        "tokenizer/BPETokenizer+Reading.swift",
        "tokenizer/BPETokenizer.swift",
        "tokenizer/T5Tokenizer.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.8"
}
Done.