The Swift Package Index logo.Swift Package Index

Build Information

Failed to build SwiftSimctl with Swift 5.9 for Linux.

Build Command

docker run --rm -v "checkouts-4609320-1":/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: 0.4.2
Cloned https://github.com/ctreffs/SwiftSimctl.git into spi-builder-workspace
SUCCESS checkout https://github.com/ctreffs/SwiftSimctl.git at 0.4.2
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.9
Building package at path:  spi-builder-workspace
Running build ...
docker run --rm -v "checkouts-4609320-1":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1
Fetching https://github.com/httpswift/swifter.git
Fetching https://github.com/apple/swift-argument-parser
Fetching https://github.com/JohnSundell/ShellOut.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.68s)
Fetched https://github.com/apple/swift-argument-parser (0.69s)
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.31s)
Computing version for https://github.com/JohnSundell/ShellOut.git
Computed https://github.com/JohnSundell/ShellOut.git at 2.3.0 (1.15s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 0.5.0 (0.36s)
Creating working copy for https://github.com/apple/swift-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 0.5.0
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/JohnSundell/ShellOut.git
Working copy of https://github.com/JohnSundell/ShellOut.git resolved at 2.3.0
Building for debugging...
[1/32] Emitting module ArgumentParserToolInfo
[2/32] Compiling ArgumentParserToolInfo ToolInfo.swift
[4/34] Wrapping AST for ArgumentParserToolInfo for debugging
[6/68] Emitting module Swifter
[7/68] Compiling ArgumentParser ArgumentDecoder.swift
[8/68] Compiling ArgumentParser ArgumentDefinition.swift
[9/70] Compiling ArgumentParser Option.swift
[10/70] Compiling ArgumentParser OptionGroup.swift
[11/70] Compiling ArgumentParser CommandConfiguration.swift
[12/70] Compiling ArgumentParser Flag.swift
[13/70] Compiling ArgumentParser NameSpecification.swift
[14/70] Compiling ArgumentParser CompletionKind.swift
[15/70] Compiling ArgumentParser Errors.swift
[16/70] Compiling ArgumentParser ParsableArguments.swift
[17/70] Compiling ArgumentParser ParsableArgumentsValidation.swift
[18/70] Compiling ArgumentParser ParsableCommand.swift
[19/70] Compiling ArgumentParser BashCompletionsGenerator.swift
[20/70] Compiling ArgumentParser CompletionsGenerator.swift
[21/70] Compiling ArgumentParser FishCompletionsGenerator.swift
[22/70] Compiling ArgumentParser ZshCompletionsGenerator.swift
[23/70] Compiling ArgumentParser Argument.swift
[24/70] Compiling ArgumentParser ArgumentHelp.swift
[25/70] Emitting module ShellOut
[26/70] Compiling ShellOut ShellOut.swift
[28/72] Wrapping AST for ShellOut for debugging
[30/72] Emitting module ArgumentParser
[31/76] Emitting module SimctlShared
[32/76] Compiling SimctlShared SimctlShared.swift
[34/78] Wrapping AST for SimctlShared for debugging
[36/80] Compiling ArgumentParser ArgumentSet.swift
[37/80] Compiling ArgumentParser CommandParser.swift
[38/80] Compiling ArgumentParser InputOrigin.swift
[39/80] Compiling ArgumentParser Name.swift
[40/80] Compiling ArgumentParser Parsed.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[41/80] 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()
                          ^~~~~~~~~~~
[42/80] 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
[43/80] Compiling ArgumentParser ParsedValues.swift
[44/80] Compiling ArgumentParser ParserError.swift
[45/80] Compiling ArgumentParser SplitArguments.swift
[46/80] Compiling ArgumentParser DumpHelpGenerator.swift
BUILD FAILURE 5.9 linux

Build Machine: Linux 2