Build Information
Failed to build clt-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.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/xcode-actions/clt-logger.git
Reference: 0.9.0
Initialized empty Git repository in /Users/admin/builds/vMd7uqzK/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/.git/
From https://github.com/xcode-actions/clt-logger
* tag 0.9.0 -> FETCH_HEAD
HEAD is now at d2d2be7 Use a better Xcode detection
Cloned https://github.com/xcode-actions/clt-logger.git
Revision (git rev-parse @):
d2d2be799fde3e564f6f2c35b708403bf609a0fb
SUCCESS checkout https://github.com/xcode-actions/clt-logger.git at 0.9.0
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 5.8
Building package at path: $workDir
https://github.com/xcode-actions/clt-logger.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-14.3.1.app xcrun swift build --arch arm64
Building for debugging...
[1/4] Compiling Logging LogHandler.swift
[2/4] Compiling Logging Locks.swift
[3/4] Emitting module Logging
[4/4] Compiling Logging Logging.swift
[5/5] Compiling Logging MetadataProvider.swift
[6/9] Emitting module CLTLogger
[7/9] Compiling CLTLogger NSLock+Linux.swift
[8/9] Compiling CLTLogger SGR.swift
[9/9] Compiling CLTLogger CLTLogger.swift
/Users/admin/builds/vMd7uqzK/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/CLTLogger.swift:439:9: error: consecutive statements on a line must be separated by ';'
return switch v {
^
;
/Users/admin/builds/vMd7uqzK/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/CLTLogger.swift:439:3: error: non-void function should return a value
return switch v {
^
/Users/admin/builds/vMd7uqzK/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/CLTLogger.swift:440:166: warning: expression of type 'String' is unused
case .string(let str): str.processForLogging(escapingMode: .escapeScalars(asASCII: true, octothorpLevel: nil, showQuotes: true), newLineProcessing: .escape).string
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
/Users/admin/builds/vMd7uqzK/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/CLTLogger.swift:441:101: warning: result of operator '+' is unused
case .array(let array): #"["# + array.map{ prettyMetadataValue($0) }.joined(separator: ", ") + #"]"#
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~
/Users/admin/builds/vMd7uqzK/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/CLTLogger.swift:442:101: warning: result of operator '+' is unused
case .dictionary(let dict): #"["# + flatMetadataArray(dict).joined(separator: ", ") + #"]"#
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~
/Users/admin/builds/vMd7uqzK/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/CLTLogger.swift:443:36: warning: result of call to 'prettyMetadataValue' is unused
case .stringConvertible(let c): prettyMetadataValue(.string(c.description))
^ ~~~~~~~~~~~~~~~~~~~~~~~~
[10/10] Compiling CLTLogger String+Utils.swift
Fetching https://github.com/apple/swift-log.git from cache
Fetched https://github.com/apple/swift-log.git (0.23s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.5.1 (0.05s)
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.1
BUILD FAILURE 5.8 macosSpm