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 LoggingCamp, reference 2.2.1 (08516f), with Swift 6.1 for macOS (SPM) on 20 May 2025 17:25:41 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/Logging-Camp.git
Reference: 2.2.1
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/DariuszGulbicki/Logging-Camp
 * tag               2.2.1      -> FETCH_HEAD
HEAD is now at 08516f7 Added tests and minor improvements to LoggerPool
Cloned https://github.com/DariuszGulbicki/Logging-Camp.git
Revision (git rev-parse @):
08516f7da6dff61cad0663a66a617a7c647032bb
SUCCESS checkout https://github.com/DariuszGulbicki/Logging-Camp.git at 2.2.1
Fetching https://github.com/DariuszGulbicki/Colorizer
[1/59] Fetching colorizer
Fetched https://github.com/DariuszGulbicki/Colorizer from cache (0.71s)
Computing version for https://github.com/DariuszGulbicki/Colorizer
Computed https://github.com/DariuszGulbicki/Colorizer at 1.2.0 (1.40s)
Creating working copy for https://github.com/DariuszGulbicki/Colorizer
Working copy of https://github.com/DariuszGulbicki/Colorizer resolved at 1.2.0
========================================
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": "logging-camp",
      "name": "LoggingCamp",
      "url": "https://github.com/DariuszGulbicki/Logging-Camp.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Logging-Camp",
      "dependencies": [
        {
          "identity": "colorizer",
          "name": "Colorizer",
          "url": "https://github.com/DariuszGulbicki/Colorizer",
          "version": "1.2.0",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Colorizer",
          "dependencies": [
          ]
        }
      ]
    }
  ]
}
Fetching https://github.com/DariuszGulbicki/Logging-Camp.git
[4/193] Fetching logging-camp
Fetched https://github.com/DariuszGulbicki/Logging-Camp.git from cache (1.19s)
Fetching https://github.com/DariuszGulbicki/Colorizer from cache
Fetched https://github.com/DariuszGulbicki/Colorizer from cache (0.43s)
Computing version for https://github.com/DariuszGulbicki/Colorizer
Computed https://github.com/DariuszGulbicki/Colorizer at 1.2.0 (0.48s)
Creating working copy for https://github.com/DariuszGulbicki/Colorizer
Working copy of https://github.com/DariuszGulbicki/Colorizer resolved at 1.2.0
Creating working copy for https://github.com/DariuszGulbicki/Logging-Camp.git
Working copy of https://github.com/DariuszGulbicki/Logging-Camp.git resolved at 2.2.1 (08516f7)
warning: '.resolve-product-dependencies': dependency 'logging-camp' is not used by any target
Found 1 product dependencies
  - Colorizer
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/DariuszGulbicki/Logging-Camp.git
https://github.com/DariuszGulbicki/Logging-Camp.git
{
  "dependencies" : [
    {
      "identity" : "colorizer",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/DariuszGulbicki/Colorizer"
    }
  ],
  "manifest_display_name" : "LoggingCamp",
  "name" : "LoggingCamp",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "LoggingCamp",
      "targets" : [
        "LoggingCamp"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "LoggingCampTests",
      "module_type" : "SwiftTarget",
      "name" : "LoggingCampTests",
      "path" : "Tests/LoggingCampTests",
      "sources" : [
        "LoggingCampTests.swift"
      ],
      "target_dependencies" : [
        "LoggingCamp"
      ],
      "type" : "test"
    },
    {
      "c99name" : "LoggingCamp",
      "module_type" : "SwiftTarget",
      "name" : "LoggingCamp",
      "path" : "Sources/LoggingCamp",
      "product_dependencies" : [
        "Colorizer"
      ],
      "product_memberships" : [
        "LoggingCamp"
      ],
      "sources" : [
        "LogLevel.swift",
        "Logger.swift",
        "LoggerPool.swift",
        "LoggingCamp.swift",
        "Operators.swift",
        "handlers/ColoredPrintLogHandler.swift",
        "handlers/LogHandler.swift",
        "handlers/PrintLogHandler.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.4"
}
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/3] Write sources
[2/3] Write swift-version-2F0A5646E1D333AE.txt
[4/7] Compiling Colorizer StringEffects.swift
[5/7] Emitting module Colorizer
[6/7] Compiling Colorizer EffectEscapeCode.swift
[7/7] Compiling Colorizer Colorizer.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Colorizer/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/.build/checkouts/Colorizer/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/1] Write swift-version-2F0A5646E1D333AE.txt
[2/5] Compiling Colorizer StringEffects.swift
[3/5] Compiling Colorizer EffectEscapeCode.swift
[4/5] Emitting module Colorizer
[5/5] Compiling Colorizer Colorizer.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Colorizer/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/.build/checkouts/Colorizer/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