Build Information
Failed to build SwiftSimctl, reference 0.4.2 (7cda25), with Swift 6.4 for Linux on 18 Sep 2026 03:54:18 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-54344844-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:basic-6.4-latest swift build --triple x86_64-unknown-linux-gnu 2>&1Build Log
========================================
RunAll
========================================
Builder version: 5.1.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.4
Building package at path: $PWD
https://github.com/ctreffs/SwiftSimctl.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344844-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:basic-6.4-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.4-latest: Pulling from saguaro1/spi-images
Digest: sha256:c77fcce225e223ac0fafed844619173fc6de8d62dd560eeb28db3182af6a282b
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:basic-6.4-latest
Fetching https://github.com/httpswift/swifter.git
Fetching https://github.com/JohnSundell/ShellOut.git
Fetching https://github.com/apple/swift-argument-parser
[1/6050] Fetching swifter
[788/7030] Fetching swifter, shellout
Fetched https://github.com/JohnSundell/ShellOut.git (0.51s)
[1634/6050] Fetching swifter
[1877/24954] Fetching swifter, swift-argument-parser
Fetched https://github.com/httpswift/swifter.git (0.77s)
Fetched https://github.com/apple/swift-argument-parser (0.77s)
Computing version for https://github.com/httpswift/swifter.git
Computed https://github.com/httpswift/swifter.git at 1.5.0 (0.96s)
Computing version for https://github.com/JohnSundell/ShellOut.git
Computed https://github.com/JohnSundell/ShellOut.git at 2.3.0 (1.06s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 0.5.0 (0.20s)
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
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
Building for debugging...
[Provisioning 3 / 12]
[Pre-planning 1 / 243]
[Starting]
[65 / 118] Swifter
[65 / 118] ShellOut
[83 / 118] Swifter
[83 / 118] ArgumentParserToolInfo
[86 / 119] Swifter
[104 / 133] ShellOut
error: SwiftCompile normal x86_64 failed with a nonzero exit code. Command line: cd /host
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:17:8: [1;31merror: [1;39mUnsupported platform![0;0m
[0;36m15 |[0;0m import AppKit
[0;36m16 |[0;0m #else
[0;36m17 |[0;0m #error([4;39m"Unsupported platform!"[0;0m)
[0;36m|[0;0m `- [1;31merror: [1;39mUnsupported platform![0;0m
[0;36m18 |[0;0m #endif
[0;36m19 |[0;0m
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:10:14: [1;31merror: [1;39mtype alias 'URLSession' (aka 'AnyObject') cannot be imported as 'class'[0;0m
[0;36m8 |[0;0m import struct Foundation.UUID
[0;36m9 |[0;0m import struct Foundation.Data
[0;36m10 |[0;0m import class Foundation.URLSession
[0;36m|[0;0m `- [1;31merror: [1;39mtype alias 'URLSession' (aka 'AnyObject') cannot be imported as 'class'[0;0m
[0;36m11 |[0;0m import SimctlShared
[0;36m12 |[0;0m #if canImport(UIKit)
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' declared here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' declared here[0;0m
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:32:18: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m30 |[0;0m static var host: Host = .localhost(port: 8080)
[0;36m31 |[0;0m
[0;36m32 |[0;0m let session: [4;39mURLSession[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m33 |[0;0m let env: SimctlClientEnvironment
[0;36m34 |[0;0m
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:129:32: [1;31merror: [1;39mcannot find type 'URL' in scope[0;0m
[0;36m127 |[0;0m /// - Parameter url: URL to open.
[0;36m128 |[0;0m /// - Parameter completion: Result callback of the call. Use this to wait for an expectation to fulfill in a test case.
[0;36m129 |[0;0m public func openUrl(_ url: [4;39mURL[0;0m, completion: @escaping DataTaskCallback) {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URL' in scope[0;0m
[0;36m130 |[0;0m dataTask(.openURL(env, URLContainer(url: url)), completion)
[0;36m131 |[0;0m }
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:170:51: [1;31merror: [1;39mcannot find type 'Bundle' in scope[0;0m
[0;36m168 |[0;0m /// - bundle: Bundle of the app you want to interact with.
[0;36m169 |[0;0m /// - processInfo: The process info from where to get the device Udid.
[0;36m170 |[0;0m public init?(host: SimctlClient.Host, bundle: [4;39mBundle[0;0m, processInfo: ProcessInfo) {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'Bundle' in scope[0;0m
[0;36m171 |[0;0m guard let udid = Self.deviceId(processInfo) else {
[0;36m172 |[0;0m return nil
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:170:72: [1;31merror: [1;39mcannot find type 'ProcessInfo' in scope[0;0m
[0;36m168 |[0;0m /// - bundle: Bundle of the app you want to interact with.
[0;36m169 |[0;0m /// - processInfo: The process info from where to get the device Udid.
[0;36m170 |[0;0m public init?(host: SimctlClient.Host, bundle: Bundle, processInfo: [4;39mProcessInfo[0;0m) {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'ProcessInfo' in scope[0;0m
[0;36m171 |[0;0m guard let udid = Self.deviceId(processInfo) else {
[0;36m172 |[0;0m return nil
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:194:41: [1;31merror: [1;39mcannot find type 'ProcessInfo' in scope[0;0m
[0;36m192 |[0;0m }
[0;36m193 |[0;0m
[0;36m194 |[0;0m static func deviceId(_ processInfo: [4;39mProcessInfo[0;0m) -> UUID? {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'ProcessInfo' in scope[0;0m
[0;36m195 |[0;0m guard let udidString = processInfo.environment[ProcessEnvironmentKey.simulatorUdid.rawValue] else {
[0;36m196 |[0;0m return nil
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:251:46: [1;31merror: [1;39mcannot find type 'HTTPURLResponse' in scope[0;0m
[0;36m249 |[0;0m public enum Error: Swift.Error {
[0;36m250 |[0;0m case noHttpResponse(Route)
[0;36m251 |[0;0m case unexpectedHttpStatusCode(Route, [4;39mHTTPURLResponse[0;0m)
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'HTTPURLResponse' in scope[0;0m
[0;36m252 |[0;0m case noData(Route, HTTPURLResponse)
[0;36m253 |[0;0m case serviceError(Swift.Error)
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:252:28: [1;31merror: [1;39mcannot find type 'HTTPURLResponse' in scope[0;0m
[0;36m250 |[0;0m case noHttpResponse(Route)
[0;36m251 |[0;0m case unexpectedHttpStatusCode(Route, HTTPURLResponse)
[0;36m252 |[0;0m case noData(Route, [4;39mHTTPURLResponse[0;0m)
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'HTTPURLResponse' in scope[0;0m
[0;36m253 |[0;0m case serviceError(Swift.Error)
[0;36m254 |[0;0m }
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:405:25: [1;31merror: [1;39mcannot find type 'URL' in scope[0;0m
[0;36m403 |[0;0m }
[0;36m404 |[0;0m
[0;36m405 |[0;0m func asURL() -> [4;39mURL[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URL' in scope[0;0m
[0;36m406 |[0;0m let urlString: String = SimctlClient.host.host + path.rawValue
[0;36m407 |[0;0m guard let url = URL(string: urlString) else {
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:414:32: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m412 |[0;0m }
[0;36m413 |[0;0m
[0;36m414 |[0;0m func asURLRequest() -> [4;39mURLRequest[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m415 |[0;0m var request = URLRequest(url: asURL())
[0;36m416 |[0;0m
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:379:27: [1;31merror: [1;39mcannot find 'JSONEncoder' in scope[0;0m
[0;36m377 |[0;0m
[0;36m378 |[0;0m @inlinable var httpBody: Data? {
[0;36m379 |[0;0m let encoder = [4;39mJSONEncoder[0;0m()
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find 'JSONEncoder' in scope[0;0m
[0;36m380 |[0;0m switch self {
[0;36m381 |[0;0m case let .sendPushNotification(_, notification):
Failed frontend command:
/usr/bin/swift-frontend -frontend -emit-module -experimental-skip-non-inlinable-function-bodies-without-types /host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift -target x86_64-unknown-linux-gnu -disable-objc-interop -I /host/spi-builder-workspace/.build/out/Products/Debug-linux-x86_64 -module-cache-path /host/spi-builder-workspace/.build/out/ModuleCache.noindex -color-diagnostics -Xcc -fcolor-diagnostics -enable-testing -g -debug-info-format\=dwarf -dwarf-version\=4 -swift-version 5 -Onone -D SWIFT_PACKAGE -D DEBUG -D SWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE -D Xcode -serialize-debugging-options -enable-experimental-feature DebugDescriptionMacro -empty-abi-descriptor -external-plugin-path /usr/lib/swift/host/plugins/testing\#/usr/bin/swift-plugin-server -validate-clang-modules-once -clang-build-session-file /host/spi-builder-workspace/.build/out/ModuleCache.noindex/Session.modulevalidation -Xcc -working-directory -Xcc /host -enable-anonymous-context-mangled-names -file-compilation-dir /host -Xcc -fno-omit-frame-pointer -Xcc -D_LIBCPP_HARDENING_MODE\=_LIBCPP_HARDENING_MODE_DEBUG -Xcc -fmodules-prune-interval\=86400 -Xcc -fmodules-prune-after\=345600 -Xcc -I/host/spi-builder-workspace/.build/out/Products/Debug-linux-x86_64/include -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftSimctl.build/Debug-linux-x86_64/Simctl-t.build/DerivedSources-normal/x86_64 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftSimctl.build/Debug-linux-x86_64/Simctl-t.build/DerivedSources/x86_64 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftSimctl.build/Debug-linux-x86_64/Simctl-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name Simctl -const-gather-protocols-file /host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftSimctl.build/Debug-linux-x86_64/Simctl-t.build/Objects-normal/x86_64/Simctl_const_extract_protocols.json -in-process-plugin-server-path /usr/lib/swift/host/libSwiftInProcPluginServer.so -plugin-path /usr/lib/swift/host/plugins -plugin-path /usr/local/lib/swift/host/plugins -emit-module-doc-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftSimctl.build/Debug-linux-x86_64/Simctl-t.build/Objects-normal/x86_64/Modules/Simctl.swiftdoc -emit-module-source-info-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftSimctl.build/Debug-linux-x86_64/Simctl-t.build/Objects-normal/x86_64/Modules/Simctl.swiftsourceinfo -emit-objc-header-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftSimctl.build/Debug-linux-x86_64/Simctl-t.build/Objects-normal/x86_64/Simctl-Swift.h -serialize-diagnostics-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftSimctl.build/Debug-linux-x86_64/Simctl-t.build/Objects-normal/x86_64/Simctl-primary-emit-module.dia -emit-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftSimctl.build/Debug-linux-x86_64/Simctl-t.build/Objects-normal/x86_64/Simctl-primary-emit-module.d -parse-as-library -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftSimctl.build/Debug-linux-x86_64/Simctl-t.build/Objects-normal/x86_64/Modules/Simctl.swiftmodule
error: Build failed
BUILD FAILURE 6.4 linux