Build Information
Failed to build V2exAPI with Swift 5.7 for Linux.
Build Command
docker run --rm -v "checkouts-4606859-1":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.7-latest swift build 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.22.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/isaced/V2exAPI.git
Reference: 1.1.1
Cloned https://github.com/isaced/V2exAPI.git into spi-builder-workspace
SUCCESS checkout https://github.com/isaced/V2exAPI.git at 1.1.1
========================================
Build
========================================
Selected platform: linux
Swift version: 5.7
Building package at path: spi-builder-workspace
Running build ...
docker run --rm -v "checkouts-4606859-1":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.7-latest swift build 2>&1
Building for debugging...
[1/8] Compiling V2exAPI V2Response.swift
[2/8] Compiling V2exAPI V2Token.swift
[3/8] Compiling V2exAPI V2Topic.swift
[4/9] Compiling V2exAPI V2Notification.swift
[5/9] Compiling V2exAPI V2Node.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)[6/9] Compiling V2exAPI V2Comment.swift
[7/9] Compiling V2exAPI V2Member.swift
[8/9] Emitting module V2exAPI
/host/spi-builder-workspace/Sources/V2exAPI/V2exAPI.swift:12:37: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
public var session = URLSession.shared
~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/V2exAPI/V2exAPI.swift:25:13: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
T?, URLResponse?
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
[9/9] Compiling V2exAPI V2exAPI.swift
/host/spi-builder-workspace/Sources/V2exAPI/V2exAPI.swift:12:37: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
public var session = URLSession.shared
~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/V2exAPI/V2exAPI.swift:25:13: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
T?, URLResponse?
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/V2exAPI/V2exAPI.swift:40:23: error: cannot find 'URLRequest' in scope
var request = URLRequest(url: requestUrl)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/V2exAPI/V2exAPI.swift:52:36: error: type of expression is ambiguous without more context
let (data, response) = try await session.data(for: request)
~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
BUILD FAILURE 5.7 linux
Build Machine: Linux 1