The Swift Package Index logo.Swift Package Index

Build Information

Failed to build SwiftSimctl with Swift 5.10 for Linux.

Build Command

bash -c docker run --rm -v "checkouts-4606859-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.29.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ctreffs/SwiftSimctl.git
Reference: 0.4.2
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/ctreffs/SwiftSimctl
 * tag               0.4.2      -> FETCH_HEAD
HEAD is now at 7cda257 Add get_app_container command (#18)
Cloned https://github.com/ctreffs/SwiftSimctl.git
Revision (git rev-parse @):
7cda257c97cf6aecab0adca63e6b9a2816c75281
SUCCESS checkout https://github.com/ctreffs/SwiftSimctl.git at 0.4.2
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.10
Building package at path:  $workDir
https://github.com/ctreffs/SwiftSimctl.git
Running build ...
bash -c docker run --rm -v "checkouts-4606859-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-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/956] Fetching shellout
[957/6947] Fetching shellout, swifter
[5391/18373] Fetching shellout, swifter, swift-argument-parser
Fetched https://github.com/JohnSundell/ShellOut.git from cache (0.69s)
Fetched https://github.com/apple/swift-argument-parser from cache (0.69s)
Fetched https://github.com/httpswift/swifter.git from cache (0.70s)
Computing version for https://github.com/httpswift/swifter.git
Computed https://github.com/httpswift/swifter.git at 1.5.0 (0.39s)
Computing version for https://github.com/JohnSundell/ShellOut.git
Computed https://github.com/JohnSundell/ShellOut.git at 2.3.0 (1.04s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 0.5.0 (0.42s)
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/JohnSundell/ShellOut.git
Working copy of https://github.com/JohnSundell/ShellOut.git resolved at 2.3.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
Building for debugging...
[0/16] Write sources
[7/16] Write swift-version-24593BA9C3E375BF.txt
[9/41] Emitting module ArgumentParserToolInfo
[10/41] Compiling ArgumentParserToolInfo ToolInfo.swift
[11/42] Wrapping AST for ArgumentParserToolInfo for debugging
[13/76] Compiling ArgumentParser Option.swift
[14/76] Compiling ArgumentParser OptionGroup.swift
[15/76] Compiling ArgumentParser CommandConfiguration.swift
[16/76] Compiling ArgumentParser EnumerableFlag.swift
[17/76] Compiling ArgumentParser ExpressibleByArgument.swift
[19/80] Compiling ArgumentParser ParsableArguments.swift
[20/82] Compiling ArgumentParser ArgumentHelp.swift
[21/82] Compiling ArgumentParser CompletionKind.swift
[22/82] Compiling ArgumentParser Errors.swift
[23/82] Compiling ArgumentParser CompletionsGenerator.swift
[24/82] Compiling ArgumentParser FishCompletionsGenerator.swift
[25/82] Compiling ArgumentParser ZshCompletionsGenerator.swift
[28/82] Emitting module Swifter
[32/82] Compiling ArgumentParser Flag.swift
[33/82] Compiling ArgumentParser NameSpecification.swift
[34/82] Compiling ShellOut ShellOut.swift
[35/82] Emitting module ShellOut
[36/82] Compiling ArgumentParser ParsableArgumentsValidation.swift
[37/82] Compiling ArgumentParser ParsableCommand.swift
[38/82] Compiling ArgumentParser Argument.swift
[43/82] Compiling ArgumentParser BashCompletionsGenerator.swift
[50/83] Emitting module ArgumentParser
[50/83] Wrapping AST for ShellOut for debugging
[52/83] Emitting module SimctlShared
[53/83] Compiling SimctlShared SimctlShared.swift
[54/83] Compiling ArgumentParser CollectionExtensions.swift
[55/83] Compiling ArgumentParser SequenceExtensions.swift
[56/83] Compiling ArgumentParser StringExtensions.swift
[57/83] Compiling ArgumentParser Tree.swift
[59/84] Compiling ArgumentParser ArgumentSet.swift
[60/84] Compiling ArgumentParser CommandParser.swift
[61/84] Compiling ArgumentParser InputOrigin.swift
[62/84] Compiling ArgumentParser Name.swift
[63/84] Compiling ArgumentParser Parsed.swift
[63/84] Wrapping AST for SimctlShared for debugging
[65/86] Compiling ArgumentParser ParsedValues.swift
[66/86] Compiling ArgumentParser ParserError.swift
[67/86] Compiling ArgumentParser SplitArguments.swift
[68/86] Compiling ArgumentParser DumpHelpGenerator.swift
[69/86] Compiling ArgumentParser HelpCommand.swift
[70/86] Compiling ArgumentParser HelpGenerator.swift
[71/86] Compiling ArgumentParser MessageInfo.swift
[72/86] Compiling ArgumentParser UsageGenerator.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[73/86] 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()
                          ^~~~~~~~~~~
[74/86] 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
[0/1] Planning build
Building for debugging...
[0/9] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/17] 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()
                          ^~~~~~~~~~~
[3/17] 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.10 linux

Build Machine: Linux 1