The Swift Package Index logo.Swift Package Index

Build Information

Failed to build Colorizer, reference main (8e9747), with Swift 6.1 for macOS (SPM) on 21 May 2025 07:34:46 UTC.

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64

Build Log

========================================
RunAll
========================================
Builder version: 4.61.6
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/DariuszGulbicki/Colorizer.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/DariuszGulbicki/Colorizer
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 8e9747f Merge pull request #7 from DariuszGulbicki/readme_update
Cloned https://github.com/DariuszGulbicki/Colorizer.git
Revision (git rev-parse @):
8e9747fc55861a2969c721967f4a84b95ae5f716
SUCCESS checkout https://github.com/DariuszGulbicki/Colorizer.git at main
========================================
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": "colorizer",
      "name": "Colorizer",
      "url": "https://github.com/DariuszGulbicki/Colorizer.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Colorizer",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/DariuszGulbicki/Colorizer.git
[1/59] Fetching colorizer
Fetched https://github.com/DariuszGulbicki/Colorizer.git from cache (0.73s)
Creating working copy for https://github.com/DariuszGulbicki/Colorizer.git
Working copy of https://github.com/DariuszGulbicki/Colorizer.git resolved at main (8e9747f)
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/DariuszGulbicki/Colorizer.git
https://github.com/DariuszGulbicki/Colorizer.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Colorizer",
  "name" : "Colorizer",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "Colorizer",
      "targets" : [
        "Colorizer"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "Colorizer-Examples",
      "targets" : [
        "Colorizer-Examples"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "Colorizer_Examples",
      "module_type" : "SwiftTarget",
      "name" : "Colorizer-Examples",
      "path" : "Sources/Colorizer-Examples",
      "product_memberships" : [
        "Colorizer-Examples"
      ],
      "sources" : [
        "Examples.swift"
      ],
      "target_dependencies" : [
        "Colorizer"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "Colorizer",
      "module_type" : "SwiftTarget",
      "name" : "Colorizer",
      "path" : "Sources/Colorizer",
      "product_memberships" : [
        "Colorizer",
        "Colorizer-Examples"
      ],
      "sources" : [
        "Colorizer.swift",
        "EffectEscapeCode.swift",
        "StringEffects.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.5"
}
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
Building for debugging...
[0/7] Write sources
[1/7] Write Colorizer-Examples-entitlement.plist
[1/7] Write sources
[3/7] Write swift-version-2F0A5646E1D333AE.txt
[5/11] Compiling Colorizer StringEffects.swift
[6/11] Compiling Colorizer EffectEscapeCode.swift
[7/11] Emitting module Colorizer
[8/11] Compiling Colorizer Colorizer.swift
/Users/admin/builder/spi-builder-workspace/Sources/Colorizer/Colorizer.swift:9:29: error: 'replacing(_:with:maxReplacements:)' is only available in macOS 13.0 or newer
  1 | public struct Colorizer {
    |               `- note: add @available attribute to enclosing struct
  2 |
  3 |     private let codes: [String:EffectEscapeCode] = EffectEscapeCode.getAsDict()
  4 |     public var template = "&(@name)";
  5 |
  6 |     public func format(_ text: String) -> String {
    |                 `- note: add @available attribute to enclosing instance method
  7 |         var result = text
  8 |         for (name, code) in codes {
  9 |             result = result.replacing(template.replacing("@name", with: name), with: code.rawValue)
    |                             |- error: 'replacing(_:with:maxReplacements:)' is only available in macOS 13.0 or newer
    |                             `- note: add 'if #available' version check
 10 |         }
 11 |         return result
/Users/admin/builder/spi-builder-workspace/Sources/Colorizer/Colorizer.swift:9:48: error: 'replacing(_:with:maxReplacements:)' is only available in macOS 13.0 or newer
  1 | public struct Colorizer {
    |               `- note: add @available attribute to enclosing struct
  2 |
  3 |     private let codes: [String:EffectEscapeCode] = EffectEscapeCode.getAsDict()
  4 |     public var template = "&(@name)";
  5 |
  6 |     public func format(_ text: String) -> String {
    |                 `- note: add @available attribute to enclosing instance method
  7 |         var result = text
  8 |         for (name, code) in codes {
  9 |             result = result.replacing(template.replacing("@name", with: name), with: code.rawValue)
    |                                                |- error: 'replacing(_:with:maxReplacements:)' is only available in macOS 13.0 or newer
    |                                                `- note: add 'if #available' version check
 10 |         }
 11 |         return result
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
[0/1] Planning build
Building for debugging...
[0/4] Write swift-version-2F0A5646E1D333AE.txt
[2/8] Compiling Colorizer StringEffects.swift
[3/8] Compiling Colorizer EffectEscapeCode.swift
[4/8] Emitting module Colorizer
[5/8] Compiling Colorizer Colorizer.swift
/Users/admin/builder/spi-builder-workspace/Sources/Colorizer/Colorizer.swift:9:29: error: 'replacing(_:with:maxReplacements:)' is only available in macOS 13.0 or newer
  1 | public struct Colorizer {
    |               `- note: add @available attribute to enclosing struct
  2 |
  3 |     private let codes: [String:EffectEscapeCode] = EffectEscapeCode.getAsDict()
  4 |     public var template = "&(@name)";
  5 |
  6 |     public func format(_ text: String) -> String {
    |                 `- note: add @available attribute to enclosing instance method
  7 |         var result = text
  8 |         for (name, code) in codes {
  9 |             result = result.replacing(template.replacing("@name", with: name), with: code.rawValue)
    |                             |- error: 'replacing(_:with:maxReplacements:)' is only available in macOS 13.0 or newer
    |                             `- note: add 'if #available' version check
 10 |         }
 11 |         return result
/Users/admin/builder/spi-builder-workspace/Sources/Colorizer/Colorizer.swift:9:48: error: 'replacing(_:with:maxReplacements:)' is only available in macOS 13.0 or newer
  1 | public struct Colorizer {
    |               `- note: add @available attribute to enclosing struct
  2 |
  3 |     private let codes: [String:EffectEscapeCode] = EffectEscapeCode.getAsDict()
  4 |     public var template = "&(@name)";
  5 |
  6 |     public func format(_ text: String) -> String {
    |                 `- note: add @available attribute to enclosing instance method
  7 |         var result = text
  8 |         for (name, code) in codes {
  9 |             result = result.replacing(template.replacing("@name", with: name), with: code.rawValue)
    |                                                |- error: 'replacing(_:with:maxReplacements:)' is only available in macOS 13.0 or newer
    |                                                `- note: add 'if #available' version check
 10 |         }
 11 |         return result
BUILD FAILURE 6.1 macosSpm