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 json-logger with Swift 5.8 for macOS (SPM).

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.38.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/xcode-actions/json-logger.git
Reference: main
Initialized empty Git repository in /Users/builder/builds/o86TiJKT/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/.git/
From https://github.com/xcode-actions/json-logger
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 264e420 Dummy code style fix
Cloned https://github.com/xcode-actions/json-logger.git
Revision (git rev-parse @):
264e420a7647ea21d37a10d0d2868d5cbf68fdf4
SUCCESS checkout https://github.com/xcode-actions/json-logger.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             5.8
Building package at path:  $workDir
https://github.com/xcode-actions/json-logger.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-14.3.1.app xcrun swift build --arch arm64
Building for debugging...
[1/10] Compiling Logging MetadataProvider.swift
[2/10] Emitting module Logging
[3/10] Compiling Logging LogHandler.swift
[4/10] Compiling Logging Locks.swift
[5/10] Compiling Logging Logging.swift
[6/10] Compiling GenericJSON Querying.swift
[7/10] Compiling GenericJSON Merging.swift
[8/10] Compiling GenericJSON Initialization.swift
[9/10] Emitting module GenericJSON
[10/10] Compiling GenericJSON JSON.swift
[11/15] Compiling JSONLogger LogLine.swift
[12/15] Compiling JSONLogger String+Utils.swift
[13/15] Compiling JSONLogger NSLock+Linux.swift
[14/15] Emitting module JSONLogger
[15/15] Compiling JSONLogger JSONLogger.swift
/Users/builder/builds/o86TiJKT/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/JSONLogger.swift:233:9: error: consecutive statements on a line must be separated by ';'
                return switch metadataValue {
                      ^
                      ;
/Users/builder/builds/o86TiJKT/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/JSONLogger.swift:233:3: error: non-void function should return a value
                return switch metadataValue {
                ^
/Users/builder/builds/o86TiJKT/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/JSONLogger.swift:234:39: error: reference to member 'string' cannot be resolved without a contextual type
                        case let .string(s):              .string(s)
                                                          ~^~~~~~
/Users/builder/builds/o86TiJKT/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/JSONLogger.swift:235:39: error: reference to member 'array' cannot be resolved without a contextual type
                        case let .array(array):           .array (array     .map      (jsonMetadataValue(_:)))
                                                          ~^~~~~
/Users/builder/builds/o86TiJKT/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/JSONLogger.swift:236:39: error: reference to member 'object' cannot be resolved without a contextual type
                        case let .dictionary(dictionary): .object(dictionary.mapValues(jsonMetadataValue(_:)))
                                                          ~^~~~~~
/Users/builder/builds/o86TiJKT/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/JSONLogger.swift:243:6: warning: expression of type 'JSON' is unused
                                        json
                                        ^~~~
/Users/builder/builds/o86TiJKT/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/JSONLogger.swift:245:7: error: reference to member 'string' cannot be resolved without a contextual type
                                        .string(s.description)
                                        ~^~~~~~
Fetching https://github.com/apple/swift-log.git from cache
Fetching https://github.com/Frizlab/generic-json.git from cache
Fetched https://github.com/Frizlab/generic-json.git (0.15s)
Fetched https://github.com/apple/swift-log.git (0.54s)
Computing version for https://github.com/Frizlab/generic-json.git
Computed https://github.com/Frizlab/generic-json.git at 3.0.0 (0.32s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.5.3 (0.03s)
Creating working copy for https://github.com/Frizlab/generic-json.git
Working copy of https://github.com/Frizlab/generic-json.git resolved at 3.0.0
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.5.3
[0/1] Planning build
Building for debugging...
[1/2] Emitting module JSONLogger
[2/2] Compiling JSONLogger JSONLogger.swift
/Users/builder/builds/o86TiJKT/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/JSONLogger.swift:233:9: error: consecutive statements on a line must be separated by ';'
                return switch metadataValue {
                      ^
                      ;
/Users/builder/builds/o86TiJKT/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/JSONLogger.swift:233:3: error: non-void function should return a value
                return switch metadataValue {
                ^
/Users/builder/builds/o86TiJKT/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/JSONLogger.swift:234:39: error: reference to member 'string' cannot be resolved without a contextual type
                        case let .string(s):              .string(s)
                                                          ~^~~~~~
/Users/builder/builds/o86TiJKT/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/JSONLogger.swift:235:39: error: reference to member 'array' cannot be resolved without a contextual type
                        case let .array(array):           .array (array     .map      (jsonMetadataValue(_:)))
                                                          ~^~~~~
/Users/builder/builds/o86TiJKT/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/JSONLogger.swift:236:39: error: reference to member 'object' cannot be resolved without a contextual type
                        case let .dictionary(dictionary): .object(dictionary.mapValues(jsonMetadataValue(_:)))
                                                          ~^~~~~~
/Users/builder/builds/o86TiJKT/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/JSONLogger.swift:243:6: warning: expression of type 'JSON' is unused
                                        json
                                        ^~~~
/Users/builder/builds/o86TiJKT/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/JSONLogger.swift:245:7: error: reference to member 'string' cannot be resolved without a contextual type
                                        .string(s.description)
                                        ~^~~~~~
BUILD FAILURE 5.8 macosSpm