The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Failed to build Dynamic, reference master (772883), with Swift 6.1 for Linux on 26 Apr 2025 01:33:53 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.61.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/mhdhejazi/Dynamic.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/mhdhejazi/Dynamic
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 7728830 Create LICENSE
Cloned https://github.com/mhdhejazi/Dynamic.git
Revision (git rev-parse @):
772883073d044bc754d401cabb6574624eb3778f
SUCCESS checkout https://github.com/mhdhejazi/Dynamic.git at master
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.1
Building package at path:  $PWD
https://github.com/mhdhejazi/Dynamic.git
https://github.com/mhdhejazi/Dynamic.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Dynamic",
  "name" : "Dynamic",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.12"
    },
    {
      "name" : "ios",
      "version" : "10.0"
    },
    {
      "name" : "tvos",
      "version" : "10.0"
    },
    {
      "name" : "watchos",
      "version" : "3.0"
    }
  ],
  "products" : [
    {
      "name" : "Dynamic",
      "targets" : [
        "Dynamic"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "swift_languages_versions" : [
    "5"
  ],
  "targets" : [
    {
      "c99name" : "DynamicTests",
      "module_type" : "SwiftTarget",
      "name" : "DynamicTests",
      "path" : "Tests/DynamicTests",
      "sources" : [
        "DynamicTests.swift"
      ],
      "target_dependencies" : [
        "Dynamic"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Dynamic",
      "module_type" : "SwiftTarget",
      "name" : "Dynamic",
      "path" : "Sources/Dynamic",
      "product_memberships" : [
        "Dynamic"
      ],
      "sources" : [
        "Dynamic.swift",
        "Invocation.swift",
        "Logger.swift",
        "TypeMapping.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.2"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/7] Compiling Dynamic Logger.swift
/host/spi-builder-workspace/Sources/Dynamic/Logger.swift:35:16: warning: static property 'dummy' is not concurrency-safe because non-'Sendable' type 'DummyLogger' may have shared mutable state; this is an error in the Swift 6 language mode
 33 |     }
 34 |
 35 |     static let dummy = DummyLogger()
    |                |- warning: static property 'dummy' is not concurrency-safe because non-'Sendable' type 'DummyLogger' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: add '@MainActor' to make static property 'dummy' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 36 |     static var enabled = true
 37 |
    :
 94 | }
 95 |
 96 | class DummyLogger: Logger {
    |       `- note: class 'DummyLogger' does not conform to the 'Sendable' protocol
 97 |     @discardableResult
 98 |     override func log(_ items: [Any], withBullet: Bool = true) -> Logger {
/host/spi-builder-workspace/Sources/Dynamic/Logger.swift:36:16: warning: static property 'enabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 34 |
 35 |     static let dummy = DummyLogger()
 36 |     static var enabled = true
    |                |- warning: static property 'enabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'enabled' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: add '@MainActor' to make static property 'enabled' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 37 |
 38 |     private static var loggers: [ObjectIdentifier: Logger] = [:]
/host/spi-builder-workspace/Sources/Dynamic/Logger.swift:38:24: warning: static property 'loggers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 36 |     static var enabled = true
 37 |
 38 |     private static var loggers: [ObjectIdentifier: Logger] = [:]
    |                        |- warning: static property 'loggers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'loggers' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: add '@MainActor' to make static property 'loggers' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 39 |     private static var level: Int = 0
 40 |
/host/spi-builder-workspace/Sources/Dynamic/Logger.swift:39:24: warning: static property 'level' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 37 |
 38 |     private static var loggers: [ObjectIdentifier: Logger] = [:]
 39 |     private static var level: Int = 0
    |                        |- warning: static property 'level' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'level' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: add '@MainActor' to make static property 'level' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 40 |
 41 |     static func logger(for object: AnyObject) -> Logger {
[4/7] Compiling Dynamic TypeMapping.swift
/host/spi-builder-workspace/Sources/Dynamic/TypeMapping.swift:35:10: error: cannot find 'URLRequest' in scope
 33 |         (URLComponents.self, NSURLComponents.self),
 34 |         (URLQueryItem.self, NSURLQueryItem.self),
 35 |         (URLRequest.self, NSURLRequest.self),
    |          `- error: cannot find 'URLRequest' in scope
 36 |         (UUID.self, NSUUID.self)
 37 |     ]
/host/spi-builder-workspace/Sources/Dynamic/TypeMapping.swift:35:27: error: cannot find 'NSURLRequest' in scope
 33 |         (URLComponents.self, NSURLComponents.self),
 34 |         (URLQueryItem.self, NSURLQueryItem.self),
 35 |         (URLRequest.self, NSURLRequest.self),
    |                           `- error: cannot find 'NSURLRequest' in scope
 36 |         (UUID.self, NSUUID.self)
 37 |     ]
/host/spi-builder-workspace/Sources/Dynamic/TypeMapping.swift:87:17: error: cannot find type 'URLRequest' in scope
 85 |         case is URLComponents: return object as? NSURLComponents
 86 |         case is URLQueryItem: return object as? NSURLQueryItem
 87 |         case is URLRequest: return object as? NSURLRequest
    |                 `- error: cannot find type 'URLRequest' in scope
 88 |         case is UUID: return object as? NSUUID
 89 |         default: return nil
/host/spi-builder-workspace/Sources/Dynamic/TypeMapping.swift:87:47: error: cannot find type 'NSURLRequest' in scope
 85 |         case is URLComponents: return object as? NSURLComponents
 86 |         case is URLQueryItem: return object as? NSURLQueryItem
 87 |         case is URLRequest: return object as? NSURLRequest
    |                                               `- error: cannot find type 'NSURLRequest' in scope
 88 |         case is UUID: return object as? NSUUID
 89 |         default: return nil
/host/spi-builder-workspace/Sources/Dynamic/TypeMapping.swift:87:43: warning: conditional downcast from 'Any?' to 'Any' does nothing
 85 |         case is URLComponents: return object as? NSURLComponents
 86 |         case is URLQueryItem: return object as? NSURLQueryItem
 87 |         case is URLRequest: return object as? NSURLRequest
    |                                           `- warning: conditional downcast from 'Any?' to 'Any' does nothing
 88 |         case is UUID: return object as? NSUUID
 89 |         default: return nil
/host/spi-builder-workspace/Sources/Dynamic/TypeMapping.swift:116:17: error: cannot find type 'NSURLRequest' in scope
114 |         case is NSURLComponents: return object as? URLComponents
115 |         case is NSURLQueryItem: return object as? URLQueryItem
116 |         case is NSURLRequest: return object as? URLRequest
    |                 `- error: cannot find type 'NSURLRequest' in scope
117 |         case is NSUUID: return object as? UUID
118 |         default: return nil
/host/spi-builder-workspace/Sources/Dynamic/TypeMapping.swift:116:49: error: cannot find type 'URLRequest' in scope
114 |         case is NSURLComponents: return object as? URLComponents
115 |         case is NSURLQueryItem: return object as? URLQueryItem
116 |         case is NSURLRequest: return object as? URLRequest
    |                                                 `- error: cannot find type 'URLRequest' in scope
117 |         case is NSUUID: return object as? UUID
118 |         default: return nil
/host/spi-builder-workspace/Sources/Dynamic/TypeMapping.swift:116:45: warning: conditional downcast from 'Any?' to 'Any' does nothing
114 |         case is NSURLComponents: return object as? URLComponents
115 |         case is NSURLQueryItem: return object as? URLQueryItem
116 |         case is NSURLRequest: return object as? URLRequest
    |                                             `- warning: conditional downcast from 'Any?' to 'Any' does nothing
117 |         case is NSUUID: return object as? UUID
118 |         default: return nil
error: emit-module command failed with exit code 1 (use -v to see invocation)
[5/7] Emitting module Dynamic
/host/spi-builder-workspace/Sources/Dynamic/Dynamic.swift:14:23: warning: static property 'loggingEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 12 | @dynamicMemberLookup
 13 | public class Dynamic: CustomDebugStringConvertible, Loggable {
 14 |     public static var loggingEnabled: Bool = false {
    |                       |- warning: static property 'loggingEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'loggingEnabled' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: add '@MainActor' to make static property 'loggingEnabled' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 15 |         didSet {
 16 |             Invocation.loggingEnabled = loggingEnabled
/host/spi-builder-workspace/Sources/Dynamic/Dynamic.swift:21:23: warning: static property 'nil' is not concurrency-safe because non-'Sendable' type 'Dynamic' may have shared mutable state; this is an error in the Swift 6 language mode
 11 | @dynamicCallable
 12 | @dynamicMemberLookup
 13 | public class Dynamic: CustomDebugStringConvertible, Loggable {
    |              `- note: class 'Dynamic' does not conform to the 'Sendable' protocol
 14 |     public static var loggingEnabled: Bool = false {
 15 |         didSet {
    :
 19 |     var loggingEnabled: Bool { Self.loggingEnabled }
 20 |
 21 |     public static let `nil` = Dynamic(nil)
    |                       |- warning: static property 'nil' is not concurrency-safe because non-'Sendable' type 'Dynamic' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'nil' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 22 |
 23 |     private let object: AnyObject?
/host/spi-builder-workspace/Sources/Dynamic/Dynamic.swift:267:28: error: cannot find type 'Selector' in scope
265 |     public var asInt: Int? { unwrap() }
266 |     public var asUInt: UInt? { unwrap() }
267 |     public var asSelector: Selector? { unwrap() }
    |                            `- error: cannot find type 'Selector' in scope
268 |
269 |     public func asInferred<T>() -> T? { unwrap() }
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:10:23: warning: static property 'loggingEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
  8 |
  9 | class Invocation: Loggable {
 10 |     public static var loggingEnabled: Bool = false
    |                       |- warning: static property 'loggingEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'loggingEnabled' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: add '@MainActor' to make static property 'loggingEnabled' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 11 |     var loggingEnabled: Bool { Self.loggingEnabled }
 12 |
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:14:27: error: cannot find type 'Selector' in scope
 12 |
 13 |     private let target: NSObject
 14 |     private let selector: Selector
    |                           `- error: cannot find type 'Selector' in scope
 15 |
 16 |     var invocation: NSObject?
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:38:38: error: cannot find type 'Selector' in scope
 36 |     private(set) var isInvoked: Bool = false
 37 |
 38 |     init(target: NSObject, selector: Selector) throws {
    |                                      `- error: cannot find type 'Selector' in scope
 39 |         self.target = target
 40 |         self.selector = selector
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:117:50: error: cannot find type 'NSInteger' in scope
115 |     }
116 |
117 |     func setArgument(_ argument: Any?, at index: NSInteger) {
    |                                                  `- error: cannot find type 'NSInteger' in scope
118 |         guard let invocation = invocation else { return }
119 |
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:218:66: error: cannot find type 'Selector' in scope
216 |
217 | public enum InvocationError: CustomNSError {
218 |     case unrecognizedSelector(_ classType: AnyClass, _ selector: Selector)
    |                                                                  `- error: cannot find type 'Selector' in scope
219 |
220 |     public static var errorDomain: String { String(describing: Invocation.self) }
/host/spi-builder-workspace/Sources/Dynamic/Logger.swift:35:16: warning: static property 'dummy' is not concurrency-safe because non-'Sendable' type 'DummyLogger' may have shared mutable state; this is an error in the Swift 6 language mode
 33 |     }
 34 |
 35 |     static let dummy = DummyLogger()
    |                |- warning: static property 'dummy' is not concurrency-safe because non-'Sendable' type 'DummyLogger' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: add '@MainActor' to make static property 'dummy' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 36 |     static var enabled = true
 37 |
    :
 94 | }
 95 |
 96 | class DummyLogger: Logger {
    |       `- note: class 'DummyLogger' does not conform to the 'Sendable' protocol
 97 |     @discardableResult
 98 |     override func log(_ items: [Any], withBullet: Bool = true) -> Logger {
/host/spi-builder-workspace/Sources/Dynamic/Logger.swift:36:16: warning: static property 'enabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 34 |
 35 |     static let dummy = DummyLogger()
 36 |     static var enabled = true
    |                |- warning: static property 'enabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'enabled' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: add '@MainActor' to make static property 'enabled' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 37 |
 38 |     private static var loggers: [ObjectIdentifier: Logger] = [:]
/host/spi-builder-workspace/Sources/Dynamic/Logger.swift:38:24: warning: static property 'loggers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 36 |     static var enabled = true
 37 |
 38 |     private static var loggers: [ObjectIdentifier: Logger] = [:]
    |                        |- warning: static property 'loggers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'loggers' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: add '@MainActor' to make static property 'loggers' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 39 |     private static var level: Int = 0
 40 |
/host/spi-builder-workspace/Sources/Dynamic/Logger.swift:39:24: warning: static property 'level' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 37 |
 38 |     private static var loggers: [ObjectIdentifier: Logger] = [:]
 39 |     private static var level: Int = 0
    |                        |- warning: static property 'level' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'level' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: add '@MainActor' to make static property 'level' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 40 |
 41 |     static func logger(for object: AnyObject) -> Logger {
/host/spi-builder-workspace/Sources/Dynamic/TypeMapping.swift:35:10: error: cannot find 'URLRequest' in scope
 33 |         (URLComponents.self, NSURLComponents.self),
 34 |         (URLQueryItem.self, NSURLQueryItem.self),
 35 |         (URLRequest.self, NSURLRequest.self),
    |          `- error: cannot find 'URLRequest' in scope
 36 |         (UUID.self, NSUUID.self)
 37 |     ]
/host/spi-builder-workspace/Sources/Dynamic/TypeMapping.swift:35:27: error: cannot find 'NSURLRequest' in scope
 33 |         (URLComponents.self, NSURLComponents.self),
 34 |         (URLQueryItem.self, NSURLQueryItem.self),
 35 |         (URLRequest.self, NSURLRequest.self),
    |                           `- error: cannot find 'NSURLRequest' in scope
 36 |         (UUID.self, NSUUID.self)
 37 |     ]
[6/7] Compiling Dynamic Invocation.swift
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:10:23: warning: static property 'loggingEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
  8 |
  9 | class Invocation: Loggable {
 10 |     public static var loggingEnabled: Bool = false
    |                       |- warning: static property 'loggingEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'loggingEnabled' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: add '@MainActor' to make static property 'loggingEnabled' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 11 |     var loggingEnabled: Bool { Self.loggingEnabled }
 12 |
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:14:27: error: cannot find type 'Selector' in scope
 12 |
 13 |     private let target: NSObject
 14 |     private let selector: Selector
    |                           `- error: cannot find type 'Selector' in scope
 15 |
 16 |     var invocation: NSObject?
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:38:38: error: cannot find type 'Selector' in scope
 36 |     private(set) var isInvoked: Bool = false
 37 |
 38 |     init(target: NSObject, selector: Selector) throws {
    |                                      `- error: cannot find type 'Selector' in scope
 39 |         self.target = target
 40 |         self.selector = selector
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:117:50: error: cannot find type 'NSInteger' in scope
115 |     }
116 |
117 |     func setArgument(_ argument: Any?, at index: NSInteger) {
    |                                                  `- error: cannot find type 'NSInteger' in scope
118 |         guard let invocation = invocation else { return }
119 |
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:218:66: error: cannot find type 'Selector' in scope
216 |
217 | public enum InvocationError: CustomNSError {
218 |     case unrecognizedSelector(_ classType: AnyClass, _ selector: Selector)
    |                                                                  `- error: cannot find type 'Selector' in scope
219 |
220 |     public static var errorDomain: String { String(describing: Invocation.self) }
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:54:28: error: cannot find 'NSSelectorFromString' in scope
 52 |         let methodSignature: NSObject
 53 |         do {
 54 |             let selector = NSSelectorFromString("methodSignatureForSelector:")
    |                            `- error: cannot find 'NSSelectorFromString' in scope
 55 |             let signature = (@convention(c)(NSObject, Selector, Selector) -> Any).self
 56 |             let method = unsafeBitCast(target.method(for: selector), to: signature)
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:55:55: error: cannot find type 'Selector' in scope
 53 |         do {
 54 |             let selector = NSSelectorFromString("methodSignatureForSelector:")
 55 |             let signature = (@convention(c)(NSObject, Selector, Selector) -> Any).self
    |                                                       `- error: cannot find type 'Selector' in scope
 56 |             let method = unsafeBitCast(target.method(for: selector), to: signature)
 57 |             guard let result = method(target, selector, self.selector) as? NSObject else {
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:55:65: error: cannot find type 'Selector' in scope
 53 |         do {
 54 |             let selector = NSSelectorFromString("methodSignatureForSelector:")
 55 |             let signature = (@convention(c)(NSObject, Selector, Selector) -> Any).self
    |                                                                 `- error: cannot find type 'Selector' in scope
 56 |             let method = unsafeBitCast(target.method(for: selector), to: signature)
 57 |             guard let result = method(target, selector, self.selector) as? NSObject else {
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:56:26: error: generic parameter 'U' could not be inferred
 54 |             let selector = NSSelectorFromString("methodSignatureForSelector:")
 55 |             let signature = (@convention(c)(NSObject, Selector, Selector) -> Any).self
 56 |             let method = unsafeBitCast(target.method(for: selector), to: signature)
    |                          `- error: generic parameter 'U' could not be inferred
 57 |             guard let result = method(target, selector, self.selector) as? NSObject else {
 58 |                 let error = InvocationError.unrecognizedSelector(type(of: target), self.selector)
Swift.unsafeBitCast:1:24: note: in call to function 'unsafeBitCast(_:to:)'
1 | @inlinable public func unsafeBitCast<T, U>(_ x: T, to type: U.Type) -> U
  |                        `- note: in call to function 'unsafeBitCast(_:to:)'
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:56:47: error: value of type 'NSObject' has no member 'method'
 54 |             let selector = NSSelectorFromString("methodSignatureForSelector:")
 55 |             let signature = (@convention(c)(NSObject, Selector, Selector) -> Any).self
 56 |             let method = unsafeBitCast(target.method(for: selector), to: signature)
    |                                               `- error: value of type 'NSObject' has no member 'method'
 57 |             guard let result = method(target, selector, self.selector) as? NSObject else {
 58 |                 let error = InvocationError.unrecognizedSelector(type(of: target), self.selector)
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:66:50: error: value of type 'NSObject' has no member 'value'
 64 |
 65 |         /// `numberOfArguments = methodSignature.numberOfArguments`
 66 |         self.numberOfArguments = methodSignature.value(forKeyPath: "numberOfArguments") as? Int ?? 0
    |                                                  `- error: value of type 'NSObject' has no member 'value'
 67 |         log("NumberOfArguments:", numberOfArguments)
 68 |
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:70:45: error: value of type 'NSObject' has no member 'value'
 68 |
 69 |         /// `methodReturnLength = methodSignature.methodReturnLength`
 70 |         self.returnLength = methodSignature.value(forKeyPath: "methodReturnLength") as? Int ?? 0
    |                                             `- error: value of type 'NSObject' has no member 'value'
 71 |         log("ReturnLength:", returnLength)
 72 |
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:76:28: error: cannot find 'NSSelectorFromString' in scope
 74 |         let methodReturnType: UnsafePointer<CChar>
 75 |         do {
 76 |             let selector = NSSelectorFromString("methodReturnType")
    |                            `- error: cannot find 'NSSelectorFromString' in scope
 77 |             let signature = (@convention(c)(NSObject, Selector) -> UnsafePointer<CChar>).self
 78 |             let method = unsafeBitCast(methodSignature.method(for: selector), to: signature)
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:77:55: error: cannot find type 'Selector' in scope
 75 |         do {
 76 |             let selector = NSSelectorFromString("methodReturnType")
 77 |             let signature = (@convention(c)(NSObject, Selector) -> UnsafePointer<CChar>).self
    |                                                       `- error: cannot find type 'Selector' in scope
 78 |             let method = unsafeBitCast(methodSignature.method(for: selector), to: signature)
 79 |             methodReturnType = method(methodSignature, selector)
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:78:26: error: generic parameter 'U' could not be inferred
 76 |             let selector = NSSelectorFromString("methodReturnType")
 77 |             let signature = (@convention(c)(NSObject, Selector) -> UnsafePointer<CChar>).self
 78 |             let method = unsafeBitCast(methodSignature.method(for: selector), to: signature)
    |                          `- error: generic parameter 'U' could not be inferred
 79 |             methodReturnType = method(methodSignature, selector)
 80 |         }
Swift.unsafeBitCast:1:24: note: in call to function 'unsafeBitCast(_:to:)'
1 | @inlinable public func unsafeBitCast<T, U>(_ x: T, to type: U.Type) -> U
  |                        `- note: in call to function 'unsafeBitCast(_:to:)'
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:78:56: error: value of type 'NSObject' has no member 'method'
 76 |             let selector = NSSelectorFromString("methodReturnType")
 77 |             let signature = (@convention(c)(NSObject, Selector) -> UnsafePointer<CChar>).self
 78 |             let method = unsafeBitCast(methodSignature.method(for: selector), to: signature)
    |                                                        `- error: value of type 'NSObject' has no member 'method'
 79 |             methodReturnType = method(methodSignature, selector)
 80 |         }
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:88:28: error: cannot find 'NSSelectorFromString' in scope
 86 |         do {
 87 |             let NSInvocation = NSClassFromString("NSInvocation") as AnyObject
 88 |             let selector = NSSelectorFromString("invocationWithMethodSignature:")
    |                            `- error: cannot find 'NSSelectorFromString' in scope
 89 |             let signature = (@convention(c)(AnyObject, Selector, AnyObject) -> AnyObject).self
 90 |             let method = unsafeBitCast(NSInvocation.method(for: selector), to: signature)
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:89:56: error: cannot find type 'Selector' in scope
 87 |             let NSInvocation = NSClassFromString("NSInvocation") as AnyObject
 88 |             let selector = NSSelectorFromString("invocationWithMethodSignature:")
 89 |             let signature = (@convention(c)(AnyObject, Selector, AnyObject) -> AnyObject).self
    |                                                        `- error: cannot find type 'Selector' in scope
 90 |             let method = unsafeBitCast(NSInvocation.method(for: selector), to: signature)
 91 |             guard let result = method(NSInvocation, selector, methodSignature) as? NSObject else {
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:90:26: error: generic parameter 'U' could not be inferred
 88 |             let selector = NSSelectorFromString("invocationWithMethodSignature:")
 89 |             let signature = (@convention(c)(AnyObject, Selector, AnyObject) -> AnyObject).self
 90 |             let method = unsafeBitCast(NSInvocation.method(for: selector), to: signature)
    |                          `- error: generic parameter 'U' could not be inferred
 91 |             guard let result = method(NSInvocation, selector, methodSignature) as? NSObject else {
 92 |                 let error = InvocationError.unrecognizedSelector(type(of: target), self.selector)
Swift.unsafeBitCast:1:24: note: in call to function 'unsafeBitCast(_:to:)'
1 | @inlinable public func unsafeBitCast<T, U>(_ x: T, to type: U.Type) -> U
  |                        `- note: in call to function 'unsafeBitCast(_:to:)'
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:90:53: error: value of type 'AnyObject' has no member 'method'
 88 |             let selector = NSSelectorFromString("invocationWithMethodSignature:")
 89 |             let signature = (@convention(c)(AnyObject, Selector, AnyObject) -> AnyObject).self
 90 |             let method = unsafeBitCast(NSInvocation.method(for: selector), to: signature)
    |                                                     `- error: value of type 'AnyObject' has no member 'method'
 91 |             guard let result = method(NSInvocation, selector, methodSignature) as? NSObject else {
 92 |                 let error = InvocationError.unrecognizedSelector(type(of: target), self.selector)
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:102:28: error: cannot find 'NSSelectorFromString' in scope
100 |         /// `invocation.selector = selector`
101 |         do {
102 |             let selector = NSSelectorFromString("setSelector:")
    |                            `- error: cannot find 'NSSelectorFromString' in scope
103 |             let signature = (@convention(c)(NSObject, Selector, Selector) -> Void).self
104 |             let method = unsafeBitCast(invocation.method(for: selector), to: signature)
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:103:55: error: cannot find type 'Selector' in scope
101 |         do {
102 |             let selector = NSSelectorFromString("setSelector:")
103 |             let signature = (@convention(c)(NSObject, Selector, Selector) -> Void).self
    |                                                       `- error: cannot find type 'Selector' in scope
104 |             let method = unsafeBitCast(invocation.method(for: selector), to: signature)
105 |             method(invocation, selector, self.selector)
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:103:65: error: cannot find type 'Selector' in scope
101 |         do {
102 |             let selector = NSSelectorFromString("setSelector:")
103 |             let signature = (@convention(c)(NSObject, Selector, Selector) -> Void).self
    |                                                                 `- error: cannot find type 'Selector' in scope
104 |             let method = unsafeBitCast(invocation.method(for: selector), to: signature)
105 |             method(invocation, selector, self.selector)
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:104:26: error: generic parameter 'U' could not be inferred
102 |             let selector = NSSelectorFromString("setSelector:")
103 |             let signature = (@convention(c)(NSObject, Selector, Selector) -> Void).self
104 |             let method = unsafeBitCast(invocation.method(for: selector), to: signature)
    |                          `- error: generic parameter 'U' could not be inferred
105 |             method(invocation, selector, self.selector)
106 |         }
Swift.unsafeBitCast:1:24: note: in call to function 'unsafeBitCast(_:to:)'
1 | @inlinable public func unsafeBitCast<T, U>(_ x: T, to type: U.Type) -> U
  |                        `- note: in call to function 'unsafeBitCast(_:to:)'
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:104:51: error: value of type 'NSObject' has no member 'method'
102 |             let selector = NSSelectorFromString("setSelector:")
103 |             let signature = (@convention(c)(NSObject, Selector, Selector) -> Void).self
104 |             let method = unsafeBitCast(invocation.method(for: selector), to: signature)
    |                                                   `- error: value of type 'NSObject' has no member 'method'
105 |             method(invocation, selector, self.selector)
106 |         }
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:110:28: error: cannot find 'NSSelectorFromString' in scope
108 |         /// `[invocation retainArguments]`
109 |         do {
110 |             let selector = NSSelectorFromString("retainArguments")
    |                            `- error: cannot find 'NSSelectorFromString' in scope
111 |             let signature = (@convention(c)(NSObject, Selector) -> Void).self
112 |             let method = unsafeBitCast(invocation.method(for: selector), to: signature)
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:111:55: error: cannot find type 'Selector' in scope
109 |         do {
110 |             let selector = NSSelectorFromString("retainArguments")
111 |             let signature = (@convention(c)(NSObject, Selector) -> Void).self
    |                                                       `- error: cannot find type 'Selector' in scope
112 |             let method = unsafeBitCast(invocation.method(for: selector), to: signature)
113 |             method(invocation, selector)
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:112:26: error: generic parameter 'U' could not be inferred
110 |             let selector = NSSelectorFromString("retainArguments")
111 |             let signature = (@convention(c)(NSObject, Selector) -> Void).self
112 |             let method = unsafeBitCast(invocation.method(for: selector), to: signature)
    |                          `- error: generic parameter 'U' could not be inferred
113 |             method(invocation, selector)
114 |         }
Swift.unsafeBitCast:1:24: note: in call to function 'unsafeBitCast(_:to:)'
1 | @inlinable public func unsafeBitCast<T, U>(_ x: T, to type: U.Type) -> U
  |                        `- note: in call to function 'unsafeBitCast(_:to:)'
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:112:51: error: value of type 'NSObject' has no member 'method'
110 |             let selector = NSSelectorFromString("retainArguments")
111 |             let signature = (@convention(c)(NSObject, Selector) -> Void).self
112 |             let method = unsafeBitCast(invocation.method(for: selector), to: signature)
    |                                                   `- error: value of type 'NSObject' has no member 'method'
113 |             method(invocation, selector)
114 |         }
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:123:24: error: cannot find 'NSSelectorFromString' in scope
121 |
122 |         /// `[invocation setArgument:&argument atIndex:i + 2]`
123 |         let selector = NSSelectorFromString("setArgument:atIndex:")
    |                        `- error: cannot find 'NSSelectorFromString' in scope
124 |         let signature = (@convention(c)(NSObject, Selector, UnsafeRawPointer, Int) -> Void).self
125 |         let method = unsafeBitCast(invocation.method(for: selector), to: signature)
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:124:51: error: cannot find type 'Selector' in scope
122 |         /// `[invocation setArgument:&argument atIndex:i + 2]`
123 |         let selector = NSSelectorFromString("setArgument:atIndex:")
124 |         let signature = (@convention(c)(NSObject, Selector, UnsafeRawPointer, Int) -> Void).self
    |                                                   `- error: cannot find type 'Selector' in scope
125 |         let method = unsafeBitCast(invocation.method(for: selector), to: signature)
126 |
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:125:22: error: generic parameter 'U' could not be inferred
123 |         let selector = NSSelectorFromString("setArgument:atIndex:")
124 |         let signature = (@convention(c)(NSObject, Selector, UnsafeRawPointer, Int) -> Void).self
125 |         let method = unsafeBitCast(invocation.method(for: selector), to: signature)
    |                      `- error: generic parameter 'U' could not be inferred
126 |
127 |         if let valueArgument = argument as? NSValue {
Swift.unsafeBitCast:1:24: note: in call to function 'unsafeBitCast(_:to:)'
1 | @inlinable public func unsafeBitCast<T, U>(_ x: T, to type: U.Type) -> U
  |                        `- note: in call to function 'unsafeBitCast(_:to:)'
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:125:47: error: value of type 'NSObject' has no member 'method'
123 |         let selector = NSSelectorFromString("setArgument:atIndex:")
124 |         let signature = (@convention(c)(NSObject, Selector, UnsafeRawPointer, Int) -> Void).self
125 |         let method = unsafeBitCast(invocation.method(for: selector), to: signature)
    |                                               `- error: value of type 'NSObject' has no member 'method'
126 |
127 |         if let valueArgument = argument as? NSValue {
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:131:13: warning: result of call to 'NSGetSizeAndAlignment' is unused
129 |             let typeSize = UnsafeMutablePointer<Int>.allocate(capacity: 1)
130 |             defer { typeSize.deallocate() }
131 |             NSGetSizeAndAlignment(valueArgument.objCType, typeSize, nil)
    |             `- warning: result of call to 'NSGetSizeAndAlignment' is unused
132 |
133 |             /// Get the actual value
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:155:28: error: cannot find 'NSSelectorFromString' in scope
153 |         /// `[invocation invokeWithTarget: target]`
154 |         do {
155 |             let selector = NSSelectorFromString("invokeWithTarget:")
    |                            `- error: cannot find 'NSSelectorFromString' in scope
156 |             let signature = (@convention(c)(NSObject, Selector, AnyObject) -> Void).self
157 |             let method = unsafeBitCast(invocation.method(for: selector), to: signature)
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:156:55: error: cannot find type 'Selector' in scope
154 |         do {
155 |             let selector = NSSelectorFromString("invokeWithTarget:")
156 |             let signature = (@convention(c)(NSObject, Selector, AnyObject) -> Void).self
    |                                                       `- error: cannot find type 'Selector' in scope
157 |             let method = unsafeBitCast(invocation.method(for: selector), to: signature)
158 |             method(invocation, selector, target)
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:157:26: error: generic parameter 'U' could not be inferred
155 |             let selector = NSSelectorFromString("invokeWithTarget:")
156 |             let signature = (@convention(c)(NSObject, Selector, AnyObject) -> Void).self
157 |             let method = unsafeBitCast(invocation.method(for: selector), to: signature)
    |                          `- error: generic parameter 'U' could not be inferred
158 |             method(invocation, selector, target)
159 |         }
Swift.unsafeBitCast:1:24: note: in call to function 'unsafeBitCast(_:to:)'
1 | @inlinable public func unsafeBitCast<T, U>(_ x: T, to type: U.Type) -> U
  |                        `- note: in call to function 'unsafeBitCast(_:to:)'
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:157:51: error: value of type 'NSObject' has no member 'method'
155 |             let selector = NSSelectorFromString("invokeWithTarget:")
156 |             let signature = (@convention(c)(NSObject, Selector, AnyObject) -> Void).self
157 |             let method = unsafeBitCast(invocation.method(for: selector), to: signature)
    |                                                   `- error: value of type 'NSObject' has no member 'method'
158 |             method(invocation, selector, target)
159 |         }
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:169:28: error: cannot find 'NSSelectorFromString' in scope
167 |         /// `[invocation getReturnValue: returnValue]`
168 |         do {
169 |             let selector = NSSelectorFromString("getReturnValue:")
    |                            `- error: cannot find 'NSSelectorFromString' in scope
170 |             let signature = (@convention(c)(NSObject, Selector, UnsafeMutableRawPointer) -> Void).self
171 |             let method = unsafeBitCast(invocation.method(for: selector), to: signature)
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:170:55: error: cannot find type 'Selector' in scope
168 |         do {
169 |             let selector = NSSelectorFromString("getReturnValue:")
170 |             let signature = (@convention(c)(NSObject, Selector, UnsafeMutableRawPointer) -> Void).self
    |                                                       `- error: cannot find type 'Selector' in scope
171 |             let method = unsafeBitCast(invocation.method(for: selector), to: signature)
172 |             withUnsafeMutablePointer(to: &result) { pointer in
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:171:26: error: generic parameter 'U' could not be inferred
169 |             let selector = NSSelectorFromString("getReturnValue:")
170 |             let signature = (@convention(c)(NSObject, Selector, UnsafeMutableRawPointer) -> Void).self
171 |             let method = unsafeBitCast(invocation.method(for: selector), to: signature)
    |                          `- error: generic parameter 'U' could not be inferred
172 |             withUnsafeMutablePointer(to: &result) { pointer in
173 |                 method(invocation, selector, pointer)
Swift.unsafeBitCast:1:24: note: in call to function 'unsafeBitCast(_:to:)'
1 | @inlinable public func unsafeBitCast<T, U>(_ x: T, to type: U.Type) -> U
  |                        `- note: in call to function 'unsafeBitCast(_:to:)'
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:171:51: error: value of type 'NSObject' has no member 'method'
169 |             let selector = NSSelectorFromString("getReturnValue:")
170 |             let signature = (@convention(c)(NSObject, Selector, UnsafeMutableRawPointer) -> Void).self
171 |             let method = unsafeBitCast(invocation.method(for: selector), to: signature)
    |                                                   `- error: value of type 'NSObject' has no member 'method'
172 |             withUnsafeMutablePointer(to: &result) { pointer in
173 |                 method(invocation, selector, pointer)
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:177:12: error: cannot find 'NSStringFromSelector' in scope
175 |         }
176 |
177 |         if NSStringFromSelector(self.selector) == "alloc" {
    |            `- error: cannot find 'NSStringFromSelector' in scope
178 |             log("getReturnValue() -> <alloc>")
179 |         } else {
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:209:24: error: cannot find 'NSStringFromSelector' in scope
207 |     private func isRetainingMethod() -> Bool {
208 |         /// Refer to: https://bit.ly/308okXm
209 |         let selector = NSStringFromSelector(self.selector)
    |                        `- error: cannot find 'NSStringFromSelector' in scope
210 |         return selector == "alloc" ||
211 |             selector.hasPrefix("new") ||
[7/7] Compiling Dynamic Dynamic.swift
/host/spi-builder-workspace/Sources/Dynamic/Dynamic.swift:14:23: warning: static property 'loggingEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 12 | @dynamicMemberLookup
 13 | public class Dynamic: CustomDebugStringConvertible, Loggable {
 14 |     public static var loggingEnabled: Bool = false {
    |                       |- warning: static property 'loggingEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'loggingEnabled' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: add '@MainActor' to make static property 'loggingEnabled' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 15 |         didSet {
 16 |             Invocation.loggingEnabled = loggingEnabled
/host/spi-builder-workspace/Sources/Dynamic/Dynamic.swift:21:23: warning: static property 'nil' is not concurrency-safe because non-'Sendable' type 'Dynamic' may have shared mutable state; this is an error in the Swift 6 language mode
 11 | @dynamicCallable
 12 | @dynamicMemberLookup
 13 | public class Dynamic: CustomDebugStringConvertible, Loggable {
    |              `- note: class 'Dynamic' does not conform to the 'Sendable' protocol
 14 |     public static var loggingEnabled: Bool = false {
 15 |         didSet {
    :
 19 |     var loggingEnabled: Bool { Self.loggingEnabled }
 20 |
 21 |     public static let `nil` = Dynamic(nil)
    |                       |- warning: static property 'nil' is not concurrency-safe because non-'Sendable' type 'Dynamic' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'nil' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 22 |
 23 |     private let object: AnyObject?
/host/spi-builder-workspace/Sources/Dynamic/Dynamic.swift:267:28: error: cannot find type 'Selector' in scope
265 |     public var asInt: Int? { unwrap() }
266 |     public var asUInt: UInt? { unwrap() }
267 |     public var asSelector: Selector? { unwrap() }
    |                            `- error: cannot find type 'Selector' in scope
268 |
269 |     public func asInferred<T>() -> T? { unwrap() }
/host/spi-builder-workspace/Sources/Dynamic/Dynamic.swift:29:51: error: value of type 'AnyObject' has no member 'debugDescription'
 27 |
 28 |     public var isError: Bool { error != nil || object is Error }
 29 |     public var debugDescription: String { object?.debugDescription ?? "<nil>" }
    |                                                   `- error: value of type 'AnyObject' has no member 'debugDescription'
 30 |
 31 |     public init(_ object: Any?, memberName: String? = nil) {
/host/spi-builder-workspace/Sources/Dynamic/Dynamic.swift:41:23: error: value of type 'AnyClass' (aka 'any AnyObject.Type') expected to be an instance of a class or class-constrained type in assignment
 39 |
 40 |     public init(className: String) {
 41 |         self.object = NSClassFromString(className)
    |                       `- error: value of type 'AnyClass' (aka 'any AnyObject.Type') expected to be an instance of a class or class-constrained type in assignment
 42 |         self.memberName = nil
 43 |
/host/spi-builder-workspace/Sources/Dynamic/Dynamic.swift:102:32: error: value of type 'AnyObject' has no member 'debugDescription'
100 |
101 |     private func getProperty(_ name: String) -> Dynamic {
102 |         log("Get:", "\(object?.debugDescription ?? "").\(name)")
    |                                `- error: value of type 'AnyObject' has no member 'debugDescription'
103 |
104 |         let resolved = resolve()
/host/spi-builder-workspace/Sources/Dynamic/Dynamic.swift:119:32: error: value of type 'AnyObject' has no member 'debugDescription'
117 |
118 |     private func setProperty<T>(_ name: String, value: T?) {
119 |         log("Set:", "\(object?.debugDescription ?? "").\(name)")
    |                                `- error: value of type 'AnyObject' has no member 'debugDescription'
120 |
121 |         let resolved = resolve()
/host/spi-builder-workspace/Sources/Dynamic/Dynamic.swift:141:19: warning: cast from 'NSObject' to unrelated type 'AnyClass' (aka 'any AnyObject.Type') always fails
139 |
140 |         /// Call `alloc()` before `init()`
141 |         if target is AnyClass, selector.hasPrefix("init") {
    |                   `- warning: cast from 'NSObject' to unrelated type 'AnyClass' (aka 'any AnyObject.Type') always fails
142 |             guard let allocated = allocate(type: target) else { return }
143 |             target = allocated
/host/spi-builder-workspace/Sources/Dynamic/Dynamic.swift:147:67: error: cannot find 'NSSelectorFromString' in scope
145 |
146 |         do {
147 |             invocation = try Invocation(target: target, selector: NSSelectorFromString(selector))
    |                                                                   `- error: cannot find 'NSSelectorFromString' in scope
148 |         } catch {
149 |             print("WARNING: Trying to access an unrecognized member: \(type(of: target)).\(selector)")
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:38:38: error: cannot find type 'Selector' in scope
 36 |     private(set) var isInvoked: Bool = false
 37 |
 38 |     init(target: NSObject, selector: Selector) throws {
    |                                      `- error: cannot find type 'Selector' in scope
 39 |         self.target = target
 40 |         self.selector = selector
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:117:50: error: cannot find type 'NSInteger' in scope
115 |     }
116 |
117 |     func setArgument(_ argument: Any?, at index: NSInteger) {
    |                                                  `- error: cannot find type 'NSInteger' in scope
118 |         guard let invocation = invocation else { return }
119 |
/host/spi-builder-workspace/Sources/Dynamic/Dynamic.swift:172:69: error: cannot find 'NSSelectorFromString' in scope
170 |     private func allocate(type: NSObject) -> NSObject? {
171 |         do {
172 |             let invocation = try Invocation(target: type, selector: NSSelectorFromString("alloc"))
    |                                                                     `- error: cannot find 'NSSelectorFromString' in scope
173 |             invocation.invoke()
174 |             return invocation.returnedObject as? NSObject
/host/spi-builder-workspace/Sources/Dynamic/Dynamic.swift:231:27: error: incorrect argument label in call (have 'nonretainedObject:', expected 'coder:')
229 |         if let object = resolve() {
230 |             log(.end)
231 |             return NSValue(nonretainedObject: object)
    |                           `- error: incorrect argument label in call (have 'nonretainedObject:', expected 'coder:')
232 |         }
233 |
/host/spi-builder-workspace/Sources/Dynamic/Dynamic.swift:231:47: error: 'AnyObject' is not convertible to 'NSCoder'
229 |         if let object = resolve() {
230 |             log(.end)
231 |             return NSValue(nonretainedObject: object)
    |                                               |- error: 'AnyObject' is not convertible to 'NSCoder'
    |                                               `- note: did you mean to use 'as!' to force downcast?
232 |         }
233 |
/host/spi-builder-workspace/Sources/Dynamic/Dynamic.swift:253:49: error: value of type 'AnyObject' has no member 'description'
251 |     public var asArray: NSArray? { asAnyObject as? NSArray }
252 |     public var asDictionary: NSDictionary? { asAnyObject as? NSDictionary }
253 |     public var asString: String? { asAnyObject?.description }
    |                                                 `- error: value of type 'AnyObject' has no member 'description'
254 |     public var asInt8: Int8? { unwrap() }
255 |     public var asUInt8: UInt8? { unwrap() }
/host/spi-builder-workspace/Sources/Dynamic/Dynamic.swift:282:26: error: value of type 'NSValue' has no member 'nonretainedObjectValue'
280 |         let encoding = invocation.returnTypeString
281 |         if encoding == "^v" || encoding == "@" {
282 |             return value.nonretainedObjectValue as? T
    |                          `- error: value of type 'NSValue' has no member 'nonretainedObjectValue'
283 |         }
284 |
/host/spi-builder-workspace/Sources/Dynamic/Dynamic.swift:287:9: warning: result of call to 'NSGetSizeAndAlignment' is unused
285 |         var storedSize = 0
286 |         var storedAlignment = 0
287 |         NSGetSizeAndAlignment(invocation.returnType!, &storedSize, &storedAlignment)
    |         `- warning: result of call to 'NSGetSizeAndAlignment' is unused
288 |         guard MemoryLayout<T>.size == storedSize && MemoryLayout<T>.alignment == storedAlignment else {
289 |             return nil
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/6] Compiling Dynamic Logger.swift
[3/6] Compiling Dynamic Invocation.swift
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:14:27: error: cannot find type 'Selector' in scope
 12 |
 13 |     private let target: NSObject
 14 |     private let selector: Selector
    |                           `- error: cannot find type 'Selector' in scope
 15 |
 16 |     var invocation: NSObject?
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:38:38: error: cannot find type 'Selector' in scope
 36 |     private(set) var isInvoked: Bool = false
 37 |
 38 |     init(target: NSObject, selector: Selector) throws {
    |                                      `- error: cannot find type 'Selector' in scope
 39 |         self.target = target
 40 |         self.selector = selector
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:117:50: error: cannot find type 'NSInteger' in scope
115 |     }
116 |
117 |     func setArgument(_ argument: Any?, at index: NSInteger) {
    |                                                  `- error: cannot find type 'NSInteger' in scope
118 |         guard let invocation = invocation else { return }
119 |
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:218:66: error: cannot find type 'Selector' in scope
216 |
217 | public enum InvocationError: CustomNSError {
218 |     case unrecognizedSelector(_ classType: AnyClass, _ selector: Selector)
    |                                                                  `- error: cannot find type 'Selector' in scope
219 |
220 |     public static var errorDomain: String { String(describing: Invocation.self) }
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:54:28: error: cannot find 'NSSelectorFromString' in scope
 52 |         let methodSignature: NSObject
 53 |         do {
 54 |             let selector = NSSelectorFromString("methodSignatureForSelector:")
    |                            `- error: cannot find 'NSSelectorFromString' in scope
 55 |             let signature = (@convention(c)(NSObject, Selector, Selector) -> Any).self
 56 |             let method = unsafeBitCast(target.method(for: selector), to: signature)
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:55:55: error: cannot find type 'Selector' in scope
 53 |         do {
 54 |             let selector = NSSelectorFromString("methodSignatureForSelector:")
 55 |             let signature = (@convention(c)(NSObject, Selector, Selector) -> Any).self
    |                                                       `- error: cannot find type 'Selector' in scope
 56 |             let method = unsafeBitCast(target.method(for: selector), to: signature)
 57 |             guard let result = method(target, selector, self.selector) as? NSObject else {
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:55:65: error: cannot find type 'Selector' in scope
 53 |         do {
 54 |             let selector = NSSelectorFromString("methodSignatureForSelector:")
 55 |             let signature = (@convention(c)(NSObject, Selector, Selector) -> Any).self
    |                                                                 `- error: cannot find type 'Selector' in scope
 56 |             let method = unsafeBitCast(target.method(for: selector), to: signature)
 57 |             guard let result = method(target, selector, self.selector) as? NSObject else {
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:56:26: error: generic parameter 'U' could not be inferred
 54 |             let selector = NSSelectorFromString("methodSignatureForSelector:")
 55 |             let signature = (@convention(c)(NSObject, Selector, Selector) -> Any).self
 56 |             let method = unsafeBitCast(target.method(for: selector), to: signature)
    |                          `- error: generic parameter 'U' could not be inferred
 57 |             guard let result = method(target, selector, self.selector) as? NSObject else {
 58 |                 let error = InvocationError.unrecognizedSelector(type(of: target), self.selector)
Swift.unsafeBitCast:1:24: note: in call to function 'unsafeBitCast(_:to:)'
1 | @inlinable public func unsafeBitCast<T, U>(_ x: T, to type: U.Type) -> U
  |                        `- note: in call to function 'unsafeBitCast(_:to:)'
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:56:47: error: value of type 'NSObject' has no member 'method'
 54 |             let selector = NSSelectorFromString("methodSignatureForSelector:")
 55 |             let signature = (@convention(c)(NSObject, Selector, Selector) -> Any).self
 56 |             let method = unsafeBitCast(target.method(for: selector), to: signature)
    |                                               `- error: value of type 'NSObject' has no member 'method'
 57 |             guard let result = method(target, selector, self.selector) as? NSObject else {
 58 |                 let error = InvocationError.unrecognizedSelector(type(of: target), self.selector)
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:66:50: error: value of type 'NSObject' has no member 'value'
 64 |
 65 |         /// `numberOfArguments = methodSignature.numberOfArguments`
 66 |         self.numberOfArguments = methodSignature.value(forKeyPath: "numberOfArguments") as? Int ?? 0
    |                                                  `- error: value of type 'NSObject' has no member 'value'
 67 |         log("NumberOfArguments:", numberOfArguments)
 68 |
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:70:45: error: value of type 'NSObject' has no member 'value'
 68 |
 69 |         /// `methodReturnLength = methodSignature.methodReturnLength`
 70 |         self.returnLength = methodSignature.value(forKeyPath: "methodReturnLength") as? Int ?? 0
    |                                             `- error: value of type 'NSObject' has no member 'value'
 71 |         log("ReturnLength:", returnLength)
 72 |
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:76:28: error: cannot find 'NSSelectorFromString' in scope
 74 |         let methodReturnType: UnsafePointer<CChar>
 75 |         do {
 76 |             let selector = NSSelectorFromString("methodReturnType")
    |                            `- error: cannot find 'NSSelectorFromString' in scope
 77 |             let signature = (@convention(c)(NSObject, Selector) -> UnsafePointer<CChar>).self
 78 |             let method = unsafeBitCast(methodSignature.method(for: selector), to: signature)
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:77:55: error: cannot find type 'Selector' in scope
 75 |         do {
 76 |             let selector = NSSelectorFromString("methodReturnType")
 77 |             let signature = (@convention(c)(NSObject, Selector) -> UnsafePointer<CChar>).self
    |                                                       `- error: cannot find type 'Selector' in scope
 78 |             let method = unsafeBitCast(methodSignature.method(for: selector), to: signature)
 79 |             methodReturnType = method(methodSignature, selector)
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:78:26: error: generic parameter 'U' could not be inferred
 76 |             let selector = NSSelectorFromString("methodReturnType")
 77 |             let signature = (@convention(c)(NSObject, Selector) -> UnsafePointer<CChar>).self
 78 |             let method = unsafeBitCast(methodSignature.method(for: selector), to: signature)
    |                          `- error: generic parameter 'U' could not be inferred
 79 |             methodReturnType = method(methodSignature, selector)
 80 |         }
Swift.unsafeBitCast:1:24: note: in call to function 'unsafeBitCast(_:to:)'
1 | @inlinable public func unsafeBitCast<T, U>(_ x: T, to type: U.Type) -> U
  |                        `- note: in call to function 'unsafeBitCast(_:to:)'
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:78:56: error: value of type 'NSObject' has no member 'method'
 76 |             let selector = NSSelectorFromString("methodReturnType")
 77 |             let signature = (@convention(c)(NSObject, Selector) -> UnsafePointer<CChar>).self
 78 |             let method = unsafeBitCast(methodSignature.method(for: selector), to: signature)
    |                                                        `- error: value of type 'NSObject' has no member 'method'
 79 |             methodReturnType = method(methodSignature, selector)
 80 |         }
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:88:28: error: cannot find 'NSSelectorFromString' in scope
 86 |         do {
 87 |             let NSInvocation = NSClassFromString("NSInvocation") as AnyObject
 88 |             let selector = NSSelectorFromString("invocationWithMethodSignature:")
    |                            `- error: cannot find 'NSSelectorFromString' in scope
 89 |             let signature = (@convention(c)(AnyObject, Selector, AnyObject) -> AnyObject).self
 90 |             let method = unsafeBitCast(NSInvocation.method(for: selector), to: signature)
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:89:56: error: cannot find type 'Selector' in scope
 87 |             let NSInvocation = NSClassFromString("NSInvocation") as AnyObject
 88 |             let selector = NSSelectorFromString("invocationWithMethodSignature:")
 89 |             let signature = (@convention(c)(AnyObject, Selector, AnyObject) -> AnyObject).self
    |                                                        `- error: cannot find type 'Selector' in scope
 90 |             let method = unsafeBitCast(NSInvocation.method(for: selector), to: signature)
 91 |             guard let result = method(NSInvocation, selector, methodSignature) as? NSObject else {
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:90:26: error: generic parameter 'U' could not be inferred
 88 |             let selector = NSSelectorFromString("invocationWithMethodSignature:")
 89 |             let signature = (@convention(c)(AnyObject, Selector, AnyObject) -> AnyObject).self
 90 |             let method = unsafeBitCast(NSInvocation.method(for: selector), to: signature)
    |                          `- error: generic parameter 'U' could not be inferred
 91 |             guard let result = method(NSInvocation, selector, methodSignature) as? NSObject else {
 92 |                 let error = InvocationError.unrecognizedSelector(type(of: target), self.selector)
Swift.unsafeBitCast:1:24: note: in call to function 'unsafeBitCast(_:to:)'
1 | @inlinable public func unsafeBitCast<T, U>(_ x: T, to type: U.Type) -> U
  |                        `- note: in call to function 'unsafeBitCast(_:to:)'
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:90:53: error: value of type 'AnyObject' has no member 'method'
 88 |             let selector = NSSelectorFromString("invocationWithMethodSignature:")
 89 |             let signature = (@convention(c)(AnyObject, Selector, AnyObject) -> AnyObject).self
 90 |             let method = unsafeBitCast(NSInvocation.method(for: selector), to: signature)
    |                                                     `- error: value of type 'AnyObject' has no member 'method'
 91 |             guard let result = method(NSInvocation, selector, methodSignature) as? NSObject else {
 92 |                 let error = InvocationError.unrecognizedSelector(type(of: target), self.selector)
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:102:28: error: cannot find 'NSSelectorFromString' in scope
100 |         /// `invocation.selector = selector`
101 |         do {
102 |             let selector = NSSelectorFromString("setSelector:")
    |                            `- error: cannot find 'NSSelectorFromString' in scope
103 |             let signature = (@convention(c)(NSObject, Selector, Selector) -> Void).self
104 |             let method = unsafeBitCast(invocation.method(for: selector), to: signature)
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:103:55: error: cannot find type 'Selector' in scope
101 |         do {
102 |             let selector = NSSelectorFromString("setSelector:")
103 |             let signature = (@convention(c)(NSObject, Selector, Selector) -> Void).self
    |                                                       `- error: cannot find type 'Selector' in scope
104 |             let method = unsafeBitCast(invocation.method(for: selector), to: signature)
105 |             method(invocation, selector, self.selector)
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:103:65: error: cannot find type 'Selector' in scope
101 |         do {
102 |             let selector = NSSelectorFromString("setSelector:")
103 |             let signature = (@convention(c)(NSObject, Selector, Selector) -> Void).self
    |                                                                 `- error: cannot find type 'Selector' in scope
104 |             let method = unsafeBitCast(invocation.method(for: selector), to: signature)
105 |             method(invocation, selector, self.selector)
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:104:26: error: generic parameter 'U' could not be inferred
102 |             let selector = NSSelectorFromString("setSelector:")
103 |             let signature = (@convention(c)(NSObject, Selector, Selector) -> Void).self
104 |             let method = unsafeBitCast(invocation.method(for: selector), to: signature)
    |                          `- error: generic parameter 'U' could not be inferred
105 |             method(invocation, selector, self.selector)
106 |         }
Swift.unsafeBitCast:1:24: note: in call to function 'unsafeBitCast(_:to:)'
1 | @inlinable public func unsafeBitCast<T, U>(_ x: T, to type: U.Type) -> U
  |                        `- note: in call to function 'unsafeBitCast(_:to:)'
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:104:51: error: value of type 'NSObject' has no member 'method'
102 |             let selector = NSSelectorFromString("setSelector:")
103 |             let signature = (@convention(c)(NSObject, Selector, Selector) -> Void).self
104 |             let method = unsafeBitCast(invocation.method(for: selector), to: signature)
    |                                                   `- error: value of type 'NSObject' has no member 'method'
105 |             method(invocation, selector, self.selector)
106 |         }
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:110:28: error: cannot find 'NSSelectorFromString' in scope
108 |         /// `[invocation retainArguments]`
109 |         do {
110 |             let selector = NSSelectorFromString("retainArguments")
    |                            `- error: cannot find 'NSSelectorFromString' in scope
111 |             let signature = (@convention(c)(NSObject, Selector) -> Void).self
112 |             let method = unsafeBitCast(invocation.method(for: selector), to: signature)
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:111:55: error: cannot find type 'Selector' in scope
109 |         do {
110 |             let selector = NSSelectorFromString("retainArguments")
111 |             let signature = (@convention(c)(NSObject, Selector) -> Void).self
    |                                                       `- error: cannot find type 'Selector' in scope
112 |             let method = unsafeBitCast(invocation.method(for: selector), to: signature)
113 |             method(invocation, selector)
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:112:26: error: generic parameter 'U' could not be inferred
110 |             let selector = NSSelectorFromString("retainArguments")
111 |             let signature = (@convention(c)(NSObject, Selector) -> Void).self
112 |             let method = unsafeBitCast(invocation.method(for: selector), to: signature)
    |                          `- error: generic parameter 'U' could not be inferred
113 |             method(invocation, selector)
114 |         }
Swift.unsafeBitCast:1:24: note: in call to function 'unsafeBitCast(_:to:)'
1 | @inlinable public func unsafeBitCast<T, U>(_ x: T, to type: U.Type) -> U
  |                        `- note: in call to function 'unsafeBitCast(_:to:)'
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:112:51: error: value of type 'NSObject' has no member 'method'
110 |             let selector = NSSelectorFromString("retainArguments")
111 |             let signature = (@convention(c)(NSObject, Selector) -> Void).self
112 |             let method = unsafeBitCast(invocation.method(for: selector), to: signature)
    |                                                   `- error: value of type 'NSObject' has no member 'method'
113 |             method(invocation, selector)
114 |         }
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:123:24: error: cannot find 'NSSelectorFromString' in scope
121 |
122 |         /// `[invocation setArgument:&argument atIndex:i + 2]`
123 |         let selector = NSSelectorFromString("setArgument:atIndex:")
    |                        `- error: cannot find 'NSSelectorFromString' in scope
124 |         let signature = (@convention(c)(NSObject, Selector, UnsafeRawPointer, Int) -> Void).self
125 |         let method = unsafeBitCast(invocation.method(for: selector), to: signature)
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:124:51: error: cannot find type 'Selector' in scope
122 |         /// `[invocation setArgument:&argument atIndex:i + 2]`
123 |         let selector = NSSelectorFromString("setArgument:atIndex:")
124 |         let signature = (@convention(c)(NSObject, Selector, UnsafeRawPointer, Int) -> Void).self
    |                                                   `- error: cannot find type 'Selector' in scope
125 |         let method = unsafeBitCast(invocation.method(for: selector), to: signature)
126 |
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:125:22: error: generic parameter 'U' could not be inferred
123 |         let selector = NSSelectorFromString("setArgument:atIndex:")
124 |         let signature = (@convention(c)(NSObject, Selector, UnsafeRawPointer, Int) -> Void).self
125 |         let method = unsafeBitCast(invocation.method(for: selector), to: signature)
    |                      `- error: generic parameter 'U' could not be inferred
126 |
127 |         if let valueArgument = argument as? NSValue {
Swift.unsafeBitCast:1:24: note: in call to function 'unsafeBitCast(_:to:)'
1 | @inlinable public func unsafeBitCast<T, U>(_ x: T, to type: U.Type) -> U
  |                        `- note: in call to function 'unsafeBitCast(_:to:)'
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:125:47: error: value of type 'NSObject' has no member 'method'
123 |         let selector = NSSelectorFromString("setArgument:atIndex:")
124 |         let signature = (@convention(c)(NSObject, Selector, UnsafeRawPointer, Int) -> Void).self
125 |         let method = unsafeBitCast(invocation.method(for: selector), to: signature)
    |                                               `- error: value of type 'NSObject' has no member 'method'
126 |
127 |         if let valueArgument = argument as? NSValue {
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:131:13: warning: result of call to 'NSGetSizeAndAlignment' is unused
129 |             let typeSize = UnsafeMutablePointer<Int>.allocate(capacity: 1)
130 |             defer { typeSize.deallocate() }
131 |             NSGetSizeAndAlignment(valueArgument.objCType, typeSize, nil)
    |             `- warning: result of call to 'NSGetSizeAndAlignment' is unused
132 |
133 |             /// Get the actual value
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:155:28: error: cannot find 'NSSelectorFromString' in scope
153 |         /// `[invocation invokeWithTarget: target]`
154 |         do {
155 |             let selector = NSSelectorFromString("invokeWithTarget:")
    |                            `- error: cannot find 'NSSelectorFromString' in scope
156 |             let signature = (@convention(c)(NSObject, Selector, AnyObject) -> Void).self
157 |             let method = unsafeBitCast(invocation.method(for: selector), to: signature)
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:156:55: error: cannot find type 'Selector' in scope
154 |         do {
155 |             let selector = NSSelectorFromString("invokeWithTarget:")
156 |             let signature = (@convention(c)(NSObject, Selector, AnyObject) -> Void).self
    |                                                       `- error: cannot find type 'Selector' in scope
157 |             let method = unsafeBitCast(invocation.method(for: selector), to: signature)
158 |             method(invocation, selector, target)
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:157:26: error: generic parameter 'U' could not be inferred
155 |             let selector = NSSelectorFromString("invokeWithTarget:")
156 |             let signature = (@convention(c)(NSObject, Selector, AnyObject) -> Void).self
157 |             let method = unsafeBitCast(invocation.method(for: selector), to: signature)
    |                          `- error: generic parameter 'U' could not be inferred
158 |             method(invocation, selector, target)
159 |         }
Swift.unsafeBitCast:1:24: note: in call to function 'unsafeBitCast(_:to:)'
1 | @inlinable public func unsafeBitCast<T, U>(_ x: T, to type: U.Type) -> U
  |                        `- note: in call to function 'unsafeBitCast(_:to:)'
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:157:51: error: value of type 'NSObject' has no member 'method'
155 |             let selector = NSSelectorFromString("invokeWithTarget:")
156 |             let signature = (@convention(c)(NSObject, Selector, AnyObject) -> Void).self
157 |             let method = unsafeBitCast(invocation.method(for: selector), to: signature)
    |                                                   `- error: value of type 'NSObject' has no member 'method'
158 |             method(invocation, selector, target)
159 |         }
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:169:28: error: cannot find 'NSSelectorFromString' in scope
167 |         /// `[invocation getReturnValue: returnValue]`
168 |         do {
169 |             let selector = NSSelectorFromString("getReturnValue:")
    |                            `- error: cannot find 'NSSelectorFromString' in scope
170 |             let signature = (@convention(c)(NSObject, Selector, UnsafeMutableRawPointer) -> Void).self
171 |             let method = unsafeBitCast(invocation.method(for: selector), to: signature)
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:170:55: error: cannot find type 'Selector' in scope
168 |         do {
169 |             let selector = NSSelectorFromString("getReturnValue:")
170 |             let signature = (@convention(c)(NSObject, Selector, UnsafeMutableRawPointer) -> Void).self
    |                                                       `- error: cannot find type 'Selector' in scope
171 |             let method = unsafeBitCast(invocation.method(for: selector), to: signature)
172 |             withUnsafeMutablePointer(to: &result) { pointer in
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:171:26: error: generic parameter 'U' could not be inferred
169 |             let selector = NSSelectorFromString("getReturnValue:")
170 |             let signature = (@convention(c)(NSObject, Selector, UnsafeMutableRawPointer) -> Void).self
171 |             let method = unsafeBitCast(invocation.method(for: selector), to: signature)
    |                          `- error: generic parameter 'U' could not be inferred
172 |             withUnsafeMutablePointer(to: &result) { pointer in
173 |                 method(invocation, selector, pointer)
Swift.unsafeBitCast:1:24: note: in call to function 'unsafeBitCast(_:to:)'
1 | @inlinable public func unsafeBitCast<T, U>(_ x: T, to type: U.Type) -> U
  |                        `- note: in call to function 'unsafeBitCast(_:to:)'
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:171:51: error: value of type 'NSObject' has no member 'method'
169 |             let selector = NSSelectorFromString("getReturnValue:")
170 |             let signature = (@convention(c)(NSObject, Selector, UnsafeMutableRawPointer) -> Void).self
171 |             let method = unsafeBitCast(invocation.method(for: selector), to: signature)
    |                                                   `- error: value of type 'NSObject' has no member 'method'
172 |             withUnsafeMutablePointer(to: &result) { pointer in
173 |                 method(invocation, selector, pointer)
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:177:12: error: cannot find 'NSStringFromSelector' in scope
175 |         }
176 |
177 |         if NSStringFromSelector(self.selector) == "alloc" {
    |            `- error: cannot find 'NSStringFromSelector' in scope
178 |             log("getReturnValue() -> <alloc>")
179 |         } else {
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:209:24: error: cannot find 'NSStringFromSelector' in scope
207 |     private func isRetainingMethod() -> Bool {
208 |         /// Refer to: https://bit.ly/308okXm
209 |         let selector = NSStringFromSelector(self.selector)
    |                        `- error: cannot find 'NSStringFromSelector' in scope
210 |         return selector == "alloc" ||
211 |             selector.hasPrefix("new") ||
[4/6] Compiling Dynamic TypeMapping.swift
/host/spi-builder-workspace/Sources/Dynamic/TypeMapping.swift:35:10: error: cannot find 'URLRequest' in scope
 33 |         (URLComponents.self, NSURLComponents.self),
 34 |         (URLQueryItem.self, NSURLQueryItem.self),
 35 |         (URLRequest.self, NSURLRequest.self),
    |          `- error: cannot find 'URLRequest' in scope
 36 |         (UUID.self, NSUUID.self)
 37 |     ]
/host/spi-builder-workspace/Sources/Dynamic/TypeMapping.swift:35:27: error: cannot find 'NSURLRequest' in scope
 33 |         (URLComponents.self, NSURLComponents.self),
 34 |         (URLQueryItem.self, NSURLQueryItem.self),
 35 |         (URLRequest.self, NSURLRequest.self),
    |                           `- error: cannot find 'NSURLRequest' in scope
 36 |         (UUID.self, NSUUID.self)
 37 |     ]
/host/spi-builder-workspace/Sources/Dynamic/TypeMapping.swift:87:17: error: cannot find type 'URLRequest' in scope
 85 |         case is URLComponents: return object as? NSURLComponents
 86 |         case is URLQueryItem: return object as? NSURLQueryItem
 87 |         case is URLRequest: return object as? NSURLRequest
    |                 `- error: cannot find type 'URLRequest' in scope
 88 |         case is UUID: return object as? NSUUID
 89 |         default: return nil
/host/spi-builder-workspace/Sources/Dynamic/TypeMapping.swift:87:47: error: cannot find type 'NSURLRequest' in scope
 85 |         case is URLComponents: return object as? NSURLComponents
 86 |         case is URLQueryItem: return object as? NSURLQueryItem
 87 |         case is URLRequest: return object as? NSURLRequest
    |                                               `- error: cannot find type 'NSURLRequest' in scope
 88 |         case is UUID: return object as? NSUUID
 89 |         default: return nil
/host/spi-builder-workspace/Sources/Dynamic/TypeMapping.swift:87:43: warning: conditional downcast from 'Any?' to 'Any' does nothing
 85 |         case is URLComponents: return object as? NSURLComponents
 86 |         case is URLQueryItem: return object as? NSURLQueryItem
 87 |         case is URLRequest: return object as? NSURLRequest
    |                                           `- warning: conditional downcast from 'Any?' to 'Any' does nothing
 88 |         case is UUID: return object as? NSUUID
 89 |         default: return nil
/host/spi-builder-workspace/Sources/Dynamic/TypeMapping.swift:116:17: error: cannot find type 'NSURLRequest' in scope
114 |         case is NSURLComponents: return object as? URLComponents
115 |         case is NSURLQueryItem: return object as? URLQueryItem
116 |         case is NSURLRequest: return object as? URLRequest
    |                 `- error: cannot find type 'NSURLRequest' in scope
117 |         case is NSUUID: return object as? UUID
118 |         default: return nil
/host/spi-builder-workspace/Sources/Dynamic/TypeMapping.swift:116:49: error: cannot find type 'URLRequest' in scope
114 |         case is NSURLComponents: return object as? URLComponents
115 |         case is NSURLQueryItem: return object as? URLQueryItem
116 |         case is NSURLRequest: return object as? URLRequest
    |                                                 `- error: cannot find type 'URLRequest' in scope
117 |         case is NSUUID: return object as? UUID
118 |         default: return nil
/host/spi-builder-workspace/Sources/Dynamic/TypeMapping.swift:116:45: warning: conditional downcast from 'Any?' to 'Any' does nothing
114 |         case is NSURLComponents: return object as? URLComponents
115 |         case is NSURLQueryItem: return object as? URLQueryItem
116 |         case is NSURLRequest: return object as? URLRequest
    |                                             `- warning: conditional downcast from 'Any?' to 'Any' does nothing
117 |         case is NSUUID: return object as? UUID
118 |         default: return nil
error: emit-module command failed with exit code 1 (use -v to see invocation)
[5/6] Emitting module Dynamic
/host/spi-builder-workspace/Sources/Dynamic/Dynamic.swift:267:28: error: cannot find type 'Selector' in scope
265 |     public var asInt: Int? { unwrap() }
266 |     public var asUInt: UInt? { unwrap() }
267 |     public var asSelector: Selector? { unwrap() }
    |                            `- error: cannot find type 'Selector' in scope
268 |
269 |     public func asInferred<T>() -> T? { unwrap() }
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:14:27: error: cannot find type 'Selector' in scope
 12 |
 13 |     private let target: NSObject
 14 |     private let selector: Selector
    |                           `- error: cannot find type 'Selector' in scope
 15 |
 16 |     var invocation: NSObject?
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:38:38: error: cannot find type 'Selector' in scope
 36 |     private(set) var isInvoked: Bool = false
 37 |
 38 |     init(target: NSObject, selector: Selector) throws {
    |                                      `- error: cannot find type 'Selector' in scope
 39 |         self.target = target
 40 |         self.selector = selector
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:117:50: error: cannot find type 'NSInteger' in scope
115 |     }
116 |
117 |     func setArgument(_ argument: Any?, at index: NSInteger) {
    |                                                  `- error: cannot find type 'NSInteger' in scope
118 |         guard let invocation = invocation else { return }
119 |
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:218:66: error: cannot find type 'Selector' in scope
216 |
217 | public enum InvocationError: CustomNSError {
218 |     case unrecognizedSelector(_ classType: AnyClass, _ selector: Selector)
    |                                                                  `- error: cannot find type 'Selector' in scope
219 |
220 |     public static var errorDomain: String { String(describing: Invocation.self) }
/host/spi-builder-workspace/Sources/Dynamic/TypeMapping.swift:35:10: error: cannot find 'URLRequest' in scope
 33 |         (URLComponents.self, NSURLComponents.self),
 34 |         (URLQueryItem.self, NSURLQueryItem.self),
 35 |         (URLRequest.self, NSURLRequest.self),
    |          `- error: cannot find 'URLRequest' in scope
 36 |         (UUID.self, NSUUID.self)
 37 |     ]
/host/spi-builder-workspace/Sources/Dynamic/TypeMapping.swift:35:27: error: cannot find 'NSURLRequest' in scope
 33 |         (URLComponents.self, NSURLComponents.self),
 34 |         (URLQueryItem.self, NSURLQueryItem.self),
 35 |         (URLRequest.self, NSURLRequest.self),
    |                           `- error: cannot find 'NSURLRequest' in scope
 36 |         (UUID.self, NSUUID.self)
 37 |     ]
[6/6] Compiling Dynamic Dynamic.swift
/host/spi-builder-workspace/Sources/Dynamic/Dynamic.swift:267:28: error: cannot find type 'Selector' in scope
265 |     public var asInt: Int? { unwrap() }
266 |     public var asUInt: UInt? { unwrap() }
267 |     public var asSelector: Selector? { unwrap() }
    |                            `- error: cannot find type 'Selector' in scope
268 |
269 |     public func asInferred<T>() -> T? { unwrap() }
/host/spi-builder-workspace/Sources/Dynamic/Dynamic.swift:29:51: error: value of type 'AnyObject' has no member 'debugDescription'
 27 |
 28 |     public var isError: Bool { error != nil || object is Error }
 29 |     public var debugDescription: String { object?.debugDescription ?? "<nil>" }
    |                                                   `- error: value of type 'AnyObject' has no member 'debugDescription'
 30 |
 31 |     public init(_ object: Any?, memberName: String? = nil) {
/host/spi-builder-workspace/Sources/Dynamic/Dynamic.swift:41:23: error: value of type 'AnyClass' (aka 'any AnyObject.Type') expected to be an instance of a class or class-constrained type in assignment
 39 |
 40 |     public init(className: String) {
 41 |         self.object = NSClassFromString(className)
    |                       `- error: value of type 'AnyClass' (aka 'any AnyObject.Type') expected to be an instance of a class or class-constrained type in assignment
 42 |         self.memberName = nil
 43 |
/host/spi-builder-workspace/Sources/Dynamic/Dynamic.swift:102:32: error: value of type 'AnyObject' has no member 'debugDescription'
100 |
101 |     private func getProperty(_ name: String) -> Dynamic {
102 |         log("Get:", "\(object?.debugDescription ?? "").\(name)")
    |                                `- error: value of type 'AnyObject' has no member 'debugDescription'
103 |
104 |         let resolved = resolve()
/host/spi-builder-workspace/Sources/Dynamic/Dynamic.swift:119:32: error: value of type 'AnyObject' has no member 'debugDescription'
117 |
118 |     private func setProperty<T>(_ name: String, value: T?) {
119 |         log("Set:", "\(object?.debugDescription ?? "").\(name)")
    |                                `- error: value of type 'AnyObject' has no member 'debugDescription'
120 |
121 |         let resolved = resolve()
/host/spi-builder-workspace/Sources/Dynamic/Dynamic.swift:141:19: warning: cast from 'NSObject' to unrelated type 'AnyClass' (aka 'any AnyObject.Type') always fails
139 |
140 |         /// Call `alloc()` before `init()`
141 |         if target is AnyClass, selector.hasPrefix("init") {
    |                   `- warning: cast from 'NSObject' to unrelated type 'AnyClass' (aka 'any AnyObject.Type') always fails
142 |             guard let allocated = allocate(type: target) else { return }
143 |             target = allocated
/host/spi-builder-workspace/Sources/Dynamic/Dynamic.swift:147:67: error: cannot find 'NSSelectorFromString' in scope
145 |
146 |         do {
147 |             invocation = try Invocation(target: target, selector: NSSelectorFromString(selector))
    |                                                                   `- error: cannot find 'NSSelectorFromString' in scope
148 |         } catch {
149 |             print("WARNING: Trying to access an unrecognized member: \(type(of: target)).\(selector)")
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:38:38: error: cannot find type 'Selector' in scope
 36 |     private(set) var isInvoked: Bool = false
 37 |
 38 |     init(target: NSObject, selector: Selector) throws {
    |                                      `- error: cannot find type 'Selector' in scope
 39 |         self.target = target
 40 |         self.selector = selector
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:117:50: error: cannot find type 'NSInteger' in scope
115 |     }
116 |
117 |     func setArgument(_ argument: Any?, at index: NSInteger) {
    |                                                  `- error: cannot find type 'NSInteger' in scope
118 |         guard let invocation = invocation else { return }
119 |
/host/spi-builder-workspace/Sources/Dynamic/Dynamic.swift:172:69: error: cannot find 'NSSelectorFromString' in scope
170 |     private func allocate(type: NSObject) -> NSObject? {
171 |         do {
172 |             let invocation = try Invocation(target: type, selector: NSSelectorFromString("alloc"))
    |                                                                     `- error: cannot find 'NSSelectorFromString' in scope
173 |             invocation.invoke()
174 |             return invocation.returnedObject as? NSObject
/host/spi-builder-workspace/Sources/Dynamic/Dynamic.swift:231:27: error: incorrect argument label in call (have 'nonretainedObject:', expected 'coder:')
229 |         if let object = resolve() {
230 |             log(.end)
231 |             return NSValue(nonretainedObject: object)
    |                           `- error: incorrect argument label in call (have 'nonretainedObject:', expected 'coder:')
232 |         }
233 |
/host/spi-builder-workspace/Sources/Dynamic/Dynamic.swift:231:47: error: 'AnyObject' is not convertible to 'NSCoder'
229 |         if let object = resolve() {
230 |             log(.end)
231 |             return NSValue(nonretainedObject: object)
    |                                               |- error: 'AnyObject' is not convertible to 'NSCoder'
    |                                               `- note: did you mean to use 'as!' to force downcast?
232 |         }
233 |
/host/spi-builder-workspace/Sources/Dynamic/Dynamic.swift:253:49: error: value of type 'AnyObject' has no member 'description'
251 |     public var asArray: NSArray? { asAnyObject as? NSArray }
252 |     public var asDictionary: NSDictionary? { asAnyObject as? NSDictionary }
253 |     public var asString: String? { asAnyObject?.description }
    |                                                 `- error: value of type 'AnyObject' has no member 'description'
254 |     public var asInt8: Int8? { unwrap() }
255 |     public var asUInt8: UInt8? { unwrap() }
/host/spi-builder-workspace/Sources/Dynamic/Dynamic.swift:282:26: error: value of type 'NSValue' has no member 'nonretainedObjectValue'
280 |         let encoding = invocation.returnTypeString
281 |         if encoding == "^v" || encoding == "@" {
282 |             return value.nonretainedObjectValue as? T
    |                          `- error: value of type 'NSValue' has no member 'nonretainedObjectValue'
283 |         }
284 |
/host/spi-builder-workspace/Sources/Dynamic/Dynamic.swift:287:9: warning: result of call to 'NSGetSizeAndAlignment' is unused
285 |         var storedSize = 0
286 |         var storedAlignment = 0
287 |         NSGetSizeAndAlignment(invocation.returnType!, &storedSize, &storedAlignment)
    |         `- warning: result of call to 'NSGetSizeAndAlignment' is unused
288 |         guard MemoryLayout<T>.size == storedSize && MemoryLayout<T>.alignment == storedAlignment else {
289 |             return nil
BUILD FAILURE 6.1 linux