Build Information
Failed to build SwiftSimctl with Swift 5.10 for Linux.
Build Command
bash -c docker run --rm -v "checkouts-4609320-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: master
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
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at 15b11e9 Update dependency apple/swift-argument-parser to v1 (#27)
Cloned https://github.com/ctreffs/SwiftSimctl.git
Revision (git rev-parse @):
15b11e9809e5eeb6999605a5afef626eeeba434e
SUCCESS checkout https://github.com/ctreffs/SwiftSimctl.git at master
========================================
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-4609320-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-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/956] Fetching shellout
[957/6947] Fetching shellout, swifter
[2935/18373] Fetching shellout, swifter, swift-argument-parser
Fetched https://github.com/JohnSundell/ShellOut.git from cache (0.79s)
Fetched https://github.com/apple/swift-argument-parser from cache (0.79s)
Fetched https://github.com/httpswift/swifter.git from cache (0.80s)
Computing version for https://github.com/httpswift/swifter.git
Computed https://github.com/httpswift/swifter.git at 1.5.0 (0.45s)
Computing version for https://github.com/JohnSundell/ShellOut.git
Computed https://github.com/JohnSundell/ShellOut.git at 2.3.0 (1.30s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.3.0 (0.45s)
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/apple/swift-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 1.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
[1/1] Compiling plugin GenerateManual
Building for debugging...
[1/17] Write sources
[8/17] Write swift-version-24593BA9C3E375BF.txt
[10/42] Emitting module Swifter
[11/44] Emitting module ArgumentParserToolInfo
[12/44] Compiling ArgumentParserToolInfo ToolInfo.swift
[13/45] Wrapping AST for ArgumentParserToolInfo for debugging
[15/82] Compiling ArgumentParser ArgumentVisibility.swift
[16/82] Compiling ArgumentParser CompletionKind.swift
[17/82] Compiling ArgumentParser Errors.swift
[18/82] Compiling ArgumentParser Flag.swift
[19/82] Compiling ArgumentParser NameSpecification.swift
[20/87] Compiling ArgumentParser ParsableArgumentsValidation.swift
[21/87] Compiling ArgumentParser ParsableCommand.swift
[22/87] Compiling ArgumentParser OptionGroup.swift
[23/87] Compiling ArgumentParser AsyncParsableCommand.swift
[26/87] Compiling ArgumentParser Option.swift
[27/87] Compiling ArgumentParser ZshCompletionsGenerator.swift
[28/87] Compiling ArgumentParser Argument.swift
[29/87] Compiling ArgumentParser ArgumentHelp.swift
[33/87] Compiling ArgumentParser BashCompletionsGenerator.swift
[34/87] Compiling ArgumentParser CompletionsGenerator.swift
[35/87] Compiling ArgumentParser FishCompletionsGenerator.swift
[36/87] Compiling ArgumentParser CommandConfiguration.swift
[37/87] Compiling ArgumentParser EnumerableFlag.swift
[38/87] Compiling ArgumentParser ExpressibleByArgument.swift
[39/87] Compiling ArgumentParser ParsableArguments.swift
[40/88] Emitting module ShellOut
[41/88] Compiling ShellOut ShellOut.swift
[43/89] Wrapping AST for Swifter for debugging
[45/89] Emitting module SimctlShared
[46/89] Compiling SimctlShared SimctlShared.swift
[46/89] Wrapping AST for ShellOut for debugging
[49/90] Emitting module ArgumentParser
[55/90] Wrapping AST for SimctlShared for debugging
[66/92] Compiling ArgumentParser ArgumentDecoder.swift
[67/92] Compiling ArgumentParser CollectionExtensions.swift
[68/92] Compiling ArgumentParser Platform.swift
[69/92] Compiling ArgumentParser SequenceExtensions.swift
[70/92] Compiling ArgumentParser StringExtensions.swift
[71/92] Compiling ArgumentParser Tree.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[72/92] 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()
^~~~~~~~~~~
[73/92] 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
[74/92] Compiling ArgumentParser Name.swift
[75/92] Compiling ArgumentParser Parsed.swift
[76/92] Compiling ArgumentParser ParsedValues.swift
[77/92] Compiling ArgumentParser ParserError.swift
[78/92] Compiling ArgumentParser SplitArguments.swift
[0/1] Planning build
[1/1] Compiling plugin GenerateManual
Building for debugging...
[1/10] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/18] 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()
^~~~~~~~~~~
[4/18] 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