Build Information
Failed to build swift-tailscale-client, reference main (6602dd), with Swift 6.3 for Wasm on 28 Sep 2026 08:44:12 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-54344845-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:wasm-6.3-latest swift build --swift-sdk swift-6.3.2-RELEASE_wasm 2>&1Build Log
========================================
RunAll
========================================
Builder version: 5.1.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/dweekly/swift-tailscale-client.git
Reference: main
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/dweekly/swift-tailscale-client
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 6602ddc Re-pin upstream LocalAPI capability to 148 (#42)
Cloned https://github.com/dweekly/swift-tailscale-client.git
Revision (git rev-parse @):
6602ddc8454ec7b5221b7df0d0816fce52b0283d
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/dweekly/swift-tailscale-client.git at main
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.3
Building package at path: $PWD
https://github.com/dweekly/swift-tailscale-client.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344845-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:wasm-6.3-latest swift build --swift-sdk swift-6.3.2-RELEASE_wasm 2>&1
wasm-6.3-latest: Pulling from saguaro1/spi-images
Digest: sha256:253aad7f5b11d25cf9eaef34120b94cd8a325782929c57fb304a7711494a3f9a
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.3-latest
Fetching https://github.com/swiftlang/swift-docc-plugin
Fetching https://github.com/apple/swift-argument-parser
[1/2345] Fetching swift-docc-plugin
[2346/21293] Fetching swift-docc-plugin, swift-argument-parser
Fetched https://github.com/swiftlang/swift-docc-plugin from cache (1.37s)
Fetched https://github.com/apple/swift-argument-parser from cache (1.37s)
Computing version for https://github.com/swiftlang/swift-docc-plugin
Computed https://github.com/swiftlang/swift-docc-plugin at 1.5.0 (2.27s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3831] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (0.62s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (0.83s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.8.2 (0.16s)
Creating working copy for https://github.com/swiftlang/swift-docc-plugin
Working copy of https://github.com/swiftlang/swift-docc-plugin 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 1.8.2
Creating working copy for https://github.com/swiftlang/swift-docc-symbolkit
Working copy of https://github.com/swiftlang/swift-docc-symbolkit resolved at 1.0.0
[1/1] Compiling plugin GenerateManual
[2/2] Compiling plugin GenerateDoccReference
[3/3] Compiling plugin Swift-DocC Preview
[4/4] Compiling plugin Swift-DocC
Building for debugging...
[4/16] Write sources
[9/16] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[11/60] Emitting module TailscaleClient
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/TailscaleTransport.swift:222:38: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
220 | ///
221 | /// - Parameter session: The URLSession to use for HTTP requests (defaults to `.shared`).
222 | public init(session: URLSession = .shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
223 | self.session = session
224 | }
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/TailscaleTransport.swift:222:38: error: value of type '_' expected to be instance of class or class-constrained type
220 | ///
221 | /// - Parameter session: The URLSession to use for HTTP requests (defaults to `.shared`).
222 | public init(session: URLSession = .shared) {
| `- error: value of type '_' expected to be instance of class or class-constrained type
223 | self.session = session
224 | }
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/TailscaleTransport.swift:217:24: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
215 | /// The transport automatically injects required headers including `Tailscale-Cap` and optional authentication.
216 | public struct URLSessionTailscaleTransport: TailscaleTransport {
217 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
218 |
219 | /// Creates a new transport with the specified URLSession.
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/TailscaleClient/Transport/TailscaleTransport.swift:222:24: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
220 | ///
221 | /// - Parameter session: The URLSession to use for HTTP requests (defaults to `.shared`).
222 | public init(session: URLSession = .shared) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
223 | self.session = session
224 | }
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/TailscaleClient/Transport/TailscaleTransport.swift:338:15: error: cannot find type 'URLRequest' in scope
336 | private func buildURLRequest(
337 | for request: TailscaleRequest, configuration: TailscaleClientConfiguration
338 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
339 | let url: URL
340 | switch configuration.endpoint {
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/TailscaleTransport.swift:217:15: error: stored property 'session' of 'Sendable'-conforming struct 'URLSessionTailscaleTransport' has non-Sendable type 'AnyObject'
215 | /// The transport automatically injects required headers including `Tailscale-Cap` and optional authentication.
216 | public struct URLSessionTailscaleTransport: TailscaleTransport {
217 | private let session: URLSession
| `- error: stored property 'session' of 'Sendable'-conforming struct 'URLSessionTailscaleTransport' has non-Sendable type 'AnyObject'
218 |
219 | /// Creates a new transport with the specified URLSession.
[12/65] Emitting module ArgumentParserToolInfo
[13/65] Compiling ArgumentParserToolInfo ToolInfo.swift
[14/66] Wrapping AST for ArgumentParserToolInfo for debugging
[16/113] Compiling ArgumentParser BashCompletionsGenerator.swift
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/TailscaleTransport.swift:222:38: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
220 | ///
221 | /// - Parameter session: The URLSession to use for HTTP requests (defaults to `.shared`).
222 | public init(session: URLSession = .shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
223 | self.session = session
224 | }
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/TailscaleTransport.swift:222:38: error: value of type '_' expected to be instance of class or class-constrained type
220 | ///
221 | /// - Parameter session: The URLSession to use for HTTP requests (defaults to `.shared`).
222 | public init(session: URLSession = .shared) {
| `- error: value of type '_' expected to be instance of class or class-constrained type
223 | self.session = session
224 | }
[17/113] Compiling ArgumentParser CompletionsGenerator.swift
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/TailscaleTransport.swift:222:38: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
220 | ///
221 | /// - Parameter session: The URLSession to use for HTTP requests (defaults to `.shared`).
222 | public init(session: URLSession = .shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
223 | self.session = session
224 | }
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/TailscaleTransport.swift:222:38: error: value of type '_' expected to be instance of class or class-constrained type
220 | ///
221 | /// - Parameter session: The URLSession to use for HTTP requests (defaults to `.shared`).
222 | public init(session: URLSession = .shared) {
| `- error: value of type '_' expected to be instance of class or class-constrained type
223 | self.session = session
224 | }
[18/113] Compiling ArgumentParser FishCompletionsGenerator.swift
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/TailscaleTransport.swift:222:38: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
220 | ///
221 | /// - Parameter session: The URLSession to use for HTTP requests (defaults to `.shared`).
222 | public init(session: URLSession = .shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
223 | self.session = session
224 | }
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/TailscaleTransport.swift:222:38: error: value of type '_' expected to be instance of class or class-constrained type
220 | ///
221 | /// - Parameter session: The URLSession to use for HTTP requests (defaults to `.shared`).
222 | public init(session: URLSession = .shared) {
| `- error: value of type '_' expected to be instance of class or class-constrained type
223 | self.session = session
224 | }
[19/113] Compiling ArgumentParser ZshCompletionsGenerator.swift
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/TailscaleTransport.swift:222:38: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
220 | ///
221 | /// - Parameter session: The URLSession to use for HTTP requests (defaults to `.shared`).
222 | public init(session: URLSession = .shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
223 | self.session = session
224 | }
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/TailscaleTransport.swift:222:38: error: value of type '_' expected to be instance of class or class-constrained type
220 | ///
221 | /// - Parameter session: The URLSession to use for HTTP requests (defaults to `.shared`).
222 | public init(session: URLSession = .shared) {
| `- error: value of type '_' expected to be instance of class or class-constrained type
223 | self.session = session
224 | }
[20/113] Compiling ArgumentParser Argument.swift
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/TailscaleTransport.swift:222:38: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
220 | ///
221 | /// - Parameter session: The URLSession to use for HTTP requests (defaults to `.shared`).
222 | public init(session: URLSession = .shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
223 | self.session = session
224 | }
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/TailscaleTransport.swift:222:38: error: value of type '_' expected to be instance of class or class-constrained type
220 | ///
221 | /// - Parameter session: The URLSession to use for HTTP requests (defaults to `.shared`).
222 | public init(session: URLSession = .shared) {
| `- error: value of type '_' expected to be instance of class or class-constrained type
223 | self.session = session
224 | }
[21/113] Compiling ArgumentParser ArgumentDiscussion.swift
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/TailscaleTransport.swift:222:38: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
220 | ///
221 | /// - Parameter session: The URLSession to use for HTTP requests (defaults to `.shared`).
222 | public init(session: URLSession = .shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
223 | self.session = session
224 | }
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/TailscaleTransport.swift:222:38: error: value of type '_' expected to be instance of class or class-constrained type
220 | ///
221 | /// - Parameter session: The URLSession to use for HTTP requests (defaults to `.shared`).
222 | public init(session: URLSession = .shared) {
| `- error: value of type '_' expected to be instance of class or class-constrained type
223 | self.session = session
224 | }
[22/113] Compiling ArgumentParser Tree.swift
/host/spi-builder-workspace/Sources/TailscaleClient/Models/ServeConfig.swift:78:10: warning: 'etag' is deprecated: Use ServeConfigSnapshot.etag instead [#DeprecatedDeclaration]
76 | self.allowFunnel = allowFunnel
77 | self.foreground = foreground
78 | self.etag = etag
| `- warning: 'etag' is deprecated: Use ServeConfigSnapshot.etag instead [#DeprecatedDeclaration]
79 | self._unmodeledFields = unmodeledFields
80 | }
/host/spi-builder-workspace/Sources/TailscaleClient/Models/ServeConfig.swift:116:5: warning: 'etag' is deprecated: Use ServeConfigSnapshot.etag instead [#DeprecatedDeclaration]
114 | foreground =
115 | try container.decodeIfPresent([String: ServeConfig].self, forKey: .foreground) ?? [:]
116 | etag = nil
| `- warning: 'etag' is deprecated: Use ServeConfigSnapshot.etag instead [#DeprecatedDeclaration]
117 |
118 | let dynamicContainer = try decoder.container(keyedBy: AnyCodingKey.self)
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[23/113] Compiling ArgumentParser ParsableCommand.swift
/host/spi-builder-workspace/Sources/TailscaleClient/Models/ServeConfig.swift:78:10: warning: 'etag' is deprecated: Use ServeConfigSnapshot.etag instead [#DeprecatedDeclaration]
76 | self.allowFunnel = allowFunnel
77 | self.foreground = foreground
78 | self.etag = etag
| `- warning: 'etag' is deprecated: Use ServeConfigSnapshot.etag instead [#DeprecatedDeclaration]
79 | self._unmodeledFields = unmodeledFields
80 | }
/host/spi-builder-workspace/Sources/TailscaleClient/Models/ServeConfig.swift:116:5: warning: 'etag' is deprecated: Use ServeConfigSnapshot.etag instead [#DeprecatedDeclaration]
114 | foreground =
115 | try container.decodeIfPresent([String: ServeConfig].self, forKey: .foreground) ?? [:]
116 | etag = nil
| `- warning: 'etag' is deprecated: Use ServeConfigSnapshot.etag instead [#DeprecatedDeclaration]
117 |
118 | let dynamicContainer = try decoder.container(keyedBy: AnyCodingKey.self)
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[24/113] Compiling ArgumentParser ArgumentDecoder.swift
/host/spi-builder-workspace/Sources/TailscaleClient/Models/ServeConfig.swift:78:10: warning: 'etag' is deprecated: Use ServeConfigSnapshot.etag instead [#DeprecatedDeclaration]
76 | self.allowFunnel = allowFunnel
77 | self.foreground = foreground
78 | self.etag = etag
| `- warning: 'etag' is deprecated: Use ServeConfigSnapshot.etag instead [#DeprecatedDeclaration]
79 | self._unmodeledFields = unmodeledFields
80 | }
/host/spi-builder-workspace/Sources/TailscaleClient/Models/ServeConfig.swift:116:5: warning: 'etag' is deprecated: Use ServeConfigSnapshot.etag instead [#DeprecatedDeclaration]
114 | foreground =
115 | try container.decodeIfPresent([String: ServeConfig].self, forKey: .foreground) ?? [:]
116 | etag = nil
| `- warning: 'etag' is deprecated: Use ServeConfigSnapshot.etag instead [#DeprecatedDeclaration]
117 |
118 | let dynamicContainer = try decoder.container(keyedBy: AnyCodingKey.self)
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[25/113] Compiling ArgumentParser ArgumentDefinition.swift
/host/spi-builder-workspace/Sources/TailscaleClient/Models/ServeConfig.swift:78:10: warning: 'etag' is deprecated: Use ServeConfigSnapshot.etag instead [#DeprecatedDeclaration]
76 | self.allowFunnel = allowFunnel
77 | self.foreground = foreground
78 | self.etag = etag
| `- warning: 'etag' is deprecated: Use ServeConfigSnapshot.etag instead [#DeprecatedDeclaration]
79 | self._unmodeledFields = unmodeledFields
80 | }
/host/spi-builder-workspace/Sources/TailscaleClient/Models/ServeConfig.swift:116:5: warning: 'etag' is deprecated: Use ServeConfigSnapshot.etag instead [#DeprecatedDeclaration]
114 | foreground =
115 | try container.decodeIfPresent([String: ServeConfig].self, forKey: .foreground) ?? [:]
116 | etag = nil
| `- warning: 'etag' is deprecated: Use ServeConfigSnapshot.etag instead [#DeprecatedDeclaration]
117 |
118 | let dynamicContainer = try decoder.container(keyedBy: AnyCodingKey.self)
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[26/113] Compiling ArgumentParser ArgumentSet.swift
/host/spi-builder-workspace/Sources/TailscaleClient/Models/ServeConfig.swift:78:10: warning: 'etag' is deprecated: Use ServeConfigSnapshot.etag instead [#DeprecatedDeclaration]
76 | self.allowFunnel = allowFunnel
77 | self.foreground = foreground
78 | self.etag = etag
| `- warning: 'etag' is deprecated: Use ServeConfigSnapshot.etag instead [#DeprecatedDeclaration]
79 | self._unmodeledFields = unmodeledFields
80 | }
/host/spi-builder-workspace/Sources/TailscaleClient/Models/ServeConfig.swift:116:5: warning: 'etag' is deprecated: Use ServeConfigSnapshot.etag instead [#DeprecatedDeclaration]
114 | foreground =
115 | try container.decodeIfPresent([String: ServeConfig].self, forKey: .foreground) ?? [:]
116 | etag = nil
| `- warning: 'etag' is deprecated: Use ServeConfigSnapshot.etag instead [#DeprecatedDeclaration]
117 |
118 | let dynamicContainer = try decoder.container(keyedBy: AnyCodingKey.self)
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[27/113] Compiling ArgumentParser CommandParser.swift
/host/spi-builder-workspace/Sources/TailscaleClient/Models/ServeConfig.swift:78:10: warning: 'etag' is deprecated: Use ServeConfigSnapshot.etag instead [#DeprecatedDeclaration]
76 | self.allowFunnel = allowFunnel
77 | self.foreground = foreground
78 | self.etag = etag
| `- warning: 'etag' is deprecated: Use ServeConfigSnapshot.etag instead [#DeprecatedDeclaration]
79 | self._unmodeledFields = unmodeledFields
80 | }
/host/spi-builder-workspace/Sources/TailscaleClient/Models/ServeConfig.swift:116:5: warning: 'etag' is deprecated: Use ServeConfigSnapshot.etag instead [#DeprecatedDeclaration]
114 | foreground =
115 | try container.decodeIfPresent([String: ServeConfig].self, forKey: .foreground) ?? [:]
116 | etag = nil
| `- warning: 'etag' is deprecated: Use ServeConfigSnapshot.etag instead [#DeprecatedDeclaration]
117 |
118 | let dynamicContainer = try decoder.container(keyedBy: AnyCodingKey.self)
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[28/113] Compiling ArgumentParser DumpHelpGenerator.swift
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:90:23: error: cannot find 'socket' in scope
88 | sendFD = fd
89 | } else {
90 | let created = socket(candidate.ipv6 ? AF_INET6 : AF_INET, datagramSocketType, 0)
| `- error: cannot find 'socket' in scope
91 | guard created >= 0 else { continue }
92 | if candidate.ipv6 { socketV6 = created } else { socketV4 = created }
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:100:11: error: cannot find 'sendto' in scope
98 | let sent = request.withUnsafeBytes { payload in
99 | address.withUnsafeBytes { raw in
100 | sendto(
| `- error: cannot find 'sendto' in scope
101 | sendFD, payload.baseAddress, payload.count, 0,
102 | raw.baseAddress!.assumingMemoryBound(to: sockaddr.self),
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:175:17: error: cannot find 'addrinfo' in scope
173 |
174 | private static func resolveHostname(_ host: String, port: Int, ipv6: Bool) -> [UInt8]? {
175 | var hints = addrinfo()
| `- error: cannot find 'addrinfo' in scope
176 | hints.ai_family = ipv6 ? AF_INET6 : AF_INET
177 | hints.ai_socktype = datagramSocketType
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:178:36: error: cannot find type 'addrinfo' in scope
176 | hints.ai_family = ipv6 ? AF_INET6 : AF_INET
177 | hints.ai_socktype = datagramSocketType
178 | var list: UnsafeMutablePointer<addrinfo>?
| `- error: cannot find type 'addrinfo' in scope
179 | guard getaddrinfo(host, String(port), &hints, &list) == 0, let first = list else { return nil }
180 | defer { freeaddrinfo(list) }
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:179:11: error: cannot find 'getaddrinfo' in scope
177 | hints.ai_socktype = datagramSocketType
178 | var list: UnsafeMutablePointer<addrinfo>?
179 | guard getaddrinfo(host, String(port), &hints, &list) == 0, let first = list else { return nil }
| `- error: cannot find 'getaddrinfo' in scope
180 | defer { freeaddrinfo(list) }
181 |
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:180:13: error: cannot find 'freeaddrinfo' in scope
178 | var list: UnsafeMutablePointer<addrinfo>?
179 | guard getaddrinfo(host, String(port), &hints, &list) == 0, let first = list else { return nil }
180 | defer { freeaddrinfo(list) }
| `- error: cannot find 'freeaddrinfo' in scope
181 |
182 | var current: UnsafeMutablePointer<addrinfo>? = first
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:182:39: error: cannot find type 'addrinfo' in scope
180 | defer { freeaddrinfo(list) }
181 |
182 | var current: UnsafeMutablePointer<addrinfo>? = first
| `- error: cannot find type 'addrinfo' in scope
183 | while let node = current {
184 | if node.pointee.ai_family == hints.ai_family, let addr = node.pointee.ai_addr {
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:196:14: error: cannot find 'SOCK_DGRAM' in scope
194 | return Int32(SOCK_DGRAM.rawValue)
195 | #else
196 | return SOCK_DGRAM
| `- error: cannot find 'SOCK_DGRAM' in scope
197 | #endif
198 | }
[29/113] Compiling ArgumentParser Mutex.swift
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:90:23: error: cannot find 'socket' in scope
88 | sendFD = fd
89 | } else {
90 | let created = socket(candidate.ipv6 ? AF_INET6 : AF_INET, datagramSocketType, 0)
| `- error: cannot find 'socket' in scope
91 | guard created >= 0 else { continue }
92 | if candidate.ipv6 { socketV6 = created } else { socketV4 = created }
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:100:11: error: cannot find 'sendto' in scope
98 | let sent = request.withUnsafeBytes { payload in
99 | address.withUnsafeBytes { raw in
100 | sendto(
| `- error: cannot find 'sendto' in scope
101 | sendFD, payload.baseAddress, payload.count, 0,
102 | raw.baseAddress!.assumingMemoryBound(to: sockaddr.self),
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:175:17: error: cannot find 'addrinfo' in scope
173 |
174 | private static func resolveHostname(_ host: String, port: Int, ipv6: Bool) -> [UInt8]? {
175 | var hints = addrinfo()
| `- error: cannot find 'addrinfo' in scope
176 | hints.ai_family = ipv6 ? AF_INET6 : AF_INET
177 | hints.ai_socktype = datagramSocketType
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:178:36: error: cannot find type 'addrinfo' in scope
176 | hints.ai_family = ipv6 ? AF_INET6 : AF_INET
177 | hints.ai_socktype = datagramSocketType
178 | var list: UnsafeMutablePointer<addrinfo>?
| `- error: cannot find type 'addrinfo' in scope
179 | guard getaddrinfo(host, String(port), &hints, &list) == 0, let first = list else { return nil }
180 | defer { freeaddrinfo(list) }
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:179:11: error: cannot find 'getaddrinfo' in scope
177 | hints.ai_socktype = datagramSocketType
178 | var list: UnsafeMutablePointer<addrinfo>?
179 | guard getaddrinfo(host, String(port), &hints, &list) == 0, let first = list else { return nil }
| `- error: cannot find 'getaddrinfo' in scope
180 | defer { freeaddrinfo(list) }
181 |
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:180:13: error: cannot find 'freeaddrinfo' in scope
178 | var list: UnsafeMutablePointer<addrinfo>?
179 | guard getaddrinfo(host, String(port), &hints, &list) == 0, let first = list else { return nil }
180 | defer { freeaddrinfo(list) }
| `- error: cannot find 'freeaddrinfo' in scope
181 |
182 | var current: UnsafeMutablePointer<addrinfo>? = first
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:182:39: error: cannot find type 'addrinfo' in scope
180 | defer { freeaddrinfo(list) }
181 |
182 | var current: UnsafeMutablePointer<addrinfo>? = first
| `- error: cannot find type 'addrinfo' in scope
183 | while let node = current {
184 | if node.pointee.ai_family == hints.ai_family, let addr = node.pointee.ai_addr {
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:196:14: error: cannot find 'SOCK_DGRAM' in scope
194 | return Int32(SOCK_DGRAM.rawValue)
195 | #else
196 | return SOCK_DGRAM
| `- error: cannot find 'SOCK_DGRAM' in scope
197 | #endif
198 | }
[30/113] Compiling ArgumentParser Platform.swift
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:90:23: error: cannot find 'socket' in scope
88 | sendFD = fd
89 | } else {
90 | let created = socket(candidate.ipv6 ? AF_INET6 : AF_INET, datagramSocketType, 0)
| `- error: cannot find 'socket' in scope
91 | guard created >= 0 else { continue }
92 | if candidate.ipv6 { socketV6 = created } else { socketV4 = created }
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:100:11: error: cannot find 'sendto' in scope
98 | let sent = request.withUnsafeBytes { payload in
99 | address.withUnsafeBytes { raw in
100 | sendto(
| `- error: cannot find 'sendto' in scope
101 | sendFD, payload.baseAddress, payload.count, 0,
102 | raw.baseAddress!.assumingMemoryBound(to: sockaddr.self),
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:175:17: error: cannot find 'addrinfo' in scope
173 |
174 | private static func resolveHostname(_ host: String, port: Int, ipv6: Bool) -> [UInt8]? {
175 | var hints = addrinfo()
| `- error: cannot find 'addrinfo' in scope
176 | hints.ai_family = ipv6 ? AF_INET6 : AF_INET
177 | hints.ai_socktype = datagramSocketType
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:178:36: error: cannot find type 'addrinfo' in scope
176 | hints.ai_family = ipv6 ? AF_INET6 : AF_INET
177 | hints.ai_socktype = datagramSocketType
178 | var list: UnsafeMutablePointer<addrinfo>?
| `- error: cannot find type 'addrinfo' in scope
179 | guard getaddrinfo(host, String(port), &hints, &list) == 0, let first = list else { return nil }
180 | defer { freeaddrinfo(list) }
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:179:11: error: cannot find 'getaddrinfo' in scope
177 | hints.ai_socktype = datagramSocketType
178 | var list: UnsafeMutablePointer<addrinfo>?
179 | guard getaddrinfo(host, String(port), &hints, &list) == 0, let first = list else { return nil }
| `- error: cannot find 'getaddrinfo' in scope
180 | defer { freeaddrinfo(list) }
181 |
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:180:13: error: cannot find 'freeaddrinfo' in scope
178 | var list: UnsafeMutablePointer<addrinfo>?
179 | guard getaddrinfo(host, String(port), &hints, &list) == 0, let first = list else { return nil }
180 | defer { freeaddrinfo(list) }
| `- error: cannot find 'freeaddrinfo' in scope
181 |
182 | var current: UnsafeMutablePointer<addrinfo>? = first
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:182:39: error: cannot find type 'addrinfo' in scope
180 | defer { freeaddrinfo(list) }
181 |
182 | var current: UnsafeMutablePointer<addrinfo>? = first
| `- error: cannot find type 'addrinfo' in scope
183 | while let node = current {
184 | if node.pointee.ai_family == hints.ai_family, let addr = node.pointee.ai_addr {
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:196:14: error: cannot find 'SOCK_DGRAM' in scope
194 | return Int32(SOCK_DGRAM.rawValue)
195 | #else
196 | return SOCK_DGRAM
| `- error: cannot find 'SOCK_DGRAM' in scope
197 | #endif
198 | }
[31/113] Compiling ArgumentParser SequenceExtensions.swift
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:90:23: error: cannot find 'socket' in scope
88 | sendFD = fd
89 | } else {
90 | let created = socket(candidate.ipv6 ? AF_INET6 : AF_INET, datagramSocketType, 0)
| `- error: cannot find 'socket' in scope
91 | guard created >= 0 else { continue }
92 | if candidate.ipv6 { socketV6 = created } else { socketV4 = created }
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:100:11: error: cannot find 'sendto' in scope
98 | let sent = request.withUnsafeBytes { payload in
99 | address.withUnsafeBytes { raw in
100 | sendto(
| `- error: cannot find 'sendto' in scope
101 | sendFD, payload.baseAddress, payload.count, 0,
102 | raw.baseAddress!.assumingMemoryBound(to: sockaddr.self),
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:175:17: error: cannot find 'addrinfo' in scope
173 |
174 | private static func resolveHostname(_ host: String, port: Int, ipv6: Bool) -> [UInt8]? {
175 | var hints = addrinfo()
| `- error: cannot find 'addrinfo' in scope
176 | hints.ai_family = ipv6 ? AF_INET6 : AF_INET
177 | hints.ai_socktype = datagramSocketType
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:178:36: error: cannot find type 'addrinfo' in scope
176 | hints.ai_family = ipv6 ? AF_INET6 : AF_INET
177 | hints.ai_socktype = datagramSocketType
178 | var list: UnsafeMutablePointer<addrinfo>?
| `- error: cannot find type 'addrinfo' in scope
179 | guard getaddrinfo(host, String(port), &hints, &list) == 0, let first = list else { return nil }
180 | defer { freeaddrinfo(list) }
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:179:11: error: cannot find 'getaddrinfo' in scope
177 | hints.ai_socktype = datagramSocketType
178 | var list: UnsafeMutablePointer<addrinfo>?
179 | guard getaddrinfo(host, String(port), &hints, &list) == 0, let first = list else { return nil }
| `- error: cannot find 'getaddrinfo' in scope
180 | defer { freeaddrinfo(list) }
181 |
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:180:13: error: cannot find 'freeaddrinfo' in scope
178 | var list: UnsafeMutablePointer<addrinfo>?
179 | guard getaddrinfo(host, String(port), &hints, &list) == 0, let first = list else { return nil }
180 | defer { freeaddrinfo(list) }
| `- error: cannot find 'freeaddrinfo' in scope
181 |
182 | var current: UnsafeMutablePointer<addrinfo>? = first
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:182:39: error: cannot find type 'addrinfo' in scope
180 | defer { freeaddrinfo(list) }
181 |
182 | var current: UnsafeMutablePointer<addrinfo>? = first
| `- error: cannot find type 'addrinfo' in scope
183 | while let node = current {
184 | if node.pointee.ai_family == hints.ai_family, let addr = node.pointee.ai_addr {
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:196:14: error: cannot find 'SOCK_DGRAM' in scope
194 | return Int32(SOCK_DGRAM.rawValue)
195 | #else
196 | return SOCK_DGRAM
| `- error: cannot find 'SOCK_DGRAM' in scope
197 | #endif
198 | }
[32/113] Compiling ArgumentParser StringExtensions.swift
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:90:23: error: cannot find 'socket' in scope
88 | sendFD = fd
89 | } else {
90 | let created = socket(candidate.ipv6 ? AF_INET6 : AF_INET, datagramSocketType, 0)
| `- error: cannot find 'socket' in scope
91 | guard created >= 0 else { continue }
92 | if candidate.ipv6 { socketV6 = created } else { socketV4 = created }
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:100:11: error: cannot find 'sendto' in scope
98 | let sent = request.withUnsafeBytes { payload in
99 | address.withUnsafeBytes { raw in
100 | sendto(
| `- error: cannot find 'sendto' in scope
101 | sendFD, payload.baseAddress, payload.count, 0,
102 | raw.baseAddress!.assumingMemoryBound(to: sockaddr.self),
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:175:17: error: cannot find 'addrinfo' in scope
173 |
174 | private static func resolveHostname(_ host: String, port: Int, ipv6: Bool) -> [UInt8]? {
175 | var hints = addrinfo()
| `- error: cannot find 'addrinfo' in scope
176 | hints.ai_family = ipv6 ? AF_INET6 : AF_INET
177 | hints.ai_socktype = datagramSocketType
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:178:36: error: cannot find type 'addrinfo' in scope
176 | hints.ai_family = ipv6 ? AF_INET6 : AF_INET
177 | hints.ai_socktype = datagramSocketType
178 | var list: UnsafeMutablePointer<addrinfo>?
| `- error: cannot find type 'addrinfo' in scope
179 | guard getaddrinfo(host, String(port), &hints, &list) == 0, let first = list else { return nil }
180 | defer { freeaddrinfo(list) }
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:179:11: error: cannot find 'getaddrinfo' in scope
177 | hints.ai_socktype = datagramSocketType
178 | var list: UnsafeMutablePointer<addrinfo>?
179 | guard getaddrinfo(host, String(port), &hints, &list) == 0, let first = list else { return nil }
| `- error: cannot find 'getaddrinfo' in scope
180 | defer { freeaddrinfo(list) }
181 |
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:180:13: error: cannot find 'freeaddrinfo' in scope
178 | var list: UnsafeMutablePointer<addrinfo>?
179 | guard getaddrinfo(host, String(port), &hints, &list) == 0, let first = list else { return nil }
180 | defer { freeaddrinfo(list) }
| `- error: cannot find 'freeaddrinfo' in scope
181 |
182 | var current: UnsafeMutablePointer<addrinfo>? = first
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:182:39: error: cannot find type 'addrinfo' in scope
180 | defer { freeaddrinfo(list) }
181 |
182 | var current: UnsafeMutablePointer<addrinfo>? = first
| `- error: cannot find type 'addrinfo' in scope
183 | while let node = current {
184 | if node.pointee.ai_family == hints.ai_family, let addr = node.pointee.ai_addr {
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:196:14: error: cannot find 'SOCK_DGRAM' in scope
194 | return Int32(SOCK_DGRAM.rawValue)
195 | #else
196 | return SOCK_DGRAM
| `- error: cannot find 'SOCK_DGRAM' in scope
197 | #endif
198 | }
[33/113] Compiling ArgumentParser SwiftExtensions.swift
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:90:23: error: cannot find 'socket' in scope
88 | sendFD = fd
89 | } else {
90 | let created = socket(candidate.ipv6 ? AF_INET6 : AF_INET, datagramSocketType, 0)
| `- error: cannot find 'socket' in scope
91 | guard created >= 0 else { continue }
92 | if candidate.ipv6 { socketV6 = created } else { socketV4 = created }
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:100:11: error: cannot find 'sendto' in scope
98 | let sent = request.withUnsafeBytes { payload in
99 | address.withUnsafeBytes { raw in
100 | sendto(
| `- error: cannot find 'sendto' in scope
101 | sendFD, payload.baseAddress, payload.count, 0,
102 | raw.baseAddress!.assumingMemoryBound(to: sockaddr.self),
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:175:17: error: cannot find 'addrinfo' in scope
173 |
174 | private static func resolveHostname(_ host: String, port: Int, ipv6: Bool) -> [UInt8]? {
175 | var hints = addrinfo()
| `- error: cannot find 'addrinfo' in scope
176 | hints.ai_family = ipv6 ? AF_INET6 : AF_INET
177 | hints.ai_socktype = datagramSocketType
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:178:36: error: cannot find type 'addrinfo' in scope
176 | hints.ai_family = ipv6 ? AF_INET6 : AF_INET
177 | hints.ai_socktype = datagramSocketType
178 | var list: UnsafeMutablePointer<addrinfo>?
| `- error: cannot find type 'addrinfo' in scope
179 | guard getaddrinfo(host, String(port), &hints, &list) == 0, let first = list else { return nil }
180 | defer { freeaddrinfo(list) }
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:179:11: error: cannot find 'getaddrinfo' in scope
177 | hints.ai_socktype = datagramSocketType
178 | var list: UnsafeMutablePointer<addrinfo>?
179 | guard getaddrinfo(host, String(port), &hints, &list) == 0, let first = list else { return nil }
| `- error: cannot find 'getaddrinfo' in scope
180 | defer { freeaddrinfo(list) }
181 |
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:180:13: error: cannot find 'freeaddrinfo' in scope
178 | var list: UnsafeMutablePointer<addrinfo>?
179 | guard getaddrinfo(host, String(port), &hints, &list) == 0, let first = list else { return nil }
180 | defer { freeaddrinfo(list) }
| `- error: cannot find 'freeaddrinfo' in scope
181 |
182 | var current: UnsafeMutablePointer<addrinfo>? = first
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:182:39: error: cannot find type 'addrinfo' in scope
180 | defer { freeaddrinfo(list) }
181 |
182 | var current: UnsafeMutablePointer<addrinfo>? = first
| `- error: cannot find type 'addrinfo' in scope
183 | while let node = current {
184 | if node.pointee.ai_family == hints.ai_family, let addr = node.pointee.ai_addr {
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:196:14: error: cannot find 'SOCK_DGRAM' in scope
194 | return Int32(SOCK_DGRAM.rawValue)
195 | #else
196 | return SOCK_DGRAM
| `- error: cannot find 'SOCK_DGRAM' in scope
197 | #endif
198 | }
[34/113] Compiling ArgumentParser InputKey.swift
[35/113] Compiling ArgumentParser InputOrigin.swift
[36/113] Compiling ArgumentParser ArgumentVisibility.swift
[37/113] Compiling ArgumentParser CompletionKind.swift
[38/113] Compiling ArgumentParser Errors.swift
[39/113] Compiling ArgumentParser Flag.swift
[40/113] Compiling ArgumentParser CommandConfiguration.swift
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/TailscaleTransport.swift:217:24: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
215 | /// The transport automatically injects required headers including `Tailscale-Cap` and optional authentication.
216 | public struct URLSessionTailscaleTransport: TailscaleTransport {
217 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
218 |
219 | /// Creates a new transport with the specified URLSession.
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/TailscaleClient/Transport/TailscaleTransport.swift:222:24: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
220 | ///
221 | /// - Parameter session: The URLSession to use for HTTP requests (defaults to `.shared`).
222 | public init(session: URLSession = .shared) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
223 | self.session = session
224 | }
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/TailscaleClient/Transport/TailscaleTransport.swift:222:38: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
220 | ///
221 | /// - Parameter session: The URLSession to use for HTTP requests (defaults to `.shared`).
222 | public init(session: URLSession = .shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
223 | self.session = session
224 | }
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/TailscaleTransport.swift:222:38: error: value of type '_' expected to be instance of class or class-constrained type
220 | ///
221 | /// - Parameter session: The URLSession to use for HTTP requests (defaults to `.shared`).
222 | public init(session: URLSession = .shared) {
| `- error: value of type '_' expected to be instance of class or class-constrained type
223 | self.session = session
224 | }
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/TailscaleTransport.swift:338:15: error: cannot find type 'URLRequest' in scope
336 | private func buildURLRequest(
337 | for request: TailscaleRequest, configuration: TailscaleClientConfiguration
338 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
339 | let url: URL
340 | switch configuration.endpoint {
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/TailscaleTransport.swift:217:15: error: stored property 'session' of 'Sendable'-conforming struct 'URLSessionTailscaleTransport' has non-Sendable type 'AnyObject'
215 | /// The transport automatically injects required headers including `Tailscale-Cap` and optional authentication.
216 | public struct URLSessionTailscaleTransport: TailscaleTransport {
217 | private let session: URLSession
| `- error: stored property 'session' of 'Sendable'-conforming struct 'URLSessionTailscaleTransport' has non-Sendable type 'AnyObject'
218 |
219 | /// Creates a new transport with the specified URLSession.
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/TailscaleTransport.swift:269:49: error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
267 | for: enrich(request: request, configuration: configuration), configuration: configuration)
268 |
269 | let (bytes, response) = try await session.bytes(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
270 | guard let http = response as? HTTPURLResponse else {
271 | throw TailscaleTransportError.networkFailure(underlying: URLError(.badServerResponse))
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/TailscaleTransport.swift:320:48: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
318 | for: enrich(request: request, configuration: configuration), configuration: configuration)
319 | do {
320 | let (data, response) = try await session.data(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
321 | guard let http = response as? HTTPURLResponse else {
322 | throw TailscaleTransportError.networkFailure(underlying: URLError(.badServerResponse))
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/TailscaleTransport.swift:364:22: error: cannot find 'URLRequest' in scope
362 | }
363 |
364 | var urlRequest = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
365 | urlRequest.httpMethod = request.method
366 | urlRequest.httpBody = request.body
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:44:13: error: cannot find 'Darwin' in scope
42 | _ = Glibc.close(fdToClose)
43 | #else
44 | _ = Darwin.close(fdToClose)
| `- error: cannot find 'Darwin' in scope
45 | #endif
46 | }
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:274:17: error: cannot find 'socket' in scope
272 | try Task.checkCancellation()
273 |
274 | let rawFD = socket(AF_UNIX, socketStreamType, 0)
| `- error: cannot find 'socket' in scope
275 | guard rawFD >= 0 else {
276 | throw POSIXError(.init(rawValue: errno) ?? .EIO)
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:288:53: error: cannot find 'O_NONBLOCK' in scope
286 | // Configure non-blocking and close-on-exec flags.
287 | let flags = fcntl(rawFD, F_GETFL, 0)
288 | guard flags >= 0, fcntl(rawFD, F_SETFL, flags | O_NONBLOCK) >= 0 else {
| `- error: cannot find 'O_NONBLOCK' in scope
289 | managed.close()
290 | throw POSIXError(.init(rawValue: errno) ?? .EIO)
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:299:57: error: value of type 'sockaddr_un' has no member 'sun_path'
297 | var addr = sockaddr_un()
298 | addr.sun_family = sa_family_t(AF_UNIX)
299 | let maxPathLength = MemoryLayout.size(ofValue: addr.sun_path) / MemoryLayout<CChar>.stride
| `- error: value of type 'sockaddr_un' has no member 'sun_path'
300 | guard path.utf8.count < maxPathLength else {
301 | managed.close()
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:304:38: error: value of type 'sockaddr_un' has no member 'sun_path'
302 | throw POSIXError(.ENAMETOOLONG)
303 | }
304 | withUnsafeMutableBytes(of: &addr.sun_path) { buffer in
| `- error: value of type 'sockaddr_un' has no member 'sun_path'
305 | let base = buffer.baseAddress!.assumingMemoryBound(to: CChar.self)
306 | _ = strncpy(base, path, maxPathLength - 1)
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:309:74: error: value of type 'sockaddr_un' has no member 'sun_path'
307 | }
308 | let addrSize = socklen_t(
309 | MemoryLayout.size(ofValue: addr) - MemoryLayout.size(ofValue: addr.sun_path)
| `- error: value of type 'sockaddr_un' has no member 'sun_path'
310 | + path.utf8.count + 1)
311 |
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:314:9: error: cannot find 'connect' in scope
312 | let connectResult = withUnsafePointer(to: &addr) {
313 | $0.withMemoryRebound(to: sockaddr.self, capacity: 1) { ptr in
314 | connect(rawFD, ptr, addrSize)
| `- error: cannot find 'connect' in scope
315 | }
316 | }
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:359:50: error: cannot find 'SO_ERROR' in scope
357 | var errorValue: Int32 = 0
358 | var errorLength = socklen_t(MemoryLayout<Int32>.size)
359 | let status = getsockopt(rawFD, SOL_SOCKET, SO_ERROR, &errorValue, &errorLength)
| `- error: cannot find 'SO_ERROR' in scope
360 | guard status == 0 else {
361 | managed.close()
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:385:14: error: cannot find 'SOCK_STREAM' in scope
383 | return Int32(SOCK_STREAM.rawValue)
384 | #else
385 | return SOCK_STREAM
| `- error: cannot find 'SOCK_STREAM' in scope
386 | #endif
387 | }
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:407:25: error: cannot find 'Darwin' in scope
405 | let written = Glibc.send(rawFD, currentPointer, bytesRemaining, Int32(MSG_NOSIGNAL))
406 | #else
407 | let written = Darwin.write(rawFD, currentPointer, bytesRemaining)
| `- error: cannot find 'Darwin' in scope
408 | #endif
409 |
[41/113] Compiling ArgumentParser CommandGroup.swift
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/TailscaleTransport.swift:217:24: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
215 | /// The transport automatically injects required headers including `Tailscale-Cap` and optional authentication.
216 | public struct URLSessionTailscaleTransport: TailscaleTransport {
217 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
218 |
219 | /// Creates a new transport with the specified URLSession.
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/TailscaleClient/Transport/TailscaleTransport.swift:222:24: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
220 | ///
221 | /// - Parameter session: The URLSession to use for HTTP requests (defaults to `.shared`).
222 | public init(session: URLSession = .shared) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
223 | self.session = session
224 | }
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/TailscaleClient/Transport/TailscaleTransport.swift:222:38: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
220 | ///
221 | /// - Parameter session: The URLSession to use for HTTP requests (defaults to `.shared`).
222 | public init(session: URLSession = .shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
223 | self.session = session
224 | }
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/TailscaleTransport.swift:222:38: error: value of type '_' expected to be instance of class or class-constrained type
220 | ///
221 | /// - Parameter session: The URLSession to use for HTTP requests (defaults to `.shared`).
222 | public init(session: URLSession = .shared) {
| `- error: value of type '_' expected to be instance of class or class-constrained type
223 | self.session = session
224 | }
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/TailscaleTransport.swift:338:15: error: cannot find type 'URLRequest' in scope
336 | private func buildURLRequest(
337 | for request: TailscaleRequest, configuration: TailscaleClientConfiguration
338 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
339 | let url: URL
340 | switch configuration.endpoint {
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/TailscaleTransport.swift:217:15: error: stored property 'session' of 'Sendable'-conforming struct 'URLSessionTailscaleTransport' has non-Sendable type 'AnyObject'
215 | /// The transport automatically injects required headers including `Tailscale-Cap` and optional authentication.
216 | public struct URLSessionTailscaleTransport: TailscaleTransport {
217 | private let session: URLSession
| `- error: stored property 'session' of 'Sendable'-conforming struct 'URLSessionTailscaleTransport' has non-Sendable type 'AnyObject'
218 |
219 | /// Creates a new transport with the specified URLSession.
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/TailscaleTransport.swift:269:49: error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
267 | for: enrich(request: request, configuration: configuration), configuration: configuration)
268 |
269 | let (bytes, response) = try await session.bytes(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
270 | guard let http = response as? HTTPURLResponse else {
271 | throw TailscaleTransportError.networkFailure(underlying: URLError(.badServerResponse))
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/TailscaleTransport.swift:320:48: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
318 | for: enrich(request: request, configuration: configuration), configuration: configuration)
319 | do {
320 | let (data, response) = try await session.data(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
321 | guard let http = response as? HTTPURLResponse else {
322 | throw TailscaleTransportError.networkFailure(underlying: URLError(.badServerResponse))
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/TailscaleTransport.swift:364:22: error: cannot find 'URLRequest' in scope
362 | }
363 |
364 | var urlRequest = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
365 | urlRequest.httpMethod = request.method
366 | urlRequest.httpBody = request.body
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:44:13: error: cannot find 'Darwin' in scope
42 | _ = Glibc.close(fdToClose)
43 | #else
44 | _ = Darwin.close(fdToClose)
| `- error: cannot find 'Darwin' in scope
45 | #endif
46 | }
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:274:17: error: cannot find 'socket' in scope
272 | try Task.checkCancellation()
273 |
274 | let rawFD = socket(AF_UNIX, socketStreamType, 0)
| `- error: cannot find 'socket' in scope
275 | guard rawFD >= 0 else {
276 | throw POSIXError(.init(rawValue: errno) ?? .EIO)
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:288:53: error: cannot find 'O_NONBLOCK' in scope
286 | // Configure non-blocking and close-on-exec flags.
287 | let flags = fcntl(rawFD, F_GETFL, 0)
288 | guard flags >= 0, fcntl(rawFD, F_SETFL, flags | O_NONBLOCK) >= 0 else {
| `- error: cannot find 'O_NONBLOCK' in scope
289 | managed.close()
290 | throw POSIXError(.init(rawValue: errno) ?? .EIO)
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:299:57: error: value of type 'sockaddr_un' has no member 'sun_path'
297 | var addr = sockaddr_un()
298 | addr.sun_family = sa_family_t(AF_UNIX)
299 | let maxPathLength = MemoryLayout.size(ofValue: addr.sun_path) / MemoryLayout<CChar>.stride
| `- error: value of type 'sockaddr_un' has no member 'sun_path'
300 | guard path.utf8.count < maxPathLength else {
301 | managed.close()
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:304:38: error: value of type 'sockaddr_un' has no member 'sun_path'
302 | throw POSIXError(.ENAMETOOLONG)
303 | }
304 | withUnsafeMutableBytes(of: &addr.sun_path) { buffer in
| `- error: value of type 'sockaddr_un' has no member 'sun_path'
305 | let base = buffer.baseAddress!.assumingMemoryBound(to: CChar.self)
306 | _ = strncpy(base, path, maxPathLength - 1)
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:309:74: error: value of type 'sockaddr_un' has no member 'sun_path'
307 | }
308 | let addrSize = socklen_t(
309 | MemoryLayout.size(ofValue: addr) - MemoryLayout.size(ofValue: addr.sun_path)
| `- error: value of type 'sockaddr_un' has no member 'sun_path'
310 | + path.utf8.count + 1)
311 |
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:314:9: error: cannot find 'connect' in scope
312 | let connectResult = withUnsafePointer(to: &addr) {
313 | $0.withMemoryRebound(to: sockaddr.self, capacity: 1) { ptr in
314 | connect(rawFD, ptr, addrSize)
| `- error: cannot find 'connect' in scope
315 | }
316 | }
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:359:50: error: cannot find 'SO_ERROR' in scope
357 | var errorValue: Int32 = 0
358 | var errorLength = socklen_t(MemoryLayout<Int32>.size)
359 | let status = getsockopt(rawFD, SOL_SOCKET, SO_ERROR, &errorValue, &errorLength)
| `- error: cannot find 'SO_ERROR' in scope
360 | guard status == 0 else {
361 | managed.close()
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:385:14: error: cannot find 'SOCK_STREAM' in scope
383 | return Int32(SOCK_STREAM.rawValue)
384 | #else
385 | return SOCK_STREAM
| `- error: cannot find 'SOCK_STREAM' in scope
386 | #endif
387 | }
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:407:25: error: cannot find 'Darwin' in scope
405 | let written = Glibc.send(rawFD, currentPointer, bytesRemaining, Int32(MSG_NOSIGNAL))
406 | #else
407 | let written = Darwin.write(rawFD, currentPointer, bytesRemaining)
| `- error: cannot find 'Darwin' in scope
408 | #endif
409 |
[42/113] Compiling ArgumentParser EnumerableFlag.swift
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/TailscaleTransport.swift:217:24: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
215 | /// The transport automatically injects required headers including `Tailscale-Cap` and optional authentication.
216 | public struct URLSessionTailscaleTransport: TailscaleTransport {
217 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
218 |
219 | /// Creates a new transport with the specified URLSession.
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/TailscaleClient/Transport/TailscaleTransport.swift:222:24: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
220 | ///
221 | /// - Parameter session: The URLSession to use for HTTP requests (defaults to `.shared`).
222 | public init(session: URLSession = .shared) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
223 | self.session = session
224 | }
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/TailscaleClient/Transport/TailscaleTransport.swift:222:38: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
220 | ///
221 | /// - Parameter session: The URLSession to use for HTTP requests (defaults to `.shared`).
222 | public init(session: URLSession = .shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
223 | self.session = session
224 | }
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/TailscaleTransport.swift:222:38: error: value of type '_' expected to be instance of class or class-constrained type
220 | ///
221 | /// - Parameter session: The URLSession to use for HTTP requests (defaults to `.shared`).
222 | public init(session: URLSession = .shared) {
| `- error: value of type '_' expected to be instance of class or class-constrained type
223 | self.session = session
224 | }
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/TailscaleTransport.swift:338:15: error: cannot find type 'URLRequest' in scope
336 | private func buildURLRequest(
337 | for request: TailscaleRequest, configuration: TailscaleClientConfiguration
338 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
339 | let url: URL
340 | switch configuration.endpoint {
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/TailscaleTransport.swift:217:15: error: stored property 'session' of 'Sendable'-conforming struct 'URLSessionTailscaleTransport' has non-Sendable type 'AnyObject'
215 | /// The transport automatically injects required headers including `Tailscale-Cap` and optional authentication.
216 | public struct URLSessionTailscaleTransport: TailscaleTransport {
217 | private let session: URLSession
| `- error: stored property 'session' of 'Sendable'-conforming struct 'URLSessionTailscaleTransport' has non-Sendable type 'AnyObject'
218 |
219 | /// Creates a new transport with the specified URLSession.
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/TailscaleTransport.swift:269:49: error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
267 | for: enrich(request: request, configuration: configuration), configuration: configuration)
268 |
269 | let (bytes, response) = try await session.bytes(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
270 | guard let http = response as? HTTPURLResponse else {
271 | throw TailscaleTransportError.networkFailure(underlying: URLError(.badServerResponse))
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/TailscaleTransport.swift:320:48: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
318 | for: enrich(request: request, configuration: configuration), configuration: configuration)
319 | do {
320 | let (data, response) = try await session.data(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
321 | guard let http = response as? HTTPURLResponse else {
322 | throw TailscaleTransportError.networkFailure(underlying: URLError(.badServerResponse))
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/TailscaleTransport.swift:364:22: error: cannot find 'URLRequest' in scope
362 | }
363 |
364 | var urlRequest = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
365 | urlRequest.httpMethod = request.method
366 | urlRequest.httpBody = request.body
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:44:13: error: cannot find 'Darwin' in scope
42 | _ = Glibc.close(fdToClose)
43 | #else
44 | _ = Darwin.close(fdToClose)
| `- error: cannot find 'Darwin' in scope
45 | #endif
46 | }
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:274:17: error: cannot find 'socket' in scope
272 | try Task.checkCancellation()
273 |
274 | let rawFD = socket(AF_UNIX, socketStreamType, 0)
| `- error: cannot find 'socket' in scope
275 | guard rawFD >= 0 else {
276 | throw POSIXError(.init(rawValue: errno) ?? .EIO)
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:288:53: error: cannot find 'O_NONBLOCK' in scope
286 | // Configure non-blocking and close-on-exec flags.
287 | let flags = fcntl(rawFD, F_GETFL, 0)
288 | guard flags >= 0, fcntl(rawFD, F_SETFL, flags | O_NONBLOCK) >= 0 else {
| `- error: cannot find 'O_NONBLOCK' in scope
289 | managed.close()
290 | throw POSIXError(.init(rawValue: errno) ?? .EIO)
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:299:57: error: value of type 'sockaddr_un' has no member 'sun_path'
297 | var addr = sockaddr_un()
298 | addr.sun_family = sa_family_t(AF_UNIX)
299 | let maxPathLength = MemoryLayout.size(ofValue: addr.sun_path) / MemoryLayout<CChar>.stride
| `- error: value of type 'sockaddr_un' has no member 'sun_path'
300 | guard path.utf8.count < maxPathLength else {
301 | managed.close()
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:304:38: error: value of type 'sockaddr_un' has no member 'sun_path'
302 | throw POSIXError(.ENAMETOOLONG)
303 | }
304 | withUnsafeMutableBytes(of: &addr.sun_path) { buffer in
| `- error: value of type 'sockaddr_un' has no member 'sun_path'
305 | let base = buffer.baseAddress!.assumingMemoryBound(to: CChar.self)
306 | _ = strncpy(base, path, maxPathLength - 1)
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:309:74: error: value of type 'sockaddr_un' has no member 'sun_path'
307 | }
308 | let addrSize = socklen_t(
309 | MemoryLayout.size(ofValue: addr) - MemoryLayout.size(ofValue: addr.sun_path)
| `- error: value of type 'sockaddr_un' has no member 'sun_path'
310 | + path.utf8.count + 1)
311 |
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:314:9: error: cannot find 'connect' in scope
312 | let connectResult = withUnsafePointer(to: &addr) {
313 | $0.withMemoryRebound(to: sockaddr.self, capacity: 1) { ptr in
314 | connect(rawFD, ptr, addrSize)
| `- error: cannot find 'connect' in scope
315 | }
316 | }
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:359:50: error: cannot find 'SO_ERROR' in scope
357 | var errorValue: Int32 = 0
358 | var errorLength = socklen_t(MemoryLayout<Int32>.size)
359 | let status = getsockopt(rawFD, SOL_SOCKET, SO_ERROR, &errorValue, &errorLength)
| `- error: cannot find 'SO_ERROR' in scope
360 | guard status == 0 else {
361 | managed.close()
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:385:14: error: cannot find 'SOCK_STREAM' in scope
383 | return Int32(SOCK_STREAM.rawValue)
384 | #else
385 | return SOCK_STREAM
| `- error: cannot find 'SOCK_STREAM' in scope
386 | #endif
387 | }
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:407:25: error: cannot find 'Darwin' in scope
405 | let written = Glibc.send(rawFD, currentPointer, bytesRemaining, Int32(MSG_NOSIGNAL))
406 | #else
407 | let written = Darwin.write(rawFD, currentPointer, bytesRemaining)
| `- error: cannot find 'Darwin' in scope
408 | #endif
409 |
[43/113] Compiling ArgumentParser ExpressibleByArgument.swift
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/TailscaleTransport.swift:217:24: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
215 | /// The transport automatically injects required headers including `Tailscale-Cap` and optional authentication.
216 | public struct URLSessionTailscaleTransport: TailscaleTransport {
217 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
218 |
219 | /// Creates a new transport with the specified URLSession.
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/TailscaleClient/Transport/TailscaleTransport.swift:222:24: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
220 | ///
221 | /// - Parameter session: The URLSession to use for HTTP requests (defaults to `.shared`).
222 | public init(session: URLSession = .shared) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
223 | self.session = session
224 | }
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/TailscaleClient/Transport/TailscaleTransport.swift:222:38: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
220 | ///
221 | /// - Parameter session: The URLSession to use for HTTP requests (defaults to `.shared`).
222 | public init(session: URLSession = .shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
223 | self.session = session
224 | }
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/TailscaleTransport.swift:222:38: error: value of type '_' expected to be instance of class or class-constrained type
220 | ///
221 | /// - Parameter session: The URLSession to use for HTTP requests (defaults to `.shared`).
222 | public init(session: URLSession = .shared) {
| `- error: value of type '_' expected to be instance of class or class-constrained type
223 | self.session = session
224 | }
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/TailscaleTransport.swift:338:15: error: cannot find type 'URLRequest' in scope
336 | private func buildURLRequest(
337 | for request: TailscaleRequest, configuration: TailscaleClientConfiguration
338 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
339 | let url: URL
340 | switch configuration.endpoint {
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/TailscaleTransport.swift:217:15: error: stored property 'session' of 'Sendable'-conforming struct 'URLSessionTailscaleTransport' has non-Sendable type 'AnyObject'
215 | /// The transport automatically injects required headers including `Tailscale-Cap` and optional authentication.
216 | public struct URLSessionTailscaleTransport: TailscaleTransport {
217 | private let session: URLSession
| `- error: stored property 'session' of 'Sendable'-conforming struct 'URLSessionTailscaleTransport' has non-Sendable type 'AnyObject'
218 |
219 | /// Creates a new transport with the specified URLSession.
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/TailscaleTransport.swift:269:49: error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
267 | for: enrich(request: request, configuration: configuration), configuration: configuration)
268 |
269 | let (bytes, response) = try await session.bytes(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
270 | guard let http = response as? HTTPURLResponse else {
271 | throw TailscaleTransportError.networkFailure(underlying: URLError(.badServerResponse))
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/TailscaleTransport.swift:320:48: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
318 | for: enrich(request: request, configuration: configuration), configuration: configuration)
319 | do {
320 | let (data, response) = try await session.data(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
321 | guard let http = response as? HTTPURLResponse else {
322 | throw TailscaleTransportError.networkFailure(underlying: URLError(.badServerResponse))
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/TailscaleTransport.swift:364:22: error: cannot find 'URLRequest' in scope
362 | }
363 |
364 | var urlRequest = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
365 | urlRequest.httpMethod = request.method
366 | urlRequest.httpBody = request.body
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:44:13: error: cannot find 'Darwin' in scope
42 | _ = Glibc.close(fdToClose)
43 | #else
44 | _ = Darwin.close(fdToClose)
| `- error: cannot find 'Darwin' in scope
45 | #endif
46 | }
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:274:17: error: cannot find 'socket' in scope
272 | try Task.checkCancellation()
273 |
274 | let rawFD = socket(AF_UNIX, socketStreamType, 0)
| `- error: cannot find 'socket' in scope
275 | guard rawFD >= 0 else {
276 | throw POSIXError(.init(rawValue: errno) ?? .EIO)
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:288:53: error: cannot find 'O_NONBLOCK' in scope
286 | // Configure non-blocking and close-on-exec flags.
287 | let flags = fcntl(rawFD, F_GETFL, 0)
288 | guard flags >= 0, fcntl(rawFD, F_SETFL, flags | O_NONBLOCK) >= 0 else {
| `- error: cannot find 'O_NONBLOCK' in scope
289 | managed.close()
290 | throw POSIXError(.init(rawValue: errno) ?? .EIO)
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:299:57: error: value of type 'sockaddr_un' has no member 'sun_path'
297 | var addr = sockaddr_un()
298 | addr.sun_family = sa_family_t(AF_UNIX)
299 | let maxPathLength = MemoryLayout.size(ofValue: addr.sun_path) / MemoryLayout<CChar>.stride
| `- error: value of type 'sockaddr_un' has no member 'sun_path'
300 | guard path.utf8.count < maxPathLength else {
301 | managed.close()
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:304:38: error: value of type 'sockaddr_un' has no member 'sun_path'
302 | throw POSIXError(.ENAMETOOLONG)
303 | }
304 | withUnsafeMutableBytes(of: &addr.sun_path) { buffer in
| `- error: value of type 'sockaddr_un' has no member 'sun_path'
305 | let base = buffer.baseAddress!.assumingMemoryBound(to: CChar.self)
306 | _ = strncpy(base, path, maxPathLength - 1)
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:309:74: error: value of type 'sockaddr_un' has no member 'sun_path'
307 | }
308 | let addrSize = socklen_t(
309 | MemoryLayout.size(ofValue: addr) - MemoryLayout.size(ofValue: addr.sun_path)
| `- error: value of type 'sockaddr_un' has no member 'sun_path'
310 | + path.utf8.count + 1)
311 |
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:314:9: error: cannot find 'connect' in scope
312 | let connectResult = withUnsafePointer(to: &addr) {
313 | $0.withMemoryRebound(to: sockaddr.self, capacity: 1) { ptr in
314 | connect(rawFD, ptr, addrSize)
| `- error: cannot find 'connect' in scope
315 | }
316 | }
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:359:50: error: cannot find 'SO_ERROR' in scope
357 | var errorValue: Int32 = 0
358 | var errorLength = socklen_t(MemoryLayout<Int32>.size)
359 | let status = getsockopt(rawFD, SOL_SOCKET, SO_ERROR, &errorValue, &errorLength)
| `- error: cannot find 'SO_ERROR' in scope
360 | guard status == 0 else {
361 | managed.close()
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:385:14: error: cannot find 'SOCK_STREAM' in scope
383 | return Int32(SOCK_STREAM.rawValue)
384 | #else
385 | return SOCK_STREAM
| `- error: cannot find 'SOCK_STREAM' in scope
386 | #endif
387 | }
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:407:25: error: cannot find 'Darwin' in scope
405 | let written = Glibc.send(rawFD, currentPointer, bytesRemaining, Int32(MSG_NOSIGNAL))
406 | #else
407 | let written = Darwin.write(rawFD, currentPointer, bytesRemaining)
| `- error: cannot find 'Darwin' in scope
408 | #endif
409 |
[44/113] Compiling ArgumentParser ParsableArguments.swift
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/TailscaleTransport.swift:217:24: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
215 | /// The transport automatically injects required headers including `Tailscale-Cap` and optional authentication.
216 | public struct URLSessionTailscaleTransport: TailscaleTransport {
217 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
218 |
219 | /// Creates a new transport with the specified URLSession.
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/TailscaleClient/Transport/TailscaleTransport.swift:222:24: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
220 | ///
221 | /// - Parameter session: The URLSession to use for HTTP requests (defaults to `.shared`).
222 | public init(session: URLSession = .shared) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
223 | self.session = session
224 | }
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/TailscaleClient/Transport/TailscaleTransport.swift:222:38: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
220 | ///
221 | /// - Parameter session: The URLSession to use for HTTP requests (defaults to `.shared`).
222 | public init(session: URLSession = .shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
223 | self.session = session
224 | }
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/TailscaleTransport.swift:222:38: error: value of type '_' expected to be instance of class or class-constrained type
220 | ///
221 | /// - Parameter session: The URLSession to use for HTTP requests (defaults to `.shared`).
222 | public init(session: URLSession = .shared) {
| `- error: value of type '_' expected to be instance of class or class-constrained type
223 | self.session = session
224 | }
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/TailscaleTransport.swift:338:15: error: cannot find type 'URLRequest' in scope
336 | private func buildURLRequest(
337 | for request: TailscaleRequest, configuration: TailscaleClientConfiguration
338 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
339 | let url: URL
340 | switch configuration.endpoint {
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/TailscaleTransport.swift:217:15: error: stored property 'session' of 'Sendable'-conforming struct 'URLSessionTailscaleTransport' has non-Sendable type 'AnyObject'
215 | /// The transport automatically injects required headers including `Tailscale-Cap` and optional authentication.
216 | public struct URLSessionTailscaleTransport: TailscaleTransport {
217 | private let session: URLSession
| `- error: stored property 'session' of 'Sendable'-conforming struct 'URLSessionTailscaleTransport' has non-Sendable type 'AnyObject'
218 |
219 | /// Creates a new transport with the specified URLSession.
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/TailscaleTransport.swift:269:49: error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
267 | for: enrich(request: request, configuration: configuration), configuration: configuration)
268 |
269 | let (bytes, response) = try await session.bytes(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
270 | guard let http = response as? HTTPURLResponse else {
271 | throw TailscaleTransportError.networkFailure(underlying: URLError(.badServerResponse))
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/TailscaleTransport.swift:320:48: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
318 | for: enrich(request: request, configuration: configuration), configuration: configuration)
319 | do {
320 | let (data, response) = try await session.data(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
321 | guard let http = response as? HTTPURLResponse else {
322 | throw TailscaleTransportError.networkFailure(underlying: URLError(.badServerResponse))
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/TailscaleTransport.swift:364:22: error: cannot find 'URLRequest' in scope
362 | }
363 |
364 | var urlRequest = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
365 | urlRequest.httpMethod = request.method
366 | urlRequest.httpBody = request.body
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:44:13: error: cannot find 'Darwin' in scope
42 | _ = Glibc.close(fdToClose)
43 | #else
44 | _ = Darwin.close(fdToClose)
| `- error: cannot find 'Darwin' in scope
45 | #endif
46 | }
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:274:17: error: cannot find 'socket' in scope
272 | try Task.checkCancellation()
273 |
274 | let rawFD = socket(AF_UNIX, socketStreamType, 0)
| `- error: cannot find 'socket' in scope
275 | guard rawFD >= 0 else {
276 | throw POSIXError(.init(rawValue: errno) ?? .EIO)
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:288:53: error: cannot find 'O_NONBLOCK' in scope
286 | // Configure non-blocking and close-on-exec flags.
287 | let flags = fcntl(rawFD, F_GETFL, 0)
288 | guard flags >= 0, fcntl(rawFD, F_SETFL, flags | O_NONBLOCK) >= 0 else {
| `- error: cannot find 'O_NONBLOCK' in scope
289 | managed.close()
290 | throw POSIXError(.init(rawValue: errno) ?? .EIO)
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:299:57: error: value of type 'sockaddr_un' has no member 'sun_path'
297 | var addr = sockaddr_un()
298 | addr.sun_family = sa_family_t(AF_UNIX)
299 | let maxPathLength = MemoryLayout.size(ofValue: addr.sun_path) / MemoryLayout<CChar>.stride
| `- error: value of type 'sockaddr_un' has no member 'sun_path'
300 | guard path.utf8.count < maxPathLength else {
301 | managed.close()
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:304:38: error: value of type 'sockaddr_un' has no member 'sun_path'
302 | throw POSIXError(.ENAMETOOLONG)
303 | }
304 | withUnsafeMutableBytes(of: &addr.sun_path) { buffer in
| `- error: value of type 'sockaddr_un' has no member 'sun_path'
305 | let base = buffer.baseAddress!.assumingMemoryBound(to: CChar.self)
306 | _ = strncpy(base, path, maxPathLength - 1)
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:309:74: error: value of type 'sockaddr_un' has no member 'sun_path'
307 | }
308 | let addrSize = socklen_t(
309 | MemoryLayout.size(ofValue: addr) - MemoryLayout.size(ofValue: addr.sun_path)
| `- error: value of type 'sockaddr_un' has no member 'sun_path'
310 | + path.utf8.count + 1)
311 |
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:314:9: error: cannot find 'connect' in scope
312 | let connectResult = withUnsafePointer(to: &addr) {
313 | $0.withMemoryRebound(to: sockaddr.self, capacity: 1) { ptr in
314 | connect(rawFD, ptr, addrSize)
| `- error: cannot find 'connect' in scope
315 | }
316 | }
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:359:50: error: cannot find 'SO_ERROR' in scope
357 | var errorValue: Int32 = 0
358 | var errorLength = socklen_t(MemoryLayout<Int32>.size)
359 | let status = getsockopt(rawFD, SOL_SOCKET, SO_ERROR, &errorValue, &errorLength)
| `- error: cannot find 'SO_ERROR' in scope
360 | guard status == 0 else {
361 | managed.close()
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:385:14: error: cannot find 'SOCK_STREAM' in scope
383 | return Int32(SOCK_STREAM.rawValue)
384 | #else
385 | return SOCK_STREAM
| `- error: cannot find 'SOCK_STREAM' in scope
386 | #endif
387 | }
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:407:25: error: cannot find 'Darwin' in scope
405 | let written = Glibc.send(rawFD, currentPointer, bytesRemaining, Int32(MSG_NOSIGNAL))
406 | #else
407 | let written = Darwin.write(rawFD, currentPointer, bytesRemaining)
| `- error: cannot find 'Darwin' in scope
408 | #endif
409 |
[45/113] Compiling ArgumentParser ArgumentHelp.swift
[46/113] Compiling ArgumentParser Name.swift
[47/113] Compiling ArgumentParser Parsed.swift
[48/113] Compiling ArgumentParser ParsedValues.swift
[49/113] Compiling ArgumentParser ParserError.swift
[50/113] Compiling ArgumentParser SplitArguments.swift
[51/113] Compiling ArgumentParser UsageGenerator.swift
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/TailscaleTransport.swift:222:38: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
220 | ///
221 | /// - Parameter session: The URLSession to use for HTTP requests (defaults to `.shared`).
222 | public init(session: URLSession = .shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
223 | self.session = session
224 | }
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/TailscaleTransport.swift:222:38: error: value of type '_' expected to be instance of class or class-constrained type
220 | ///
221 | /// - Parameter session: The URLSession to use for HTTP requests (defaults to `.shared`).
222 | public init(session: URLSession = .shared) {
| `- error: value of type '_' expected to be instance of class or class-constrained type
223 | self.session = session
224 | }
/host/spi-builder-workspace/Sources/TailscaleClient/TailscaleClient.swift:1464:37: error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
1462 | case 502: return "Bad Gateway"
1463 | case 503: return "Service Unavailable"
1464 | default: return HTTPURLResponse.localizedString(forStatusCode: code)
| `- error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
1465 | }
1466 | }
[52/113] Compiling ArgumentParser CollectionExtensions.swift
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/TailscaleTransport.swift:222:38: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
220 | ///
221 | /// - Parameter session: The URLSession to use for HTTP requests (defaults to `.shared`).
222 | public init(session: URLSession = .shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
223 | self.session = session
224 | }
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/TailscaleTransport.swift:222:38: error: value of type '_' expected to be instance of class or class-constrained type
220 | ///
221 | /// - Parameter session: The URLSession to use for HTTP requests (defaults to `.shared`).
222 | public init(session: URLSession = .shared) {
| `- error: value of type '_' expected to be instance of class or class-constrained type
223 | self.session = session
224 | }
/host/spi-builder-workspace/Sources/TailscaleClient/TailscaleClient.swift:1464:37: error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
1462 | case 502: return "Bad Gateway"
1463 | case 503: return "Service Unavailable"
1464 | default: return HTTPURLResponse.localizedString(forStatusCode: code)
| `- error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
1465 | }
1466 | }
[53/113] Compiling ArgumentParser Foundation.swift
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/TailscaleTransport.swift:222:38: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
220 | ///
221 | /// - Parameter session: The URLSession to use for HTTP requests (defaults to `.shared`).
222 | public init(session: URLSession = .shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
223 | self.session = session
224 | }
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/TailscaleTransport.swift:222:38: error: value of type '_' expected to be instance of class or class-constrained type
220 | ///
221 | /// - Parameter session: The URLSession to use for HTTP requests (defaults to `.shared`).
222 | public init(session: URLSession = .shared) {
| `- error: value of type '_' expected to be instance of class or class-constrained type
223 | self.session = session
224 | }
/host/spi-builder-workspace/Sources/TailscaleClient/TailscaleClient.swift:1464:37: error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
1462 | case 502: return "Bad Gateway"
1463 | case 503: return "Service Unavailable"
1464 | default: return HTTPURLResponse.localizedString(forStatusCode: code)
| `- error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
1465 | }
1466 | }
[54/113] Compiling ArgumentParser ParentCommand.swift
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/TailscaleTransport.swift:222:38: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
220 | ///
221 | /// - Parameter session: The URLSession to use for HTTP requests (defaults to `.shared`).
222 | public init(session: URLSession = .shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
223 | self.session = session
224 | }
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/TailscaleTransport.swift:222:38: error: value of type '_' expected to be instance of class or class-constrained type
220 | ///
221 | /// - Parameter session: The URLSession to use for HTTP requests (defaults to `.shared`).
222 | public init(session: URLSession = .shared) {
| `- error: value of type '_' expected to be instance of class or class-constrained type
223 | self.session = session
224 | }
/host/spi-builder-workspace/Sources/TailscaleClient/TailscaleClient.swift:1464:37: error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
1462 | case 502: return "Bad Gateway"
1463 | case 503: return "Service Unavailable"
1464 | default: return HTTPURLResponse.localizedString(forStatusCode: code)
| `- error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
1465 | }
1466 | }
[55/113] Compiling ArgumentParser AsyncParsableCommand.swift
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/TailscaleTransport.swift:222:38: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
220 | ///
221 | /// - Parameter session: The URLSession to use for HTTP requests (defaults to `.shared`).
222 | public init(session: URLSession = .shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
223 | self.session = session
224 | }
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/TailscaleTransport.swift:222:38: error: value of type '_' expected to be instance of class or class-constrained type
220 | ///
221 | /// - Parameter session: The URLSession to use for HTTP requests (defaults to `.shared`).
222 | public init(session: URLSession = .shared) {
| `- error: value of type '_' expected to be instance of class or class-constrained type
223 | self.session = session
224 | }
/host/spi-builder-workspace/Sources/TailscaleClient/TailscaleClient.swift:1464:37: error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
1462 | case 502: return "Bad Gateway"
1463 | case 503: return "Service Unavailable"
1464 | default: return HTTPURLResponse.localizedString(forStatusCode: code)
| `- error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
1465 | }
1466 | }
[56/113] Compiling ArgumentParser NameSpecification.swift
[57/113] Compiling ArgumentParser Option.swift
[58/113] Compiling ArgumentParser OptionGroup.swift
[59/113] Compiling ArgumentParser HelpCommand.swift
[60/113] Compiling ArgumentParser HelpGenerator.swift
[61/113] Compiling ArgumentParser MessageInfo.swift
[62/113] Emitting module ArgumentParser
BUILD FAILURE 6.3 wasm