The Swift Package Index logo.Swift Package Index

Build Information

Failed to build HSObserver, reference master (acbb61), with Swift 6.1 for Wasm on 28 May 2025 00:22:26 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ConfusedVorlon/HSObserver.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/ConfusedVorlon/HSObserver
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at acbb61e Merge branch 'feature/objc' into develop
Cloned https://github.com/ConfusedVorlon/HSObserver.git
Revision (git rev-parse @):
acbb61ea94518871ddea3571bf0d1aba24384584
SUCCESS checkout https://github.com/ConfusedVorlon/HSObserver.git at master
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/ConfusedVorlon/HSObserver.git
https://github.com/ConfusedVorlon/HSObserver.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "HSObserver",
  "name" : "HSObserver",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "macos",
      "version" : "10.15"
    }
  ],
  "products" : [
    {
      "name" : "HSObserver",
      "targets" : [
        "HSObserver"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "HSObserverTests",
      "module_type" : "SwiftTarget",
      "name" : "HSObserverTests",
      "path" : "Tests/HSObserverTests",
      "sources" : [
        "HSObserverTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "HSObserver"
      ],
      "type" : "test"
    },
    {
      "c99name" : "HSObserver",
      "module_type" : "SwiftTarget",
      "name" : "HSObserver",
      "path" : "Sources/HSObserver",
      "product_memberships" : [
        "HSObserver"
      ],
      "sources" : [
        "HSHasObservers.swift",
        "HSKeyPathObserver.swift",
        "HSObserver.swift",
        "HSObserves.swift",
        "NSNotification+HSObserver.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:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -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
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/8] Compiling HSObserver NSNotification+HSObserver.swift
/host/spi-builder-workspace/Sources/HSObserver/NSNotification+HSObserver.swift:22:18: error: cannot find type 'NotificationCenter' in scope
20 | }
21 |
22 | public extension NotificationCenter {
   |                  `- error: cannot find type 'NotificationCenter' in scope
23 |
24 |     /// Sugar to change NotificationCenter.default.post(...) to NotificationCentre.post(...)
/host/spi-builder-workspace/Sources/HSObserver/NSNotification+HSObserver.swift:18:9: error: cannot find 'NotificationCenter' in scope
16 |     func post(object:Any? = nil,
17 |               userInfo:[AnyHashable : Any]? = nil) {
18 |         NotificationCenter.default.post(name:self,object:object,userInfo: userInfo)
   |         `- error: cannot find 'NotificationCenter' in scope
19 |     }
20 | }
[4/8] Compiling HSObserver HSObserves.swift
[5/8] Compiling HSObserver HSObserver.swift
/host/spi-builder-workspace/Sources/HSObserver/HSObserver.swift:12:2: error: Objective-C interoperability is disabled
 10 |
 11 | /// Set up an NSNotification block observer which can be started and stopped
 12 | @objc
    |  `- error: Objective-C interoperability is disabled
 13 | open class HSObserver: NSObject, HSObserves {
 14 |     open var centre:NotificationCenter
/host/spi-builder-workspace/Sources/HSObserver/HSObserver.swift:39:36: error: cannot find type 'OperationQueue' in scope
 37 |     public convenience init(forName name: NSNotification.Name,
 38 |                             object obj: Any? = nil,
 39 |                             queue: OperationQueue,
    |                                    `- error: cannot find type 'OperationQueue' in scope
 40 |                             center newCenter: NotificationCenter = NotificationCenter.default,
 41 |                             activate: Bool = false,
/host/spi-builder-workspace/Sources/HSObserver/HSObserver.swift:40:47: error: cannot find type 'NotificationCenter' in scope
 38 |                             object obj: Any? = nil,
 39 |                             queue: OperationQueue,
 40 |                             center newCenter: NotificationCenter = NotificationCenter.default,
    |                                               `- error: cannot find type 'NotificationCenter' in scope
 41 |                             activate: Bool = false,
 42 |                             using block: @escaping (Notification) -> Swift.Void) {
/host/spi-builder-workspace/Sources/HSObserver/HSObserver.swift:62:24: error: cannot find type 'OperationQueue' in scope
 60 |     public init(forNames names: [NSNotification.Name],
 61 |                 object obj: Any? = nil,
 62 |                 queue: OperationQueue,
    |                        `- error: cannot find type 'OperationQueue' in scope
 63 |                 center newCenter: NotificationCenter = NotificationCenter.default,
 64 |                 activate: Bool = false,
/host/spi-builder-workspace/Sources/HSObserver/HSObserver.swift:63:35: error: cannot find type 'NotificationCenter' in scope
 61 |                 object obj: Any? = nil,
 62 |                 queue: OperationQueue,
 63 |                 center newCenter: NotificationCenter = NotificationCenter.default,
    |                                   `- error: cannot find type 'NotificationCenter' in scope
 64 |                 activate: Bool = false,
 65 |                 using block: @escaping (Notification) -> Swift.Void) {
/host/spi-builder-workspace/Sources/HSObserver/HSObserver.swift:97:47: error: cannot find type 'NotificationCenter' in scope
 95 |     public convenience init(forName name: NSNotification.Name,
 96 |                             object obj: Any? = nil,
 97 |                             center newCenter: NotificationCenter = NotificationCenter.default,
    |                                               `- error: cannot find type 'NotificationCenter' in scope
 98 |                             activate: Bool = false,
 99 |                             using block: @escaping @MainActor (Notification) -> Swift.Void) {
/host/spi-builder-workspace/Sources/HSObserver/HSObserver.swift:120:35: error: cannot find type 'NotificationCenter' in scope
118 |     public init(forNames names: [NSNotification.Name],
119 |                 object obj: Any? = nil,
120 |                 center newCenter: NotificationCenter = NotificationCenter.default,
    |                                   `- error: cannot find type 'NotificationCenter' in scope
121 |                 activate: Bool = false,
122 |                 using block: @escaping @MainActor  (Notification) -> Swift.Void) {
/host/spi-builder-workspace/Sources/HSObserver/HSObserver.swift:14:21: error: cannot find type 'NotificationCenter' in scope
 12 | @objc
 13 | open class HSObserver: NSObject, HSObserves {
 14 |     open var centre:NotificationCenter
    |                     `- error: cannot find type 'NotificationCenter' in scope
 15 |     open var names = [NSNotification.Name]()
 16 |     open var name:NSNotification.Name? {
/host/spi-builder-workspace/Sources/HSObserver/HSObserver.swift:22:20: error: cannot find type 'OperationQueue' in scope
 20 |     }
 21 |     open var object:Any?
 22 |     open var queue:OperationQueue
    |                    `- error: cannot find type 'OperationQueue' in scope
 23 |     open var block:((Notification) -> Swift.Void)
 24 |
/host/spi-builder-workspace/Sources/HSObserver/HSObserver.swift:94:6: error: Objective-C interoperability is disabled
 92 |     ///
 93 |     /// - returns: unactivated manager. Call activate() to start
 94 |     @objc
    |      `- error: Objective-C interoperability is disabled
 95 |     public convenience init(forName name: NSNotification.Name,
 96 |                             object obj: Any? = nil,
/host/spi-builder-workspace/Sources/HSObserver/HSObserver.swift:117:6: error: Objective-C interoperability is disabled
115 |     ///
116 |     /// - returns: unactivated manager. Call activate() to start
117 |     @objc
    |      `- error: Objective-C interoperability is disabled
118 |     public init(forNames names: [NSNotification.Name],
119 |                 object obj: Any? = nil,
/host/spi-builder-workspace/Sources/HSObserver/HSObserver.swift:157:6: error: Objective-C interoperability is disabled
155 |     /// Activate
156 |     @discardableResult
157 |     @objc
    |      `- error: Objective-C interoperability is disabled
158 |     open func activate() -> Self {
159 |         if notificationObservers.count == 0 {
/host/spi-builder-workspace/Sources/HSObserver/HSObserver.swift:173:6: error: Objective-C interoperability is disabled
171 |
172 |     /// Deactivate (this happens automatically on release
173 |     @objc
    |      `- error: Objective-C interoperability is disabled
174 |     open func deactivate() {
175 |         for notificationObserver in notificationObservers {
/host/spi-builder-workspace/Sources/HSObserver/HSObserver.swift:135:23: error: cannot infer contextual base in reference to member 'main'
133 |         self.names = names
134 |         self.object = obj
135 |         self.queue = .main
    |                       `- error: cannot infer contextual base in reference to member 'main'
136 |         self.block = regularBlock
137 |
[6/8] Compiling HSObserver HSKeyPathObserver.swift
/host/spi-builder-workspace/Sources/HSObserver/HSKeyPathObserver.swift:28:26: error: cannot find type 'NSKeyValueObservingOptions' in scope
26 |     public init(forKeyPath keyPath: String,
27 |                 of object: AnyObject,
28 |                 options: NSKeyValueObservingOptions = [],
   |                          `- error: cannot find type 'NSKeyValueObservingOptions' in scope
29 |                 activate:Bool = false,
30 |                 block:@escaping ([NSKeyValueChangeKey:Any]?)->Void ){
/host/spi-builder-workspace/Sources/HSObserver/HSKeyPathObserver.swift:30:35: error: cannot find type 'NSKeyValueChangeKey' in scope
28 |                 options: NSKeyValueObservingOptions = [],
29 |                 activate:Bool = false,
30 |                 block:@escaping ([NSKeyValueChangeKey:Any]?)->Void ){
   |                                   `- error: cannot find type 'NSKeyValueChangeKey' in scope
31 |         self.block = block
32 |         self.keyPath = keyPath
/host/spi-builder-workspace/Sources/HSObserver/HSKeyPathObserver.swift:13:25: error: cannot find type 'NSKeyValueChangeKey' in scope
11 |
12 | public class HSKeyPathObserver:NSObject, HSObserves {
13 |     private var block:([NSKeyValueChangeKey:Any]?)->Void
   |                         `- error: cannot find type 'NSKeyValueChangeKey' in scope
14 |     private var keyPath:String
15 |     private var options:NSKeyValueObservingOptions
/host/spi-builder-workspace/Sources/HSObserver/HSKeyPathObserver.swift:15:25: error: cannot find type 'NSKeyValueObservingOptions' in scope
13 |     private var block:([NSKeyValueChangeKey:Any]?)->Void
14 |     private var keyPath:String
15 |     private var options:NSKeyValueObservingOptions
   |                         `- error: cannot find type 'NSKeyValueObservingOptions' in scope
16 |     weak private var object:AnyObject?
17 |
/host/spi-builder-workspace/Sources/HSObserver/HSKeyPathObserver.swift:63:48: error: cannot find type 'NSKeyValueChangeKey' in scope
61 |     override public func observeValue(forKeyPath keyPath: String?,
62 |                                       of object: Any?,
63 |                                       change: [NSKeyValueChangeKey : Any]?,
   |                                                `- error: cannot find type 'NSKeyValueChangeKey' in scope
64 |                                       context: UnsafeMutableRawPointer?)
65 |     {
/host/spi-builder-workspace/Sources/HSObserver/HSKeyPathObserver.swift:49:17: error: value of type 'AnyObject' has no member 'addObserver'
47 |     @discardableResult
48 |     public func activate() -> Self {
49 |         object?.addObserver(self,
   |                 `- error: value of type 'AnyObject' has no member 'addObserver'
50 |                            forKeyPath: keyPath,
51 |                            options: options,
/host/spi-builder-workspace/Sources/HSObserver/HSKeyPathObserver.swift:52:37: error: 'nil' requires a contextual type
50 |                            forKeyPath: keyPath,
51 |                            options: options,
52 |                            context: nil)
   |                                     `- error: 'nil' requires a contextual type
53 |
54 |         return self
/host/spi-builder-workspace/Sources/HSObserver/HSKeyPathObserver.swift:58:17: error: value of type 'AnyObject' has no member 'removeObserver'
56 |
57 |     public func deactivate() {
58 |         object?.removeObserver(self, forKeyPath: keyPath)
   |                 `- error: value of type 'AnyObject' has no member 'removeObserver'
59 |     }
60 |
error: emit-module command failed with exit code 1 (use -v to see invocation)
[7/8] Emitting module HSObserver
/host/spi-builder-workspace/Sources/HSObserver/HSHasObservers.swift:20:13: warning: var 'observerKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
18 | }
19 |
20 | private var observerKey: Void?
   |             |- warning: var 'observerKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |             |- note: convert 'observerKey' to a 'let' constant to make 'Sendable' shared state immutable
   |             |- note: add '@MainActor' to make var 'observerKey' part of global actor 'MainActor'
   |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 | public extension HSHasObservers {
22 |     private func _getObservers() -> [HSObserves] {
/host/spi-builder-workspace/Sources/HSObserver/HSKeyPathObserver.swift:28:26: error: cannot find type 'NSKeyValueObservingOptions' in scope
26 |     public init(forKeyPath keyPath: String,
27 |                 of object: AnyObject,
28 |                 options: NSKeyValueObservingOptions = [],
   |                          `- error: cannot find type 'NSKeyValueObservingOptions' in scope
29 |                 activate:Bool = false,
30 |                 block:@escaping ([NSKeyValueChangeKey:Any]?)->Void ){
/host/spi-builder-workspace/Sources/HSObserver/HSKeyPathObserver.swift:30:35: error: cannot find type 'NSKeyValueChangeKey' in scope
28 |                 options: NSKeyValueObservingOptions = [],
29 |                 activate:Bool = false,
30 |                 block:@escaping ([NSKeyValueChangeKey:Any]?)->Void ){
   |                                   `- error: cannot find type 'NSKeyValueChangeKey' in scope
31 |         self.block = block
32 |         self.keyPath = keyPath
/host/spi-builder-workspace/Sources/HSObserver/HSKeyPathObserver.swift:13:25: error: cannot find type 'NSKeyValueChangeKey' in scope
11 |
12 | public class HSKeyPathObserver:NSObject, HSObserves {
13 |     private var block:([NSKeyValueChangeKey:Any]?)->Void
   |                         `- error: cannot find type 'NSKeyValueChangeKey' in scope
14 |     private var keyPath:String
15 |     private var options:NSKeyValueObservingOptions
/host/spi-builder-workspace/Sources/HSObserver/HSKeyPathObserver.swift:15:25: error: cannot find type 'NSKeyValueObservingOptions' in scope
13 |     private var block:([NSKeyValueChangeKey:Any]?)->Void
14 |     private var keyPath:String
15 |     private var options:NSKeyValueObservingOptions
   |                         `- error: cannot find type 'NSKeyValueObservingOptions' in scope
16 |     weak private var object:AnyObject?
17 |
/host/spi-builder-workspace/Sources/HSObserver/HSKeyPathObserver.swift:63:48: error: cannot find type 'NSKeyValueChangeKey' in scope
61 |     override public func observeValue(forKeyPath keyPath: String?,
62 |                                       of object: Any?,
63 |                                       change: [NSKeyValueChangeKey : Any]?,
   |                                                `- error: cannot find type 'NSKeyValueChangeKey' in scope
64 |                                       context: UnsafeMutableRawPointer?)
65 |     {
/host/spi-builder-workspace/Sources/HSObserver/HSObserver.swift:12:2: error: Objective-C interoperability is disabled
 10 |
 11 | /// Set up an NSNotification block observer which can be started and stopped
 12 | @objc
    |  `- error: Objective-C interoperability is disabled
 13 | open class HSObserver: NSObject, HSObserves {
 14 |     open var centre:NotificationCenter
/host/spi-builder-workspace/Sources/HSObserver/HSObserver.swift:39:36: error: cannot find type 'OperationQueue' in scope
 37 |     public convenience init(forName name: NSNotification.Name,
 38 |                             object obj: Any? = nil,
 39 |                             queue: OperationQueue,
    |                                    `- error: cannot find type 'OperationQueue' in scope
 40 |                             center newCenter: NotificationCenter = NotificationCenter.default,
 41 |                             activate: Bool = false,
/host/spi-builder-workspace/Sources/HSObserver/HSObserver.swift:40:47: error: cannot find type 'NotificationCenter' in scope
 38 |                             object obj: Any? = nil,
 39 |                             queue: OperationQueue,
 40 |                             center newCenter: NotificationCenter = NotificationCenter.default,
    |                                               `- error: cannot find type 'NotificationCenter' in scope
 41 |                             activate: Bool = false,
 42 |                             using block: @escaping (Notification) -> Swift.Void) {
/host/spi-builder-workspace/Sources/HSObserver/HSObserver.swift:62:24: error: cannot find type 'OperationQueue' in scope
 60 |     public init(forNames names: [NSNotification.Name],
 61 |                 object obj: Any? = nil,
 62 |                 queue: OperationQueue,
    |                        `- error: cannot find type 'OperationQueue' in scope
 63 |                 center newCenter: NotificationCenter = NotificationCenter.default,
 64 |                 activate: Bool = false,
/host/spi-builder-workspace/Sources/HSObserver/HSObserver.swift:63:35: error: cannot find type 'NotificationCenter' in scope
 61 |                 object obj: Any? = nil,
 62 |                 queue: OperationQueue,
 63 |                 center newCenter: NotificationCenter = NotificationCenter.default,
    |                                   `- error: cannot find type 'NotificationCenter' in scope
 64 |                 activate: Bool = false,
 65 |                 using block: @escaping (Notification) -> Swift.Void) {
/host/spi-builder-workspace/Sources/HSObserver/HSObserver.swift:97:47: error: cannot find type 'NotificationCenter' in scope
 95 |     public convenience init(forName name: NSNotification.Name,
 96 |                             object obj: Any? = nil,
 97 |                             center newCenter: NotificationCenter = NotificationCenter.default,
    |                                               `- error: cannot find type 'NotificationCenter' in scope
 98 |                             activate: Bool = false,
 99 |                             using block: @escaping @MainActor (Notification) -> Swift.Void) {
/host/spi-builder-workspace/Sources/HSObserver/HSObserver.swift:120:35: error: cannot find type 'NotificationCenter' in scope
118 |     public init(forNames names: [NSNotification.Name],
119 |                 object obj: Any? = nil,
120 |                 center newCenter: NotificationCenter = NotificationCenter.default,
    |                                   `- error: cannot find type 'NotificationCenter' in scope
121 |                 activate: Bool = false,
122 |                 using block: @escaping @MainActor  (Notification) -> Swift.Void) {
/host/spi-builder-workspace/Sources/HSObserver/HSObserver.swift:14:21: error: cannot find type 'NotificationCenter' in scope
 12 | @objc
 13 | open class HSObserver: NSObject, HSObserves {
 14 |     open var centre:NotificationCenter
    |                     `- error: cannot find type 'NotificationCenter' in scope
 15 |     open var names = [NSNotification.Name]()
 16 |     open var name:NSNotification.Name? {
/host/spi-builder-workspace/Sources/HSObserver/HSObserver.swift:22:20: error: cannot find type 'OperationQueue' in scope
 20 |     }
 21 |     open var object:Any?
 22 |     open var queue:OperationQueue
    |                    `- error: cannot find type 'OperationQueue' in scope
 23 |     open var block:((Notification) -> Swift.Void)
 24 |
/host/spi-builder-workspace/Sources/HSObserver/HSObserver.swift:94:6: error: Objective-C interoperability is disabled
 92 |     ///
 93 |     /// - returns: unactivated manager. Call activate() to start
 94 |     @objc
    |      `- error: Objective-C interoperability is disabled
 95 |     public convenience init(forName name: NSNotification.Name,
 96 |                             object obj: Any? = nil,
/host/spi-builder-workspace/Sources/HSObserver/HSObserver.swift:117:6: error: Objective-C interoperability is disabled
115 |     ///
116 |     /// - returns: unactivated manager. Call activate() to start
117 |     @objc
    |      `- error: Objective-C interoperability is disabled
118 |     public init(forNames names: [NSNotification.Name],
119 |                 object obj: Any? = nil,
/host/spi-builder-workspace/Sources/HSObserver/HSObserver.swift:157:6: error: Objective-C interoperability is disabled
155 |     /// Activate
156 |     @discardableResult
157 |     @objc
    |      `- error: Objective-C interoperability is disabled
158 |     open func activate() -> Self {
159 |         if notificationObservers.count == 0 {
/host/spi-builder-workspace/Sources/HSObserver/HSObserver.swift:173:6: error: Objective-C interoperability is disabled
171 |
172 |     /// Deactivate (this happens automatically on release
173 |     @objc
    |      `- error: Objective-C interoperability is disabled
174 |     open func deactivate() {
175 |         for notificationObserver in notificationObservers {
/host/spi-builder-workspace/Sources/HSObserver/NSNotification+HSObserver.swift:22:18: error: cannot find type 'NotificationCenter' in scope
20 | }
21 |
22 | public extension NotificationCenter {
   |                  `- error: cannot find type 'NotificationCenter' in scope
23 |
24 |     /// Sugar to change NotificationCenter.default.post(...) to NotificationCentre.post(...)
[8/8] Compiling HSObserver HSHasObservers.swift
/host/spi-builder-workspace/Sources/HSObserver/HSHasObservers.swift:20:13: warning: var 'observerKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
18 | }
19 |
20 | private var observerKey: Void?
   |             |- warning: var 'observerKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |             |- note: convert 'observerKey' to a 'let' constant to make 'Sendable' shared state immutable
   |             |- note: add '@MainActor' to make var 'observerKey' part of global actor 'MainActor'
   |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 | public extension HSHasObservers {
22 |     private func _getObservers() -> [HSObserves] {
/host/spi-builder-workspace/Sources/HSObserver/HSHasObservers.swift:23:30: error: cannot find 'objc_getAssociatedObject' in scope
21 | public extension HSHasObservers {
22 |     private func _getObservers() -> [HSObserves] {
23 |         guard let existing = objc_getAssociatedObject(self, &observerKey) as? [HSObserves] else {
   |                              `- error: cannot find 'objc_getAssociatedObject' in scope
24 |             return [HSObserver]()
25 |         }
/host/spi-builder-workspace/Sources/HSObserver/HSHasObservers.swift:32:9: error: cannot find 'objc_setAssociatedObject' in scope
30 |     private func _setObservers(_ newValue:[HSObserves]) {
31 |         let objcArray = newValue as NSArray
32 |         objc_setAssociatedObject(self,
   |         `- error: cannot find 'objc_setAssociatedObject' in scope
33 |                                  &observerKey, objcArray,
34 |                                  .OBJC_ASSOCIATION_RETAIN_NONATOMIC)
/host/spi-builder-workspace/Sources/HSObserver/HSHasObservers.swift:34:35: error: cannot infer contextual base in reference to member 'OBJC_ASSOCIATION_RETAIN_NONATOMIC'
32 |         objc_setAssociatedObject(self,
33 |                                  &observerKey, objcArray,
34 |                                  .OBJC_ASSOCIATION_RETAIN_NONATOMIC)
   |                                   `- error: cannot infer contextual base in reference to member 'OBJC_ASSOCIATION_RETAIN_NONATOMIC'
35 |     }
36 |
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/7] Compiling HSObserver NSNotification+HSObserver.swift
/host/spi-builder-workspace/Sources/HSObserver/NSNotification+HSObserver.swift:22:18: error: cannot find type 'NotificationCenter' in scope
20 | }
21 |
22 | public extension NotificationCenter {
   |                  `- error: cannot find type 'NotificationCenter' in scope
23 |
24 |     /// Sugar to change NotificationCenter.default.post(...) to NotificationCentre.post(...)
/host/spi-builder-workspace/Sources/HSObserver/NSNotification+HSObserver.swift:18:9: error: cannot find 'NotificationCenter' in scope
16 |     func post(object:Any? = nil,
17 |               userInfo:[AnyHashable : Any]? = nil) {
18 |         NotificationCenter.default.post(name:self,object:object,userInfo: userInfo)
   |         `- error: cannot find 'NotificationCenter' in scope
19 |     }
20 | }
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/7] Compiling HSObserver HSObserves.swift
[4/7] Emitting module HSObserver
/host/spi-builder-workspace/Sources/HSObserver/HSKeyPathObserver.swift:28:26: error: cannot find type 'NSKeyValueObservingOptions' in scope
26 |     public init(forKeyPath keyPath: String,
27 |                 of object: AnyObject,
28 |                 options: NSKeyValueObservingOptions = [],
   |                          `- error: cannot find type 'NSKeyValueObservingOptions' in scope
29 |                 activate:Bool = false,
30 |                 block:@escaping ([NSKeyValueChangeKey:Any]?)->Void ){
/host/spi-builder-workspace/Sources/HSObserver/HSKeyPathObserver.swift:30:35: error: cannot find type 'NSKeyValueChangeKey' in scope
28 |                 options: NSKeyValueObservingOptions = [],
29 |                 activate:Bool = false,
30 |                 block:@escaping ([NSKeyValueChangeKey:Any]?)->Void ){
   |                                   `- error: cannot find type 'NSKeyValueChangeKey' in scope
31 |         self.block = block
32 |         self.keyPath = keyPath
/host/spi-builder-workspace/Sources/HSObserver/HSKeyPathObserver.swift:13:25: error: cannot find type 'NSKeyValueChangeKey' in scope
11 |
12 | public class HSKeyPathObserver:NSObject, HSObserves {
13 |     private var block:([NSKeyValueChangeKey:Any]?)->Void
   |                         `- error: cannot find type 'NSKeyValueChangeKey' in scope
14 |     private var keyPath:String
15 |     private var options:NSKeyValueObservingOptions
/host/spi-builder-workspace/Sources/HSObserver/HSKeyPathObserver.swift:15:25: error: cannot find type 'NSKeyValueObservingOptions' in scope
13 |     private var block:([NSKeyValueChangeKey:Any]?)->Void
14 |     private var keyPath:String
15 |     private var options:NSKeyValueObservingOptions
   |                         `- error: cannot find type 'NSKeyValueObservingOptions' in scope
16 |     weak private var object:AnyObject?
17 |
/host/spi-builder-workspace/Sources/HSObserver/HSKeyPathObserver.swift:63:48: error: cannot find type 'NSKeyValueChangeKey' in scope
61 |     override public func observeValue(forKeyPath keyPath: String?,
62 |                                       of object: Any?,
63 |                                       change: [NSKeyValueChangeKey : Any]?,
   |                                                `- error: cannot find type 'NSKeyValueChangeKey' in scope
64 |                                       context: UnsafeMutableRawPointer?)
65 |     {
/host/spi-builder-workspace/Sources/HSObserver/HSObserver.swift:12:2: error: Objective-C interoperability is disabled
 10 |
 11 | /// Set up an NSNotification block observer which can be started and stopped
 12 | @objc
    |  `- error: Objective-C interoperability is disabled
 13 | open class HSObserver: NSObject, HSObserves {
 14 |     open var centre:NotificationCenter
/host/spi-builder-workspace/Sources/HSObserver/HSObserver.swift:39:36: error: cannot find type 'OperationQueue' in scope
 37 |     public convenience init(forName name: NSNotification.Name,
 38 |                             object obj: Any? = nil,
 39 |                             queue: OperationQueue,
    |                                    `- error: cannot find type 'OperationQueue' in scope
 40 |                             center newCenter: NotificationCenter = NotificationCenter.default,
 41 |                             activate: Bool = false,
/host/spi-builder-workspace/Sources/HSObserver/HSObserver.swift:40:47: error: cannot find type 'NotificationCenter' in scope
 38 |                             object obj: Any? = nil,
 39 |                             queue: OperationQueue,
 40 |                             center newCenter: NotificationCenter = NotificationCenter.default,
    |                                               `- error: cannot find type 'NotificationCenter' in scope
 41 |                             activate: Bool = false,
 42 |                             using block: @escaping (Notification) -> Swift.Void) {
/host/spi-builder-workspace/Sources/HSObserver/HSObserver.swift:62:24: error: cannot find type 'OperationQueue' in scope
 60 |     public init(forNames names: [NSNotification.Name],
 61 |                 object obj: Any? = nil,
 62 |                 queue: OperationQueue,
    |                        `- error: cannot find type 'OperationQueue' in scope
 63 |                 center newCenter: NotificationCenter = NotificationCenter.default,
 64 |                 activate: Bool = false,
/host/spi-builder-workspace/Sources/HSObserver/HSObserver.swift:63:35: error: cannot find type 'NotificationCenter' in scope
 61 |                 object obj: Any? = nil,
 62 |                 queue: OperationQueue,
 63 |                 center newCenter: NotificationCenter = NotificationCenter.default,
    |                                   `- error: cannot find type 'NotificationCenter' in scope
 64 |                 activate: Bool = false,
 65 |                 using block: @escaping (Notification) -> Swift.Void) {
/host/spi-builder-workspace/Sources/HSObserver/HSObserver.swift:97:47: error: cannot find type 'NotificationCenter' in scope
 95 |     public convenience init(forName name: NSNotification.Name,
 96 |                             object obj: Any? = nil,
 97 |                             center newCenter: NotificationCenter = NotificationCenter.default,
    |                                               `- error: cannot find type 'NotificationCenter' in scope
 98 |                             activate: Bool = false,
 99 |                             using block: @escaping @MainActor (Notification) -> Swift.Void) {
/host/spi-builder-workspace/Sources/HSObserver/HSObserver.swift:120:35: error: cannot find type 'NotificationCenter' in scope
118 |     public init(forNames names: [NSNotification.Name],
119 |                 object obj: Any? = nil,
120 |                 center newCenter: NotificationCenter = NotificationCenter.default,
    |                                   `- error: cannot find type 'NotificationCenter' in scope
121 |                 activate: Bool = false,
122 |                 using block: @escaping @MainActor  (Notification) -> Swift.Void) {
/host/spi-builder-workspace/Sources/HSObserver/HSObserver.swift:14:21: error: cannot find type 'NotificationCenter' in scope
 12 | @objc
 13 | open class HSObserver: NSObject, HSObserves {
 14 |     open var centre:NotificationCenter
    |                     `- error: cannot find type 'NotificationCenter' in scope
 15 |     open var names = [NSNotification.Name]()
 16 |     open var name:NSNotification.Name? {
/host/spi-builder-workspace/Sources/HSObserver/HSObserver.swift:22:20: error: cannot find type 'OperationQueue' in scope
 20 |     }
 21 |     open var object:Any?
 22 |     open var queue:OperationQueue
    |                    `- error: cannot find type 'OperationQueue' in scope
 23 |     open var block:((Notification) -> Swift.Void)
 24 |
/host/spi-builder-workspace/Sources/HSObserver/HSObserver.swift:94:6: error: Objective-C interoperability is disabled
 92 |     ///
 93 |     /// - returns: unactivated manager. Call activate() to start
 94 |     @objc
    |      `- error: Objective-C interoperability is disabled
 95 |     public convenience init(forName name: NSNotification.Name,
 96 |                             object obj: Any? = nil,
/host/spi-builder-workspace/Sources/HSObserver/HSObserver.swift:117:6: error: Objective-C interoperability is disabled
115 |     ///
116 |     /// - returns: unactivated manager. Call activate() to start
117 |     @objc
    |      `- error: Objective-C interoperability is disabled
118 |     public init(forNames names: [NSNotification.Name],
119 |                 object obj: Any? = nil,
/host/spi-builder-workspace/Sources/HSObserver/HSObserver.swift:157:6: error: Objective-C interoperability is disabled
155 |     /// Activate
156 |     @discardableResult
157 |     @objc
    |      `- error: Objective-C interoperability is disabled
158 |     open func activate() -> Self {
159 |         if notificationObservers.count == 0 {
/host/spi-builder-workspace/Sources/HSObserver/HSObserver.swift:173:6: error: Objective-C interoperability is disabled
171 |
172 |     /// Deactivate (this happens automatically on release
173 |     @objc
    |      `- error: Objective-C interoperability is disabled
174 |     open func deactivate() {
175 |         for notificationObserver in notificationObservers {
/host/spi-builder-workspace/Sources/HSObserver/NSNotification+HSObserver.swift:22:18: error: cannot find type 'NotificationCenter' in scope
20 | }
21 |
22 | public extension NotificationCenter {
   |                  `- error: cannot find type 'NotificationCenter' in scope
23 |
24 |     /// Sugar to change NotificationCenter.default.post(...) to NotificationCentre.post(...)
[5/7] Compiling HSObserver HSKeyPathObserver.swift
/host/spi-builder-workspace/Sources/HSObserver/HSKeyPathObserver.swift:28:26: error: cannot find type 'NSKeyValueObservingOptions' in scope
26 |     public init(forKeyPath keyPath: String,
27 |                 of object: AnyObject,
28 |                 options: NSKeyValueObservingOptions = [],
   |                          `- error: cannot find type 'NSKeyValueObservingOptions' in scope
29 |                 activate:Bool = false,
30 |                 block:@escaping ([NSKeyValueChangeKey:Any]?)->Void ){
/host/spi-builder-workspace/Sources/HSObserver/HSKeyPathObserver.swift:30:35: error: cannot find type 'NSKeyValueChangeKey' in scope
28 |                 options: NSKeyValueObservingOptions = [],
29 |                 activate:Bool = false,
30 |                 block:@escaping ([NSKeyValueChangeKey:Any]?)->Void ){
   |                                   `- error: cannot find type 'NSKeyValueChangeKey' in scope
31 |         self.block = block
32 |         self.keyPath = keyPath
/host/spi-builder-workspace/Sources/HSObserver/HSKeyPathObserver.swift:13:25: error: cannot find type 'NSKeyValueChangeKey' in scope
11 |
12 | public class HSKeyPathObserver:NSObject, HSObserves {
13 |     private var block:([NSKeyValueChangeKey:Any]?)->Void
   |                         `- error: cannot find type 'NSKeyValueChangeKey' in scope
14 |     private var keyPath:String
15 |     private var options:NSKeyValueObservingOptions
/host/spi-builder-workspace/Sources/HSObserver/HSKeyPathObserver.swift:15:25: error: cannot find type 'NSKeyValueObservingOptions' in scope
13 |     private var block:([NSKeyValueChangeKey:Any]?)->Void
14 |     private var keyPath:String
15 |     private var options:NSKeyValueObservingOptions
   |                         `- error: cannot find type 'NSKeyValueObservingOptions' in scope
16 |     weak private var object:AnyObject?
17 |
/host/spi-builder-workspace/Sources/HSObserver/HSKeyPathObserver.swift:63:48: error: cannot find type 'NSKeyValueChangeKey' in scope
61 |     override public func observeValue(forKeyPath keyPath: String?,
62 |                                       of object: Any?,
63 |                                       change: [NSKeyValueChangeKey : Any]?,
   |                                                `- error: cannot find type 'NSKeyValueChangeKey' in scope
64 |                                       context: UnsafeMutableRawPointer?)
65 |     {
/host/spi-builder-workspace/Sources/HSObserver/HSKeyPathObserver.swift:49:17: error: value of type 'AnyObject' has no member 'addObserver'
47 |     @discardableResult
48 |     public func activate() -> Self {
49 |         object?.addObserver(self,
   |                 `- error: value of type 'AnyObject' has no member 'addObserver'
50 |                            forKeyPath: keyPath,
51 |                            options: options,
/host/spi-builder-workspace/Sources/HSObserver/HSKeyPathObserver.swift:52:37: error: 'nil' requires a contextual type
50 |                            forKeyPath: keyPath,
51 |                            options: options,
52 |                            context: nil)
   |                                     `- error: 'nil' requires a contextual type
53 |
54 |         return self
/host/spi-builder-workspace/Sources/HSObserver/HSKeyPathObserver.swift:58:17: error: value of type 'AnyObject' has no member 'removeObserver'
56 |
57 |     public func deactivate() {
58 |         object?.removeObserver(self, forKeyPath: keyPath)
   |                 `- error: value of type 'AnyObject' has no member 'removeObserver'
59 |     }
60 |
[6/7] Compiling HSObserver HSObserver.swift
/host/spi-builder-workspace/Sources/HSObserver/HSObserver.swift:12:2: error: Objective-C interoperability is disabled
 10 |
 11 | /// Set up an NSNotification block observer which can be started and stopped
 12 | @objc
    |  `- error: Objective-C interoperability is disabled
 13 | open class HSObserver: NSObject, HSObserves {
 14 |     open var centre:NotificationCenter
/host/spi-builder-workspace/Sources/HSObserver/HSObserver.swift:39:36: error: cannot find type 'OperationQueue' in scope
 37 |     public convenience init(forName name: NSNotification.Name,
 38 |                             object obj: Any? = nil,
 39 |                             queue: OperationQueue,
    |                                    `- error: cannot find type 'OperationQueue' in scope
 40 |                             center newCenter: NotificationCenter = NotificationCenter.default,
 41 |                             activate: Bool = false,
/host/spi-builder-workspace/Sources/HSObserver/HSObserver.swift:40:47: error: cannot find type 'NotificationCenter' in scope
 38 |                             object obj: Any? = nil,
 39 |                             queue: OperationQueue,
 40 |                             center newCenter: NotificationCenter = NotificationCenter.default,
    |                                               `- error: cannot find type 'NotificationCenter' in scope
 41 |                             activate: Bool = false,
 42 |                             using block: @escaping (Notification) -> Swift.Void) {
/host/spi-builder-workspace/Sources/HSObserver/HSObserver.swift:62:24: error: cannot find type 'OperationQueue' in scope
 60 |     public init(forNames names: [NSNotification.Name],
 61 |                 object obj: Any? = nil,
 62 |                 queue: OperationQueue,
    |                        `- error: cannot find type 'OperationQueue' in scope
 63 |                 center newCenter: NotificationCenter = NotificationCenter.default,
 64 |                 activate: Bool = false,
/host/spi-builder-workspace/Sources/HSObserver/HSObserver.swift:63:35: error: cannot find type 'NotificationCenter' in scope
 61 |                 object obj: Any? = nil,
 62 |                 queue: OperationQueue,
 63 |                 center newCenter: NotificationCenter = NotificationCenter.default,
    |                                   `- error: cannot find type 'NotificationCenter' in scope
 64 |                 activate: Bool = false,
 65 |                 using block: @escaping (Notification) -> Swift.Void) {
/host/spi-builder-workspace/Sources/HSObserver/HSObserver.swift:97:47: error: cannot find type 'NotificationCenter' in scope
 95 |     public convenience init(forName name: NSNotification.Name,
 96 |                             object obj: Any? = nil,
 97 |                             center newCenter: NotificationCenter = NotificationCenter.default,
    |                                               `- error: cannot find type 'NotificationCenter' in scope
 98 |                             activate: Bool = false,
 99 |                             using block: @escaping @MainActor (Notification) -> Swift.Void) {
/host/spi-builder-workspace/Sources/HSObserver/HSObserver.swift:120:35: error: cannot find type 'NotificationCenter' in scope
118 |     public init(forNames names: [NSNotification.Name],
119 |                 object obj: Any? = nil,
120 |                 center newCenter: NotificationCenter = NotificationCenter.default,
    |                                   `- error: cannot find type 'NotificationCenter' in scope
121 |                 activate: Bool = false,
122 |                 using block: @escaping @MainActor  (Notification) -> Swift.Void) {
/host/spi-builder-workspace/Sources/HSObserver/HSObserver.swift:14:21: error: cannot find type 'NotificationCenter' in scope
 12 | @objc
 13 | open class HSObserver: NSObject, HSObserves {
 14 |     open var centre:NotificationCenter
    |                     `- error: cannot find type 'NotificationCenter' in scope
 15 |     open var names = [NSNotification.Name]()
 16 |     open var name:NSNotification.Name? {
/host/spi-builder-workspace/Sources/HSObserver/HSObserver.swift:22:20: error: cannot find type 'OperationQueue' in scope
 20 |     }
 21 |     open var object:Any?
 22 |     open var queue:OperationQueue
    |                    `- error: cannot find type 'OperationQueue' in scope
 23 |     open var block:((Notification) -> Swift.Void)
 24 |
/host/spi-builder-workspace/Sources/HSObserver/HSObserver.swift:94:6: error: Objective-C interoperability is disabled
 92 |     ///
 93 |     /// - returns: unactivated manager. Call activate() to start
 94 |     @objc
    |      `- error: Objective-C interoperability is disabled
 95 |     public convenience init(forName name: NSNotification.Name,
 96 |                             object obj: Any? = nil,
/host/spi-builder-workspace/Sources/HSObserver/HSObserver.swift:117:6: error: Objective-C interoperability is disabled
115 |     ///
116 |     /// - returns: unactivated manager. Call activate() to start
117 |     @objc
    |      `- error: Objective-C interoperability is disabled
118 |     public init(forNames names: [NSNotification.Name],
119 |                 object obj: Any? = nil,
/host/spi-builder-workspace/Sources/HSObserver/HSObserver.swift:157:6: error: Objective-C interoperability is disabled
155 |     /// Activate
156 |     @discardableResult
157 |     @objc
    |      `- error: Objective-C interoperability is disabled
158 |     open func activate() -> Self {
159 |         if notificationObservers.count == 0 {
/host/spi-builder-workspace/Sources/HSObserver/HSObserver.swift:173:6: error: Objective-C interoperability is disabled
171 |
172 |     /// Deactivate (this happens automatically on release
173 |     @objc
    |      `- error: Objective-C interoperability is disabled
174 |     open func deactivate() {
175 |         for notificationObserver in notificationObservers {
/host/spi-builder-workspace/Sources/HSObserver/HSObserver.swift:135:23: error: cannot infer contextual base in reference to member 'main'
133 |         self.names = names
134 |         self.object = obj
135 |         self.queue = .main
    |                       `- error: cannot infer contextual base in reference to member 'main'
136 |         self.block = regularBlock
137 |
[7/7] Compiling HSObserver HSHasObservers.swift
/host/spi-builder-workspace/Sources/HSObserver/HSHasObservers.swift:23:30: error: cannot find 'objc_getAssociatedObject' in scope
21 | public extension HSHasObservers {
22 |     private func _getObservers() -> [HSObserves] {
23 |         guard let existing = objc_getAssociatedObject(self, &observerKey) as? [HSObserves] else {
   |                              `- error: cannot find 'objc_getAssociatedObject' in scope
24 |             return [HSObserver]()
25 |         }
/host/spi-builder-workspace/Sources/HSObserver/HSHasObservers.swift:32:9: error: cannot find 'objc_setAssociatedObject' in scope
30 |     private func _setObservers(_ newValue:[HSObserves]) {
31 |         let objcArray = newValue as NSArray
32 |         objc_setAssociatedObject(self,
   |         `- error: cannot find 'objc_setAssociatedObject' in scope
33 |                                  &observerKey, objcArray,
34 |                                  .OBJC_ASSOCIATION_RETAIN_NONATOMIC)
/host/spi-builder-workspace/Sources/HSObserver/HSHasObservers.swift:34:35: error: cannot infer contextual base in reference to member 'OBJC_ASSOCIATION_RETAIN_NONATOMIC'
32 |         objc_setAssociatedObject(self,
33 |                                  &observerKey, objcArray,
34 |                                  .OBJC_ASSOCIATION_RETAIN_NONATOMIC)
   |                                   `- error: cannot infer contextual base in reference to member 'OBJC_ASSOCIATION_RETAIN_NONATOMIC'
35 |     }
36 |
BUILD FAILURE 6.1 wasm