This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.

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 with Swift 6.0 for Linux.

Build Command

bash -c docker run --rm -v "checkouts-4606859-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.40.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.0
Building package at path:  $workDir
https://github.com/mhdhejazi/Dynamic.git
Running build ...
bash -c docker run --rm -v "checkouts-4606859-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
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: annotate 'dummy' with '@MainActor' if property should only be accessed from the main actor
    |                `- 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 non-isolated 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 non-isolated 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: annotate 'enabled' with '@MainActor' if property should only be accessed from the main actor
    |                `- 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 non-isolated 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 non-isolated 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: annotate 'loggers' with '@MainActor' if property should only be accessed from the main actor
    |                        `- 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 non-isolated 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 non-isolated 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: annotate 'level' with '@MainActor' if property should only be accessed from the main actor
    |                        `- 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)
error: compile command failed due to signal 6 (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 non-isolated 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 non-isolated 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: annotate 'loggingEnabled' with '@MainActor' if property should only be accessed from the main actor
    |                       `- 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/Invocation.swift:10:23: warning: static property 'loggingEnabled' is not concurrency-safe because it is non-isolated 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 non-isolated 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: annotate 'loggingEnabled' with '@MainActor' if property should only be accessed from the main actor
    |                       `- 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/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: annotate 'nil' with '@MainActor' if property should only be accessed from the main actor
    |                       `- 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: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: annotate 'dummy' with '@MainActor' if property should only be accessed from the main actor
    |                `- 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 non-isolated 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 non-isolated 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: annotate 'enabled' with '@MainActor' if property should only be accessed from the main actor
    |                `- 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 non-isolated 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 non-isolated 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: annotate 'loggers' with '@MainActor' if property should only be accessed from the main actor
    |                        `- 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 non-isolated 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 non-isolated 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: annotate 'level' with '@MainActor' if property should only be accessed from the main actor
    |                        `- 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 |     ]
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:10:23: warning: static property 'loggingEnabled' is not concurrency-safe because it is non-isolated 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 non-isolated 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: annotate 'loggingEnabled' with '@MainActor' if property should only be accessed from the main actor
    |                       `- 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 {
Can't demangle: $s7Dynamic15InvocationErrorO20unrecognizedSelector33_A150123FE31DA040782B113D070915EFLLXeF9classTypeL_yXlXpvp
Please submit a bug report (https://swift.org/contributing/#reporting-bugs) and include the crash backtrace.
Stack dump:
0.	Program arguments: /usr/bin/swift-frontend -frontend -c /host/spi-builder-workspace/Sources/Dynamic/Dynamic.swift -primary-file /host/spi-builder-workspace/Sources/Dynamic/Invocation.swift /host/spi-builder-workspace/Sources/Dynamic/Logger.swift /host/spi-builder-workspace/Sources/Dynamic/TypeMapping.swift -emit-dependencies-path /host/spi-builder-workspace/.build/x86_64-unknown-linux-gnu/debug/Dynamic.build/Invocation.d -emit-reference-dependencies-path /host/spi-builder-workspace/.build/x86_64-unknown-linux-gnu/debug/Dynamic.build/Invocation.swiftdeps -target x86_64-unknown-linux-gnu -disable-objc-interop -I /host/spi-builder-workspace/.build/x86_64-unknown-linux-gnu/debug/Modules -enable-testing -g -debug-info-format=dwarf -dwarf-version=4 -module-cache-path /host/spi-builder-workspace/.build/x86_64-unknown-linux-gnu/debug/ModuleCache -swift-version 5 -Onone -D SWIFT_PACKAGE -D DEBUG -stats-output-dir .stats -strict-concurrency=complete -empty-abi-descriptor -resource-dir /usr/lib/swift -enable-anonymous-context-mangled-names -file-compilation-dir /host/spi-builder-workspace -Xcc -fPIC -Xcc -g -Xcc -fno-omit-frame-pointer -module-name Dynamic -plugin-path /usr/lib/swift/host/plugins -plugin-path /usr/local/lib/swift/host/plugins -parse-as-library -o /host/spi-builder-workspace/.build/x86_64-unknown-linux-gnu/debug/Dynamic.build/Invocation.swift.o -index-store-path /host/spi-builder-workspace/.build/x86_64-unknown-linux-gnu/debug/index/store -index-system-modules
1.	Swift version 6.0-dev (LLVM 4b0b1f9e1a69523, Swift 91a3abcf816bc36)
2.	Compiling with effective version 5.10
3.	While walking into 'InvocationError' (at /host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:217:8)
4.	While evaluating request USRGenerationRequest(Dynamic.(file).InvocationError.unrecognizedSelector(_:_:).classType@/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:218:33)
Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH or set the environment var `LLVM_SYMBOLIZER_PATH` to point to it):
0  swift-frontend 0x000055dadda3a497
1  swift-frontend 0x000055dadda381ee
2  swift-frontend 0x000055dadda3ab0a
3  libc.so.6      0x00007f822094a520
4  libc.so.6      0x00007f822099e9fc pthread_kill + 300
5  libc.so.6      0x00007f822094a476 raise + 22
6  libc.so.6      0x00007f82209307f3 abort + 211
7  swift-frontend 0x000055dad8b6a055
8  swift-frontend 0x000055dad87b7934
9  swift-frontend 0x000055dad8b2c66f
10 swift-frontend 0x000055dad833054c
11 swift-frontend 0x000055dad6f169ce
12 swift-frontend 0x000055dad6f1667a
13 swift-frontend 0x000055dad6f158d2
14 swift-frontend 0x000055dad8b2d19a
15 swift-frontend 0x000055dad6ee4dab
16 swift-frontend 0x000055dad6ee42f7
17 swift-frontend 0x000055dad6ee1c29
18 swift-frontend 0x000055dad7c5e226
19 swift-frontend 0x000055dad881689c
20 swift-frontend 0x000055dad881838c
21 swift-frontend 0x000055dad881b240
22 swift-frontend 0x000055dad88168ba
23 swift-frontend 0x000055dad881bd5f
24 swift-frontend 0x000055dad881a98f
25 swift-frontend 0x000055dad88168ba
26 swift-frontend 0x000055dad88167b3
27 swift-frontend 0x000055dad89fc81f
28 swift-frontend 0x000055dad7c5bbd4
29 swift-frontend 0x000055dad6ee0c51
30 swift-frontend 0x000055dad6ee0afa
31 swift-frontend 0x000055dad6ed512c
32 swift-frontend 0x000055dad6ed4b15
33 swift-frontend 0x000055dad6c87572
34 swift-frontend 0x000055dad6c8567c
35 swift-frontend 0x000055dad6c80198
36 swift-frontend 0x000055dad6c7e4fc
37 swift-frontend 0x000055dad6a3adde
38 libc.so.6      0x00007f8220931d90
39 libc.so.6      0x00007f8220931e40 __libc_start_main + 128
40 swift-frontend 0x000055dad6a39e85
BUILD FAILURE 6.0 linux
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.