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

Failed to build CSErrors, reference main (a29b22), with Swift 5.9 for macOS (SPM) on 5 Sep 2024 01:39:31 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.52.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/CharlesJS/CSErrors.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/CharlesJS/CSErrors
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at a29b22f Fix compile errors on compilers earlier than 6.0
Cloned https://github.com/CharlesJS/CSErrors.git
Revision (git rev-parse @):
a29b22f124d059030f6e65caacf3e02a67ca6dfb
SUCCESS checkout https://github.com/CharlesJS/CSErrors.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             5.9
Building package at path:  $PWD
https://github.com/CharlesJS/CSErrors.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.2.0.app xcrun swift build --arch arm64
Building for debugging...
[1/9] Compiling CSErrors HTTPError.swift
/Users/admin/builder/spi-builder-workspace/Sources/CSErrors/Internal.swift:17:1: error: expressions are not allowed at the top level
nonisolated(unsafe) private var emulatedVersion = Int.max
^
/Users/admin/builder/spi-builder-workspace/Sources/CSErrors/Internal.swift:17:20: error: consecutive statements on a line must be separated by ';'
nonisolated(unsafe) private var emulatedVersion = Int.max
                   ^
                   ;
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/9] Emitting module CSErrors
/Users/admin/builder/spi-builder-workspace/Sources/CSErrors/Internal.swift:17:1: error: expressions are not allowed at the top level
nonisolated(unsafe) private var emulatedVersion = Int.max
^
/Users/admin/builder/spi-builder-workspace/Sources/CSErrors/Internal.swift:17:20: error: consecutive statements on a line must be separated by ';'
nonisolated(unsafe) private var emulatedVersion = Int.max
                   ^
                   ;
/Users/admin/builder/spi-builder-workspace/Sources/CSErrors/Internal.swift:17:1: error: cannot find 'nonisolated' in scope
nonisolated(unsafe) private var emulatedVersion = Int.max
^~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/CSErrors/Internal.swift:17:13: error: cannot find 'unsafe' in scope
nonisolated(unsafe) private var emulatedVersion = Int.max
            ^~~~~~
[3/9] Compiling CSErrors ErrorMetadata.swift
/Users/admin/builder/spi-builder-workspace/Sources/CSErrors/Internal.swift:17:1: error: expressions are not allowed at the top level
nonisolated(unsafe) private var emulatedVersion = Int.max
^
/Users/admin/builder/spi-builder-workspace/Sources/CSErrors/Internal.swift:17:20: error: consecutive statements on a line must be separated by ';'
nonisolated(unsafe) private var emulatedVersion = Int.max
                   ^
                   ;
[4/9] Compiling CSErrors CSErrorProtocol.swift
/Users/admin/builder/spi-builder-workspace/Sources/CSErrors/Internal.swift:17:1: error: expressions are not allowed at the top level
nonisolated(unsafe) private var emulatedVersion = Int.max
^
/Users/admin/builder/spi-builder-workspace/Sources/CSErrors/Internal.swift:17:20: error: consecutive statements on a line must be separated by ';'
nonisolated(unsafe) private var emulatedVersion = Int.max
                   ^
                   ;
[5/9] Compiling CSErrors Stderr.swift
/Users/admin/builder/spi-builder-workspace/Sources/CSErrors/Internal.swift:17:1: error: expressions are not allowed at the top level
nonisolated(unsafe) private var emulatedVersion = Int.max
^
/Users/admin/builder/spi-builder-workspace/Sources/CSErrors/Internal.swift:17:20: error: consecutive statements on a line must be separated by ';'
nonisolated(unsafe) private var emulatedVersion = Int.max
                   ^
                   ;
[6/9] Compiling CSErrors POSIX Errors.swift
/Users/admin/builder/spi-builder-workspace/Sources/CSErrors/Internal.swift:17:1: error: expressions are not allowed at the top level
nonisolated(unsafe) private var emulatedVersion = Int.max
^
/Users/admin/builder/spi-builder-workspace/Sources/CSErrors/Internal.swift:17:20: error: consecutive statements on a line must be separated by ';'
nonisolated(unsafe) private var emulatedVersion = Int.max
                   ^
                   ;
[7/9] Compiling CSErrors OSStatus Errors.swift
/Users/admin/builder/spi-builder-workspace/Sources/CSErrors/Internal.swift:17:1: error: expressions are not allowed at the top level
nonisolated(unsafe) private var emulatedVersion = Int.max
^
/Users/admin/builder/spi-builder-workspace/Sources/CSErrors/Internal.swift:17:20: error: consecutive statements on a line must be separated by ';'
nonisolated(unsafe) private var emulatedVersion = Int.max
                   ^
                   ;
[8/9] Compiling CSErrors Error+CSErrors.swift
/Users/admin/builder/spi-builder-workspace/Sources/CSErrors/Internal.swift:17:1: error: expressions are not allowed at the top level
nonisolated(unsafe) private var emulatedVersion = Int.max
^
/Users/admin/builder/spi-builder-workspace/Sources/CSErrors/Internal.swift:17:20: error: consecutive statements on a line must be separated by ';'
nonisolated(unsafe) private var emulatedVersion = Int.max
                   ^
                   ;
[9/9] Compiling CSErrors Internal.swift
/Users/admin/builder/spi-builder-workspace/Sources/CSErrors/Internal.swift:17:1: error: expressions are not allowed at the top level
nonisolated(unsafe) private var emulatedVersion = Int.max
^
/Users/admin/builder/spi-builder-workspace/Sources/CSErrors/Internal.swift:17:20: error: consecutive statements on a line must be separated by ';'
nonisolated(unsafe) private var emulatedVersion = Int.max
                   ^
                   ;
/Users/admin/builder/spi-builder-workspace/Sources/CSErrors/Internal.swift:17:1: error: cannot find 'nonisolated' in scope
nonisolated(unsafe) private var emulatedVersion = Int.max
^~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/CSErrors/Internal.swift:17:13: error: cannot find 'unsafe' in scope
nonisolated(unsafe) private var emulatedVersion = Int.max
            ^~~~~~
error: fatalError
Fetching https://github.com/mattgallagher/CwlPreconditionTesting.git
Fetching https://github.com/mattgallagher/CwlCatchException.git
[1/1257] Fetching cwlpreconditiontesting
[14/1712] Fetching cwlpreconditiontesting, cwlcatchexception
Fetched https://github.com/mattgallagher/CwlPreconditionTesting.git (1.42s)
Fetched https://github.com/mattgallagher/CwlCatchException.git (1.42s)
Computing version for https://github.com/mattgallagher/CwlPreconditionTesting.git
Computed https://github.com/mattgallagher/CwlPreconditionTesting.git at 2.1.0 (2.83s)
Computing version for https://github.com/mattgallagher/CwlCatchException.git
Computed https://github.com/mattgallagher/CwlCatchException.git at 2.1.1 (0.57s)
Creating working copy for https://github.com/mattgallagher/CwlCatchException.git
Working copy of https://github.com/mattgallagher/CwlCatchException.git resolved at 2.1.1
Creating working copy for https://github.com/mattgallagher/CwlPreconditionTesting.git
Working copy of https://github.com/mattgallagher/CwlPreconditionTesting.git resolved at 2.1.0
BUILD FAILURE 5.9 macosSpm