The Swift Package Index logo.Swift Package Index

Build Information

Failed to build TrainInformationService with Swift 5.7 for macOS (SPM).

Build Command

Build command unavailable

Build Log

========================================
RunAll
========================================
Builder version: 4.27.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/dchakarov/TrainInformationService.git
Reference: master
Initialized empty Git repository in /Users/builder/builds/o86TiJKT/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/.git/
From https://github.com/dchakarov/TrainInformationService
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at c87787c Merge pull request #4 from kiliszekmarcin/master
Cloned https://github.com/dchakarov/TrainInformationService.git
Revision (git rev-parse @):
c87787c3b3d1ed822b6026fa1b1f2d6c1be009bf
SUCCESS checkout https://github.com/dchakarov/TrainInformationService.git at master
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             5.7
Building package at path:  $PWD/checkout
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-14.2.0.app xcrun swift build --arch arm64
Building for debugging...
[1/4] Compiling SWXMLHash shim.swift
[2/4] Compiling SWXMLHash SWXMLHash+TypeConversion.swift
[3/4] Emitting module SWXMLHash
[4/4] Compiling SWXMLHash SWXMLHash.swift
[5/9] Compiling TrainInformationService TrainInformationService.swift
/Users/builder/builds/o86TiJKT/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/TrainInformationService/TrainInformationService.swift:199:50: error: 'data(for:delegate:)' is only available in macOS 12.0 or newer
        let (data, _) = try await defaultSession.data(for: urlRequest)
                                                 ^
/Users/builder/builds/o86TiJKT/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/TrainInformationService/TrainInformationService.swift:199:50: note: add 'if #available' version check
        let (data, _) = try await defaultSession.data(for: urlRequest)
                                                 ^
/Users/builder/builds/o86TiJKT/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/TrainInformationService/TrainInformationService.swift:171:10: note: add @available attribute to enclosing instance method
    func executeSoapRequest(_ request: String, parameters: [String: String]) async throws -> Data {
         ^
/Users/builder/builds/o86TiJKT/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/TrainInformationService/TrainInformationService.swift:169:1: note: add @available attribute to enclosing extension
extension TrainInformationService {
^
[6/9] Compiling TrainInformationService StationBoard.swift
[7/9] Compiling TrainInformationService CallingPoint.swift
[8/9] Emitting module TrainInformationService
[9/9] Compiling TrainInformationService DepartingService.swift
Fetching https://github.com/drmohundro/SWXMLHash.git from cache
Fetched https://github.com/drmohundro/SWXMLHash.git (0.67s)
Computing version for https://github.com/drmohundro/SWXMLHash.git
Computed https://github.com/drmohundro/SWXMLHash.git at 4.7.4 (0.41s)
Creating working copy for https://github.com/drmohundro/SWXMLHash.git
Working copy of https://github.com/drmohundro/SWXMLHash.git resolved at 4.7.4
[0/1] Planning build
Building for debugging...
[1/2] Emitting module TrainInformationService
[2/2] Compiling TrainInformationService TrainInformationService.swift
/Users/builder/builds/o86TiJKT/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/TrainInformationService/TrainInformationService.swift:199:50: error: 'data(for:delegate:)' is only available in macOS 12.0 or newer
        let (data, _) = try await defaultSession.data(for: urlRequest)
                                                 ^
/Users/builder/builds/o86TiJKT/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/TrainInformationService/TrainInformationService.swift:199:50: note: add 'if #available' version check
        let (data, _) = try await defaultSession.data(for: urlRequest)
                                                 ^
/Users/builder/builds/o86TiJKT/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/TrainInformationService/TrainInformationService.swift:171:10: note: add @available attribute to enclosing instance method
    func executeSoapRequest(_ request: String, parameters: [String: String]) async throws -> Data {
         ^
/Users/builder/builds/o86TiJKT/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/TrainInformationService/TrainInformationService.swift:169:1: note: add @available attribute to enclosing extension
extension TrainInformationService {
^
BUILD FAILURE 5.7 macosSpm

Build Machine: Mac 5