The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build SwiftSimctl, reference master (15b11e), with Swift 6.1 for Android on 28 May 2025 04:40:40 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ctreffs/SwiftSimctl.git
Reference: master
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/ctreffs/SwiftSimctl
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 15b11e9 Update dependency apple/swift-argument-parser to v1 (#27)
Cloned https://github.com/ctreffs/SwiftSimctl.git
Revision (git rev-parse @):
15b11e9809e5eeb6999605a5afef626eeeba434e
SUCCESS checkout https://github.com/ctreffs/SwiftSimctl.git at master
========================================
Build
========================================
Selected platform:         android
Swift version:             6.1
Building package at path:  $PWD
https://github.com/ctreffs/SwiftSimctl.git
https://github.com/ctreffs/SwiftSimctl.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "swift-argument-parser",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.2.2",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-argument-parser"
    },
    {
      "identity" : "shellout",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "2.3.0",
            "upper_bound" : "3.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/JohnSundell/ShellOut.git"
    },
    {
      "identity" : "swifter",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.5.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/httpswift/swifter.git"
    }
  ],
  "manifest_display_name" : "SwiftSimctl",
  "name" : "SwiftSimctl",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "11.0"
    },
    {
      "name" : "tvos",
      "version" : "11.0"
    },
    {
      "name" : "macos",
      "version" : "10.12"
    }
  ],
  "products" : [
    {
      "name" : "SimctlCLI",
      "targets" : [
        "SimctlCLI"
      ],
      "type" : {
        "executable" : null
      }
    },
    {
      "name" : "Simctl",
      "targets" : [
        "Simctl"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "swift_languages_versions" : [
    "5"
  ],
  "targets" : [
    {
      "c99name" : "SimctlShared",
      "module_type" : "SwiftTarget",
      "name" : "SimctlShared",
      "path" : "Sources/SimctlShared",
      "product_memberships" : [
        "SimctlCLI",
        "Simctl"
      ],
      "sources" : [
        "SimctlShared.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "SimctlCLI",
      "module_type" : "SwiftTarget",
      "name" : "SimctlCLI",
      "path" : "Sources/SimctlCLI",
      "product_dependencies" : [
        "ShellOut",
        "Swifter",
        "ArgumentParser"
      ],
      "product_memberships" : [
        "SimctlCLI"
      ],
      "sources" : [
        "Commands.swift",
        "ListDevices.swift",
        "SimctlServer.swift",
        "StartServer.swift",
        "Swifter+Extensions.swift",
        "main.swift"
      ],
      "target_dependencies" : [
        "SimctlShared"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "Simctl",
      "module_type" : "SwiftTarget",
      "name" : "Simctl",
      "path" : "Sources/Simctl",
      "product_memberships" : [
        "Simctl"
      ],
      "sources" : [
        "SimctlClient.swift"
      ],
      "target_dependencies" : [
        "SimctlShared"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.2"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
Fetching https://github.com/httpswift/swifter.git
Fetching https://github.com/apple/swift-argument-parser
Fetching https://github.com/JohnSundell/ShellOut.git
[1/960] Fetching shellout
[961/7010] Fetching shellout, swifter
[3111/22361] Fetching shellout, swifter, swift-argument-parser
Fetched https://github.com/JohnSundell/ShellOut.git from cache (2.18s)
Fetched https://github.com/apple/swift-argument-parser from cache (2.20s)
Fetched https://github.com/httpswift/swifter.git from cache (2.22s)
Computing version for https://github.com/httpswift/swifter.git
Computed https://github.com/httpswift/swifter.git at 1.5.0 (3.26s)
Computing version for https://github.com/JohnSundell/ShellOut.git
Computed https://github.com/JohnSundell/ShellOut.git at 2.3.0 (3.56s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.5.0 (0.68s)
Creating working copy for https://github.com/JohnSundell/ShellOut.git
Working copy of https://github.com/JohnSundell/ShellOut.git resolved at 2.3.0
Creating working copy for https://github.com/apple/swift-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 1.5.0
Creating working copy for https://github.com/httpswift/swifter.git
Working copy of https://github.com/httpswift/swifter.git resolved at 1.5.0
[1/1] Compiling plugin GenerateManual
Building for debugging...
[1/17] Write sources
[8/17] Write swift-version-24593BA9C3E375BF.txt
[10/42] Emitting module ArgumentParserToolInfo
[11/42] Compiling ArgumentParserToolInfo ToolInfo.swift
[12/43] Wrapping AST for ArgumentParserToolInfo for debugging
error: emit-module command failed with exit code 1 (use -v to see invocation)
[14/43] Emitting module Swifter
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/HttpServerIO.swift:71:31: error: cannot find type 'in_port_t' in scope
 69 |
 70 |     @available(macOS 10.10, *)
 71 |     public func start(_ port: in_port_t = 8080, forceIPv4: Bool = false, priority: DispatchQoS.QoSClass = DispatchQoS.QoSClass.background) throws {
    |                               `- error: cannot find type 'in_port_t' in scope
 72 |         guard !self.operating else { return }
 73 |         stop()
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket+Server.swift:17:50: error: cannot find type 'in_port_t' in scope
 15 |     ///       connections from. It should be in IPv4 format if forceIPv4 == true,
 16 |     ///       otherwise - in IPv6.
 17 |     public class func tcpSocketForListen(_ port: in_port_t, _ forceIPv4: Bool = false, _ maxPendingConnection: Int32 = SOMAXCONN, _ listenAddress: String? = nil) throws -> Socket {
    |                                                  `- error: cannot find type 'in_port_t' in scope
 18 |
 19 |         #if os(Linux)
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket+Server.swift:17:120: error: cannot find 'SOMAXCONN' in scope
 15 |     ///       connections from. It should be in IPv4 format if forceIPv4 == true,
 16 |     ///       otherwise - in IPv6.
 17 |     public class func tcpSocketForListen(_ port: in_port_t, _ forceIPv4: Bool = false, _ maxPendingConnection: Int32 = SOMAXCONN, _ listenAddress: String? = nil) throws -> Socket {
    |                                                                                                                        `- error: cannot find 'SOMAXCONN' in scope
 18 |
 19 |         #if os(Linux)
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:50:34: error: cannot find type 'in_port_t' in scope
 48 |     }
 49 |
 50 |     public func port() throws -> in_port_t {
    |                                  `- error: cannot find type 'in_port_t' in scope
 51 |         var addr = sockaddr_in()
 52 |         return try withUnsafePointer(to: &addr) { pointer in
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:18:43: error: cannot find type 'FILE' in scope
 16 |     public class File {
 17 |
 18 |         let pointer: UnsafeMutablePointer<FILE>
    |                                           `- error: cannot find type 'FILE' in scope
 19 |
 20 |         public init(_ pointer: UnsafeMutablePointer<FILE>) {
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:20:53: error: cannot find type 'FILE' in scope
 18 |         let pointer: UnsafeMutablePointer<FILE>
 19 |
 20 |         public init(_ pointer: UnsafeMutablePointer<FILE>) {
    |                                                     `- error: cannot find type 'FILE' in scope
 21 |             self.pointer = pointer
 22 |         }
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:135:43: error: cannot find type 'stat' in scope
133 |     }
134 |
135 |     private func withStat<T>(_ closure: ((stat?) throws -> T)) throws -> T {
    |                                           `- error: cannot find type 'stat' in scope
136 |         return try self.withCString({
137 |             var statBuffer = stat()
[15/83] Compiling ArgumentParser BashCompletionsGenerator.swift
[16/83] Compiling ArgumentParser CompletionsGenerator.swift
[17/83] Compiling ArgumentParser FishCompletionsGenerator.swift
[18/83] Compiling ArgumentParser ZshCompletionsGenerator.swift
[19/83] Compiling ArgumentParser Argument.swift
[20/83] Compiling ArgumentParser ArgumentHelp.swift
[21/88] Emitting module ArgumentParser
[22/88] Compiling ArgumentParser OptionGroup.swift
[23/88] Compiling ArgumentParser AsyncParsableCommand.swift
[24/88] Compiling ArgumentParser CommandConfiguration.swift
[25/88] Compiling ArgumentParser CommandGroup.swift
[26/88] Compiling ArgumentParser EnumerableFlag.swift
[27/88] Compiling ArgumentParser ArgumentVisibility.swift
[28/88] Compiling ArgumentParser CompletionKind.swift
[29/88] Compiling ArgumentParser Errors.swift
[30/88] Compiling ArgumentParser Flag.swift
[31/88] Compiling ArgumentParser NameSpecification.swift
[32/88] Compiling ArgumentParser Option.swift
[33/88] Compiling ArgumentParser CollectionExtensions.swift
[34/88] Compiling ArgumentParser Platform.swift
[35/88] Compiling ArgumentParser SequenceExtensions.swift
[36/88] Compiling ArgumentParser StringExtensions.swift
[37/88] Compiling ArgumentParser Tree.swift
[38/88] Emitting module ShellOut
[39/88] Compiling ShellOut ShellOut.swift
[40/89] Compiling ArgumentParser ArgumentDefinition.swift
[41/89] Compiling ArgumentParser ArgumentSet.swift
[42/89] Compiling ArgumentParser CommandParser.swift
[43/89] Compiling ArgumentParser InputKey.swift
[44/89] Compiling ArgumentParser InputOrigin.swift
[45/89] Compiling ArgumentParser ExpressibleByArgument.swift
[46/89] Compiling ArgumentParser ParsableArguments.swift
[47/89] Compiling ArgumentParser ParsableArgumentsValidation.swift
[48/89] Compiling ArgumentParser ParsableCommand.swift
[49/89] Compiling ArgumentParser ArgumentDecoder.swift
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:18:43: error: cannot find type 'FILE' in scope
 16 |     public class File {
 17 |
 18 |         let pointer: UnsafeMutablePointer<FILE>
    |                                           `- error: cannot find type 'FILE' in scope
 19 |
 20 |         public init(_ pointer: UnsafeMutablePointer<FILE>) {
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:20:53: error: cannot find type 'FILE' in scope
 18 |         let pointer: UnsafeMutablePointer<FILE>
 19 |
 20 |         public init(_ pointer: UnsafeMutablePointer<FILE>) {
    |                                                     `- error: cannot find type 'FILE' in scope
 21 |             self.pointer = pointer
 22 |         }
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:135:43: error: cannot find type 'stat' in scope
133 |     }
134 |
135 |     private func withStat<T>(_ closure: ((stat?) throws -> T)) throws -> T {
    |                                           `- error: cannot find type 'stat' in scope
136 |         return try self.withCString({
137 |             var statBuffer = stat()
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:44:39: error: cannot find 'errno' in scope
 42 |             }
 43 |             if ferror(self.pointer) != 0 {
 44 |                 throw FileError.error(errno)
    |                                       `- error: cannot find 'errno' in scope
 45 |             }
 46 |             throw FileError.error(0)
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:55:43: error: cannot find 'errno' in scope
 53 |             try data.withUnsafeBufferPointer {
 54 |                 if fwrite($0.baseAddress, 1, data.count, self.pointer) != data.count {
 55 |                     throw FileError.error(errno)
    |                                           `- error: cannot find 'errno' in scope
 56 |                 }
 57 |             }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:54:30: error: value of optional type 'UnsafePointer<UInt8>?' must be unwrapped to a value of type 'UnsafePointer<UInt8>'
 52 |             }
 53 |             try data.withUnsafeBufferPointer {
 54 |                 if fwrite($0.baseAddress, 1, data.count, self.pointer) != data.count {
    |                              |- error: value of optional type 'UnsafePointer<UInt8>?' must be unwrapped to a value of type 'UnsafePointer<UInt8>'
    |                              |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
    |                              `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
 55 |                     throw FileError.error(errno)
 56 |                 }
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:61:30: error: cannot find 'getcwd' in scope
 59 |
 60 |         public static func currentWorkingDirectory() throws -> String {
 61 |             guard let path = getcwd(nil, 0) else {
    |                              `- error: cannot find 'getcwd' in scope
 62 |                 throw FileError.error(errno)
 63 |             }
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:61:37: error: 'nil' requires a contextual type
 59 |
 60 |         public static func currentWorkingDirectory() throws -> String {
 61 |             guard let path = getcwd(nil, 0) else {
    |                                     `- error: 'nil' requires a contextual type
 62 |                 throw FileError.error(errno)
 63 |             }
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:62:39: error: cannot find 'errno' in scope
 60 |         public static func currentWorkingDirectory() throws -> String {
 61 |             guard let path = getcwd(nil, 0) else {
 62 |                 throw FileError.error(errno)
    |                                       `- error: cannot find 'errno' in scope
 63 |             }
 64 |             return String(cString: path)
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:84:35: error: cannot find 'errno' in scope
 82 |     public func openFileForMode(_ path: String, _ mode: String) throws -> File {
 83 |         guard let file = path.withCString({ pathPointer in mode.withCString({ fopen(pathPointer, $0) }) }) else {
 84 |             throw FileError.error(errno)
    |                                   `- error: cannot find 'errno' in scope
 85 |         }
 86 |         return File(file)
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:101:39: error: cannot find 'S_IFMT' in scope
 99 |         return try self.withStat {
100 |             if let stat = $0 {
101 |                 return stat.st_mode & S_IFMT == S_IFDIR
    |                                       `- error: cannot find 'S_IFMT' in scope
102 |             }
103 |             return false
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:101:49: error: cannot find 'S_IFDIR' in scope
 99 |         return try self.withStat {
100 |             if let stat = $0 {
101 |                 return stat.st_mode & S_IFMT == S_IFDIR
    |                                                 `- error: cannot find 'S_IFDIR' in scope
102 |             }
103 |             return false
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:108:44: error: cannot find 'opendir' in scope
106 |
107 |     public func files() throws -> [String] {
108 |         guard let dir = self.withCString({ opendir($0) }) else {
    |                                            `- error: cannot find 'opendir' in scope
109 |             throw FileError.error(errno)
110 |         }
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:109:35: error: cannot find 'errno' in scope
107 |     public func files() throws -> [String] {
108 |         guard let dir = self.withCString({ opendir($0) }) else {
109 |             throw FileError.error(errno)
    |                                   `- error: cannot find 'errno' in scope
110 |         }
111 |         defer { closedir(dir) }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:111:17: error: cannot find 'closedir' in scope
109 |             throw FileError.error(errno)
110 |         }
111 |         defer { closedir(dir) }
    |                 `- error: cannot find 'closedir' in scope
112 |         var results = [String]()
113 |         while let ent = readdir(dir) {
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:113:25: error: cannot find 'readdir' in scope
111 |         defer { closedir(dir) }
112 |         var results = [String]()
113 |         while let ent = readdir(dir) {
    |                         `- error: cannot find 'readdir' in scope
114 |             var name = ent.pointee.d_name
115 |             let fileName = withUnsafePointer(to: &name) { (ptr) -> String? in
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:137:30: error: cannot find 'stat' in scope
135 |     private func withStat<T>(_ closure: ((stat?) throws -> T)) throws -> T {
136 |         return try self.withCString({
137 |             var statBuffer = stat()
    |                              `- error: cannot find 'stat' in scope
138 |             if stat($0, &statBuffer) == 0 {
139 |                 return try closure(statBuffer)
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:138:16: error: cannot find 'stat' in scope
136 |         return try self.withCString({
137 |             var statBuffer = stat()
138 |             if stat($0, &statBuffer) == 0 {
    |                `- error: cannot find 'stat' in scope
139 |                 return try closure(statBuffer)
140 |             }
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:141:16: error: cannot find 'errno' in scope
139 |                 return try closure(statBuffer)
140 |             }
141 |             if errno == ENOENT {
    |                `- error: cannot find 'errno' in scope
142 |                 return try closure(nil)
143 |             }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:144:35: error: cannot find 'errno' in scope
142 |                 return try closure(nil)
143 |             }
144 |             throw FileError.error(errno)
    |                                   `- error: cannot find 'errno' in scope
145 |         })
146 |     }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:18:43: error: cannot find type 'FILE' in scope
 16 |     public class File {
 17 |
 18 |         let pointer: UnsafeMutablePointer<FILE>
    |                                           `- error: cannot find type 'FILE' in scope
 19 |
 20 |         public init(_ pointer: UnsafeMutablePointer<FILE>) {
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:20:53: error: cannot find type 'FILE' in scope
 18 |         let pointer: UnsafeMutablePointer<FILE>
 19 |
 20 |         public init(_ pointer: UnsafeMutablePointer<FILE>) {
    |                                                     `- error: cannot find type 'FILE' in scope
 21 |             self.pointer = pointer
 22 |         }
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:135:43: error: cannot find type 'stat' in scope
133 |     }
134 |
135 |     private func withStat<T>(_ closure: ((stat?) throws -> T)) throws -> T {
    |                                           `- error: cannot find type 'stat' in scope
136 |         return try self.withCString({
137 |             var statBuffer = stat()
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:44:39: error: cannot find 'errno' in scope
 42 |             }
 43 |             if ferror(self.pointer) != 0 {
 44 |                 throw FileError.error(errno)
    |                                       `- error: cannot find 'errno' in scope
 45 |             }
 46 |             throw FileError.error(0)
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:55:43: error: cannot find 'errno' in scope
 53 |             try data.withUnsafeBufferPointer {
 54 |                 if fwrite($0.baseAddress, 1, data.count, self.pointer) != data.count {
 55 |                     throw FileError.error(errno)
    |                                           `- error: cannot find 'errno' in scope
 56 |                 }
 57 |             }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:54:30: error: value of optional type 'UnsafePointer<UInt8>?' must be unwrapped to a value of type 'UnsafePointer<UInt8>'
 52 |             }
 53 |             try data.withUnsafeBufferPointer {
 54 |                 if fwrite($0.baseAddress, 1, data.count, self.pointer) != data.count {
    |                              |- error: value of optional type 'UnsafePointer<UInt8>?' must be unwrapped to a value of type 'UnsafePointer<UInt8>'
    |                              |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
    |                              `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
 55 |                     throw FileError.error(errno)
 56 |                 }
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:61:30: error: cannot find 'getcwd' in scope
 59 |
 60 |         public static func currentWorkingDirectory() throws -> String {
 61 |             guard let path = getcwd(nil, 0) else {
    |                              `- error: cannot find 'getcwd' in scope
 62 |                 throw FileError.error(errno)
 63 |             }
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:61:37: error: 'nil' requires a contextual type
 59 |
 60 |         public static func currentWorkingDirectory() throws -> String {
 61 |             guard let path = getcwd(nil, 0) else {
    |                                     `- error: 'nil' requires a contextual type
 62 |                 throw FileError.error(errno)
 63 |             }
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:62:39: error: cannot find 'errno' in scope
 60 |         public static func currentWorkingDirectory() throws -> String {
 61 |             guard let path = getcwd(nil, 0) else {
 62 |                 throw FileError.error(errno)
    |                                       `- error: cannot find 'errno' in scope
 63 |             }
 64 |             return String(cString: path)
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:84:35: error: cannot find 'errno' in scope
 82 |     public func openFileForMode(_ path: String, _ mode: String) throws -> File {
 83 |         guard let file = path.withCString({ pathPointer in mode.withCString({ fopen(pathPointer, $0) }) }) else {
 84 |             throw FileError.error(errno)
    |                                   `- error: cannot find 'errno' in scope
 85 |         }
 86 |         return File(file)
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:101:39: error: cannot find 'S_IFMT' in scope
 99 |         return try self.withStat {
100 |             if let stat = $0 {
101 |                 return stat.st_mode & S_IFMT == S_IFDIR
    |                                       `- error: cannot find 'S_IFMT' in scope
102 |             }
103 |             return false
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:101:49: error: cannot find 'S_IFDIR' in scope
 99 |         return try self.withStat {
100 |             if let stat = $0 {
101 |                 return stat.st_mode & S_IFMT == S_IFDIR
    |                                                 `- error: cannot find 'S_IFDIR' in scope
102 |             }
103 |             return false
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:108:44: error: cannot find 'opendir' in scope
106 |
107 |     public func files() throws -> [String] {
108 |         guard let dir = self.withCString({ opendir($0) }) else {
    |                                            `- error: cannot find 'opendir' in scope
109 |             throw FileError.error(errno)
110 |         }
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:109:35: error: cannot find 'errno' in scope
107 |     public func files() throws -> [String] {
108 |         guard let dir = self.withCString({ opendir($0) }) else {
109 |             throw FileError.error(errno)
    |                                   `- error: cannot find 'errno' in scope
110 |         }
111 |         defer { closedir(dir) }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:111:17: error: cannot find 'closedir' in scope
109 |             throw FileError.error(errno)
110 |         }
111 |         defer { closedir(dir) }
    |                 `- error: cannot find 'closedir' in scope
112 |         var results = [String]()
113 |         while let ent = readdir(dir) {
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:113:25: error: cannot find 'readdir' in scope
111 |         defer { closedir(dir) }
112 |         var results = [String]()
113 |         while let ent = readdir(dir) {
    |                         `- error: cannot find 'readdir' in scope
114 |             var name = ent.pointee.d_name
115 |             let fileName = withUnsafePointer(to: &name) { (ptr) -> String? in
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:137:30: error: cannot find 'stat' in scope
135 |     private func withStat<T>(_ closure: ((stat?) throws -> T)) throws -> T {
136 |         return try self.withCString({
137 |             var statBuffer = stat()
    |                              `- error: cannot find 'stat' in scope
138 |             if stat($0, &statBuffer) == 0 {
139 |                 return try closure(statBuffer)
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:138:16: error: cannot find 'stat' in scope
136 |         return try self.withCString({
137 |             var statBuffer = stat()
138 |             if stat($0, &statBuffer) == 0 {
    |                `- error: cannot find 'stat' in scope
139 |                 return try closure(statBuffer)
140 |             }
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:141:16: error: cannot find 'errno' in scope
139 |                 return try closure(statBuffer)
140 |             }
141 |             if errno == ENOENT {
    |                `- error: cannot find 'errno' in scope
142 |                 return try closure(nil)
143 |             }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:144:35: error: cannot find 'errno' in scope
142 |                 return try closure(nil)
143 |             }
144 |             throw FileError.error(errno)
    |                                   `- error: cannot find 'errno' in scope
145 |         })
146 |     }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
[54/89] Compiling ArgumentParser Name.swift
[55/89] Compiling ArgumentParser Parsed.swift
[56/89] Compiling ArgumentParser ParsedValues.swift
[57/89] Compiling ArgumentParser ParserError.swift
[58/89] Compiling ArgumentParser SplitArguments.swift
[59/89] Compiling ArgumentParser DumpHelpGenerator.swift
[60/89] Compiling ArgumentParser HelpCommand.swift
[61/89] Compiling ArgumentParser HelpGenerator.swift
[62/89] Compiling ArgumentParser MessageInfo.swift
[63/89] Compiling ArgumentParser UsageGenerator.swift
[64/89] Compiling SimctlShared SimctlShared.swift
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:50:34: error: cannot find type 'in_port_t' in scope
 48 |     }
 49 |
 50 |     public func port() throws -> in_port_t {
    |                                  `- error: cannot find type 'in_port_t' in scope
 51 |         var addr = sockaddr_in()
 52 |         return try withUnsafePointer(to: &addr) { pointer in
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:51:20: error: cannot find 'sockaddr_in' in scope
 49 |
 50 |     public func port() throws -> in_port_t {
 51 |         var addr = sockaddr_in()
    |                    `- error: cannot find 'sockaddr_in' in scope
 52 |         return try withUnsafePointer(to: &addr) { pointer in
 53 |             var len = socklen_t(MemoryLayout<sockaddr_in>.size)
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:67:20: error: cannot find 'sockaddr_in' in scope
 65 |
 66 |     public func isIPv4() throws -> Bool {
 67 |         var addr = sockaddr_in()
    |                    `- error: cannot find 'sockaddr_in' in scope
 68 |         return try withUnsafePointer(to: &addr) { pointer in
 69 |             var len = socklen_t(MemoryLayout<sockaddr_in>.size)
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:69:46: error: cannot find type 'sockaddr_in' in scope
 67 |         var addr = sockaddr_in()
 68 |         return try withUnsafePointer(to: &addr) { pointer in
 69 |             var len = socklen_t(MemoryLayout<sockaddr_in>.size)
    |                                              `- error: cannot find type 'sockaddr_in' in scope
 70 |             if getsockname(socketFileDescriptor, UnsafeMutablePointer(OpaquePointer(pointer)), &len) != 0 {
 71 |                 throw SocketError.getSockNameFailed(Errno.description())
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:70:16: error: cannot find 'getsockname' in scope
 68 |         return try withUnsafePointer(to: &addr) { pointer in
 69 |             var len = socklen_t(MemoryLayout<sockaddr_in>.size)
 70 |             if getsockname(socketFileDescriptor, UnsafeMutablePointer(OpaquePointer(pointer)), &len) != 0 {
    |                `- error: cannot find 'getsockname' in scope
 71 |                 throw SocketError.getSockNameFailed(Errno.description())
 72 |             }
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:73:57: error: cannot find 'AF_INET' in scope
 71 |                 throw SocketError.getSockNameFailed(Errno.description())
 72 |             }
 73 |             return Int32(pointer.pointee.sin_family) == AF_INET
    |                                                         `- error: cannot find 'AF_INET' in scope
 74 |         }
 75 |     }
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:116:30: error: cannot find 'write' in scope
114 |                 let result = send(self.socketFileDescriptor, pointer + sent, Int(length - sent), Int32(MSG_NOSIGNAL))
115 |             #else
116 |                 let result = write(self.socketFileDescriptor, pointer + sent, Int(length - sent))
    |                              `- error: cannot find 'write' in scope
117 |             #endif
118 |             if result <= 0 {
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:137:18: error: cannot find 'Darwin' in scope
135 | 	    let count = Glibc.read(self.socketFileDescriptor as Int32, &byte, 1)
136 | 	    #else
137 | 	    let count = Darwin.read(self.socketFileDescriptor as Int32, &byte, 1)
    |                  `- error: cannot find 'Darwin' in scope
138 | 	    #endif
139 |
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:180:26: error: cannot find 'Darwin' in scope
178 |             let bytesRead = Glibc.read(self.socketFileDescriptor as Int32, baseAddress + offset, readLength)
179 | 	        #else
180 | 	        let bytesRead = Darwin.read(self.socketFileDescriptor as Int32, baseAddress + offset, readLength)
    |                          `- error: cannot find 'Darwin' in scope
181 | 	        #endif
182 |
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:207:20: error: cannot find 'sockaddr' in scope
205 |
206 |     public func peername() throws -> String {
207 |         var addr = sockaddr(), len: socklen_t = socklen_t(MemoryLayout<sockaddr>.size)
    |                    `- error: cannot find 'sockaddr' in scope
208 |         if getpeername(self.socketFileDescriptor, &addr, &len) != 0 {
209 |             throw SocketError.getPeerNameFailed(Errno.description())
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:207:72: error: cannot find type 'sockaddr' in scope
205 |
206 |     public func peername() throws -> String {
207 |         var addr = sockaddr(), len: socklen_t = socklen_t(MemoryLayout<sockaddr>.size)
    |                                                                        `- error: cannot find type 'sockaddr' in scope
208 |         if getpeername(self.socketFileDescriptor, &addr, &len) != 0 {
209 |             throw SocketError.getPeerNameFailed(Errno.description())
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:208:12: error: cannot find 'getpeername' in scope
206 |     public func peername() throws -> String {
207 |         var addr = sockaddr(), len: socklen_t = socklen_t(MemoryLayout<sockaddr>.size)
208 |         if getpeername(self.socketFileDescriptor, &addr, &len) != 0 {
    |            `- error: cannot find 'getpeername' in scope
209 |             throw SocketError.getPeerNameFailed(Errno.description())
210 |         }
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:211:59: error: cannot find 'NI_MAXHOST' in scope
209 |             throw SocketError.getPeerNameFailed(Errno.description())
210 |         }
211 |         var hostBuffer = [CChar](repeating: 0, count: Int(NI_MAXHOST))
    |                                                           `- error: cannot find 'NI_MAXHOST' in scope
212 |         if getnameinfo(&addr, len, &hostBuffer, socklen_t(hostBuffer.count), nil, 0, NI_NUMERICHOST) != 0 {
213 |             throw SocketError.getNameInfoFailed(Errno.description())
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:212:12: error: cannot find 'getnameinfo' in scope
210 |         }
211 |         var hostBuffer = [CChar](repeating: 0, count: Int(NI_MAXHOST))
212 |         if getnameinfo(&addr, len, &hostBuffer, socklen_t(hostBuffer.count), nil, 0, NI_NUMERICHOST) != 0 {
    |            `- error: cannot find 'getnameinfo' in scope
213 |             throw SocketError.getNameInfoFailed(Errno.description())
214 |         }
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:212:86: error: cannot find 'NI_NUMERICHOST' in scope
210 |         }
211 |         var hostBuffer = [CChar](repeating: 0, count: Int(NI_MAXHOST))
212 |         if getnameinfo(&addr, len, &hostBuffer, socklen_t(hostBuffer.count), nil, 0, NI_NUMERICHOST) != 0 {
    |                                                                                      `- error: cannot find 'NI_NUMERICHOST' in scope
213 |             throw SocketError.getNameInfoFailed(Errno.description())
214 |         }
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:212:78: error: 'nil' requires a contextual type
210 |         }
211 |         var hostBuffer = [CChar](repeating: 0, count: Int(NI_MAXHOST))
212 |         if getnameinfo(&addr, len, &hostBuffer, socklen_t(hostBuffer.count), nil, 0, NI_NUMERICHOST) != 0 {
    |                                                                              `- error: 'nil' requires a contextual type
213 |             throw SocketError.getNameInfoFailed(Errno.description())
214 |         }
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:225:13: error: cannot find 'setsockopt' in scope
223 |             // Prevents crashes when blocking calls are pending and the app is paused ( via Home button ).
224 |             var no_sig_pipe: Int32 = 1
225 |             setsockopt(socket, SOL_SOCKET, SO_NOSIGPIPE, &no_sig_pipe, socklen_t(MemoryLayout<Int32>.size))
    |             `- error: cannot find 'setsockopt' in scope
226 |         #endif
227 |     }
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:225:32: error: cannot find 'SOL_SOCKET' in scope
223 |             // Prevents crashes when blocking calls are pending and the app is paused ( via Home button ).
224 |             var no_sig_pipe: Int32 = 1
225 |             setsockopt(socket, SOL_SOCKET, SO_NOSIGPIPE, &no_sig_pipe, socklen_t(MemoryLayout<Int32>.size))
    |                                `- error: cannot find 'SOL_SOCKET' in scope
226 |         #endif
227 |     }
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:225:44: error: cannot find 'SO_NOSIGPIPE' in scope
223 |             // Prevents crashes when blocking calls are pending and the app is paused ( via Home button ).
224 |             var no_sig_pipe: Int32 = 1
225 |             setsockopt(socket, SOL_SOCKET, SO_NOSIGPIPE, &no_sig_pipe, socklen_t(MemoryLayout<Int32>.size))
    |                                            `- error: cannot find 'SO_NOSIGPIPE' in scope
226 |         #endif
227 |     }
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:233:17: error: cannot find 'Darwin' in scope
231 |             _ = Glibc.close(socket)
232 |         #else
233 |             _ = Darwin.close(socket)
    |                 `- error: cannot find 'Darwin' in scope
234 |         #endif
235 |     }
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:50:34: error: cannot find type 'in_port_t' in scope
 48 |     }
 49 |
 50 |     public func port() throws -> in_port_t {
    |                                  `- error: cannot find type 'in_port_t' in scope
 51 |         var addr = sockaddr_in()
 52 |         return try withUnsafePointer(to: &addr) { pointer in
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:51:20: error: cannot find 'sockaddr_in' in scope
 49 |
 50 |     public func port() throws -> in_port_t {
 51 |         var addr = sockaddr_in()
    |                    `- error: cannot find 'sockaddr_in' in scope
 52 |         return try withUnsafePointer(to: &addr) { pointer in
 53 |             var len = socklen_t(MemoryLayout<sockaddr_in>.size)
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:67:20: error: cannot find 'sockaddr_in' in scope
 65 |
 66 |     public func isIPv4() throws -> Bool {
 67 |         var addr = sockaddr_in()
    |                    `- error: cannot find 'sockaddr_in' in scope
 68 |         return try withUnsafePointer(to: &addr) { pointer in
 69 |             var len = socklen_t(MemoryLayout<sockaddr_in>.size)
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:69:46: error: cannot find type 'sockaddr_in' in scope
 67 |         var addr = sockaddr_in()
 68 |         return try withUnsafePointer(to: &addr) { pointer in
 69 |             var len = socklen_t(MemoryLayout<sockaddr_in>.size)
    |                                              `- error: cannot find type 'sockaddr_in' in scope
 70 |             if getsockname(socketFileDescriptor, UnsafeMutablePointer(OpaquePointer(pointer)), &len) != 0 {
 71 |                 throw SocketError.getSockNameFailed(Errno.description())
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:70:16: error: cannot find 'getsockname' in scope
 68 |         return try withUnsafePointer(to: &addr) { pointer in
 69 |             var len = socklen_t(MemoryLayout<sockaddr_in>.size)
 70 |             if getsockname(socketFileDescriptor, UnsafeMutablePointer(OpaquePointer(pointer)), &len) != 0 {
    |                `- error: cannot find 'getsockname' in scope
 71 |                 throw SocketError.getSockNameFailed(Errno.description())
 72 |             }
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:73:57: error: cannot find 'AF_INET' in scope
 71 |                 throw SocketError.getSockNameFailed(Errno.description())
 72 |             }
 73 |             return Int32(pointer.pointee.sin_family) == AF_INET
    |                                                         `- error: cannot find 'AF_INET' in scope
 74 |         }
 75 |     }
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:116:30: error: cannot find 'write' in scope
114 |                 let result = send(self.socketFileDescriptor, pointer + sent, Int(length - sent), Int32(MSG_NOSIGNAL))
115 |             #else
116 |                 let result = write(self.socketFileDescriptor, pointer + sent, Int(length - sent))
    |                              `- error: cannot find 'write' in scope
117 |             #endif
118 |             if result <= 0 {
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:137:18: error: cannot find 'Darwin' in scope
135 | 	    let count = Glibc.read(self.socketFileDescriptor as Int32, &byte, 1)
136 | 	    #else
137 | 	    let count = Darwin.read(self.socketFileDescriptor as Int32, &byte, 1)
    |                  `- error: cannot find 'Darwin' in scope
138 | 	    #endif
139 |
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:180:26: error: cannot find 'Darwin' in scope
178 |             let bytesRead = Glibc.read(self.socketFileDescriptor as Int32, baseAddress + offset, readLength)
179 | 	        #else
180 | 	        let bytesRead = Darwin.read(self.socketFileDescriptor as Int32, baseAddress + offset, readLength)
    |                          `- error: cannot find 'Darwin' in scope
181 | 	        #endif
182 |
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:207:20: error: cannot find 'sockaddr' in scope
205 |
206 |     public func peername() throws -> String {
207 |         var addr = sockaddr(), len: socklen_t = socklen_t(MemoryLayout<sockaddr>.size)
    |                    `- error: cannot find 'sockaddr' in scope
208 |         if getpeername(self.socketFileDescriptor, &addr, &len) != 0 {
209 |             throw SocketError.getPeerNameFailed(Errno.description())
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:207:72: error: cannot find type 'sockaddr' in scope
205 |
206 |     public func peername() throws -> String {
207 |         var addr = sockaddr(), len: socklen_t = socklen_t(MemoryLayout<sockaddr>.size)
    |                                                                        `- error: cannot find type 'sockaddr' in scope
208 |         if getpeername(self.socketFileDescriptor, &addr, &len) != 0 {
209 |             throw SocketError.getPeerNameFailed(Errno.description())
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:208:12: error: cannot find 'getpeername' in scope
206 |     public func peername() throws -> String {
207 |         var addr = sockaddr(), len: socklen_t = socklen_t(MemoryLayout<sockaddr>.size)
208 |         if getpeername(self.socketFileDescriptor, &addr, &len) != 0 {
    |            `- error: cannot find 'getpeername' in scope
209 |             throw SocketError.getPeerNameFailed(Errno.description())
210 |         }
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:211:59: error: cannot find 'NI_MAXHOST' in scope
209 |             throw SocketError.getPeerNameFailed(Errno.description())
210 |         }
211 |         var hostBuffer = [CChar](repeating: 0, count: Int(NI_MAXHOST))
    |                                                           `- error: cannot find 'NI_MAXHOST' in scope
212 |         if getnameinfo(&addr, len, &hostBuffer, socklen_t(hostBuffer.count), nil, 0, NI_NUMERICHOST) != 0 {
213 |             throw SocketError.getNameInfoFailed(Errno.description())
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:212:12: error: cannot find 'getnameinfo' in scope
210 |         }
211 |         var hostBuffer = [CChar](repeating: 0, count: Int(NI_MAXHOST))
212 |         if getnameinfo(&addr, len, &hostBuffer, socklen_t(hostBuffer.count), nil, 0, NI_NUMERICHOST) != 0 {
    |            `- error: cannot find 'getnameinfo' in scope
213 |             throw SocketError.getNameInfoFailed(Errno.description())
214 |         }
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:212:86: error: cannot find 'NI_NUMERICHOST' in scope
210 |         }
211 |         var hostBuffer = [CChar](repeating: 0, count: Int(NI_MAXHOST))
212 |         if getnameinfo(&addr, len, &hostBuffer, socklen_t(hostBuffer.count), nil, 0, NI_NUMERICHOST) != 0 {
    |                                                                                      `- error: cannot find 'NI_NUMERICHOST' in scope
213 |             throw SocketError.getNameInfoFailed(Errno.description())
214 |         }
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:212:78: error: 'nil' requires a contextual type
210 |         }
211 |         var hostBuffer = [CChar](repeating: 0, count: Int(NI_MAXHOST))
212 |         if getnameinfo(&addr, len, &hostBuffer, socklen_t(hostBuffer.count), nil, 0, NI_NUMERICHOST) != 0 {
    |                                                                              `- error: 'nil' requires a contextual type
213 |             throw SocketError.getNameInfoFailed(Errno.description())
214 |         }
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:225:13: error: cannot find 'setsockopt' in scope
223 |             // Prevents crashes when blocking calls are pending and the app is paused ( via Home button ).
224 |             var no_sig_pipe: Int32 = 1
225 |             setsockopt(socket, SOL_SOCKET, SO_NOSIGPIPE, &no_sig_pipe, socklen_t(MemoryLayout<Int32>.size))
    |             `- error: cannot find 'setsockopt' in scope
226 |         #endif
227 |     }
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:225:32: error: cannot find 'SOL_SOCKET' in scope
223 |             // Prevents crashes when blocking calls are pending and the app is paused ( via Home button ).
224 |             var no_sig_pipe: Int32 = 1
225 |             setsockopt(socket, SOL_SOCKET, SO_NOSIGPIPE, &no_sig_pipe, socklen_t(MemoryLayout<Int32>.size))
    |                                `- error: cannot find 'SOL_SOCKET' in scope
226 |         #endif
227 |     }
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:225:44: error: cannot find 'SO_NOSIGPIPE' in scope
223 |             // Prevents crashes when blocking calls are pending and the app is paused ( via Home button ).
224 |             var no_sig_pipe: Int32 = 1
225 |             setsockopt(socket, SOL_SOCKET, SO_NOSIGPIPE, &no_sig_pipe, socklen_t(MemoryLayout<Int32>.size))
    |                                            `- error: cannot find 'SO_NOSIGPIPE' in scope
226 |         #endif
227 |     }
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:233:17: error: cannot find 'Darwin' in scope
231 |             _ = Glibc.close(socket)
232 |         #else
233 |             _ = Darwin.close(socket)
    |                 `- error: cannot find 'Darwin' in scope
234 |         #endif
235 |     }
[67/89] Emitting module SimctlShared
[70/91] Wrapping AST for ArgumentParser for debugging
[71/91] Wrapping AST for SimctlShared for debugging
[72/91] Wrapping AST for ShellOut for debugging
error: emit-module command failed with exit code 1 (use -v to see invocation)
[74/93] Emitting module Simctl
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:10:14: error: type alias 'URLSession' (aka 'AnyObject') cannot be imported as 'class'
  8 | import struct Foundation.UUID
  9 | import struct Foundation.Data
 10 | import class Foundation.URLSession
    |              `- error: type alias 'URLSession' (aka 'AnyObject') cannot be imported as 'class'
 11 | import SimctlShared
 12 | #if canImport(UIKit)
Foundation.URLSession:2:18: note: 'URLSession' declared here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' declared here
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:17:8: error: Unsupported platform!
 15 | import AppKit
 16 | #else
 17 | #error("Unsupported platform!")
    |        `- error: Unsupported platform!
 18 | #endif
 19 |
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:30:16: warning: static property 'host' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 28 |     /// Note: if you like to use another port here, you need to provide it
 29 |     /// when starting up the server via the `--port` flag.
 30 |     static var host: Host = .localhost(port: 8080)
    |                |- warning: static property 'host' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'host' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: add '@MainActor' to make static property 'host' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 31 |
 32 |     let session: URLSession
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:32:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 30 |     static var host: Host = .localhost(port: 8080)
 31 |
 32 |     let session: URLSession
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 33 |     let env: SimctlClientEnvironment
 34 |
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:129:32: error: cannot find type 'URL' in scope
127 |     /// - Parameter url: URL to open.
128 |     /// - Parameter completion: Result callback of the call. Use this to wait for an expectation to fulfill in a test case.
129 |     public func openUrl(_ url: URL, completion: @escaping DataTaskCallback) {
    |                                `- error: cannot find type 'URL' in scope
130 |         dataTask(.openURL(env, URLContainer(url: url)), completion)
131 |     }
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:170:51: error: cannot find type 'Bundle' in scope
168 |     ///   - bundle: Bundle of the app you want to interact with.
169 |     ///   - processInfo: The process info from where to get the device Udid.
170 |     public init?(host: SimctlClient.Host, bundle: Bundle, processInfo: ProcessInfo) {
    |                                                   `- error: cannot find type 'Bundle' in scope
171 |         guard let udid = Self.deviceId(processInfo) else {
172 |             return nil
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:170:72: error: cannot find type 'ProcessInfo' in scope
168 |     ///   - bundle: Bundle of the app you want to interact with.
169 |     ///   - processInfo: The process info from where to get the device Udid.
170 |     public init?(host: SimctlClient.Host, bundle: Bundle, processInfo: ProcessInfo) {
    |                                                                        `- error: cannot find type 'ProcessInfo' in scope
171 |         guard let udid = Self.deviceId(processInfo) else {
172 |             return nil
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:194:41: error: cannot find type 'ProcessInfo' in scope
192 |     }
193 |
194 |     static func deviceId(_ processInfo: ProcessInfo) -> UUID? {
    |                                         `- error: cannot find type 'ProcessInfo' in scope
195 |         guard let udidString = processInfo.environment[ProcessEnvironmentKey.simulatorUdid.rawValue] else {
196 |             return nil
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:251:46: error: cannot find type 'HTTPURLResponse' in scope
249 |     public enum Error: Swift.Error {
250 |         case noHttpResponse(Route)
251 |         case unexpectedHttpStatusCode(Route, HTTPURLResponse)
    |                                              `- error: cannot find type 'HTTPURLResponse' in scope
252 |         case noData(Route, HTTPURLResponse)
253 |         case serviceError(Swift.Error)
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:252:28: error: cannot find type 'HTTPURLResponse' in scope
250 |         case noHttpResponse(Route)
251 |         case unexpectedHttpStatusCode(Route, HTTPURLResponse)
252 |         case noData(Route, HTTPURLResponse)
    |                            `- error: cannot find type 'HTTPURLResponse' in scope
253 |         case serviceError(Swift.Error)
254 |     }
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:250:14: warning: associated value 'noHttpResponse' of 'Sendable'-conforming enum 'Error' has non-sendable type 'SimctlClient.Route'; this is an error in the Swift 6 language mode
248 | extension SimctlClient {
249 |     public enum Error: Swift.Error {
250 |         case noHttpResponse(Route)
    |              `- warning: associated value 'noHttpResponse' of 'Sendable'-conforming enum 'Error' has non-sendable type 'SimctlClient.Route'; this is an error in the Swift 6 language mode
251 |         case unexpectedHttpStatusCode(Route, HTTPURLResponse)
252 |         case noData(Route, HTTPURLResponse)
    :
257 | // MARK: - Routing
258 | extension SimctlClient {
259 |     public enum Route {
    |                 `- note: consider making enum 'Route' conform to the 'Sendable' protocol
260 |         case sendPushNotification(SimctlClientEnvironment, PushNotificationContent)
261 |         case setPrivacy(SimctlClientEnvironment, PrivacyAction, PrivacyService)
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:251:14: warning: associated value 'unexpectedHttpStatusCode' of 'Sendable'-conforming enum 'Error' has non-sendable type 'SimctlClient.Route'; this is an error in the Swift 6 language mode
249 |     public enum Error: Swift.Error {
250 |         case noHttpResponse(Route)
251 |         case unexpectedHttpStatusCode(Route, HTTPURLResponse)
    |              `- warning: associated value 'unexpectedHttpStatusCode' of 'Sendable'-conforming enum 'Error' has non-sendable type 'SimctlClient.Route'; this is an error in the Swift 6 language mode
252 |         case noData(Route, HTTPURLResponse)
253 |         case serviceError(Swift.Error)
    :
257 | // MARK: - Routing
258 | extension SimctlClient {
259 |     public enum Route {
    |                 `- note: consider making enum 'Route' conform to the 'Sendable' protocol
260 |         case sendPushNotification(SimctlClientEnvironment, PushNotificationContent)
261 |         case setPrivacy(SimctlClientEnvironment, PrivacyAction, PrivacyService)
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:252:14: warning: associated value 'noData' of 'Sendable'-conforming enum 'Error' has non-sendable type 'SimctlClient.Route'; this is an error in the Swift 6 language mode
250 |         case noHttpResponse(Route)
251 |         case unexpectedHttpStatusCode(Route, HTTPURLResponse)
252 |         case noData(Route, HTTPURLResponse)
    |              `- warning: associated value 'noData' of 'Sendable'-conforming enum 'Error' has non-sendable type 'SimctlClient.Route'; this is an error in the Swift 6 language mode
253 |         case serviceError(Swift.Error)
254 |     }
    :
257 | // MARK: - Routing
258 | extension SimctlClient {
259 |     public enum Route {
    |                 `- note: consider making enum 'Route' conform to the 'Sendable' protocol
260 |         case sendPushNotification(SimctlClientEnvironment, PushNotificationContent)
261 |         case setPrivacy(SimctlClientEnvironment, PrivacyAction, PrivacyService)
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:405:25: error: cannot find type 'URL' in scope
403 |         }
404 |
405 |         func asURL() -> URL {
    |                         `- error: cannot find type 'URL' in scope
406 |             let urlString: String = SimctlClient.host.host + path.rawValue
407 |             guard let url = URL(string: urlString) else {
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:414:32: error: cannot find type 'URLRequest' in scope
412 |         }
413 |
414 |         func asURLRequest() -> URLRequest {
    |                                `- error: cannot find type 'URLRequest' in scope
415 |             var request = URLRequest(url: asURL())
416 |
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:379:27: error: cannot find 'JSONEncoder' in scope
377 |
378 |         @inlinable var httpBody: Data? {
379 |             let encoder = JSONEncoder()
    |                           `- error: cannot find 'JSONEncoder' in scope
380 |             switch self {
381 |             case let .sendPushNotification(_, notification):
[75/93] Compiling Simctl SimctlClient.swift
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:10:14: error: type alias 'URLSession' (aka 'AnyObject') cannot be imported as 'class'
  8 | import struct Foundation.UUID
  9 | import struct Foundation.Data
 10 | import class Foundation.URLSession
    |              `- error: type alias 'URLSession' (aka 'AnyObject') cannot be imported as 'class'
 11 | import SimctlShared
 12 | #if canImport(UIKit)
Foundation.URLSession:2:18: note: 'URLSession' declared here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' declared here
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:17:8: error: Unsupported platform!
 15 | import AppKit
 16 | #else
 17 | #error("Unsupported platform!")
    |        `- error: Unsupported platform!
 18 | #endif
 19 |
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:30:16: warning: static property 'host' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 28 |     /// Note: if you like to use another port here, you need to provide it
 29 |     /// when starting up the server via the `--port` flag.
 30 |     static var host: Host = .localhost(port: 8080)
    |                |- warning: static property 'host' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'host' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: add '@MainActor' to make static property 'host' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 31 |
 32 |     let session: URLSession
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:32:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 30 |     static var host: Host = .localhost(port: 8080)
 31 |
 32 |     let session: URLSession
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 33 |     let env: SimctlClientEnvironment
 34 |
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:129:32: error: cannot find type 'URL' in scope
127 |     /// - Parameter url: URL to open.
128 |     /// - Parameter completion: Result callback of the call. Use this to wait for an expectation to fulfill in a test case.
129 |     public func openUrl(_ url: URL, completion: @escaping DataTaskCallback) {
    |                                `- error: cannot find type 'URL' in scope
130 |         dataTask(.openURL(env, URLContainer(url: url)), completion)
131 |     }
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:170:51: error: cannot find type 'Bundle' in scope
168 |     ///   - bundle: Bundle of the app you want to interact with.
169 |     ///   - processInfo: The process info from where to get the device Udid.
170 |     public init?(host: SimctlClient.Host, bundle: Bundle, processInfo: ProcessInfo) {
    |                                                   `- error: cannot find type 'Bundle' in scope
171 |         guard let udid = Self.deviceId(processInfo) else {
172 |             return nil
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:170:72: error: cannot find type 'ProcessInfo' in scope
168 |     ///   - bundle: Bundle of the app you want to interact with.
169 |     ///   - processInfo: The process info from where to get the device Udid.
170 |     public init?(host: SimctlClient.Host, bundle: Bundle, processInfo: ProcessInfo) {
    |                                                                        `- error: cannot find type 'ProcessInfo' in scope
171 |         guard let udid = Self.deviceId(processInfo) else {
172 |             return nil
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:194:41: error: cannot find type 'ProcessInfo' in scope
192 |     }
193 |
194 |     static func deviceId(_ processInfo: ProcessInfo) -> UUID? {
    |                                         `- error: cannot find type 'ProcessInfo' in scope
195 |         guard let udidString = processInfo.environment[ProcessEnvironmentKey.simulatorUdid.rawValue] else {
196 |             return nil
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:251:46: error: cannot find type 'HTTPURLResponse' in scope
249 |     public enum Error: Swift.Error {
250 |         case noHttpResponse(Route)
251 |         case unexpectedHttpStatusCode(Route, HTTPURLResponse)
    |                                              `- error: cannot find type 'HTTPURLResponse' in scope
252 |         case noData(Route, HTTPURLResponse)
253 |         case serviceError(Swift.Error)
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:252:28: error: cannot find type 'HTTPURLResponse' in scope
250 |         case noHttpResponse(Route)
251 |         case unexpectedHttpStatusCode(Route, HTTPURLResponse)
252 |         case noData(Route, HTTPURLResponse)
    |                            `- error: cannot find type 'HTTPURLResponse' in scope
253 |         case serviceError(Swift.Error)
254 |     }
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:250:14: warning: associated value 'noHttpResponse' of 'Sendable'-conforming enum 'Error' has non-sendable type 'SimctlClient.Route'; this is an error in the Swift 6 language mode
248 | extension SimctlClient {
249 |     public enum Error: Swift.Error {
250 |         case noHttpResponse(Route)
    |              `- warning: associated value 'noHttpResponse' of 'Sendable'-conforming enum 'Error' has non-sendable type 'SimctlClient.Route'; this is an error in the Swift 6 language mode
251 |         case unexpectedHttpStatusCode(Route, HTTPURLResponse)
252 |         case noData(Route, HTTPURLResponse)
    :
257 | // MARK: - Routing
258 | extension SimctlClient {
259 |     public enum Route {
    |                 `- note: consider making enum 'Route' conform to the 'Sendable' protocol
260 |         case sendPushNotification(SimctlClientEnvironment, PushNotificationContent)
261 |         case setPrivacy(SimctlClientEnvironment, PrivacyAction, PrivacyService)
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:251:14: warning: associated value 'unexpectedHttpStatusCode' of 'Sendable'-conforming enum 'Error' has non-sendable type 'SimctlClient.Route'; this is an error in the Swift 6 language mode
249 |     public enum Error: Swift.Error {
250 |         case noHttpResponse(Route)
251 |         case unexpectedHttpStatusCode(Route, HTTPURLResponse)
    |              `- warning: associated value 'unexpectedHttpStatusCode' of 'Sendable'-conforming enum 'Error' has non-sendable type 'SimctlClient.Route'; this is an error in the Swift 6 language mode
252 |         case noData(Route, HTTPURLResponse)
253 |         case serviceError(Swift.Error)
    :
257 | // MARK: - Routing
258 | extension SimctlClient {
259 |     public enum Route {
    |                 `- note: consider making enum 'Route' conform to the 'Sendable' protocol
260 |         case sendPushNotification(SimctlClientEnvironment, PushNotificationContent)
261 |         case setPrivacy(SimctlClientEnvironment, PrivacyAction, PrivacyService)
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:252:14: warning: associated value 'noData' of 'Sendable'-conforming enum 'Error' has non-sendable type 'SimctlClient.Route'; this is an error in the Swift 6 language mode
250 |         case noHttpResponse(Route)
251 |         case unexpectedHttpStatusCode(Route, HTTPURLResponse)
252 |         case noData(Route, HTTPURLResponse)
    |              `- warning: associated value 'noData' of 'Sendable'-conforming enum 'Error' has non-sendable type 'SimctlClient.Route'; this is an error in the Swift 6 language mode
253 |         case serviceError(Swift.Error)
254 |     }
    :
257 | // MARK: - Routing
258 | extension SimctlClient {
259 |     public enum Route {
    |                 `- note: consider making enum 'Route' conform to the 'Sendable' protocol
260 |         case sendPushNotification(SimctlClientEnvironment, PushNotificationContent)
261 |         case setPrivacy(SimctlClientEnvironment, PrivacyAction, PrivacyService)
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:405:25: error: cannot find type 'URL' in scope
403 |         }
404 |
405 |         func asURL() -> URL {
    |                         `- error: cannot find type 'URL' in scope
406 |             let urlString: String = SimctlClient.host.host + path.rawValue
407 |             guard let url = URL(string: urlString) else {
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:414:32: error: cannot find type 'URLRequest' in scope
412 |         }
413 |
414 |         func asURLRequest() -> URLRequest {
    |                                `- error: cannot find type 'URLRequest' in scope
415 |             var request = URLRequest(url: asURL())
416 |
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:43:19: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 41 |     /// Start client in a given environment.
 42 |     public init(environment: SimctlClientEnvironment) {
 43 |         session = URLSession(configuration: .default)
    |                   `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 44 |         Self.host = environment.host
 45 |         self.env = environment
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:43:46: error: cannot infer contextual base in reference to member 'default'
 41 |     /// Start client in a given environment.
 42 |     public init(environment: SimctlClientEnvironment) {
 43 |         session = URLSession(configuration: .default)
    |                                              `- error: cannot infer contextual base in reference to member 'default'
 44 |         Self.host = environment.host
 45 |         self.env = environment
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:188:40: error: cannot find 'ProcessInfo' in scope
186 |     ///   - host: The host and port of the SimctlCLI server.
187 |     public init?(bundleIdentifier: String, host: SimctlClient.Host) {
188 |         guard let udid = Self.deviceId(ProcessInfo()) else {
    |                                        `- error: cannot find 'ProcessInfo' in scope
189 |             return nil
190 |         }
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:379:27: error: cannot find 'JSONEncoder' in scope
377 |
378 |         @inlinable var httpBody: Data? {
379 |             let encoder = JSONEncoder()
    |                           `- error: cannot find 'JSONEncoder' in scope
380 |             switch self {
381 |             case let .sendPushNotification(_, notification):
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:407:29: error: cannot find 'URL' in scope
405 |         func asURL() -> URL {
406 |             let urlString: String = SimctlClient.host.host + path.rawValue
407 |             guard let url = URL(string: urlString) else {
    |                             `- error: cannot find 'URL' in scope
408 |                 fatalError("no valid url \(urlString)")
409 |             }
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:415:27: error: cannot find 'URLRequest' in scope
413 |
414 |         func asURLRequest() -> URLRequest {
415 |             var request = URLRequest(url: asURL())
    |                           `- error: cannot find 'URLRequest' in scope
416 |
417 |             request.httpMethod = httpMethod.rawValue
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:444:35: error: cannot find 'JSONDecoder' in scope
442 |             case let .success(data):
443 |                 do {
444 |                     let decoder = JSONDecoder()
    |                                   `- error: cannot find 'JSONDecoder' in scope
445 |                     let value: Value = try decoder.decode(Value.self, from: data)
446 |                     completion(.success(value))
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:462:50: error: cannot find type 'HTTPURLResponse' in scope
460 |             }
461 |
462 |             guard let response = urlResponse as? HTTPURLResponse else {
    |                                                  `- error: cannot find type 'HTTPURLResponse' in scope
463 |                 completion(.failure(Error.noHttpResponse(route)))
464 |                 return
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:456:28: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
454 |
455 |     func dataTask(_ route: Route, _ completion: @escaping DataTaskCallback) {
456 |         let task = session.dataTask(with: route.asURLRequest()) { data, urlResponse, error in
    |                            `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
457 |             if let error = error {
458 |                 completion(.failure(Error.serviceError(error)))
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket+File.swift:45:17: error: cannot find type 'sf_hdtr' in scope
43 |     public func writeFile(_ file: String.File) throws {
44 |         var offset: off_t = 0
45 |         var sf: sf_hdtr = sf_hdtr()
   |                 `- error: cannot find type 'sf_hdtr' in scope
46 |
47 |         #if os(iOS) || os(tvOS) || os (Linux)
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket+File.swift:50:22: error: cannot find 'sendfile' in scope
48 |         let result = sendfileImpl(file.pointer, self.socketFileDescriptor, 0, &offset, &sf, 0)
49 |         #else
50 |         let result = sendfile(fileno(file.pointer), self.socketFileDescriptor, 0, &offset, &sf, 0)
   |                      `- error: cannot find 'sendfile' in scope
51 |         #endif
52 |
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:18:43: error: cannot find type 'FILE' in scope
 16 |     public class File {
 17 |
 18 |         let pointer: UnsafeMutablePointer<FILE>
    |                                           `- error: cannot find type 'FILE' in scope
 19 |
 20 |         public init(_ pointer: UnsafeMutablePointer<FILE>) {
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket+Server.swift:17:50: error: cannot find type 'in_port_t' in scope
 15 |     ///       connections from. It should be in IPv4 format if forceIPv4 == true,
 16 |     ///       otherwise - in IPv6.
 17 |     public class func tcpSocketForListen(_ port: in_port_t, _ forceIPv4: Bool = false, _ maxPendingConnection: Int32 = SOMAXCONN, _ listenAddress: String? = nil) throws -> Socket {
    |                                                  `- error: cannot find type 'in_port_t' in scope
 18 |
 19 |         #if os(Linux)
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket+Server.swift:17:120: error: cannot find 'SOMAXCONN' in scope
 15 |     ///       connections from. It should be in IPv4 format if forceIPv4 == true,
 16 |     ///       otherwise - in IPv6.
 17 |     public class func tcpSocketForListen(_ port: in_port_t, _ forceIPv4: Bool = false, _ maxPendingConnection: Int32 = SOMAXCONN, _ listenAddress: String? = nil) throws -> Socket {
    |                                                                                                                        `- error: cannot find 'SOMAXCONN' in scope
 18 |
 19 |         #if os(Linux)
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket+Server.swift:22:40: error: cannot find 'socket' in scope
 20 |             let socketFileDescriptor = socket(forceIPv4 ? AF_INET : AF_INET6, Int32(SOCK_STREAM.rawValue), 0)
 21 |         #else
 22 |             let socketFileDescriptor = socket(forceIPv4 ? AF_INET : AF_INET6, SOCK_STREAM, 0)
    |                                        `- error: cannot find 'socket' in scope
 23 |         #endif
 24 |
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket+Server.swift:22:59: error: cannot find 'AF_INET' in scope
 20 |             let socketFileDescriptor = socket(forceIPv4 ? AF_INET : AF_INET6, Int32(SOCK_STREAM.rawValue), 0)
 21 |         #else
 22 |             let socketFileDescriptor = socket(forceIPv4 ? AF_INET : AF_INET6, SOCK_STREAM, 0)
    |                                                           `- error: cannot find 'AF_INET' in scope
 23 |         #endif
 24 |
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket+Server.swift:22:69: error: cannot find 'AF_INET6' in scope
 20 |             let socketFileDescriptor = socket(forceIPv4 ? AF_INET : AF_INET6, Int32(SOCK_STREAM.rawValue), 0)
 21 |         #else
 22 |             let socketFileDescriptor = socket(forceIPv4 ? AF_INET : AF_INET6, SOCK_STREAM, 0)
    |                                                                     `- error: cannot find 'AF_INET6' in scope
 23 |         #endif
 24 |
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket+Server.swift:22:79: error: cannot find 'SOCK_STREAM' in scope
 20 |             let socketFileDescriptor = socket(forceIPv4 ? AF_INET : AF_INET6, Int32(SOCK_STREAM.rawValue), 0)
 21 |         #else
 22 |             let socketFileDescriptor = socket(forceIPv4 ? AF_INET : AF_INET6, SOCK_STREAM, 0)
    |                                                                               `- error: cannot find 'SOCK_STREAM' in scope
 23 |         #endif
 24 |
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket+Server.swift:30:12: error: cannot find 'setsockopt' in scope
 28 |
 29 |         var value: Int32 = 1
 30 |         if setsockopt(socketFileDescriptor, SOL_SOCKET, SO_REUSEADDR, &value, socklen_t(MemoryLayout<Int32>.size)) == -1 {
    |            `- error: cannot find 'setsockopt' in scope
 31 |             let details = Errno.description()
 32 |             Socket.close(socketFileDescriptor)
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket+Server.swift:30:45: error: cannot find 'SOL_SOCKET' in scope
 28 |
 29 |         var value: Int32 = 1
 30 |         if setsockopt(socketFileDescriptor, SOL_SOCKET, SO_REUSEADDR, &value, socklen_t(MemoryLayout<Int32>.size)) == -1 {
    |                                             `- error: cannot find 'SOL_SOCKET' in scope
 31 |             let details = Errno.description()
 32 |             Socket.close(socketFileDescriptor)
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket+Server.swift:30:57: error: cannot find 'SO_REUSEADDR' in scope
 28 |
 29 |         var value: Int32 = 1
 30 |         if setsockopt(socketFileDescriptor, SOL_SOCKET, SO_REUSEADDR, &value, socklen_t(MemoryLayout<Int32>.size)) == -1 {
    |                                                         `- error: cannot find 'SO_REUSEADDR' in scope
 31 |             let details = Errno.description()
 32 |             Socket.close(socketFileDescriptor)
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket+Server.swift:46:24: error: cannot find 'sockaddr_in' in scope
 44 |                 sin_zero: (0, 0, 0, 0, 0, 0, 0, 0))
 45 |             #else
 46 |             var addr = sockaddr_in(
    |                        `- error: cannot find 'sockaddr_in' in scope
 47 |                 sin_len: UInt8(MemoryLayout<sockaddr_in>.stride),
 48 |                 sin_family: UInt8(AF_INET),
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket+Server.swift:47:45: error: cannot find type 'sockaddr_in' in scope
 45 |             #else
 46 |             var addr = sockaddr_in(
 47 |                 sin_len: UInt8(MemoryLayout<sockaddr_in>.stride),
    |                                             `- error: cannot find type 'sockaddr_in' in scope
 48 |                 sin_family: UInt8(AF_INET),
 49 |                 sin_port: port.bigEndian,
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket+Server.swift:48:35: error: cannot find 'AF_INET' in scope
 46 |             var addr = sockaddr_in(
 47 |                 sin_len: UInt8(MemoryLayout<sockaddr_in>.stride),
 48 |                 sin_family: UInt8(AF_INET),
    |                                   `- error: cannot find 'AF_INET' in scope
 49 |                 sin_port: port.bigEndian,
 50 |                 sin_addr: in_addr(s_addr: in_addr_t(0)),
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket+Server.swift:50:27: error: cannot find 'in_addr' in scope
 48 |                 sin_family: UInt8(AF_INET),
 49 |                 sin_port: port.bigEndian,
 50 |                 sin_addr: in_addr(s_addr: in_addr_t(0)),
    |                           `- error: cannot find 'in_addr' in scope
 51 |                 sin_zero: (0, 0, 0, 0, 0, 0, 0, 0))
 52 |             #endif
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
[0/1] Planning build
[1/1] Compiling plugin GenerateManual
Building for debugging...
[1/10] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/35] Emitting module Swifter
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/HttpServerIO.swift:71:31: error: cannot find type 'in_port_t' in scope
 69 |
 70 |     @available(macOS 10.10, *)
 71 |     public func start(_ port: in_port_t = 8080, forceIPv4: Bool = false, priority: DispatchQoS.QoSClass = DispatchQoS.QoSClass.background) throws {
    |                               `- error: cannot find type 'in_port_t' in scope
 72 |         guard !self.operating else { return }
 73 |         stop()
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket+Server.swift:17:50: error: cannot find type 'in_port_t' in scope
 15 |     ///       connections from. It should be in IPv4 format if forceIPv4 == true,
 16 |     ///       otherwise - in IPv6.
 17 |     public class func tcpSocketForListen(_ port: in_port_t, _ forceIPv4: Bool = false, _ maxPendingConnection: Int32 = SOMAXCONN, _ listenAddress: String? = nil) throws -> Socket {
    |                                                  `- error: cannot find type 'in_port_t' in scope
 18 |
 19 |         #if os(Linux)
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket+Server.swift:17:120: error: cannot find 'SOMAXCONN' in scope
 15 |     ///       connections from. It should be in IPv4 format if forceIPv4 == true,
 16 |     ///       otherwise - in IPv6.
 17 |     public class func tcpSocketForListen(_ port: in_port_t, _ forceIPv4: Bool = false, _ maxPendingConnection: Int32 = SOMAXCONN, _ listenAddress: String? = nil) throws -> Socket {
    |                                                                                                                        `- error: cannot find 'SOMAXCONN' in scope
 18 |
 19 |         #if os(Linux)
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:50:34: error: cannot find type 'in_port_t' in scope
 48 |     }
 49 |
 50 |     public func port() throws -> in_port_t {
    |                                  `- error: cannot find type 'in_port_t' in scope
 51 |         var addr = sockaddr_in()
 52 |         return try withUnsafePointer(to: &addr) { pointer in
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:18:43: error: cannot find type 'FILE' in scope
 16 |     public class File {
 17 |
 18 |         let pointer: UnsafeMutablePointer<FILE>
    |                                           `- error: cannot find type 'FILE' in scope
 19 |
 20 |         public init(_ pointer: UnsafeMutablePointer<FILE>) {
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:20:53: error: cannot find type 'FILE' in scope
 18 |         let pointer: UnsafeMutablePointer<FILE>
 19 |
 20 |         public init(_ pointer: UnsafeMutablePointer<FILE>) {
    |                                                     `- error: cannot find type 'FILE' in scope
 21 |             self.pointer = pointer
 22 |         }
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:135:43: error: cannot find type 'stat' in scope
133 |     }
134 |
135 |     private func withStat<T>(_ closure: ((stat?) throws -> T)) throws -> T {
    |                                           `- error: cannot find type 'stat' in scope
136 |         return try self.withCString({
137 |             var statBuffer = stat()
[4/37] Compiling ArgumentParserToolInfo ToolInfo.swift
[5/37] Emitting module ArgumentParserToolInfo
[6/37] Compiling ShellOut ShellOut.swift
[7/37] Emitting module ShellOut
[8/39] Compiling Swifter String+File.swift
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:18:43: error: cannot find type 'FILE' in scope
 16 |     public class File {
 17 |
 18 |         let pointer: UnsafeMutablePointer<FILE>
    |                                           `- error: cannot find type 'FILE' in scope
 19 |
 20 |         public init(_ pointer: UnsafeMutablePointer<FILE>) {
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:20:53: error: cannot find type 'FILE' in scope
 18 |         let pointer: UnsafeMutablePointer<FILE>
 19 |
 20 |         public init(_ pointer: UnsafeMutablePointer<FILE>) {
    |                                                     `- error: cannot find type 'FILE' in scope
 21 |             self.pointer = pointer
 22 |         }
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:135:43: error: cannot find type 'stat' in scope
133 |     }
134 |
135 |     private func withStat<T>(_ closure: ((stat?) throws -> T)) throws -> T {
    |                                           `- error: cannot find type 'stat' in scope
136 |         return try self.withCString({
137 |             var statBuffer = stat()
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:44:39: error: cannot find 'errno' in scope
 42 |             }
 43 |             if ferror(self.pointer) != 0 {
 44 |                 throw FileError.error(errno)
    |                                       `- error: cannot find 'errno' in scope
 45 |             }
 46 |             throw FileError.error(0)
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:55:43: error: cannot find 'errno' in scope
 53 |             try data.withUnsafeBufferPointer {
 54 |                 if fwrite($0.baseAddress, 1, data.count, self.pointer) != data.count {
 55 |                     throw FileError.error(errno)
    |                                           `- error: cannot find 'errno' in scope
 56 |                 }
 57 |             }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:54:30: error: value of optional type 'UnsafePointer<UInt8>?' must be unwrapped to a value of type 'UnsafePointer<UInt8>'
 52 |             }
 53 |             try data.withUnsafeBufferPointer {
 54 |                 if fwrite($0.baseAddress, 1, data.count, self.pointer) != data.count {
    |                              |- error: value of optional type 'UnsafePointer<UInt8>?' must be unwrapped to a value of type 'UnsafePointer<UInt8>'
    |                              |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
    |                              `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
 55 |                     throw FileError.error(errno)
 56 |                 }
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:61:30: error: cannot find 'getcwd' in scope
 59 |
 60 |         public static func currentWorkingDirectory() throws -> String {
 61 |             guard let path = getcwd(nil, 0) else {
    |                              `- error: cannot find 'getcwd' in scope
 62 |                 throw FileError.error(errno)
 63 |             }
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:61:37: error: 'nil' requires a contextual type
 59 |
 60 |         public static func currentWorkingDirectory() throws -> String {
 61 |             guard let path = getcwd(nil, 0) else {
    |                                     `- error: 'nil' requires a contextual type
 62 |                 throw FileError.error(errno)
 63 |             }
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:62:39: error: cannot find 'errno' in scope
 60 |         public static func currentWorkingDirectory() throws -> String {
 61 |             guard let path = getcwd(nil, 0) else {
 62 |                 throw FileError.error(errno)
    |                                       `- error: cannot find 'errno' in scope
 63 |             }
 64 |             return String(cString: path)
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:84:35: error: cannot find 'errno' in scope
 82 |     public func openFileForMode(_ path: String, _ mode: String) throws -> File {
 83 |         guard let file = path.withCString({ pathPointer in mode.withCString({ fopen(pathPointer, $0) }) }) else {
 84 |             throw FileError.error(errno)
    |                                   `- error: cannot find 'errno' in scope
 85 |         }
 86 |         return File(file)
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:101:39: error: cannot find 'S_IFMT' in scope
 99 |         return try self.withStat {
100 |             if let stat = $0 {
101 |                 return stat.st_mode & S_IFMT == S_IFDIR
    |                                       `- error: cannot find 'S_IFMT' in scope
102 |             }
103 |             return false
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:101:49: error: cannot find 'S_IFDIR' in scope
 99 |         return try self.withStat {
100 |             if let stat = $0 {
101 |                 return stat.st_mode & S_IFMT == S_IFDIR
    |                                                 `- error: cannot find 'S_IFDIR' in scope
102 |             }
103 |             return false
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:108:44: error: cannot find 'opendir' in scope
106 |
107 |     public func files() throws -> [String] {
108 |         guard let dir = self.withCString({ opendir($0) }) else {
    |                                            `- error: cannot find 'opendir' in scope
109 |             throw FileError.error(errno)
110 |         }
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:109:35: error: cannot find 'errno' in scope
107 |     public func files() throws -> [String] {
108 |         guard let dir = self.withCString({ opendir($0) }) else {
109 |             throw FileError.error(errno)
    |                                   `- error: cannot find 'errno' in scope
110 |         }
111 |         defer { closedir(dir) }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:111:17: error: cannot find 'closedir' in scope
109 |             throw FileError.error(errno)
110 |         }
111 |         defer { closedir(dir) }
    |                 `- error: cannot find 'closedir' in scope
112 |         var results = [String]()
113 |         while let ent = readdir(dir) {
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:113:25: error: cannot find 'readdir' in scope
111 |         defer { closedir(dir) }
112 |         var results = [String]()
113 |         while let ent = readdir(dir) {
    |                         `- error: cannot find 'readdir' in scope
114 |             var name = ent.pointee.d_name
115 |             let fileName = withUnsafePointer(to: &name) { (ptr) -> String? in
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:137:30: error: cannot find 'stat' in scope
135 |     private func withStat<T>(_ closure: ((stat?) throws -> T)) throws -> T {
136 |         return try self.withCString({
137 |             var statBuffer = stat()
    |                              `- error: cannot find 'stat' in scope
138 |             if stat($0, &statBuffer) == 0 {
139 |                 return try closure(statBuffer)
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:138:16: error: cannot find 'stat' in scope
136 |         return try self.withCString({
137 |             var statBuffer = stat()
138 |             if stat($0, &statBuffer) == 0 {
    |                `- error: cannot find 'stat' in scope
139 |                 return try closure(statBuffer)
140 |             }
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:141:16: error: cannot find 'errno' in scope
139 |                 return try closure(statBuffer)
140 |             }
141 |             if errno == ENOENT {
    |                `- error: cannot find 'errno' in scope
142 |                 return try closure(nil)
143 |             }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:144:35: error: cannot find 'errno' in scope
142 |                 return try closure(nil)
143 |             }
144 |             throw FileError.error(errno)
    |                                   `- error: cannot find 'errno' in scope
145 |         })
146 |     }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
[9/39] Compiling Swifter String+Misc.swift
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:18:43: error: cannot find type 'FILE' in scope
 16 |     public class File {
 17 |
 18 |         let pointer: UnsafeMutablePointer<FILE>
    |                                           `- error: cannot find type 'FILE' in scope
 19 |
 20 |         public init(_ pointer: UnsafeMutablePointer<FILE>) {
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:20:53: error: cannot find type 'FILE' in scope
 18 |         let pointer: UnsafeMutablePointer<FILE>
 19 |
 20 |         public init(_ pointer: UnsafeMutablePointer<FILE>) {
    |                                                     `- error: cannot find type 'FILE' in scope
 21 |             self.pointer = pointer
 22 |         }
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:135:43: error: cannot find type 'stat' in scope
133 |     }
134 |
135 |     private func withStat<T>(_ closure: ((stat?) throws -> T)) throws -> T {
    |                                           `- error: cannot find type 'stat' in scope
136 |         return try self.withCString({
137 |             var statBuffer = stat()
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:44:39: error: cannot find 'errno' in scope
 42 |             }
 43 |             if ferror(self.pointer) != 0 {
 44 |                 throw FileError.error(errno)
    |                                       `- error: cannot find 'errno' in scope
 45 |             }
 46 |             throw FileError.error(0)
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:55:43: error: cannot find 'errno' in scope
 53 |             try data.withUnsafeBufferPointer {
 54 |                 if fwrite($0.baseAddress, 1, data.count, self.pointer) != data.count {
 55 |                     throw FileError.error(errno)
    |                                           `- error: cannot find 'errno' in scope
 56 |                 }
 57 |             }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:54:30: error: value of optional type 'UnsafePointer<UInt8>?' must be unwrapped to a value of type 'UnsafePointer<UInt8>'
 52 |             }
 53 |             try data.withUnsafeBufferPointer {
 54 |                 if fwrite($0.baseAddress, 1, data.count, self.pointer) != data.count {
    |                              |- error: value of optional type 'UnsafePointer<UInt8>?' must be unwrapped to a value of type 'UnsafePointer<UInt8>'
    |                              |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
    |                              `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
 55 |                     throw FileError.error(errno)
 56 |                 }
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:61:30: error: cannot find 'getcwd' in scope
 59 |
 60 |         public static func currentWorkingDirectory() throws -> String {
 61 |             guard let path = getcwd(nil, 0) else {
    |                              `- error: cannot find 'getcwd' in scope
 62 |                 throw FileError.error(errno)
 63 |             }
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:61:37: error: 'nil' requires a contextual type
 59 |
 60 |         public static func currentWorkingDirectory() throws -> String {
 61 |             guard let path = getcwd(nil, 0) else {
    |                                     `- error: 'nil' requires a contextual type
 62 |                 throw FileError.error(errno)
 63 |             }
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:62:39: error: cannot find 'errno' in scope
 60 |         public static func currentWorkingDirectory() throws -> String {
 61 |             guard let path = getcwd(nil, 0) else {
 62 |                 throw FileError.error(errno)
    |                                       `- error: cannot find 'errno' in scope
 63 |             }
 64 |             return String(cString: path)
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:84:35: error: cannot find 'errno' in scope
 82 |     public func openFileForMode(_ path: String, _ mode: String) throws -> File {
 83 |         guard let file = path.withCString({ pathPointer in mode.withCString({ fopen(pathPointer, $0) }) }) else {
 84 |             throw FileError.error(errno)
    |                                   `- error: cannot find 'errno' in scope
 85 |         }
 86 |         return File(file)
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:101:39: error: cannot find 'S_IFMT' in scope
 99 |         return try self.withStat {
100 |             if let stat = $0 {
101 |                 return stat.st_mode & S_IFMT == S_IFDIR
    |                                       `- error: cannot find 'S_IFMT' in scope
102 |             }
103 |             return false
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:101:49: error: cannot find 'S_IFDIR' in scope
 99 |         return try self.withStat {
100 |             if let stat = $0 {
101 |                 return stat.st_mode & S_IFMT == S_IFDIR
    |                                                 `- error: cannot find 'S_IFDIR' in scope
102 |             }
103 |             return false
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:108:44: error: cannot find 'opendir' in scope
106 |
107 |     public func files() throws -> [String] {
108 |         guard let dir = self.withCString({ opendir($0) }) else {
    |                                            `- error: cannot find 'opendir' in scope
109 |             throw FileError.error(errno)
110 |         }
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:109:35: error: cannot find 'errno' in scope
107 |     public func files() throws -> [String] {
108 |         guard let dir = self.withCString({ opendir($0) }) else {
109 |             throw FileError.error(errno)
    |                                   `- error: cannot find 'errno' in scope
110 |         }
111 |         defer { closedir(dir) }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:111:17: error: cannot find 'closedir' in scope
109 |             throw FileError.error(errno)
110 |         }
111 |         defer { closedir(dir) }
    |                 `- error: cannot find 'closedir' in scope
112 |         var results = [String]()
113 |         while let ent = readdir(dir) {
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:113:25: error: cannot find 'readdir' in scope
111 |         defer { closedir(dir) }
112 |         var results = [String]()
113 |         while let ent = readdir(dir) {
    |                         `- error: cannot find 'readdir' in scope
114 |             var name = ent.pointee.d_name
115 |             let fileName = withUnsafePointer(to: &name) { (ptr) -> String? in
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:137:30: error: cannot find 'stat' in scope
135 |     private func withStat<T>(_ closure: ((stat?) throws -> T)) throws -> T {
136 |         return try self.withCString({
137 |             var statBuffer = stat()
    |                              `- error: cannot find 'stat' in scope
138 |             if stat($0, &statBuffer) == 0 {
139 |                 return try closure(statBuffer)
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:138:16: error: cannot find 'stat' in scope
136 |         return try self.withCString({
137 |             var statBuffer = stat()
138 |             if stat($0, &statBuffer) == 0 {
    |                `- error: cannot find 'stat' in scope
139 |                 return try closure(statBuffer)
140 |             }
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:141:16: error: cannot find 'errno' in scope
139 |                 return try closure(statBuffer)
140 |             }
141 |             if errno == ENOENT {
    |                `- error: cannot find 'errno' in scope
142 |                 return try closure(nil)
143 |             }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:144:35: error: cannot find 'errno' in scope
142 |                 return try closure(nil)
143 |             }
144 |             throw FileError.error(errno)
    |                                   `- error: cannot find 'errno' in scope
145 |         })
146 |     }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
[11/39] Compiling Swifter Socket.swift
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:50:34: error: cannot find type 'in_port_t' in scope
 48 |     }
 49 |
 50 |     public func port() throws -> in_port_t {
    |                                  `- error: cannot find type 'in_port_t' in scope
 51 |         var addr = sockaddr_in()
 52 |         return try withUnsafePointer(to: &addr) { pointer in
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:51:20: error: cannot find 'sockaddr_in' in scope
 49 |
 50 |     public func port() throws -> in_port_t {
 51 |         var addr = sockaddr_in()
    |                    `- error: cannot find 'sockaddr_in' in scope
 52 |         return try withUnsafePointer(to: &addr) { pointer in
 53 |             var len = socklen_t(MemoryLayout<sockaddr_in>.size)
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:67:20: error: cannot find 'sockaddr_in' in scope
 65 |
 66 |     public func isIPv4() throws -> Bool {
 67 |         var addr = sockaddr_in()
    |                    `- error: cannot find 'sockaddr_in' in scope
 68 |         return try withUnsafePointer(to: &addr) { pointer in
 69 |             var len = socklen_t(MemoryLayout<sockaddr_in>.size)
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:69:46: error: cannot find type 'sockaddr_in' in scope
 67 |         var addr = sockaddr_in()
 68 |         return try withUnsafePointer(to: &addr) { pointer in
 69 |             var len = socklen_t(MemoryLayout<sockaddr_in>.size)
    |                                              `- error: cannot find type 'sockaddr_in' in scope
 70 |             if getsockname(socketFileDescriptor, UnsafeMutablePointer(OpaquePointer(pointer)), &len) != 0 {
 71 |                 throw SocketError.getSockNameFailed(Errno.description())
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:70:16: error: cannot find 'getsockname' in scope
 68 |         return try withUnsafePointer(to: &addr) { pointer in
 69 |             var len = socklen_t(MemoryLayout<sockaddr_in>.size)
 70 |             if getsockname(socketFileDescriptor, UnsafeMutablePointer(OpaquePointer(pointer)), &len) != 0 {
    |                `- error: cannot find 'getsockname' in scope
 71 |                 throw SocketError.getSockNameFailed(Errno.description())
 72 |             }
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:73:57: error: cannot find 'AF_INET' in scope
 71 |                 throw SocketError.getSockNameFailed(Errno.description())
 72 |             }
 73 |             return Int32(pointer.pointee.sin_family) == AF_INET
    |                                                         `- error: cannot find 'AF_INET' in scope
 74 |         }
 75 |     }
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:116:30: error: cannot find 'write' in scope
114 |                 let result = send(self.socketFileDescriptor, pointer + sent, Int(length - sent), Int32(MSG_NOSIGNAL))
115 |             #else
116 |                 let result = write(self.socketFileDescriptor, pointer + sent, Int(length - sent))
    |                              `- error: cannot find 'write' in scope
117 |             #endif
118 |             if result <= 0 {
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:137:18: error: cannot find 'Darwin' in scope
135 | 	    let count = Glibc.read(self.socketFileDescriptor as Int32, &byte, 1)
136 | 	    #else
137 | 	    let count = Darwin.read(self.socketFileDescriptor as Int32, &byte, 1)
    |                  `- error: cannot find 'Darwin' in scope
138 | 	    #endif
139 |
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:180:26: error: cannot find 'Darwin' in scope
178 |             let bytesRead = Glibc.read(self.socketFileDescriptor as Int32, baseAddress + offset, readLength)
179 | 	        #else
180 | 	        let bytesRead = Darwin.read(self.socketFileDescriptor as Int32, baseAddress + offset, readLength)
    |                          `- error: cannot find 'Darwin' in scope
181 | 	        #endif
182 |
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:207:20: error: cannot find 'sockaddr' in scope
205 |
206 |     public func peername() throws -> String {
207 |         var addr = sockaddr(), len: socklen_t = socklen_t(MemoryLayout<sockaddr>.size)
    |                    `- error: cannot find 'sockaddr' in scope
208 |         if getpeername(self.socketFileDescriptor, &addr, &len) != 0 {
209 |             throw SocketError.getPeerNameFailed(Errno.description())
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:207:72: error: cannot find type 'sockaddr' in scope
205 |
206 |     public func peername() throws -> String {
207 |         var addr = sockaddr(), len: socklen_t = socklen_t(MemoryLayout<sockaddr>.size)
    |                                                                        `- error: cannot find type 'sockaddr' in scope
208 |         if getpeername(self.socketFileDescriptor, &addr, &len) != 0 {
209 |             throw SocketError.getPeerNameFailed(Errno.description())
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:208:12: error: cannot find 'getpeername' in scope
206 |     public func peername() throws -> String {
207 |         var addr = sockaddr(), len: socklen_t = socklen_t(MemoryLayout<sockaddr>.size)
208 |         if getpeername(self.socketFileDescriptor, &addr, &len) != 0 {
    |            `- error: cannot find 'getpeername' in scope
209 |             throw SocketError.getPeerNameFailed(Errno.description())
210 |         }
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:211:59: error: cannot find 'NI_MAXHOST' in scope
209 |             throw SocketError.getPeerNameFailed(Errno.description())
210 |         }
211 |         var hostBuffer = [CChar](repeating: 0, count: Int(NI_MAXHOST))
    |                                                           `- error: cannot find 'NI_MAXHOST' in scope
212 |         if getnameinfo(&addr, len, &hostBuffer, socklen_t(hostBuffer.count), nil, 0, NI_NUMERICHOST) != 0 {
213 |             throw SocketError.getNameInfoFailed(Errno.description())
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:212:12: error: cannot find 'getnameinfo' in scope
210 |         }
211 |         var hostBuffer = [CChar](repeating: 0, count: Int(NI_MAXHOST))
212 |         if getnameinfo(&addr, len, &hostBuffer, socklen_t(hostBuffer.count), nil, 0, NI_NUMERICHOST) != 0 {
    |            `- error: cannot find 'getnameinfo' in scope
213 |             throw SocketError.getNameInfoFailed(Errno.description())
214 |         }
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:212:86: error: cannot find 'NI_NUMERICHOST' in scope
210 |         }
211 |         var hostBuffer = [CChar](repeating: 0, count: Int(NI_MAXHOST))
212 |         if getnameinfo(&addr, len, &hostBuffer, socklen_t(hostBuffer.count), nil, 0, NI_NUMERICHOST) != 0 {
    |                                                                                      `- error: cannot find 'NI_NUMERICHOST' in scope
213 |             throw SocketError.getNameInfoFailed(Errno.description())
214 |         }
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:212:78: error: 'nil' requires a contextual type
210 |         }
211 |         var hostBuffer = [CChar](repeating: 0, count: Int(NI_MAXHOST))
212 |         if getnameinfo(&addr, len, &hostBuffer, socklen_t(hostBuffer.count), nil, 0, NI_NUMERICHOST) != 0 {
    |                                                                              `- error: 'nil' requires a contextual type
213 |             throw SocketError.getNameInfoFailed(Errno.description())
214 |         }
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:225:13: error: cannot find 'setsockopt' in scope
223 |             // Prevents crashes when blocking calls are pending and the app is paused ( via Home button ).
224 |             var no_sig_pipe: Int32 = 1
225 |             setsockopt(socket, SOL_SOCKET, SO_NOSIGPIPE, &no_sig_pipe, socklen_t(MemoryLayout<Int32>.size))
    |             `- error: cannot find 'setsockopt' in scope
226 |         #endif
227 |     }
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:225:32: error: cannot find 'SOL_SOCKET' in scope
223 |             // Prevents crashes when blocking calls are pending and the app is paused ( via Home button ).
224 |             var no_sig_pipe: Int32 = 1
225 |             setsockopt(socket, SOL_SOCKET, SO_NOSIGPIPE, &no_sig_pipe, socklen_t(MemoryLayout<Int32>.size))
    |                                `- error: cannot find 'SOL_SOCKET' in scope
226 |         #endif
227 |     }
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:225:44: error: cannot find 'SO_NOSIGPIPE' in scope
223 |             // Prevents crashes when blocking calls are pending and the app is paused ( via Home button ).
224 |             var no_sig_pipe: Int32 = 1
225 |             setsockopt(socket, SOL_SOCKET, SO_NOSIGPIPE, &no_sig_pipe, socklen_t(MemoryLayout<Int32>.size))
    |                                            `- error: cannot find 'SO_NOSIGPIPE' in scope
226 |         #endif
227 |     }
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:233:17: error: cannot find 'Darwin' in scope
231 |             _ = Glibc.close(socket)
232 |         #else
233 |             _ = Darwin.close(socket)
    |                 `- error: cannot find 'Darwin' in scope
234 |         #endif
235 |     }
[12/39] Compiling Swifter String+BASE64.swift
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:50:34: error: cannot find type 'in_port_t' in scope
 48 |     }
 49 |
 50 |     public func port() throws -> in_port_t {
    |                                  `- error: cannot find type 'in_port_t' in scope
 51 |         var addr = sockaddr_in()
 52 |         return try withUnsafePointer(to: &addr) { pointer in
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:51:20: error: cannot find 'sockaddr_in' in scope
 49 |
 50 |     public func port() throws -> in_port_t {
 51 |         var addr = sockaddr_in()
    |                    `- error: cannot find 'sockaddr_in' in scope
 52 |         return try withUnsafePointer(to: &addr) { pointer in
 53 |             var len = socklen_t(MemoryLayout<sockaddr_in>.size)
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:67:20: error: cannot find 'sockaddr_in' in scope
 65 |
 66 |     public func isIPv4() throws -> Bool {
 67 |         var addr = sockaddr_in()
    |                    `- error: cannot find 'sockaddr_in' in scope
 68 |         return try withUnsafePointer(to: &addr) { pointer in
 69 |             var len = socklen_t(MemoryLayout<sockaddr_in>.size)
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:69:46: error: cannot find type 'sockaddr_in' in scope
 67 |         var addr = sockaddr_in()
 68 |         return try withUnsafePointer(to: &addr) { pointer in
 69 |             var len = socklen_t(MemoryLayout<sockaddr_in>.size)
    |                                              `- error: cannot find type 'sockaddr_in' in scope
 70 |             if getsockname(socketFileDescriptor, UnsafeMutablePointer(OpaquePointer(pointer)), &len) != 0 {
 71 |                 throw SocketError.getSockNameFailed(Errno.description())
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:70:16: error: cannot find 'getsockname' in scope
 68 |         return try withUnsafePointer(to: &addr) { pointer in
 69 |             var len = socklen_t(MemoryLayout<sockaddr_in>.size)
 70 |             if getsockname(socketFileDescriptor, UnsafeMutablePointer(OpaquePointer(pointer)), &len) != 0 {
    |                `- error: cannot find 'getsockname' in scope
 71 |                 throw SocketError.getSockNameFailed(Errno.description())
 72 |             }
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:73:57: error: cannot find 'AF_INET' in scope
 71 |                 throw SocketError.getSockNameFailed(Errno.description())
 72 |             }
 73 |             return Int32(pointer.pointee.sin_family) == AF_INET
    |                                                         `- error: cannot find 'AF_INET' in scope
 74 |         }
 75 |     }
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:116:30: error: cannot find 'write' in scope
114 |                 let result = send(self.socketFileDescriptor, pointer + sent, Int(length - sent), Int32(MSG_NOSIGNAL))
115 |             #else
116 |                 let result = write(self.socketFileDescriptor, pointer + sent, Int(length - sent))
    |                              `- error: cannot find 'write' in scope
117 |             #endif
118 |             if result <= 0 {
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:137:18: error: cannot find 'Darwin' in scope
135 | 	    let count = Glibc.read(self.socketFileDescriptor as Int32, &byte, 1)
136 | 	    #else
137 | 	    let count = Darwin.read(self.socketFileDescriptor as Int32, &byte, 1)
    |                  `- error: cannot find 'Darwin' in scope
138 | 	    #endif
139 |
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:180:26: error: cannot find 'Darwin' in scope
178 |             let bytesRead = Glibc.read(self.socketFileDescriptor as Int32, baseAddress + offset, readLength)
179 | 	        #else
180 | 	        let bytesRead = Darwin.read(self.socketFileDescriptor as Int32, baseAddress + offset, readLength)
    |                          `- error: cannot find 'Darwin' in scope
181 | 	        #endif
182 |
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:207:20: error: cannot find 'sockaddr' in scope
205 |
206 |     public func peername() throws -> String {
207 |         var addr = sockaddr(), len: socklen_t = socklen_t(MemoryLayout<sockaddr>.size)
    |                    `- error: cannot find 'sockaddr' in scope
208 |         if getpeername(self.socketFileDescriptor, &addr, &len) != 0 {
209 |             throw SocketError.getPeerNameFailed(Errno.description())
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:207:72: error: cannot find type 'sockaddr' in scope
205 |
206 |     public func peername() throws -> String {
207 |         var addr = sockaddr(), len: socklen_t = socklen_t(MemoryLayout<sockaddr>.size)
    |                                                                        `- error: cannot find type 'sockaddr' in scope
208 |         if getpeername(self.socketFileDescriptor, &addr, &len) != 0 {
209 |             throw SocketError.getPeerNameFailed(Errno.description())
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:208:12: error: cannot find 'getpeername' in scope
206 |     public func peername() throws -> String {
207 |         var addr = sockaddr(), len: socklen_t = socklen_t(MemoryLayout<sockaddr>.size)
208 |         if getpeername(self.socketFileDescriptor, &addr, &len) != 0 {
    |            `- error: cannot find 'getpeername' in scope
209 |             throw SocketError.getPeerNameFailed(Errno.description())
210 |         }
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:211:59: error: cannot find 'NI_MAXHOST' in scope
209 |             throw SocketError.getPeerNameFailed(Errno.description())
210 |         }
211 |         var hostBuffer = [CChar](repeating: 0, count: Int(NI_MAXHOST))
    |                                                           `- error: cannot find 'NI_MAXHOST' in scope
212 |         if getnameinfo(&addr, len, &hostBuffer, socklen_t(hostBuffer.count), nil, 0, NI_NUMERICHOST) != 0 {
213 |             throw SocketError.getNameInfoFailed(Errno.description())
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:212:12: error: cannot find 'getnameinfo' in scope
210 |         }
211 |         var hostBuffer = [CChar](repeating: 0, count: Int(NI_MAXHOST))
212 |         if getnameinfo(&addr, len, &hostBuffer, socklen_t(hostBuffer.count), nil, 0, NI_NUMERICHOST) != 0 {
    |            `- error: cannot find 'getnameinfo' in scope
213 |             throw SocketError.getNameInfoFailed(Errno.description())
214 |         }
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:212:86: error: cannot find 'NI_NUMERICHOST' in scope
210 |         }
211 |         var hostBuffer = [CChar](repeating: 0, count: Int(NI_MAXHOST))
212 |         if getnameinfo(&addr, len, &hostBuffer, socklen_t(hostBuffer.count), nil, 0, NI_NUMERICHOST) != 0 {
    |                                                                                      `- error: cannot find 'NI_NUMERICHOST' in scope
213 |             throw SocketError.getNameInfoFailed(Errno.description())
214 |         }
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:212:78: error: 'nil' requires a contextual type
210 |         }
211 |         var hostBuffer = [CChar](repeating: 0, count: Int(NI_MAXHOST))
212 |         if getnameinfo(&addr, len, &hostBuffer, socklen_t(hostBuffer.count), nil, 0, NI_NUMERICHOST) != 0 {
    |                                                                              `- error: 'nil' requires a contextual type
213 |             throw SocketError.getNameInfoFailed(Errno.description())
214 |         }
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:225:13: error: cannot find 'setsockopt' in scope
223 |             // Prevents crashes when blocking calls are pending and the app is paused ( via Home button ).
224 |             var no_sig_pipe: Int32 = 1
225 |             setsockopt(socket, SOL_SOCKET, SO_NOSIGPIPE, &no_sig_pipe, socklen_t(MemoryLayout<Int32>.size))
    |             `- error: cannot find 'setsockopt' in scope
226 |         #endif
227 |     }
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:225:32: error: cannot find 'SOL_SOCKET' in scope
223 |             // Prevents crashes when blocking calls are pending and the app is paused ( via Home button ).
224 |             var no_sig_pipe: Int32 = 1
225 |             setsockopt(socket, SOL_SOCKET, SO_NOSIGPIPE, &no_sig_pipe, socklen_t(MemoryLayout<Int32>.size))
    |                                `- error: cannot find 'SOL_SOCKET' in scope
226 |         #endif
227 |     }
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:225:44: error: cannot find 'SO_NOSIGPIPE' in scope
223 |             // Prevents crashes when blocking calls are pending and the app is paused ( via Home button ).
224 |             var no_sig_pipe: Int32 = 1
225 |             setsockopt(socket, SOL_SOCKET, SO_NOSIGPIPE, &no_sig_pipe, socklen_t(MemoryLayout<Int32>.size))
    |                                            `- error: cannot find 'SO_NOSIGPIPE' in scope
226 |         #endif
227 |     }
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:233:17: error: cannot find 'Darwin' in scope
231 |             _ = Glibc.close(socket)
232 |         #else
233 |             _ = Darwin.close(socket)
    |                 `- error: cannot find 'Darwin' in scope
234 |         #endif
235 |     }
[13/39] Compiling Swifter HttpRouter.swift
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/HttpServerIO.swift:71:31: error: cannot find type 'in_port_t' in scope
 69 |
 70 |     @available(macOS 10.10, *)
 71 |     public func start(_ port: in_port_t = 8080, forceIPv4: Bool = false, priority: DispatchQoS.QoSClass = DispatchQoS.QoSClass.background) throws {
    |                               `- error: cannot find type 'in_port_t' in scope
 72 |         guard !self.operating else { return }
 73 |         stop()
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/HttpServerIO.swift:37:13: error: cannot find 'OSAtomicCompareAndSwapInt' in scope
 35 |         set(state) {
 36 |             #if !os(Linux)
 37 |             OSAtomicCompareAndSwapInt(self.state.rawValue, state.rawValue, &stateValue)
    |             `- error: cannot find 'OSAtomicCompareAndSwapInt' in scope
 38 |             #else
 39 |             self.stateValue = state.rawValue
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:50:34: error: cannot find type 'in_port_t' in scope
 48 |     }
 49 |
 50 |     public func port() throws -> in_port_t {
    |                                  `- error: cannot find type 'in_port_t' in scope
 51 |         var addr = sockaddr_in()
 52 |         return try withUnsafePointer(to: &addr) { pointer in
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/HttpServerIO.swift:76:70: error: cannot find 'SOMAXCONN' in scope
 74 |         self.state = .starting
 75 |         let address = forceIPv4 ? listenAddressIPv4 : listenAddressIPv6
 76 |         self.socket = try Socket.tcpSocketForListen(port, forceIPv4, SOMAXCONN, address)
    |                                                                      `- error: cannot find 'SOMAXCONN' in scope
 77 |         self.state = .running
 78 |         DispatchQueue.global(qos: priority).async { [weak self] in
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket+Server.swift:17:50: error: cannot find type 'in_port_t' in scope
 15 |     ///       connections from. It should be in IPv4 format if forceIPv4 == true,
 16 |     ///       otherwise - in IPv6.
 17 |     public class func tcpSocketForListen(_ port: in_port_t, _ forceIPv4: Bool = false, _ maxPendingConnection: Int32 = SOMAXCONN, _ listenAddress: String? = nil) throws -> Socket {
    |                                                  `- error: cannot find type 'in_port_t' in scope
 18 |
 19 |         #if os(Linux)
[14/39] Compiling Swifter HttpServer.swift
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/HttpServerIO.swift:71:31: error: cannot find type 'in_port_t' in scope
 69 |
 70 |     @available(macOS 10.10, *)
 71 |     public func start(_ port: in_port_t = 8080, forceIPv4: Bool = false, priority: DispatchQoS.QoSClass = DispatchQoS.QoSClass.background) throws {
    |                               `- error: cannot find type 'in_port_t' in scope
 72 |         guard !self.operating else { return }
 73 |         stop()
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/HttpServerIO.swift:37:13: error: cannot find 'OSAtomicCompareAndSwapInt' in scope
 35 |         set(state) {
 36 |             #if !os(Linux)
 37 |             OSAtomicCompareAndSwapInt(self.state.rawValue, state.rawValue, &stateValue)
    |             `- error: cannot find 'OSAtomicCompareAndSwapInt' in scope
 38 |             #else
 39 |             self.stateValue = state.rawValue
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:50:34: error: cannot find type 'in_port_t' in scope
 48 |     }
 49 |
 50 |     public func port() throws -> in_port_t {
    |                                  `- error: cannot find type 'in_port_t' in scope
 51 |         var addr = sockaddr_in()
 52 |         return try withUnsafePointer(to: &addr) { pointer in
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/HttpServerIO.swift:76:70: error: cannot find 'SOMAXCONN' in scope
 74 |         self.state = .starting
 75 |         let address = forceIPv4 ? listenAddressIPv4 : listenAddressIPv6
 76 |         self.socket = try Socket.tcpSocketForListen(port, forceIPv4, SOMAXCONN, address)
    |                                                                      `- error: cannot find 'SOMAXCONN' in scope
 77 |         self.state = .running
 78 |         DispatchQueue.global(qos: priority).async { [weak self] in
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket+Server.swift:17:50: error: cannot find type 'in_port_t' in scope
 15 |     ///       connections from. It should be in IPv4 format if forceIPv4 == true,
 16 |     ///       otherwise - in IPv6.
 17 |     public class func tcpSocketForListen(_ port: in_port_t, _ forceIPv4: Bool = false, _ maxPendingConnection: Int32 = SOMAXCONN, _ listenAddress: String? = nil) throws -> Socket {
    |                                                  `- error: cannot find type 'in_port_t' in scope
 18 |
 19 |         #if os(Linux)
[15/39] Compiling Swifter HttpServerIO.swift
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/HttpServerIO.swift:71:31: error: cannot find type 'in_port_t' in scope
 69 |
 70 |     @available(macOS 10.10, *)
 71 |     public func start(_ port: in_port_t = 8080, forceIPv4: Bool = false, priority: DispatchQoS.QoSClass = DispatchQoS.QoSClass.background) throws {
    |                               `- error: cannot find type 'in_port_t' in scope
 72 |         guard !self.operating else { return }
 73 |         stop()
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/HttpServerIO.swift:37:13: error: cannot find 'OSAtomicCompareAndSwapInt' in scope
 35 |         set(state) {
 36 |             #if !os(Linux)
 37 |             OSAtomicCompareAndSwapInt(self.state.rawValue, state.rawValue, &stateValue)
    |             `- error: cannot find 'OSAtomicCompareAndSwapInt' in scope
 38 |             #else
 39 |             self.stateValue = state.rawValue
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:50:34: error: cannot find type 'in_port_t' in scope
 48 |     }
 49 |
 50 |     public func port() throws -> in_port_t {
    |                                  `- error: cannot find type 'in_port_t' in scope
 51 |         var addr = sockaddr_in()
 52 |         return try withUnsafePointer(to: &addr) { pointer in
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/HttpServerIO.swift:76:70: error: cannot find 'SOMAXCONN' in scope
 74 |         self.state = .starting
 75 |         let address = forceIPv4 ? listenAddressIPv4 : listenAddressIPv6
 76 |         self.socket = try Socket.tcpSocketForListen(port, forceIPv4, SOMAXCONN, address)
    |                                                                      `- error: cannot find 'SOMAXCONN' in scope
 77 |         self.state = .running
 78 |         DispatchQueue.global(qos: priority).async { [weak self] in
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket+Server.swift:17:50: error: cannot find type 'in_port_t' in scope
 15 |     ///       connections from. It should be in IPv4 format if forceIPv4 == true,
 16 |     ///       otherwise - in IPv6.
 17 |     public class func tcpSocketForListen(_ port: in_port_t, _ forceIPv4: Bool = false, _ maxPendingConnection: Int32 = SOMAXCONN, _ listenAddress: String? = nil) throws -> Socket {
    |                                                  `- error: cannot find type 'in_port_t' in scope
 18 |
 19 |         #if os(Linux)
[16/39] Compiling Swifter MimeTypes.swift
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Process.swift:13:20: error: cannot find 'getpid' in scope
11 |
12 |     public static var pid: Int {
13 |         return Int(getpid())
   |                    `- error: cannot find 'getpid' in scope
14 |     }
15 |
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Process.swift:21:13: error: cannot find 'pthread_threadid_np' in scope
19 |         #else
20 |             var tid: __uint64_t = 0
21 |             pthread_threadid_np(nil, &tid)
   |             `- error: cannot find 'pthread_threadid_np' in scope
22 |             return UInt64(tid)
23 |         #endif
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Process.swift:21:33: error: 'nil' requires a contextual type
19 |         #else
20 |             var tid: __uint64_t = 0
21 |             pthread_threadid_np(nil, &tid)
   |                                 `- error: 'nil' requires a contextual type
22 |             return UInt64(tid)
23 |         #endif
[17/39] Compiling Swifter Process.swift
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Process.swift:13:20: error: cannot find 'getpid' in scope
11 |
12 |     public static var pid: Int {
13 |         return Int(getpid())
   |                    `- error: cannot find 'getpid' in scope
14 |     }
15 |
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Process.swift:21:13: error: cannot find 'pthread_threadid_np' in scope
19 |         #else
20 |             var tid: __uint64_t = 0
21 |             pthread_threadid_np(nil, &tid)
   |             `- error: cannot find 'pthread_threadid_np' in scope
22 |             return UInt64(tid)
23 |         #endif
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Process.swift:21:33: error: 'nil' requires a contextual type
19 |         #else
20 |             var tid: __uint64_t = 0
21 |             pthread_threadid_np(nil, &tid)
   |                                 `- error: 'nil' requires a contextual type
22 |             return UInt64(tid)
23 |         #endif
[18/39] Compiling Swifter Scopes.swift
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Process.swift:13:20: error: cannot find 'getpid' in scope
11 |
12 |     public static var pid: Int {
13 |         return Int(getpid())
   |                    `- error: cannot find 'getpid' in scope
14 |     }
15 |
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Process.swift:21:13: error: cannot find 'pthread_threadid_np' in scope
19 |         #else
20 |             var tid: __uint64_t = 0
21 |             pthread_threadid_np(nil, &tid)
   |             `- error: cannot find 'pthread_threadid_np' in scope
22 |             return UInt64(tid)
23 |         #endif
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Process.swift:21:33: error: 'nil' requires a contextual type
19 |         #else
20 |             var tid: __uint64_t = 0
21 |             pthread_threadid_np(nil, &tid)
   |                                 `- error: 'nil' requires a contextual type
22 |             return UInt64(tid)
23 |         #endif
[20/75] Emitting module SimctlShared
[21/75] Compiling SimctlShared SimctlShared.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[23/77] Emitting module Simctl
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:10:14: error: type alias 'URLSession' (aka 'AnyObject') cannot be imported as 'class'
  8 | import struct Foundation.UUID
  9 | import struct Foundation.Data
 10 | import class Foundation.URLSession
    |              `- error: type alias 'URLSession' (aka 'AnyObject') cannot be imported as 'class'
 11 | import SimctlShared
 12 | #if canImport(UIKit)
Foundation.URLSession:2:18: note: 'URLSession' declared here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' declared here
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:17:8: error: Unsupported platform!
 15 | import AppKit
 16 | #else
 17 | #error("Unsupported platform!")
    |        `- error: Unsupported platform!
 18 | #endif
 19 |
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:32:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 30 |     static var host: Host = .localhost(port: 8080)
 31 |
 32 |     let session: URLSession
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 33 |     let env: SimctlClientEnvironment
 34 |
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:129:32: error: cannot find type 'URL' in scope
127 |     /// - Parameter url: URL to open.
128 |     /// - Parameter completion: Result callback of the call. Use this to wait for an expectation to fulfill in a test case.
129 |     public func openUrl(_ url: URL, completion: @escaping DataTaskCallback) {
    |                                `- error: cannot find type 'URL' in scope
130 |         dataTask(.openURL(env, URLContainer(url: url)), completion)
131 |     }
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:170:51: error: cannot find type 'Bundle' in scope
168 |     ///   - bundle: Bundle of the app you want to interact with.
169 |     ///   - processInfo: The process info from where to get the device Udid.
170 |     public init?(host: SimctlClient.Host, bundle: Bundle, processInfo: ProcessInfo) {
    |                                                   `- error: cannot find type 'Bundle' in scope
171 |         guard let udid = Self.deviceId(processInfo) else {
172 |             return nil
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:170:72: error: cannot find type 'ProcessInfo' in scope
168 |     ///   - bundle: Bundle of the app you want to interact with.
169 |     ///   - processInfo: The process info from where to get the device Udid.
170 |     public init?(host: SimctlClient.Host, bundle: Bundle, processInfo: ProcessInfo) {
    |                                                                        `- error: cannot find type 'ProcessInfo' in scope
171 |         guard let udid = Self.deviceId(processInfo) else {
172 |             return nil
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:194:41: error: cannot find type 'ProcessInfo' in scope
192 |     }
193 |
194 |     static func deviceId(_ processInfo: ProcessInfo) -> UUID? {
    |                                         `- error: cannot find type 'ProcessInfo' in scope
195 |         guard let udidString = processInfo.environment[ProcessEnvironmentKey.simulatorUdid.rawValue] else {
196 |             return nil
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:251:46: error: cannot find type 'HTTPURLResponse' in scope
249 |     public enum Error: Swift.Error {
250 |         case noHttpResponse(Route)
251 |         case unexpectedHttpStatusCode(Route, HTTPURLResponse)
    |                                              `- error: cannot find type 'HTTPURLResponse' in scope
252 |         case noData(Route, HTTPURLResponse)
253 |         case serviceError(Swift.Error)
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:252:28: error: cannot find type 'HTTPURLResponse' in scope
250 |         case noHttpResponse(Route)
251 |         case unexpectedHttpStatusCode(Route, HTTPURLResponse)
252 |         case noData(Route, HTTPURLResponse)
    |                            `- error: cannot find type 'HTTPURLResponse' in scope
253 |         case serviceError(Swift.Error)
254 |     }
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:405:25: error: cannot find type 'URL' in scope
403 |         }
404 |
405 |         func asURL() -> URL {
    |                         `- error: cannot find type 'URL' in scope
406 |             let urlString: String = SimctlClient.host.host + path.rawValue
407 |             guard let url = URL(string: urlString) else {
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:414:32: error: cannot find type 'URLRequest' in scope
412 |         }
413 |
414 |         func asURLRequest() -> URLRequest {
    |                                `- error: cannot find type 'URLRequest' in scope
415 |             var request = URLRequest(url: asURL())
416 |
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:379:27: error: cannot find 'JSONEncoder' in scope
377 |
378 |         @inlinable var httpBody: Data? {
379 |             let encoder = JSONEncoder()
    |                           `- error: cannot find 'JSONEncoder' in scope
380 |             switch self {
381 |             case let .sendPushNotification(_, notification):
[24/77] Compiling Simctl SimctlClient.swift
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:10:14: error: type alias 'URLSession' (aka 'AnyObject') cannot be imported as 'class'
  8 | import struct Foundation.UUID
  9 | import struct Foundation.Data
 10 | import class Foundation.URLSession
    |              `- error: type alias 'URLSession' (aka 'AnyObject') cannot be imported as 'class'
 11 | import SimctlShared
 12 | #if canImport(UIKit)
Foundation.URLSession:2:18: note: 'URLSession' declared here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' declared here
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:17:8: error: Unsupported platform!
 15 | import AppKit
 16 | #else
 17 | #error("Unsupported platform!")
    |        `- error: Unsupported platform!
 18 | #endif
 19 |
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:32:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 30 |     static var host: Host = .localhost(port: 8080)
 31 |
 32 |     let session: URLSession
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 33 |     let env: SimctlClientEnvironment
 34 |
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:129:32: error: cannot find type 'URL' in scope
127 |     /// - Parameter url: URL to open.
128 |     /// - Parameter completion: Result callback of the call. Use this to wait for an expectation to fulfill in a test case.
129 |     public func openUrl(_ url: URL, completion: @escaping DataTaskCallback) {
    |                                `- error: cannot find type 'URL' in scope
130 |         dataTask(.openURL(env, URLContainer(url: url)), completion)
131 |     }
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:170:51: error: cannot find type 'Bundle' in scope
168 |     ///   - bundle: Bundle of the app you want to interact with.
169 |     ///   - processInfo: The process info from where to get the device Udid.
170 |     public init?(host: SimctlClient.Host, bundle: Bundle, processInfo: ProcessInfo) {
    |                                                   `- error: cannot find type 'Bundle' in scope
171 |         guard let udid = Self.deviceId(processInfo) else {
172 |             return nil
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:170:72: error: cannot find type 'ProcessInfo' in scope
168 |     ///   - bundle: Bundle of the app you want to interact with.
169 |     ///   - processInfo: The process info from where to get the device Udid.
170 |     public init?(host: SimctlClient.Host, bundle: Bundle, processInfo: ProcessInfo) {
    |                                                                        `- error: cannot find type 'ProcessInfo' in scope
171 |         guard let udid = Self.deviceId(processInfo) else {
172 |             return nil
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:194:41: error: cannot find type 'ProcessInfo' in scope
192 |     }
193 |
194 |     static func deviceId(_ processInfo: ProcessInfo) -> UUID? {
    |                                         `- error: cannot find type 'ProcessInfo' in scope
195 |         guard let udidString = processInfo.environment[ProcessEnvironmentKey.simulatorUdid.rawValue] else {
196 |             return nil
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:251:46: error: cannot find type 'HTTPURLResponse' in scope
249 |     public enum Error: Swift.Error {
250 |         case noHttpResponse(Route)
251 |         case unexpectedHttpStatusCode(Route, HTTPURLResponse)
    |                                              `- error: cannot find type 'HTTPURLResponse' in scope
252 |         case noData(Route, HTTPURLResponse)
253 |         case serviceError(Swift.Error)
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:252:28: error: cannot find type 'HTTPURLResponse' in scope
250 |         case noHttpResponse(Route)
251 |         case unexpectedHttpStatusCode(Route, HTTPURLResponse)
252 |         case noData(Route, HTTPURLResponse)
    |                            `- error: cannot find type 'HTTPURLResponse' in scope
253 |         case serviceError(Swift.Error)
254 |     }
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:405:25: error: cannot find type 'URL' in scope
403 |         }
404 |
405 |         func asURL() -> URL {
    |                         `- error: cannot find type 'URL' in scope
406 |             let urlString: String = SimctlClient.host.host + path.rawValue
407 |             guard let url = URL(string: urlString) else {
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:414:32: error: cannot find type 'URLRequest' in scope
412 |         }
413 |
414 |         func asURLRequest() -> URLRequest {
    |                                `- error: cannot find type 'URLRequest' in scope
415 |             var request = URLRequest(url: asURL())
416 |
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:43:19: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 41 |     /// Start client in a given environment.
 42 |     public init(environment: SimctlClientEnvironment) {
 43 |         session = URLSession(configuration: .default)
    |                   `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 44 |         Self.host = environment.host
 45 |         self.env = environment
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:43:46: error: cannot infer contextual base in reference to member 'default'
 41 |     /// Start client in a given environment.
 42 |     public init(environment: SimctlClientEnvironment) {
 43 |         session = URLSession(configuration: .default)
    |                                              `- error: cannot infer contextual base in reference to member 'default'
 44 |         Self.host = environment.host
 45 |         self.env = environment
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:188:40: error: cannot find 'ProcessInfo' in scope
186 |     ///   - host: The host and port of the SimctlCLI server.
187 |     public init?(bundleIdentifier: String, host: SimctlClient.Host) {
188 |         guard let udid = Self.deviceId(ProcessInfo()) else {
    |                                        `- error: cannot find 'ProcessInfo' in scope
189 |             return nil
190 |         }
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:379:27: error: cannot find 'JSONEncoder' in scope
377 |
378 |         @inlinable var httpBody: Data? {
379 |             let encoder = JSONEncoder()
    |                           `- error: cannot find 'JSONEncoder' in scope
380 |             switch self {
381 |             case let .sendPushNotification(_, notification):
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:407:29: error: cannot find 'URL' in scope
405 |         func asURL() -> URL {
406 |             let urlString: String = SimctlClient.host.host + path.rawValue
407 |             guard let url = URL(string: urlString) else {
    |                             `- error: cannot find 'URL' in scope
408 |                 fatalError("no valid url \(urlString)")
409 |             }
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:415:27: error: cannot find 'URLRequest' in scope
413 |
414 |         func asURLRequest() -> URLRequest {
415 |             var request = URLRequest(url: asURL())
    |                           `- error: cannot find 'URLRequest' in scope
416 |
417 |             request.httpMethod = httpMethod.rawValue
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:444:35: error: cannot find 'JSONDecoder' in scope
442 |             case let .success(data):
443 |                 do {
444 |                     let decoder = JSONDecoder()
    |                                   `- error: cannot find 'JSONDecoder' in scope
445 |                     let value: Value = try decoder.decode(Value.self, from: data)
446 |                     completion(.success(value))
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:462:50: error: cannot find type 'HTTPURLResponse' in scope
460 |             }
461 |
462 |             guard let response = urlResponse as? HTTPURLResponse else {
    |                                                  `- error: cannot find type 'HTTPURLResponse' in scope
463 |                 completion(.failure(Error.noHttpResponse(route)))
464 |                 return
/host/spi-builder-workspace/Sources/Simctl/SimctlClient.swift:456:28: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
454 |
455 |     func dataTask(_ route: Route, _ completion: @escaping DataTaskCallback) {
456 |         let task = session.dataTask(with: route.asURLRequest()) { data, urlResponse, error in
    |                            `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
457 |             if let error = error {
458 |                 completion(.failure(Error.serviceError(error)))
BUILD FAILURE 6.1 android