Build Information
Failed to build SwiftSimctl, reference 0.4.2 (7cda25
), with Swift 6.1 for Linux on 26 Apr 2025 20:00:30 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.61.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: 6.1
Building package at path: $PWD
https://github.com/ctreffs/SwiftSimctl.git
https://github.com/ctreffs/SwiftSimctl.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
{
"identity" : "swift-argument-parser",
"requirement" : {
"range" : [
{
"lower_bound" : "0.5.0",
"upper_bound" : "1.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-argument-parser"
},
{
"identity" : "shellout",
"requirement" : {
"range" : [
{
"lower_bound" : "2.3.0",
"upper_bound" : "3.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/JohnSundell/ShellOut.git"
},
{
"identity" : "swifter",
"requirement" : {
"range" : [
{
"lower_bound" : "1.5.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/httpswift/swifter.git"
}
],
"manifest_display_name" : "SwiftSimctl",
"name" : "SwiftSimctl",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "11.0"
},
{
"name" : "tvos",
"version" : "11.0"
},
{
"name" : "macos",
"version" : "10.12"
}
],
"products" : [
{
"name" : "SimctlCLI",
"targets" : [
"SimctlCLI"
],
"type" : {
"executable" : null
}
},
{
"name" : "Simctl",
"targets" : [
"Simctl"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"swift_languages_versions" : [
"5"
],
"targets" : [
{
"c99name" : "SimctlShared",
"module_type" : "SwiftTarget",
"name" : "SimctlShared",
"path" : "Sources/SimctlShared",
"product_memberships" : [
"SimctlCLI",
"Simctl"
],
"sources" : [
"SimctlShared.swift"
],
"type" : "library"
},
{
"c99name" : "SimctlCLI",
"module_type" : "SwiftTarget",
"name" : "SimctlCLI",
"path" : "Sources/SimctlCLI",
"product_dependencies" : [
"ShellOut",
"Swifter",
"ArgumentParser"
],
"product_memberships" : [
"SimctlCLI"
],
"sources" : [
"Commands.swift",
"ListDevices.swift",
"SimctlServer.swift",
"StartServer.swift",
"Swifter+Extensions.swift",
"main.swift"
],
"target_dependencies" : [
"SimctlShared"
],
"type" : "executable"
},
{
"c99name" : "Simctl",
"module_type" : "SwiftTarget",
"name" : "Simctl",
"path" : "Sources/Simctl",
"product_memberships" : [
"Simctl"
],
"sources" : [
"SimctlClient.swift"
],
"target_dependencies" : [
"SimctlShared"
],
"type" : "library"
}
],
"tools_version" : "5.2"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
Fetching https://github.com/JohnSundell/ShellOut.git
Fetching https://github.com/apple/swift-argument-parser
Fetching https://github.com/httpswift/swifter.git
[1/960] Fetching shellout
[961/7010] Fetching shellout, swifter
[4773/21960] Fetching shellout, swifter, swift-argument-parser
Fetched https://github.com/JohnSundell/ShellOut.git from cache (1.37s)
Fetched https://github.com/apple/swift-argument-parser from cache (1.38s)
Fetched https://github.com/httpswift/swifter.git from cache (1.39s)
Computing version for https://github.com/httpswift/swifter.git
Computed https://github.com/httpswift/swifter.git at 1.5.0 (2.08s)
Computing version for https://github.com/JohnSundell/ShellOut.git
Computed https://github.com/JohnSundell/ShellOut.git at 2.3.0 (2.27s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 0.5.0 (0.59s)
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 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
Building for debugging...
[0/16] Write sources
[7/16] Write swift-version-24593BA9C3E375BF.txt
[9/41] Emitting module Swifter
[10/43] Emitting module ArgumentParserToolInfo
[11/43] Compiling ArgumentParserToolInfo ToolInfo.swift
[12/44] Wrapping AST for ArgumentParserToolInfo for debugging
[14/78] Emitting module ArgumentParser
[15/82] Compiling ArgumentParser ArgumentSet.swift
[16/82] Compiling ArgumentParser CommandParser.swift
[17/82] Compiling ArgumentParser InputOrigin.swift
[18/82] Compiling ArgumentParser Name.swift
[19/82] Compiling ArgumentParser Parsed.swift
[20/82] Compiling ArgumentParser ArgumentHelp.swift
[21/82] Compiling ArgumentParser CompletionKind.swift
[22/82] Compiling ArgumentParser Errors.swift
[23/82] Compiling ArgumentParser Flag.swift
[24/82] Compiling ArgumentParser NameSpecification.swift
[27/82] Compiling ArgumentParser CollectionExtensions.swift
[28/82] Compiling ArgumentParser SequenceExtensions.swift
[29/82] Compiling ArgumentParser StringExtensions.swift
[30/82] Compiling ArgumentParser Tree.swift
[31/82] Compiling ArgumentParser BashCompletionsGenerator.swift
[32/82] Compiling ArgumentParser CompletionsGenerator.swift
[33/82] Compiling ArgumentParser FishCompletionsGenerator.swift
[34/82] Compiling ArgumentParser ZshCompletionsGenerator.swift
[35/82] Compiling ArgumentParser Argument.swift
[36/82] Emitting module ShellOut
[39/82] Compiling ShellOut ShellOut.swift
[40/83] Emitting module SimctlShared
[41/83] Compiling SimctlShared SimctlShared.swift
[42/84] Compiling ArgumentParser ExpressibleByArgument.swift
[50/84] Compiling ArgumentParser CommandConfiguration.swift
[51/84] Compiling ArgumentParser EnumerableFlag.swift
[56/84] Compiling ArgumentParser Option.swift
[57/84] Compiling ArgumentParser OptionGroup.swift
[59/85] Compiling ArgumentParser ParsedValues.swift
[60/85] Compiling ArgumentParser ParserError.swift
[61/85] Compiling ArgumentParser SplitArguments.swift
[62/85] Compiling ArgumentParser DumpHelpGenerator.swift
[63/85] Compiling ArgumentParser HelpCommand.swift
[64/85] Compiling ArgumentParser HelpGenerator.swift
[65/85] Compiling ArgumentParser MessageInfo.swift
[66/85] Compiling ArgumentParser UsageGenerator.swift
[68/85] Wrapping AST for ShellOut for debugging
[69/85] Wrapping AST for SimctlShared for debugging
[70/85] Wrapping AST for Swifter for debugging
[72/87] Compiling ArgumentParser ParsableArguments.swift
[73/87] Compiling ArgumentParser ParsableArgumentsValidation.swift
[74/87] Compiling ArgumentParser ParsableCommand.swift
[75/87] Compiling ArgumentParser ArgumentDecoder.swift
[76/87] Compiling ArgumentParser ArgumentDefinition.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[83/88] Emitting module Simctl
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:10:14: error: type alias 'URLSession' (aka 'AnyObject') cannot be imported as 'class'
8 | import struct Foundation.UUID
9 | import struct Foundation.Data
10 | import class Foundation.URLSession
| `- error: type alias 'URLSession' (aka 'AnyObject') cannot be imported as 'class'
11 | import SimctlShared
12 | #if canImport(UIKit)
Foundation.URLSession:2:18: note: 'URLSession' declared here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' declared here
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:17:8: error: Unsupported platform!
15 | import AppKit
16 | #else
17 | #error("Unsupported platform!")
| `- error: Unsupported platform!
18 | #endif
19 |
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:30:16: warning: static property 'host' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
28 | /// Note: if you like to use another port here, you need to provide it
29 | /// when starting up the server via the `--port` flag.
30 | static var host: Host = .localhost(port: 8080)
| |- warning: static property 'host' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'host' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'host' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
31 |
32 | let session: URLSession
/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.
30 | static var host: Host = .localhost(port: 8080)
31 |
32 | let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 | let env: SimctlClientEnvironment
34 |
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:129:32: error: cannot find type 'URL' in scope
127 | /// - Parameter url: URL to open.
128 | /// - Parameter completion: Result callback of the call. Use this to wait for an expectation to fulfill in a test case.
129 | public func openUrl(_ url: URL, completion: @escaping DataTaskCallback) {
| `- error: cannot find type 'URL' in scope
130 | dataTask(.openURL(env, URLContainer(url: url)), completion)
131 | }
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:170:51: error: cannot find type 'Bundle' in scope
168 | /// - bundle: Bundle of the app you want to interact with.
169 | /// - processInfo: The process info from where to get the device Udid.
170 | public init?(host: SimctlClient.Host, bundle: Bundle, processInfo: ProcessInfo) {
| `- error: cannot find type 'Bundle' in scope
171 | guard let udid = Self.deviceId(processInfo) else {
172 | return nil
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:170:72: error: cannot find type 'ProcessInfo' in scope
168 | /// - bundle: Bundle of the app you want to interact with.
169 | /// - processInfo: The process info from where to get the device Udid.
170 | public init?(host: SimctlClient.Host, bundle: Bundle, processInfo: ProcessInfo) {
| `- error: cannot find type 'ProcessInfo' in scope
171 | guard let udid = Self.deviceId(processInfo) else {
172 | return nil
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:194:41: error: cannot find type 'ProcessInfo' in scope
192 | }
193 |
194 | static func deviceId(_ processInfo: ProcessInfo) -> UUID? {
| `- error: cannot find type 'ProcessInfo' in scope
195 | guard let udidString = processInfo.environment[ProcessEnvironmentKey.simulatorUdid.rawValue] else {
196 | return nil
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:251:46: error: cannot find type 'HTTPURLResponse' in scope
249 | public enum Error: Swift.Error {
250 | case noHttpResponse(Route)
251 | case unexpectedHttpStatusCode(Route, HTTPURLResponse)
| `- error: cannot find type 'HTTPURLResponse' in scope
252 | case noData(Route, HTTPURLResponse)
253 | case serviceError(Swift.Error)
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:252:28: error: cannot find type 'HTTPURLResponse' in scope
250 | case noHttpResponse(Route)
251 | case unexpectedHttpStatusCode(Route, HTTPURLResponse)
252 | case noData(Route, HTTPURLResponse)
| `- error: cannot find type 'HTTPURLResponse' in scope
253 | case serviceError(Swift.Error)
254 | }
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:250:14: warning: associated value 'noHttpResponse' of 'Sendable'-conforming enum 'Error' has non-sendable type 'SimctlClient.Route'; this is an error in the Swift 6 language mode
248 | extension SimctlClient {
249 | public enum Error: Swift.Error {
250 | case noHttpResponse(Route)
| `- warning: associated value 'noHttpResponse' of 'Sendable'-conforming enum 'Error' has non-sendable type 'SimctlClient.Route'; this is an error in the Swift 6 language mode
251 | case unexpectedHttpStatusCode(Route, HTTPURLResponse)
252 | case noData(Route, HTTPURLResponse)
:
257 | // MARK: - Routing
258 | extension SimctlClient {
259 | public enum Route {
| `- note: consider making enum 'Route' conform to the 'Sendable' protocol
260 | case sendPushNotification(SimctlClientEnvironment, PushNotificationContent)
261 | case setPrivacy(SimctlClientEnvironment, PrivacyAction, PrivacyService)
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:251:14: warning: associated value 'unexpectedHttpStatusCode' of 'Sendable'-conforming enum 'Error' has non-sendable type 'SimctlClient.Route'; this is an error in the Swift 6 language mode
249 | public enum Error: Swift.Error {
250 | case noHttpResponse(Route)
251 | case unexpectedHttpStatusCode(Route, HTTPURLResponse)
| `- warning: associated value 'unexpectedHttpStatusCode' of 'Sendable'-conforming enum 'Error' has non-sendable type 'SimctlClient.Route'; this is an error in the Swift 6 language mode
252 | case noData(Route, HTTPURLResponse)
253 | case serviceError(Swift.Error)
:
257 | // MARK: - Routing
258 | extension SimctlClient {
259 | public enum Route {
| `- note: consider making enum 'Route' conform to the 'Sendable' protocol
260 | case sendPushNotification(SimctlClientEnvironment, PushNotificationContent)
261 | case setPrivacy(SimctlClientEnvironment, PrivacyAction, PrivacyService)
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:252:14: warning: associated value 'noData' of 'Sendable'-conforming enum 'Error' has non-sendable type 'SimctlClient.Route'; this is an error in the Swift 6 language mode
250 | case noHttpResponse(Route)
251 | case unexpectedHttpStatusCode(Route, HTTPURLResponse)
252 | case noData(Route, HTTPURLResponse)
| `- warning: associated value 'noData' of 'Sendable'-conforming enum 'Error' has non-sendable type 'SimctlClient.Route'; this is an error in the Swift 6 language mode
253 | case serviceError(Swift.Error)
254 | }
:
257 | // MARK: - Routing
258 | extension SimctlClient {
259 | public enum Route {
| `- note: consider making enum 'Route' conform to the 'Sendable' protocol
260 | case sendPushNotification(SimctlClientEnvironment, PushNotificationContent)
261 | case setPrivacy(SimctlClientEnvironment, PrivacyAction, PrivacyService)
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:405:25: error: cannot find type 'URL' in scope
403 | }
404 |
405 | func asURL() -> URL {
| `- error: cannot find type 'URL' in scope
406 | let urlString: String = SimctlClient.host.host + path.rawValue
407 | guard let url = URL(string: urlString) else {
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:414:32: error: cannot find type 'URLRequest' in scope
412 | }
413 |
414 | func asURLRequest() -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
415 | var request = URLRequest(url: asURL())
416 |
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:379:27: error: cannot find 'JSONEncoder' in scope
377 |
378 | @inlinable var httpBody: Data? {
379 | let encoder = JSONEncoder()
| `- error: cannot find 'JSONEncoder' in scope
380 | switch self {
381 | case let .sendPushNotification(_, notification):
[84/88] 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'
8 | import struct Foundation.UUID
9 | import struct Foundation.Data
10 | import class Foundation.URLSession
| `- error: type alias 'URLSession' (aka 'AnyObject') cannot be imported as 'class'
11 | import SimctlShared
12 | #if canImport(UIKit)
Foundation.URLSession:2:18: note: 'URLSession' declared here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' declared here
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:17:8: error: Unsupported platform!
15 | import AppKit
16 | #else
17 | #error("Unsupported platform!")
| `- error: Unsupported platform!
18 | #endif
19 |
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:30:16: warning: static property 'host' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
28 | /// Note: if you like to use another port here, you need to provide it
29 | /// when starting up the server via the `--port` flag.
30 | static var host: Host = .localhost(port: 8080)
| |- warning: static property 'host' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'host' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'host' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
31 |
32 | let session: URLSession
/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.
30 | static var host: Host = .localhost(port: 8080)
31 |
32 | let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 | let env: SimctlClientEnvironment
34 |
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:129:32: error: cannot find type 'URL' in scope
127 | /// - Parameter url: URL to open.
128 | /// - Parameter completion: Result callback of the call. Use this to wait for an expectation to fulfill in a test case.
129 | public func openUrl(_ url: URL, completion: @escaping DataTaskCallback) {
| `- error: cannot find type 'URL' in scope
130 | dataTask(.openURL(env, URLContainer(url: url)), completion)
131 | }
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:170:51: error: cannot find type 'Bundle' in scope
168 | /// - bundle: Bundle of the app you want to interact with.
169 | /// - processInfo: The process info from where to get the device Udid.
170 | public init?(host: SimctlClient.Host, bundle: Bundle, processInfo: ProcessInfo) {
| `- error: cannot find type 'Bundle' in scope
171 | guard let udid = Self.deviceId(processInfo) else {
172 | return nil
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:170:72: error: cannot find type 'ProcessInfo' in scope
168 | /// - bundle: Bundle of the app you want to interact with.
169 | /// - processInfo: The process info from where to get the device Udid.
170 | public init?(host: SimctlClient.Host, bundle: Bundle, processInfo: ProcessInfo) {
| `- error: cannot find type 'ProcessInfo' in scope
171 | guard let udid = Self.deviceId(processInfo) else {
172 | return nil
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:194:41: error: cannot find type 'ProcessInfo' in scope
192 | }
193 |
194 | static func deviceId(_ processInfo: ProcessInfo) -> UUID? {
| `- error: cannot find type 'ProcessInfo' in scope
195 | guard let udidString = processInfo.environment[ProcessEnvironmentKey.simulatorUdid.rawValue] else {
196 | return nil
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:251:46: error: cannot find type 'HTTPURLResponse' in scope
249 | public enum Error: Swift.Error {
250 | case noHttpResponse(Route)
251 | case unexpectedHttpStatusCode(Route, HTTPURLResponse)
| `- error: cannot find type 'HTTPURLResponse' in scope
252 | case noData(Route, HTTPURLResponse)
253 | case serviceError(Swift.Error)
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:252:28: error: cannot find type 'HTTPURLResponse' in scope
250 | case noHttpResponse(Route)
251 | case unexpectedHttpStatusCode(Route, HTTPURLResponse)
252 | case noData(Route, HTTPURLResponse)
| `- error: cannot find type 'HTTPURLResponse' in scope
253 | case serviceError(Swift.Error)
254 | }
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:250:14: warning: associated value 'noHttpResponse' of 'Sendable'-conforming enum 'Error' has non-sendable type 'SimctlClient.Route'; this is an error in the Swift 6 language mode
248 | extension SimctlClient {
249 | public enum Error: Swift.Error {
250 | case noHttpResponse(Route)
| `- warning: associated value 'noHttpResponse' of 'Sendable'-conforming enum 'Error' has non-sendable type 'SimctlClient.Route'; this is an error in the Swift 6 language mode
251 | case unexpectedHttpStatusCode(Route, HTTPURLResponse)
252 | case noData(Route, HTTPURLResponse)
:
257 | // MARK: - Routing
258 | extension SimctlClient {
259 | public enum Route {
| `- note: consider making enum 'Route' conform to the 'Sendable' protocol
260 | case sendPushNotification(SimctlClientEnvironment, PushNotificationContent)
261 | case setPrivacy(SimctlClientEnvironment, PrivacyAction, PrivacyService)
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:251:14: warning: associated value 'unexpectedHttpStatusCode' of 'Sendable'-conforming enum 'Error' has non-sendable type 'SimctlClient.Route'; this is an error in the Swift 6 language mode
249 | public enum Error: Swift.Error {
250 | case noHttpResponse(Route)
251 | case unexpectedHttpStatusCode(Route, HTTPURLResponse)
| `- warning: associated value 'unexpectedHttpStatusCode' of 'Sendable'-conforming enum 'Error' has non-sendable type 'SimctlClient.Route'; this is an error in the Swift 6 language mode
252 | case noData(Route, HTTPURLResponse)
253 | case serviceError(Swift.Error)
:
257 | // MARK: - Routing
258 | extension SimctlClient {
259 | public enum Route {
| `- note: consider making enum 'Route' conform to the 'Sendable' protocol
260 | case sendPushNotification(SimctlClientEnvironment, PushNotificationContent)
261 | case setPrivacy(SimctlClientEnvironment, PrivacyAction, PrivacyService)
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:252:14: warning: associated value 'noData' of 'Sendable'-conforming enum 'Error' has non-sendable type 'SimctlClient.Route'; this is an error in the Swift 6 language mode
250 | case noHttpResponse(Route)
251 | case unexpectedHttpStatusCode(Route, HTTPURLResponse)
252 | case noData(Route, HTTPURLResponse)
| `- warning: associated value 'noData' of 'Sendable'-conforming enum 'Error' has non-sendable type 'SimctlClient.Route'; this is an error in the Swift 6 language mode
253 | case serviceError(Swift.Error)
254 | }
:
257 | // MARK: - Routing
258 | extension SimctlClient {
259 | public enum Route {
| `- note: consider making enum 'Route' conform to the 'Sendable' protocol
260 | case sendPushNotification(SimctlClientEnvironment, PushNotificationContent)
261 | case setPrivacy(SimctlClientEnvironment, PrivacyAction, PrivacyService)
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:405:25: error: cannot find type 'URL' in scope
403 | }
404 |
405 | func asURL() -> URL {
| `- error: cannot find type 'URL' in scope
406 | let urlString: String = SimctlClient.host.host + path.rawValue
407 | guard let url = URL(string: urlString) else {
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:414:32: error: cannot find type 'URLRequest' in scope
412 | }
413 |
414 | func asURLRequest() -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
415 | var request = URLRequest(url: asURL())
416 |
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:43:19: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
41 | /// Start client in a given environment.
42 | public init(environment: SimctlClientEnvironment) {
43 | session = URLSession(configuration: .default)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
44 | Self.host = environment.host
45 | self.env = environment
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:43:46: error: cannot infer contextual base in reference to member 'default'
41 | /// Start client in a given environment.
42 | public init(environment: SimctlClientEnvironment) {
43 | session = URLSession(configuration: .default)
| `- error: cannot infer contextual base in reference to member 'default'
44 | Self.host = environment.host
45 | self.env = environment
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:188:40: error: cannot find 'ProcessInfo' in scope
186 | /// - host: The host and port of the SimctlCLI server.
187 | public init?(bundleIdentifier: String, host: SimctlClient.Host) {
188 | guard let udid = Self.deviceId(ProcessInfo()) else {
| `- error: cannot find 'ProcessInfo' in scope
189 | return nil
190 | }
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:379:27: error: cannot find 'JSONEncoder' in scope
377 |
378 | @inlinable var httpBody: Data? {
379 | let encoder = JSONEncoder()
| `- error: cannot find 'JSONEncoder' in scope
380 | switch self {
381 | case let .sendPushNotification(_, notification):
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:407:29: error: cannot find 'URL' in scope
405 | func asURL() -> URL {
406 | let urlString: String = SimctlClient.host.host + path.rawValue
407 | guard let url = URL(string: urlString) else {
| `- error: cannot find 'URL' in scope
408 | fatalError("no valid url \(urlString)")
409 | }
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:415:27: error: cannot find 'URLRequest' in scope
413 |
414 | func asURLRequest() -> URLRequest {
415 | var request = URLRequest(url: asURL())
| `- error: cannot find 'URLRequest' in scope
416 |
417 | request.httpMethod = httpMethod.rawValue
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:444:35: error: cannot find 'JSONDecoder' in scope
442 | case let .success(data):
443 | do {
444 | let decoder = JSONDecoder()
| `- error: cannot find 'JSONDecoder' in scope
445 | let value: Value = try decoder.decode(Value.self, from: data)
446 | completion(.success(value))
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:462:50: error: cannot find type 'HTTPURLResponse' in scope
460 | }
461 |
462 | guard let response = urlResponse as? HTTPURLResponse else {
| `- error: cannot find type 'HTTPURLResponse' in scope
463 | completion(.failure(Error.noHttpResponse(route)))
464 | return
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:456:28: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
454 |
455 | func dataTask(_ route: Route, _ completion: @escaping DataTaskCallback) {
456 | let task = session.dataTask(with: route.asURLRequest()) { data, urlResponse, error in
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
457 | if let error = error {
458 | completion(.failure(Error.serviceError(error)))
[84/88] Wrapping AST for ArgumentParser for debugging
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
[0/1] Planning build
Building for debugging...
[0/9] Write swift-version-24593BA9C3E375BF.txt
[2/34] Emitting module ShellOut
[3/34] Compiling ShellOut ShellOut.swift
[5/34] Compiling Swifter Socket+File.swift
[6/34] Compiling Swifter Socket+Server.swift
[7/36] Compiling Swifter String+File.swift
[8/36] Compiling Swifter String+Misc.swift
[9/36] Emitting module SimctlShared
[10/36] Compiling SimctlShared SimctlShared.swift
[11/37] Compiling Swifter Socket.swift
[12/37] Compiling Swifter String+BASE64.swift
[13/37] Emitting module ArgumentParserToolInfo
[14/37] Compiling ArgumentParserToolInfo ToolInfo.swift
[17/38] Compiling Swifter DemoServer.swift
[18/38] Compiling Swifter Errno.swift
[19/38] Compiling Swifter Files.swift
[20/38] Emitting module Swifter
[21/38] Compiling Swifter HttpParser.swift
[22/38] Compiling Swifter HttpRequest.swift
[23/38] Compiling Swifter HttpResponse.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[24/72] Emitting module Simctl
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:10:14: error: type alias 'URLSession' (aka 'AnyObject') cannot be imported as 'class'
8 | import struct Foundation.UUID
9 | import struct Foundation.Data
10 | import class Foundation.URLSession
| `- error: type alias 'URLSession' (aka 'AnyObject') cannot be imported as 'class'
11 | import SimctlShared
12 | #if canImport(UIKit)
Foundation.URLSession:2:18: note: 'URLSession' declared here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' declared here
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:17:8: error: Unsupported platform!
15 | import AppKit
16 | #else
17 | #error("Unsupported platform!")
| `- error: Unsupported platform!
18 | #endif
19 |
/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.
30 | static var host: Host = .localhost(port: 8080)
31 |
32 | let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 | let env: SimctlClientEnvironment
34 |
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:129:32: error: cannot find type 'URL' in scope
127 | /// - Parameter url: URL to open.
128 | /// - Parameter completion: Result callback of the call. Use this to wait for an expectation to fulfill in a test case.
129 | public func openUrl(_ url: URL, completion: @escaping DataTaskCallback) {
| `- error: cannot find type 'URL' in scope
130 | dataTask(.openURL(env, URLContainer(url: url)), completion)
131 | }
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:170:51: error: cannot find type 'Bundle' in scope
168 | /// - bundle: Bundle of the app you want to interact with.
169 | /// - processInfo: The process info from where to get the device Udid.
170 | public init?(host: SimctlClient.Host, bundle: Bundle, processInfo: ProcessInfo) {
| `- error: cannot find type 'Bundle' in scope
171 | guard let udid = Self.deviceId(processInfo) else {
172 | return nil
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:170:72: error: cannot find type 'ProcessInfo' in scope
168 | /// - bundle: Bundle of the app you want to interact with.
169 | /// - processInfo: The process info from where to get the device Udid.
170 | public init?(host: SimctlClient.Host, bundle: Bundle, processInfo: ProcessInfo) {
| `- error: cannot find type 'ProcessInfo' in scope
171 | guard let udid = Self.deviceId(processInfo) else {
172 | return nil
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:194:41: error: cannot find type 'ProcessInfo' in scope
192 | }
193 |
194 | static func deviceId(_ processInfo: ProcessInfo) -> UUID? {
| `- error: cannot find type 'ProcessInfo' in scope
195 | guard let udidString = processInfo.environment[ProcessEnvironmentKey.simulatorUdid.rawValue] else {
196 | return nil
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:251:46: error: cannot find type 'HTTPURLResponse' in scope
249 | public enum Error: Swift.Error {
250 | case noHttpResponse(Route)
251 | case unexpectedHttpStatusCode(Route, HTTPURLResponse)
| `- error: cannot find type 'HTTPURLResponse' in scope
252 | case noData(Route, HTTPURLResponse)
253 | case serviceError(Swift.Error)
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:252:28: error: cannot find type 'HTTPURLResponse' in scope
250 | case noHttpResponse(Route)
251 | case unexpectedHttpStatusCode(Route, HTTPURLResponse)
252 | case noData(Route, HTTPURLResponse)
| `- error: cannot find type 'HTTPURLResponse' in scope
253 | case serviceError(Swift.Error)
254 | }
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:405:25: error: cannot find type 'URL' in scope
403 | }
404 |
405 | func asURL() -> URL {
| `- error: cannot find type 'URL' in scope
406 | let urlString: String = SimctlClient.host.host + path.rawValue
407 | guard let url = URL(string: urlString) else {
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:414:32: error: cannot find type 'URLRequest' in scope
412 | }
413 |
414 | func asURLRequest() -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
415 | var request = URLRequest(url: asURL())
416 |
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:379:27: error: cannot find 'JSONEncoder' in scope
377 |
378 | @inlinable var httpBody: Data? {
379 | let encoder = JSONEncoder()
| `- error: cannot find 'JSONEncoder' in scope
380 | switch self {
381 | case let .sendPushNotification(_, notification):
[25/72] 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'
8 | import struct Foundation.UUID
9 | import struct Foundation.Data
10 | import class Foundation.URLSession
| `- error: type alias 'URLSession' (aka 'AnyObject') cannot be imported as 'class'
11 | import SimctlShared
12 | #if canImport(UIKit)
Foundation.URLSession:2:18: note: 'URLSession' declared here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' declared here
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:17:8: error: Unsupported platform!
15 | import AppKit
16 | #else
17 | #error("Unsupported platform!")
| `- error: Unsupported platform!
18 | #endif
19 |
/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.
30 | static var host: Host = .localhost(port: 8080)
31 |
32 | let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 | let env: SimctlClientEnvironment
34 |
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:129:32: error: cannot find type 'URL' in scope
127 | /// - Parameter url: URL to open.
128 | /// - Parameter completion: Result callback of the call. Use this to wait for an expectation to fulfill in a test case.
129 | public func openUrl(_ url: URL, completion: @escaping DataTaskCallback) {
| `- error: cannot find type 'URL' in scope
130 | dataTask(.openURL(env, URLContainer(url: url)), completion)
131 | }
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:170:51: error: cannot find type 'Bundle' in scope
168 | /// - bundle: Bundle of the app you want to interact with.
169 | /// - processInfo: The process info from where to get the device Udid.
170 | public init?(host: SimctlClient.Host, bundle: Bundle, processInfo: ProcessInfo) {
| `- error: cannot find type 'Bundle' in scope
171 | guard let udid = Self.deviceId(processInfo) else {
172 | return nil
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:170:72: error: cannot find type 'ProcessInfo' in scope
168 | /// - bundle: Bundle of the app you want to interact with.
169 | /// - processInfo: The process info from where to get the device Udid.
170 | public init?(host: SimctlClient.Host, bundle: Bundle, processInfo: ProcessInfo) {
| `- error: cannot find type 'ProcessInfo' in scope
171 | guard let udid = Self.deviceId(processInfo) else {
172 | return nil
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:194:41: error: cannot find type 'ProcessInfo' in scope
192 | }
193 |
194 | static func deviceId(_ processInfo: ProcessInfo) -> UUID? {
| `- error: cannot find type 'ProcessInfo' in scope
195 | guard let udidString = processInfo.environment[ProcessEnvironmentKey.simulatorUdid.rawValue] else {
196 | return nil
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:251:46: error: cannot find type 'HTTPURLResponse' in scope
249 | public enum Error: Swift.Error {
250 | case noHttpResponse(Route)
251 | case unexpectedHttpStatusCode(Route, HTTPURLResponse)
| `- error: cannot find type 'HTTPURLResponse' in scope
252 | case noData(Route, HTTPURLResponse)
253 | case serviceError(Swift.Error)
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:252:28: error: cannot find type 'HTTPURLResponse' in scope
250 | case noHttpResponse(Route)
251 | case unexpectedHttpStatusCode(Route, HTTPURLResponse)
252 | case noData(Route, HTTPURLResponse)
| `- error: cannot find type 'HTTPURLResponse' in scope
253 | case serviceError(Swift.Error)
254 | }
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:405:25: error: cannot find type 'URL' in scope
403 | }
404 |
405 | func asURL() -> URL {
| `- error: cannot find type 'URL' in scope
406 | let urlString: String = SimctlClient.host.host + path.rawValue
407 | guard let url = URL(string: urlString) else {
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:414:32: error: cannot find type 'URLRequest' in scope
412 | }
413 |
414 | func asURLRequest() -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
415 | var request = URLRequest(url: asURL())
416 |
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:43:19: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
41 | /// Start client in a given environment.
42 | public init(environment: SimctlClientEnvironment) {
43 | session = URLSession(configuration: .default)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
44 | Self.host = environment.host
45 | self.env = environment
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:43:46: error: cannot infer contextual base in reference to member 'default'
41 | /// Start client in a given environment.
42 | public init(environment: SimctlClientEnvironment) {
43 | session = URLSession(configuration: .default)
| `- error: cannot infer contextual base in reference to member 'default'
44 | Self.host = environment.host
45 | self.env = environment
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:188:40: error: cannot find 'ProcessInfo' in scope
186 | /// - host: The host and port of the SimctlCLI server.
187 | public init?(bundleIdentifier: String, host: SimctlClient.Host) {
188 | guard let udid = Self.deviceId(ProcessInfo()) else {
| `- error: cannot find 'ProcessInfo' in scope
189 | return nil
190 | }
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:379:27: error: cannot find 'JSONEncoder' in scope
377 |
378 | @inlinable var httpBody: Data? {
379 | let encoder = JSONEncoder()
| `- error: cannot find 'JSONEncoder' in scope
380 | switch self {
381 | case let .sendPushNotification(_, notification):
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:407:29: error: cannot find 'URL' in scope
405 | func asURL() -> URL {
406 | let urlString: String = SimctlClient.host.host + path.rawValue
407 | guard let url = URL(string: urlString) else {
| `- error: cannot find 'URL' in scope
408 | fatalError("no valid url \(urlString)")
409 | }
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:415:27: error: cannot find 'URLRequest' in scope
413 |
414 | func asURLRequest() -> URLRequest {
415 | var request = URLRequest(url: asURL())
| `- error: cannot find 'URLRequest' in scope
416 |
417 | request.httpMethod = httpMethod.rawValue
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:444:35: error: cannot find 'JSONDecoder' in scope
442 | case let .success(data):
443 | do {
444 | let decoder = JSONDecoder()
| `- error: cannot find 'JSONDecoder' in scope
445 | let value: Value = try decoder.decode(Value.self, from: data)
446 | completion(.success(value))
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:462:50: error: cannot find type 'HTTPURLResponse' in scope
460 | }
461 |
462 | guard let response = urlResponse as? HTTPURLResponse else {
| `- error: cannot find type 'HTTPURLResponse' in scope
463 | completion(.failure(Error.noHttpResponse(route)))
464 | return
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:456:28: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
454 |
455 | func dataTask(_ route: Route, _ completion: @escaping DataTaskCallback) {
456 | let task = session.dataTask(with: route.asURLRequest()) { data, urlResponse, error in
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
457 | if let error = error {
458 | completion(.failure(Error.serviceError(error)))
[26/72] Compiling ArgumentParser CompletionKind.swift
[27/72] Compiling ArgumentParser Errors.swift
[28/72] Compiling ArgumentParser Flag.swift
BUILD FAILURE 6.1 linux