The Swift Package Index logo.Swift Package Index

Build Information

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

Build Command

env DEVELOPER_DIR=/Applications/Xcode-15.3.0-Beta.2.app xcrun swift build --arch arm64

Build Log

========================================
RunAll
========================================
Builder version: 4.29.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/dchakarov/TrainInformationService.git
Reference: master
Initialized empty Git repository in /Users/builder/builds/UKfvDsi8u/1/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.10
Building package at path:  $workDir
https://github.com/dchakarov/TrainInformationService.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0-Beta.2.app xcrun swift build --arch arm64
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version--423B1241ED78D482.txt
[4/7] Compiling SWXMLHash shim.swift
[5/7] Compiling SWXMLHash SWXMLHash+TypeConversion.swift
[6/7] Emitting module SWXMLHash
[7/7] Compiling SWXMLHash SWXMLHash.swift
[8/12] Compiling TrainInformationService StationBoard.swift
[9/12] Compiling TrainInformationService TrainInformationService.swift
/Users/builder/builds/UKfvDsi8u/1/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/UKfvDsi8u/1/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/UKfvDsi8u/1/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/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/TrainInformationService/TrainInformationService.swift:169:1: note: add @available attribute to enclosing extension
extension TrainInformationService {
^
[10/12] Compiling TrainInformationService DepartingService.swift
[11/12] Emitting module TrainInformationService
[12/12] Compiling TrainInformationService CallingPoint.swift
error: fatalError
Fetching https://github.com/drmohundro/SWXMLHash.git
[1/2766] Fetching swxmlhash
Fetched https://github.com/drmohundro/SWXMLHash.git from cache (0.33s)
Computing version for https://github.com/drmohundro/SWXMLHash.git
Computed https://github.com/drmohundro/SWXMLHash.git at 4.7.4 (0.33s)
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...
[0/1] Write swift-version--423B1241ED78D482.txt
[2/3] Emitting module TrainInformationService
[3/3] Compiling TrainInformationService TrainInformationService.swift
/Users/builder/builds/UKfvDsi8u/1/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/UKfvDsi8u/1/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/UKfvDsi8u/1/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/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/TrainInformationService/TrainInformationService.swift:169:1: note: add @available attribute to enclosing extension
extension TrainInformationService {
^
error: fatalError
BUILD FAILURE 5.10 macosSpm

Build Machine: Mac 7