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.32.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/xcode-actions/json-logger.git
Reference: 0.2.0
Initialized empty Git repository in /Users/admin/builds/vMd7uqzK/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/.git/
From https://github.com/xcode-actions/json-logger
 * tag               0.2.0      -> FETCH_HEAD
HEAD is now at 502d98b Fix Swift 5.10 concurrency warnings
Cloned https://github.com/xcode-actions/json-logger.git
Revision (git rev-parse @):
502d98b1ca4ff83497dfed2791d6a438e785b66e
SUCCESS checkout https://github.com/xcode-actions/json-logger.git at 0.2.0
========================================
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/8] Emitting module Logging
[2/8] Compiling Logging LogHandler.swift
[3/8] Compiling Logging Locks.swift
[4/8] Compiling Logging Logging.swift
[5/9] Compiling Logging MetadataProvider.swift
[6/9] Compiling GenericJSON Merging.swift
[7/10] Compiling GenericJSON Initialization.swift
[8/10] Emitting module GenericJSON
[9/10] Compiling GenericJSON JSON.swift
[10/10] Compiling GenericJSON Querying.swift
[11/14] Compiling JSONLogger NSLock+Linux.swift
[12/15] Emitting module JSONLogger
[13/15] Compiling JSONLogger String+Utils.swift
[14/15] Compiling JSONLogger LogLine.swift
[15/15] Compiling JSONLogger JSONLogger.swift
/Users/admin/builds/vMd7uqzK/0/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/admin/builds/vMd7uqzK/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/JSONLogger.swift:233:3: error: non-void function should return a value
                return switch metadataValue {
                ^
/Users/admin/builds/vMd7uqzK/0/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/admin/builds/vMd7uqzK/0/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/admin/builds/vMd7uqzK/0/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/admin/builds/vMd7uqzK/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/JSONLogger.swift:243:6: warning: expression of type 'JSON' is unused
                                        json
                                        ^~~~
/Users/admin/builds/vMd7uqzK/0/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.17s)
Fetched https://github.com/apple/swift-log.git (0.19s)
Computing version for https://github.com/Frizlab/generic-json.git
Computed https://github.com/Frizlab/generic-json.git at 3.0.0 (0.41s)
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/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.5.3
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
[0/1] Planning build
Building for debugging...
[1/2] Emitting module JSONLogger
[2/2] Compiling JSONLogger JSONLogger.swift
/Users/admin/builds/vMd7uqzK/0/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/admin/builds/vMd7uqzK/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/JSONLogger.swift:233:3: error: non-void function should return a value
                return switch metadataValue {
                ^
/Users/admin/builds/vMd7uqzK/0/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/admin/builds/vMd7uqzK/0/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/admin/builds/vMd7uqzK/0/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/admin/builds/vMd7uqzK/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/JSONLogger.swift:243:6: warning: expression of type 'JSON' is unused
                                        json
                                        ^~~~
/Users/admin/builds/vMd7uqzK/0/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