The Swift Package Index logo.Swift Package Index

Build Information

Failed to build Dynamic, reference master (772883), with Swift 6.3 for Android on 11 Apr 2026 17:42:04 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:android-6.3-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.70.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:         android
Swift version:             6.3
Building package at path:  $PWD
https://github.com/mhdhejazi/Dynamic.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:android-6.3-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:9008270ea37a55e78725e6225015adb5eff8582da520c5232bf0499f32c36dc4
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:android-6.3-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--4F562202D5529B1.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/7] Compiling Dynamic Logger.swift
[4/7] 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 |     ]
[5/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: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
[6/7] 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:21: error: value of type 'AnyClass?' (aka 'Optional<any AnyObject.Type>') expected to be instance of class or class-constrained type
 39 |
 40 |     public init(className: String) {
 41 |         self.object = NSClassFromString(className)
    |                     `- error: value of type 'AnyClass?' (aka 'Optional<any AnyObject.Type>') expected to be instance of class or class-constrained type
 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 [#no-usage]
285 |         var storedSize = 0
286 |         var storedAlignment = 0
287 |         NSGetSizeAndAlignment(invocation.returnType!, &storedSize, &storedAlignment)
    |         `- warning: result of call to 'NSGetSizeAndAlignment' is unused [#no-usage]
288 |         guard MemoryLayout<T>.size == storedSize && MemoryLayout<T>.alignment == storedAlignment else {
289 |             return nil
[7/7] 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 [#no-usage]
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 [#no-usage]
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") ||
BUILD FAILURE 6.3 android