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 main (385866), with Swift 6.0 for macOS (SPM) on 20 May 2025 17:24:50 UTC.

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.2.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: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/DariuszGulbicki/Logging-Camp
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 3858669 Merge pull request #7 from DariuszGulbicki/full-refactor
Cloned https://github.com/DariuszGulbicki/Logging-Camp.git
Revision (git rev-parse @):
385866908f45d3a89f68a6c7b658dff4a11b76ed
SUCCESS checkout https://github.com/DariuszGulbicki/Logging-Camp.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/DariuszGulbicki/Logging-Camp.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.2.0.app xcrun swift build --arch arm64
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-5BDAB9E9C0126B9D.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
Fetching https://github.com/DariuszGulbicki/Colorizer
[1/59] Fetching colorizer
Fetched https://github.com/DariuszGulbicki/Colorizer from cache (0.70s)
Computing version for https://github.com/DariuszGulbicki/Colorizer
Computed https://github.com/DariuszGulbicki/Colorizer at 1.2.0 (3.22s)
Creating working copy for https://github.com/DariuszGulbicki/Colorizer
Working copy of https://github.com/DariuszGulbicki/Colorizer resolved at 1.2.0
BUILD FAILURE 6.0 macosSpm