The Swift Package Index logo.Swift Package Index

Build Information

Failed to build TrainInformationService with Swift 5.9 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/TDmZkXJm/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
Fetching https://github.com/drmohundro/SWXMLHash.git from cache
Fetched https://github.com/drmohundro/SWXMLHash.git (0.22s)
Computing version for https://github.com/drmohundro/SWXMLHash.git
Computed https://github.com/drmohundro/SWXMLHash.git at 4.7.4 (0.62s)
Creating working copy for https://github.com/drmohundro/SWXMLHash.git
Working copy of https://github.com/drmohundro/SWXMLHash.git resolved at 4.7.4
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
  "identity": ".resolve-product-dependencies",
  "name": "resolve-dependencies",
  "url": "/Users/builder/builds/TDmZkXJm/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/.resolve-product-dependencies",
  "version": "unspecified",
  "path": "/Users/builder/builds/TDmZkXJm/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/.resolve-product-dependencies",
  "dependencies": [
    {
      "identity": "traininformationservice",
      "name": "TrainInformationService",
      "url": "https://github.com/dchakarov/TrainInformationService.git",
      "version": "unspecified",
      "path": "/Users/builder/builds/TDmZkXJm/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/TrainInformationService",
      "dependencies": [
        {
          "identity": "swxmlhash",
          "name": "SWXMLHash",
          "url": "https://github.com/drmohundro/SWXMLHash.git",
          "version": "4.9.0",
          "path": "/Users/builder/builds/TDmZkXJm/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/SWXMLHash",
          "dependencies": [
          ]
        }
      ]
    }
  ]
}
Fetching https://github.com/dchakarov/TrainInformationService.git
[1/123] Fetching traininformationservice
Fetched https://github.com/dchakarov/TrainInformationService.git (0.21s)
Fetching https://github.com/drmohundro/SWXMLHash.git from cache
Fetched https://github.com/drmohundro/SWXMLHash.git (0.19s)
Computing version for https://github.com/drmohundro/SWXMLHash.git
Computed https://github.com/drmohundro/SWXMLHash.git at 4.9.0 (0.01s)
Creating working copy for https://github.com/drmohundro/SWXMLHash.git
Working copy of https://github.com/drmohundro/SWXMLHash.git resolved at 4.9.0
Creating working copy for https://github.com/dchakarov/TrainInformationService.git
Working copy of https://github.com/dchakarov/TrainInformationService.git resolved at master
warning: '.resolve-product-dependencies': dependency 'traininformationservice' is not used by any target
Found 1 product dependencies
  - SWXMLHash
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             5.9
Building package at path:  $PWD/checkout
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.0.0.app xcrun swift build --arch arm64
Building for debugging...
[1/4] Compiling SWXMLHash shim.swift
[2/4] Compiling SWXMLHash SWXMLHash.swift
[3/4] Emitting module SWXMLHash
[4/4] Compiling SWXMLHash SWXMLHash+TypeConversion.swift
[5/9] Compiling TrainInformationService TrainInformationService.swift
/Users/builder/builds/TDmZkXJm/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/TDmZkXJm/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/TDmZkXJm/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/TDmZkXJm/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/TrainInformationService/TrainInformationService.swift:169:1: note: add @available attribute to enclosing extension
extension TrainInformationService {
^
[6/9] Emitting module TrainInformationService
[7/9] Compiling TrainInformationService StationBoard.swift
[8/9] Compiling TrainInformationService DepartingService.swift
[9/9] Compiling TrainInformationService CallingPoint.swift
error: fatalError
[0/1] Planning build
Building for debugging...
[1/2] Emitting module TrainInformationService
[2/2] Compiling TrainInformationService TrainInformationService.swift
/Users/builder/builds/TDmZkXJm/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/TDmZkXJm/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/TDmZkXJm/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/TDmZkXJm/2/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.9 macosSpm