Build Information
Failed to build SwiftSimctl with Swift 5.9 for Linux.
Build Command
docker run --rm -v "checkouts-4609320-0":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.19.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ctreffs/SwiftSimctl.git
Reference: master
Cloned https://github.com/ctreffs/SwiftSimctl.git into spi-builder-workspace
SUCCESS checkout https://github.com/ctreffs/SwiftSimctl.git at master
========================================
Build
========================================
Selected platform: linux
Swift version: 5.9
Building package at path: spi-builder-workspace
Running build ...
docker run --rm -v "checkouts-4609320-0":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1
Fetching https://github.com/apple/swift-argument-parser
Fetching https://github.com/JohnSundell/ShellOut.git
Fetching https://github.com/httpswift/swifter.git
[1/572] Fetching shellout
[573/6531] Fetching shellout, swifter
[2182/17316] Fetching shellout, swifter, swift-argument-parser
Fetched https://github.com/JohnSundell/ShellOut.git (0.81s)
Fetched https://github.com/apple/swift-argument-parser (0.81s)
Fetched https://github.com/httpswift/swifter.git (0.84s)
Computing version for https://github.com/httpswift/swifter.git
Computed https://github.com/httpswift/swifter.git at 1.5.0 (0.36s)
Computing version for https://github.com/JohnSundell/ShellOut.git
Computed https://github.com/JohnSundell/ShellOut.git at 2.3.0 (1.37s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.2.2 (0.74s)
Creating working copy for https://github.com/httpswift/swifter.git
Working copy of https://github.com/httpswift/swifter.git resolved at 1.5.0
Creating working copy for https://github.com/apple/swift-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 1.2.2
Creating working copy for https://github.com/JohnSundell/ShellOut.git
Working copy of https://github.com/JohnSundell/ShellOut.git resolved at 2.3.0
[1/1] Compiling plugin GenerateManual
Building for debugging...
[2/33] Emitting module Swifter
[3/35] Compiling ArgumentParserToolInfo ToolInfo.swift
[4/35] Emitting module ArgumentParserToolInfo
[6/37] Wrapping AST for ArgumentParserToolInfo for debugging
[8/74] Compiling ArgumentParser Flag.swift
[9/74] Compiling ArgumentParser NameSpecification.swift
[10/74] Compiling ArgumentParser ParsableArgumentsValidation.swift
[11/74] Compiling ArgumentParser ParsableCommand.swift
[12/74] Compiling ArgumentParser Option.swift
[13/74] Compiling ArgumentParser OptionGroup.swift
[14/74] Compiling ArgumentParser AsyncParsableCommand.swift
[15/74] Compiling ArgumentParser ZshCompletionsGenerator.swift
[16/74] Compiling ArgumentParser Argument.swift
[17/74] Compiling ArgumentParser ArgumentHelp.swift
[18/74] Compiling ArgumentParser ArgumentVisibility.swift
[19/74] Compiling ArgumentParser CompletionKind.swift
[20/74] Compiling ArgumentParser Errors.swift
[21/74] Emitting module ShellOut
[22/74] Compiling ShellOut ShellOut.swift
[23/74] Compiling ArgumentParser BashCompletionsGenerator.swift
[24/74] Compiling ArgumentParser CompletionsGenerator.swift
[25/74] Compiling ArgumentParser FishCompletionsGenerator.swift
[27/76] Compiling ArgumentParser CommandConfiguration.swift
[28/76] Compiling ArgumentParser EnumerableFlag.swift
[29/76] Compiling ArgumentParser ExpressibleByArgument.swift
[30/76] Compiling ArgumentParser ParsableArguments.swift
[34/78] Emitting module SimctlShared
[35/78] Compiling SimctlShared SimctlShared.swift
[35/78] Wrapping AST for ShellOut for debugging
[36/78] Wrapping AST for Swifter for debugging
[39/80] Wrapping AST for SimctlShared for debugging
[46/87] Emitting module ArgumentParser
error: emit-module command failed with exit code 1 (use -v to see invocation)
[47/87] Emitting module Simctl
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:10:14: error: type alias 'URLSession' (aka 'AnyObject') cannot be imported as 'class'
import class Foundation.URLSession
~~~~~ ^
typealias
Foundation.URLSession:2:18: note: 'URLSession' declared here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:17:8: error: Unsupported platform!
#error("Unsupported platform!")
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:32:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
let session: URLSession
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:129:32: error: cannot find type 'URL' in scope
public func openUrl(_ url: URL, completion: @escaping DataTaskCallback) {
^~~
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:170:51: error: cannot find type 'Bundle' in scope
public init?(host: SimctlClient.Host, bundle: Bundle, processInfo: ProcessInfo) {
^~~~~~
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:170:72: error: cannot find type 'ProcessInfo' in scope
public init?(host: SimctlClient.Host, bundle: Bundle, processInfo: ProcessInfo) {
^~~~~~~~~~~
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:194:41: error: cannot find type 'ProcessInfo' in scope
static func deviceId(_ processInfo: ProcessInfo) -> UUID? {
^~~~~~~~~~~
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:251:46: error: cannot find type 'HTTPURLResponse' in scope
case unexpectedHttpStatusCode(Route, HTTPURLResponse)
^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:252:28: error: cannot find type 'HTTPURLResponse' in scope
case noData(Route, HTTPURLResponse)
^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:405:25: error: cannot find type 'URL' in scope
func asURL() -> URL {
^~~
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:414:32: error: cannot find type 'URLRequest' in scope
func asURLRequest() -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:379:27: error: cannot find 'JSONEncoder' in scope
let encoder = JSONEncoder()
^~~~~~~~~~~
[48/87] Compiling Simctl SimctlClient.swift
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:10:14: error: type alias 'URLSession' (aka 'AnyObject') cannot be imported as 'class'
import class Foundation.URLSession
~~~~~ ^
typealias
Foundation.URLSession:2:18: note: 'URLSession' declared here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:17:8: error: Unsupported platform!
#error("Unsupported platform!")
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:32:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
let session: URLSession
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:129:32: error: cannot find type 'URL' in scope
public func openUrl(_ url: URL, completion: @escaping DataTaskCallback) {
^~~
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:170:51: error: cannot find type 'Bundle' in scope
public init?(host: SimctlClient.Host, bundle: Bundle, processInfo: ProcessInfo) {
^~~~~~
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:170:72: error: cannot find type 'ProcessInfo' in scope
public init?(host: SimctlClient.Host, bundle: Bundle, processInfo: ProcessInfo) {
^~~~~~~~~~~
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:194:41: error: cannot find type 'ProcessInfo' in scope
static func deviceId(_ processInfo: ProcessInfo) -> UUID? {
^~~~~~~~~~~
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:251:46: error: cannot find type 'HTTPURLResponse' in scope
case unexpectedHttpStatusCode(Route, HTTPURLResponse)
^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:252:28: error: cannot find type 'HTTPURLResponse' in scope
case noData(Route, HTTPURLResponse)
^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:405:25: error: cannot find type 'URL' in scope
func asURL() -> URL {
^~~
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:414:32: error: cannot find type 'URLRequest' in scope
func asURLRequest() -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:43:19: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
session = URLSession(configuration: .default)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:43:46: error: cannot infer contextual base in reference to member 'default'
session = URLSession(configuration: .default)
~^~~~~~~
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:188:40: error: cannot find 'ProcessInfo' in scope
guard let udid = Self.deviceId(ProcessInfo()) else {
^~~~~~~~~~~
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:379:27: error: cannot find 'JSONEncoder' in scope
let encoder = JSONEncoder()
^~~~~~~~~~~
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:407:29: error: cannot find 'URL' in scope
guard let url = URL(string: urlString) else {
^~~
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:415:27: error: cannot find 'URLRequest' in scope
var request = URLRequest(url: asURL())
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:444:35: error: cannot find 'JSONDecoder' in scope
let decoder = JSONDecoder()
^~~~~~~~~~~
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:462:50: error: cannot find type 'HTTPURLResponse' in scope
guard let response = urlResponse as? HTTPURLResponse else {
^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:456:28: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
let task = session.dataTask(with: route.asURLRequest()) { data, urlResponse, error in
~~~~~~~ ^~~~~~~~
error: fatalError
BUILD FAILURE 5.9 linux
Build Machine: Linux 2