The Swift Package Index logo.Swift Package Index

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

Build Information

Failed to build MockingKit, reference 1.5.0 (a1096b), with Swift 6.1 for Wasm on 29 May 2025 18:56:22 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/danielsaidi/MockingKit.git
Reference: 1.5.0
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/danielsaidi/MockingKit
 * tag               1.5.0      -> FETCH_HEAD
HEAD is now at a1096bb Adjust code for Swift 6
Cloned https://github.com/danielsaidi/MockingKit.git
Revision (git rev-parse @):
a1096bb9b149b70147e6fb8294f720989edf72ae
SUCCESS checkout https://github.com/danielsaidi/MockingKit.git at 1.5.0
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/danielsaidi/MockingKit.git
https://github.com/danielsaidi/MockingKit.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "MockingKit",
  "name" : "MockingKit",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "tvos",
      "version" : "13.0"
    },
    {
      "name" : "watchos",
      "version" : "6.0"
    },
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "visionos",
      "version" : "1.0"
    }
  ],
  "products" : [
    {
      "name" : "MockingKit",
      "targets" : [
        "MockingKit"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "MockingKitTests",
      "module_type" : "SwiftTarget",
      "name" : "MockingKitTests",
      "path" : "Tests/MockingKitTests",
      "sources" : [
        "Foundation/MockNotificationCenterTests.swift",
        "Foundation/MockUserDefaultsTests.swift",
        "GenericTests.swift",
        "MockableAsyncTests.swift",
        "MockableTests.swift",
        "TestTypes.swift"
      ],
      "target_dependencies" : [
        "MockingKit"
      ],
      "type" : "test"
    },
    {
      "c99name" : "MockingKit",
      "module_type" : "SwiftTarget",
      "name" : "MockingKit",
      "path" : "Sources/MockingKit",
      "product_memberships" : [
        "MockingKit"
      ],
      "sources" : [
        "AsyncMockReference.swift",
        "Internals/Escaping.swift",
        "Mock.swift",
        "MockCall.swift",
        "MockReference.swift",
        "Mockable+Call.swift",
        "Mockable+Inspect.swift",
        "Mockable+Register.swift",
        "Mockable+Reset.swift",
        "Mockable.swift",
        "Mocks/MockNotificationCenter.swift",
        "Mocks/MockPasteboard.swift",
        "Mocks/MockUserDefaults.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "6.0"
}
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 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/15] Compiling MockingKit Mockable+Reset.swift
[4/15] Compiling MockingKit Mockable.swift
[5/16] Compiling MockingKit MockPasteboard.swift
[6/16] Compiling MockingKit MockNotificationCenter.swift
/host/spi-builder-workspace/Sources/MockingKit/Mocks/MockNotificationCenter.swift:57:88: error: cannot find type 'OperationQueue' in scope
55 | private extension MockNotificationCenter {
56 |
57 |     func mockAddObserverForName(_ name: NSNotification.Name?, object obj: Any?, queue: OperationQueue?, using block: @escaping (Notification) -> Void) -> NSObjectProtocol {
   |                                                                                        `- error: cannot find type 'OperationQueue' in scope
58 |         call(addObserverForNameRef, args: (name, obj, queue, block))
59 |     }
/host/spi-builder-workspace/Sources/MockingKit/Mocks/MockNotificationCenter.swift:14:45: error: generic parameter 'Arguments' could not be inferred
12 | open class MockNotificationCenter: NotificationCenter, Mockable, @unchecked Sendable {
13 |
14 |     public lazy var addObserverForNameRef = MockReference(mockAddObserverForName)
   |                                             `- error: generic parameter 'Arguments' could not be inferred
15 |     public lazy var addObserverWithSelectorRef = MockReference(mockAddObserverWithSelector)
16 |     public lazy var postNotificationRef = MockReference(mockPostNotification)
/host/spi-builder-workspace/Sources/MockingKit/MockReference.swift:15:29: note: 'Arguments' declared as parameter to type 'MockReference'
13 | /// Function references get unique IDs, which means that the
14 | /// mock reference instance can be uniquely identified.
15 | public struct MockReference<Arguments, Result>: Identifiable {
   |                             `- note: 'Arguments' declared as parameter to type 'MockReference'
16 |
17 |     public init(_ function: @escaping (Arguments) throws -> Result) {
/host/spi-builder-workspace/Sources/MockingKit/Mocks/MockNotificationCenter.swift:14:45: error: generic parameter 'Result' could not be inferred
12 | open class MockNotificationCenter: NotificationCenter, Mockable, @unchecked Sendable {
13 |
14 |     public lazy var addObserverForNameRef = MockReference(mockAddObserverForName)
   |                                             |- error: generic parameter 'Result' could not be inferred
   |                                             `- note: explicitly specify the generic arguments to fix this issue
15 |     public lazy var addObserverWithSelectorRef = MockReference(mockAddObserverWithSelector)
16 |     public lazy var postNotificationRef = MockReference(mockPostNotification)
/host/spi-builder-workspace/Sources/MockingKit/MockReference.swift:15:40: note: 'Result' declared as parameter to type 'MockReference'
13 | /// Function references get unique IDs, which means that the
14 | /// mock reference instance can be uniquely identified.
15 | public struct MockReference<Arguments, Result>: Identifiable {
   |                                        `- note: 'Result' declared as parameter to type 'MockReference'
16 |
17 |     public init(_ function: @escaping (Arguments) throws -> Result) {
/host/spi-builder-workspace/Sources/MockingKit/Mocks/MockNotificationCenter.swift:61:75: error: cannot find type 'Selector' in scope
59 |     }
60 |
61 |     func mockAddObserverWithSelector(_ observer: Any, selector aSelector: Selector, name aName: NSNotification.Name?, object anObject: Any?) {
   |                                                                           `- error: cannot find type 'Selector' in scope
62 |         call(addObserverWithSelectorRef, args: (observer, aSelector, aName, anObject))
63 |     }
/host/spi-builder-workspace/Sources/MockingKit/Mocks/MockNotificationCenter.swift:15:50: error: generic parameter 'Arguments' could not be inferred
13 |
14 |     public lazy var addObserverForNameRef = MockReference(mockAddObserverForName)
15 |     public lazy var addObserverWithSelectorRef = MockReference(mockAddObserverWithSelector)
   |                                                  `- error: generic parameter 'Arguments' could not be inferred
16 |     public lazy var postNotificationRef = MockReference(mockPostNotification)
17 |     public lazy var postNotificationNameRef = MockReference(mockPostNotificationName)
/host/spi-builder-workspace/Sources/MockingKit/MockReference.swift:15:29: note: 'Arguments' declared as parameter to type 'MockReference'
13 | /// Function references get unique IDs, which means that the
14 | /// mock reference instance can be uniquely identified.
15 | public struct MockReference<Arguments, Result>: Identifiable {
   |                             `- note: 'Arguments' declared as parameter to type 'MockReference'
16 |
17 |     public init(_ function: @escaping (Arguments) throws -> Result) {
/host/spi-builder-workspace/Sources/MockingKit/Mocks/MockNotificationCenter.swift:15:50: error: generic parameter 'Result' could not be inferred
13 |
14 |     public lazy var addObserverForNameRef = MockReference(mockAddObserverForName)
15 |     public lazy var addObserverWithSelectorRef = MockReference(mockAddObserverWithSelector)
   |                                                  |- error: generic parameter 'Result' could not be inferred
   |                                                  `- note: explicitly specify the generic arguments to fix this issue
16 |     public lazy var postNotificationRef = MockReference(mockPostNotification)
17 |     public lazy var postNotificationNameRef = MockReference(mockPostNotificationName)
/host/spi-builder-workspace/Sources/MockingKit/MockReference.swift:15:40: note: 'Result' declared as parameter to type 'MockReference'
13 | /// Function references get unique IDs, which means that the
14 | /// mock reference instance can be uniquely identified.
15 | public struct MockReference<Arguments, Result>: Identifiable {
   |                                        `- note: 'Result' declared as parameter to type 'MockReference'
16 |
17 |     public init(_ function: @escaping (Arguments) throws -> Result) {
/host/spi-builder-workspace/Sources/MockingKit/Mocks/MockNotificationCenter.swift:22:73: error: cannot find type 'Selector' in scope
20 |     public let mock = Mock()
21 |
22 |     open override func addObserver(_ observer: Any, selector aSelector: Selector, name aName: NSNotification.Name?, object anObject: Any?) {
   |                                                                         `- error: cannot find type 'Selector' in scope
23 |         mockAddObserverWithSelector(observer, selector: aSelector, name: aName, object: anObject)
24 |     }
/host/spi-builder-workspace/Sources/MockingKit/Mocks/MockNotificationCenter.swift:26:97: error: cannot find type 'OperationQueue' in scope
24 |     }
25 |
26 |     open override func addObserver(forName name: NSNotification.Name?, object obj: Any?, queue: OperationQueue?, using block: @escaping (Notification) -> Void) -> NSObjectProtocol {
   |                                                                                                 `- error: cannot find type 'OperationQueue' in scope
27 |         mockAddObserverForName(name, object: obj, queue: queue, using: block)
28 |     }
/host/spi-builder-workspace/Sources/MockingKit/Mocks/MockNotificationCenter.swift:30:24: error: method does not override any method from its superclass
28 |     }
29 |
30 |     open override func post(_ notification: Notification) {
   |                        `- error: method does not override any method from its superclass
31 |         mockPostNotification(notification)
32 |     }
/host/spi-builder-workspace/Sources/MockingKit/Mocks/MockNotificationCenter.swift:34:24: error: method does not override any method from its superclass
32 |     }
33 |
34 |     open override func post(name aName: NSNotification.Name, object anObject: Any?) {
   |                        `- error: method does not override any method from its superclass
35 |         mockPostNotificationName(name: aName, object: anObject, userInfo: nil)
36 |     }
/host/spi-builder-workspace/Sources/MockingKit/Mocks/MockNotificationCenter.swift:38:24: error: method does not override any method from its superclass
36 |     }
37 |
38 |     open override func post(name aName: NSNotification.Name, object anObject: Any?, userInfo aUserInfo: [AnyHashable: Any]? = nil) {
   |                        `- error: method does not override any method from its superclass
39 |         mockPostNotificationName(name: aName, object: anObject, userInfo: aUserInfo)
40 |     }
/host/spi-builder-workspace/Sources/MockingKit/Mocks/MockNotificationCenter.swift:42:24: error: method does not override any method from its superclass
40 |     }
41 |
42 |     open override func removeObserver(_ observer: Any) {
   |                        `- error: method does not override any method from its superclass
43 |         mockRemoveObserver(observer, name: nil, object: nil)
44 |     }
/host/spi-builder-workspace/Sources/MockingKit/Mocks/MockNotificationCenter.swift:46:24: error: method does not override any method from its superclass
44 |     }
45 |
46 |     open override func removeObserver(_ observer: Any, name aName: NSNotification.Name?, object anObject: Any?) {
   |                        `- error: method does not override any method from its superclass
47 |         mockRemoveObserver(observer, name: aName, object: anObject)
48 |     }
/host/spi-builder-workspace/Sources/MockingKit/Mocks/MockNotificationCenter.swift:12:36: error: cannot find type 'NotificationCenter' in scope
10 |
11 | /// This class can be used to mock `NotificationCenter`.
12 | open class MockNotificationCenter: NotificationCenter, Mockable, @unchecked Sendable {
   |                                    `- error: cannot find type 'NotificationCenter' in scope
13 |
14 |     public lazy var addObserverForNameRef = MockReference(mockAddObserverForName)
/host/spi-builder-workspace/Sources/MockingKit/Mocks/MockNotificationCenter.swift:62:9: error: generic parameter 'Result' could not be inferred
60 |
61 |     func mockAddObserverWithSelector(_ observer: Any, selector aSelector: Selector, name aName: NSNotification.Name?, object anObject: Any?) {
62 |         call(addObserverWithSelectorRef, args: (observer, aSelector, aName, anObject))
   |         `- error: generic parameter 'Result' could not be inferred
63 |     }
64 |
/host/spi-builder-workspace/Sources/MockingKit/Mockable+Call.swift:121:10: note: in call to function 'call(_:args:)'
119 |     ///   - ref: The mock reference to call.
120 |     ///   - args: The arguments to call the functions with.
121 |     func call<Arguments, Result>(
    |          `- note: in call to function 'call(_:args:)'
122 |         _ ref: MockReference<Arguments, Result?>,
123 |         args: Arguments
[7/16] Compiling MockingKit Mock.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[8/16] Compiling MockingKit MockCall.swift
[9/16] Compiling MockingKit AsyncMockReference.swift
[10/16] Compiling MockingKit Escaping.swift
[11/16] Emitting module MockingKit
/host/spi-builder-workspace/Sources/MockingKit/Mocks/MockNotificationCenter.swift:57:88: error: cannot find type 'OperationQueue' in scope
55 | private extension MockNotificationCenter {
56 |
57 |     func mockAddObserverForName(_ name: NSNotification.Name?, object obj: Any?, queue: OperationQueue?, using block: @escaping (Notification) -> Void) -> NSObjectProtocol {
   |                                                                                        `- error: cannot find type 'OperationQueue' in scope
58 |         call(addObserverForNameRef, args: (name, obj, queue, block))
59 |     }
/host/spi-builder-workspace/Sources/MockingKit/Mocks/MockNotificationCenter.swift:14:45: error: generic parameter 'Arguments' could not be inferred
12 | open class MockNotificationCenter: NotificationCenter, Mockable, @unchecked Sendable {
13 |
14 |     public lazy var addObserverForNameRef = MockReference(mockAddObserverForName)
   |                                             `- error: generic parameter 'Arguments' could not be inferred
15 |     public lazy var addObserverWithSelectorRef = MockReference(mockAddObserverWithSelector)
16 |     public lazy var postNotificationRef = MockReference(mockPostNotification)
/host/spi-builder-workspace/Sources/MockingKit/MockReference.swift:15:29: note: 'Arguments' declared as parameter to type 'MockReference'
13 | /// Function references get unique IDs, which means that the
14 | /// mock reference instance can be uniquely identified.
15 | public struct MockReference<Arguments, Result>: Identifiable {
   |                             `- note: 'Arguments' declared as parameter to type 'MockReference'
16 |
17 |     public init(_ function: @escaping (Arguments) throws -> Result) {
/host/spi-builder-workspace/Sources/MockingKit/Mocks/MockNotificationCenter.swift:14:45: error: generic parameter 'Result' could not be inferred
12 | open class MockNotificationCenter: NotificationCenter, Mockable, @unchecked Sendable {
13 |
14 |     public lazy var addObserverForNameRef = MockReference(mockAddObserverForName)
   |                                             |- error: generic parameter 'Result' could not be inferred
   |                                             `- note: explicitly specify the generic arguments to fix this issue
15 |     public lazy var addObserverWithSelectorRef = MockReference(mockAddObserverWithSelector)
16 |     public lazy var postNotificationRef = MockReference(mockPostNotification)
/host/spi-builder-workspace/Sources/MockingKit/MockReference.swift:15:40: note: 'Result' declared as parameter to type 'MockReference'
13 | /// Function references get unique IDs, which means that the
14 | /// mock reference instance can be uniquely identified.
15 | public struct MockReference<Arguments, Result>: Identifiable {
   |                                        `- note: 'Result' declared as parameter to type 'MockReference'
16 |
17 |     public init(_ function: @escaping (Arguments) throws -> Result) {
/host/spi-builder-workspace/Sources/MockingKit/Mocks/MockNotificationCenter.swift:61:75: error: cannot find type 'Selector' in scope
59 |     }
60 |
61 |     func mockAddObserverWithSelector(_ observer: Any, selector aSelector: Selector, name aName: NSNotification.Name?, object anObject: Any?) {
   |                                                                           `- error: cannot find type 'Selector' in scope
62 |         call(addObserverWithSelectorRef, args: (observer, aSelector, aName, anObject))
63 |     }
/host/spi-builder-workspace/Sources/MockingKit/Mocks/MockNotificationCenter.swift:15:50: error: generic parameter 'Arguments' could not be inferred
13 |
14 |     public lazy var addObserverForNameRef = MockReference(mockAddObserverForName)
15 |     public lazy var addObserverWithSelectorRef = MockReference(mockAddObserverWithSelector)
   |                                                  `- error: generic parameter 'Arguments' could not be inferred
16 |     public lazy var postNotificationRef = MockReference(mockPostNotification)
17 |     public lazy var postNotificationNameRef = MockReference(mockPostNotificationName)
/host/spi-builder-workspace/Sources/MockingKit/MockReference.swift:15:29: note: 'Arguments' declared as parameter to type 'MockReference'
13 | /// Function references get unique IDs, which means that the
14 | /// mock reference instance can be uniquely identified.
15 | public struct MockReference<Arguments, Result>: Identifiable {
   |                             `- note: 'Arguments' declared as parameter to type 'MockReference'
16 |
17 |     public init(_ function: @escaping (Arguments) throws -> Result) {
/host/spi-builder-workspace/Sources/MockingKit/Mocks/MockNotificationCenter.swift:15:50: error: generic parameter 'Result' could not be inferred
13 |
14 |     public lazy var addObserverForNameRef = MockReference(mockAddObserverForName)
15 |     public lazy var addObserverWithSelectorRef = MockReference(mockAddObserverWithSelector)
   |                                                  |- error: generic parameter 'Result' could not be inferred
   |                                                  `- note: explicitly specify the generic arguments to fix this issue
16 |     public lazy var postNotificationRef = MockReference(mockPostNotification)
17 |     public lazy var postNotificationNameRef = MockReference(mockPostNotificationName)
/host/spi-builder-workspace/Sources/MockingKit/MockReference.swift:15:40: note: 'Result' declared as parameter to type 'MockReference'
13 | /// Function references get unique IDs, which means that the
14 | /// mock reference instance can be uniquely identified.
15 | public struct MockReference<Arguments, Result>: Identifiable {
   |                                        `- note: 'Result' declared as parameter to type 'MockReference'
16 |
17 |     public init(_ function: @escaping (Arguments) throws -> Result) {
/host/spi-builder-workspace/Sources/MockingKit/Mocks/MockNotificationCenter.swift:22:73: error: cannot find type 'Selector' in scope
20 |     public let mock = Mock()
21 |
22 |     open override func addObserver(_ observer: Any, selector aSelector: Selector, name aName: NSNotification.Name?, object anObject: Any?) {
   |                                                                         `- error: cannot find type 'Selector' in scope
23 |         mockAddObserverWithSelector(observer, selector: aSelector, name: aName, object: anObject)
24 |     }
/host/spi-builder-workspace/Sources/MockingKit/Mocks/MockNotificationCenter.swift:26:97: error: cannot find type 'OperationQueue' in scope
24 |     }
25 |
26 |     open override func addObserver(forName name: NSNotification.Name?, object obj: Any?, queue: OperationQueue?, using block: @escaping (Notification) -> Void) -> NSObjectProtocol {
   |                                                                                                 `- error: cannot find type 'OperationQueue' in scope
27 |         mockAddObserverForName(name, object: obj, queue: queue, using: block)
28 |     }
/host/spi-builder-workspace/Sources/MockingKit/Mocks/MockNotificationCenter.swift:30:24: error: method does not override any method from its superclass
28 |     }
29 |
30 |     open override func post(_ notification: Notification) {
   |                        `- error: method does not override any method from its superclass
31 |         mockPostNotification(notification)
32 |     }
/host/spi-builder-workspace/Sources/MockingKit/Mocks/MockNotificationCenter.swift:34:24: error: method does not override any method from its superclass
32 |     }
33 |
34 |     open override func post(name aName: NSNotification.Name, object anObject: Any?) {
   |                        `- error: method does not override any method from its superclass
35 |         mockPostNotificationName(name: aName, object: anObject, userInfo: nil)
36 |     }
/host/spi-builder-workspace/Sources/MockingKit/Mocks/MockNotificationCenter.swift:38:24: error: method does not override any method from its superclass
36 |     }
37 |
38 |     open override func post(name aName: NSNotification.Name, object anObject: Any?, userInfo aUserInfo: [AnyHashable: Any]? = nil) {
   |                        `- error: method does not override any method from its superclass
39 |         mockPostNotificationName(name: aName, object: anObject, userInfo: aUserInfo)
40 |     }
/host/spi-builder-workspace/Sources/MockingKit/Mocks/MockNotificationCenter.swift:42:24: error: method does not override any method from its superclass
40 |     }
41 |
42 |     open override func removeObserver(_ observer: Any) {
   |                        `- error: method does not override any method from its superclass
43 |         mockRemoveObserver(observer, name: nil, object: nil)
44 |     }
/host/spi-builder-workspace/Sources/MockingKit/Mocks/MockNotificationCenter.swift:46:24: error: method does not override any method from its superclass
44 |     }
45 |
46 |     open override func removeObserver(_ observer: Any, name aName: NSNotification.Name?, object anObject: Any?) {
   |                        `- error: method does not override any method from its superclass
47 |         mockRemoveObserver(observer, name: aName, object: anObject)
48 |     }
/host/spi-builder-workspace/Sources/MockingKit/Mocks/MockNotificationCenter.swift:12:36: error: cannot find type 'NotificationCenter' in scope
10 |
11 | /// This class can be used to mock `NotificationCenter`.
12 | open class MockNotificationCenter: NotificationCenter, Mockable, @unchecked Sendable {
   |                                    `- error: cannot find type 'NotificationCenter' in scope
13 |
14 |     public lazy var addObserverForNameRef = MockReference(mockAddObserverForName)
/host/spi-builder-workspace/Sources/MockingKit/Mocks/MockUserDefaults.swift:99:24: error: method does not override any method from its superclass
 97 |     }
 98 |
 99 |     open override func setValue(_ value: Any?, forKey key: String) {
    |                        `- error: method does not override any method from its superclass
100 |         setValueWithInstance(value, forKey: key)
101 |     }
[12/16] Compiling MockingKit MockUserDefaults.swift
/host/spi-builder-workspace/Sources/MockingKit/Mocks/MockUserDefaults.swift:99:24: error: method does not override any method from its superclass
 97 |     }
 98 |
 99 |     open override func setValue(_ value: Any?, forKey key: String) {
    |                        `- error: method does not override any method from its superclass
100 |         setValueWithInstance(value, forKey: key)
101 |     }
[13/16] Compiling MockingKit MockReference.swift
[14/16] Compiling MockingKit Mockable+Call.swift
[15/16] Compiling MockingKit Mockable+Inspect.swift
[16/16] Compiling MockingKit Mockable+Register.swift
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/14] Compiling MockingKit MockPasteboard.swift
[3/14] Compiling MockingKit MockNotificationCenter.swift
/host/spi-builder-workspace/Sources/MockingKit/Mocks/MockNotificationCenter.swift:57:88: error: cannot find type 'OperationQueue' in scope
55 | private extension MockNotificationCenter {
56 |
57 |     func mockAddObserverForName(_ name: NSNotification.Name?, object obj: Any?, queue: OperationQueue?, using block: @escaping (Notification) -> Void) -> NSObjectProtocol {
   |                                                                                        `- error: cannot find type 'OperationQueue' in scope
58 |         call(addObserverForNameRef, args: (name, obj, queue, block))
59 |     }
/host/spi-builder-workspace/Sources/MockingKit/Mocks/MockNotificationCenter.swift:14:45: error: generic parameter 'Arguments' could not be inferred
12 | open class MockNotificationCenter: NotificationCenter, Mockable, @unchecked Sendable {
13 |
14 |     public lazy var addObserverForNameRef = MockReference(mockAddObserverForName)
   |                                             `- error: generic parameter 'Arguments' could not be inferred
15 |     public lazy var addObserverWithSelectorRef = MockReference(mockAddObserverWithSelector)
16 |     public lazy var postNotificationRef = MockReference(mockPostNotification)
/host/spi-builder-workspace/Sources/MockingKit/MockReference.swift:15:29: note: 'Arguments' declared as parameter to type 'MockReference'
13 | /// Function references get unique IDs, which means that the
14 | /// mock reference instance can be uniquely identified.
15 | public struct MockReference<Arguments, Result>: Identifiable {
   |                             `- note: 'Arguments' declared as parameter to type 'MockReference'
16 |
17 |     public init(_ function: @escaping (Arguments) throws -> Result) {
/host/spi-builder-workspace/Sources/MockingKit/Mocks/MockNotificationCenter.swift:14:45: error: generic parameter 'Result' could not be inferred
12 | open class MockNotificationCenter: NotificationCenter, Mockable, @unchecked Sendable {
13 |
14 |     public lazy var addObserverForNameRef = MockReference(mockAddObserverForName)
   |                                             |- error: generic parameter 'Result' could not be inferred
   |                                             `- note: explicitly specify the generic arguments to fix this issue
15 |     public lazy var addObserverWithSelectorRef = MockReference(mockAddObserverWithSelector)
16 |     public lazy var postNotificationRef = MockReference(mockPostNotification)
/host/spi-builder-workspace/Sources/MockingKit/MockReference.swift:15:40: note: 'Result' declared as parameter to type 'MockReference'
13 | /// Function references get unique IDs, which means that the
14 | /// mock reference instance can be uniquely identified.
15 | public struct MockReference<Arguments, Result>: Identifiable {
   |                                        `- note: 'Result' declared as parameter to type 'MockReference'
16 |
17 |     public init(_ function: @escaping (Arguments) throws -> Result) {
/host/spi-builder-workspace/Sources/MockingKit/Mocks/MockNotificationCenter.swift:61:75: error: cannot find type 'Selector' in scope
59 |     }
60 |
61 |     func mockAddObserverWithSelector(_ observer: Any, selector aSelector: Selector, name aName: NSNotification.Name?, object anObject: Any?) {
   |                                                                           `- error: cannot find type 'Selector' in scope
62 |         call(addObserverWithSelectorRef, args: (observer, aSelector, aName, anObject))
63 |     }
/host/spi-builder-workspace/Sources/MockingKit/Mocks/MockNotificationCenter.swift:15:50: error: generic parameter 'Arguments' could not be inferred
13 |
14 |     public lazy var addObserverForNameRef = MockReference(mockAddObserverForName)
15 |     public lazy var addObserverWithSelectorRef = MockReference(mockAddObserverWithSelector)
   |                                                  `- error: generic parameter 'Arguments' could not be inferred
16 |     public lazy var postNotificationRef = MockReference(mockPostNotification)
17 |     public lazy var postNotificationNameRef = MockReference(mockPostNotificationName)
/host/spi-builder-workspace/Sources/MockingKit/MockReference.swift:15:29: note: 'Arguments' declared as parameter to type 'MockReference'
13 | /// Function references get unique IDs, which means that the
14 | /// mock reference instance can be uniquely identified.
15 | public struct MockReference<Arguments, Result>: Identifiable {
   |                             `- note: 'Arguments' declared as parameter to type 'MockReference'
16 |
17 |     public init(_ function: @escaping (Arguments) throws -> Result) {
/host/spi-builder-workspace/Sources/MockingKit/Mocks/MockNotificationCenter.swift:15:50: error: generic parameter 'Result' could not be inferred
13 |
14 |     public lazy var addObserverForNameRef = MockReference(mockAddObserverForName)
15 |     public lazy var addObserverWithSelectorRef = MockReference(mockAddObserverWithSelector)
   |                                                  |- error: generic parameter 'Result' could not be inferred
   |                                                  `- note: explicitly specify the generic arguments to fix this issue
16 |     public lazy var postNotificationRef = MockReference(mockPostNotification)
17 |     public lazy var postNotificationNameRef = MockReference(mockPostNotificationName)
/host/spi-builder-workspace/Sources/MockingKit/MockReference.swift:15:40: note: 'Result' declared as parameter to type 'MockReference'
13 | /// Function references get unique IDs, which means that the
14 | /// mock reference instance can be uniquely identified.
15 | public struct MockReference<Arguments, Result>: Identifiable {
   |                                        `- note: 'Result' declared as parameter to type 'MockReference'
16 |
17 |     public init(_ function: @escaping (Arguments) throws -> Result) {
/host/spi-builder-workspace/Sources/MockingKit/Mocks/MockNotificationCenter.swift:22:73: error: cannot find type 'Selector' in scope
20 |     public let mock = Mock()
21 |
22 |     open override func addObserver(_ observer: Any, selector aSelector: Selector, name aName: NSNotification.Name?, object anObject: Any?) {
   |                                                                         `- error: cannot find type 'Selector' in scope
23 |         mockAddObserverWithSelector(observer, selector: aSelector, name: aName, object: anObject)
24 |     }
/host/spi-builder-workspace/Sources/MockingKit/Mocks/MockNotificationCenter.swift:26:97: error: cannot find type 'OperationQueue' in scope
24 |     }
25 |
26 |     open override func addObserver(forName name: NSNotification.Name?, object obj: Any?, queue: OperationQueue?, using block: @escaping (Notification) -> Void) -> NSObjectProtocol {
   |                                                                                                 `- error: cannot find type 'OperationQueue' in scope
27 |         mockAddObserverForName(name, object: obj, queue: queue, using: block)
28 |     }
/host/spi-builder-workspace/Sources/MockingKit/Mocks/MockNotificationCenter.swift:30:24: error: method does not override any method from its superclass
28 |     }
29 |
30 |     open override func post(_ notification: Notification) {
   |                        `- error: method does not override any method from its superclass
31 |         mockPostNotification(notification)
32 |     }
/host/spi-builder-workspace/Sources/MockingKit/Mocks/MockNotificationCenter.swift:34:24: error: method does not override any method from its superclass
32 |     }
33 |
34 |     open override func post(name aName: NSNotification.Name, object anObject: Any?) {
   |                        `- error: method does not override any method from its superclass
35 |         mockPostNotificationName(name: aName, object: anObject, userInfo: nil)
36 |     }
/host/spi-builder-workspace/Sources/MockingKit/Mocks/MockNotificationCenter.swift:38:24: error: method does not override any method from its superclass
36 |     }
37 |
38 |     open override func post(name aName: NSNotification.Name, object anObject: Any?, userInfo aUserInfo: [AnyHashable: Any]? = nil) {
   |                        `- error: method does not override any method from its superclass
39 |         mockPostNotificationName(name: aName, object: anObject, userInfo: aUserInfo)
40 |     }
/host/spi-builder-workspace/Sources/MockingKit/Mocks/MockNotificationCenter.swift:42:24: error: method does not override any method from its superclass
40 |     }
41 |
42 |     open override func removeObserver(_ observer: Any) {
   |                        `- error: method does not override any method from its superclass
43 |         mockRemoveObserver(observer, name: nil, object: nil)
44 |     }
/host/spi-builder-workspace/Sources/MockingKit/Mocks/MockNotificationCenter.swift:46:24: error: method does not override any method from its superclass
44 |     }
45 |
46 |     open override func removeObserver(_ observer: Any, name aName: NSNotification.Name?, object anObject: Any?) {
   |                        `- error: method does not override any method from its superclass
47 |         mockRemoveObserver(observer, name: aName, object: anObject)
48 |     }
/host/spi-builder-workspace/Sources/MockingKit/Mocks/MockNotificationCenter.swift:12:36: error: cannot find type 'NotificationCenter' in scope
10 |
11 | /// This class can be used to mock `NotificationCenter`.
12 | open class MockNotificationCenter: NotificationCenter, Mockable, @unchecked Sendable {
   |                                    `- error: cannot find type 'NotificationCenter' in scope
13 |
14 |     public lazy var addObserverForNameRef = MockReference(mockAddObserverForName)
/host/spi-builder-workspace/Sources/MockingKit/Mocks/MockNotificationCenter.swift:62:9: error: generic parameter 'Result' could not be inferred
60 |
61 |     func mockAddObserverWithSelector(_ observer: Any, selector aSelector: Selector, name aName: NSNotification.Name?, object anObject: Any?) {
62 |         call(addObserverWithSelectorRef, args: (observer, aSelector, aName, anObject))
   |         `- error: generic parameter 'Result' could not be inferred
63 |     }
64 |
/host/spi-builder-workspace/Sources/MockingKit/Mockable+Call.swift:121:10: note: in call to function 'call(_:args:)'
119 |     ///   - ref: The mock reference to call.
120 |     ///   - args: The arguments to call the functions with.
121 |     func call<Arguments, Result>(
    |          `- note: in call to function 'call(_:args:)'
122 |         _ ref: MockReference<Arguments, Result?>,
123 |         args: Arguments
[4/15] Compiling MockingKit MockUserDefaults.swift
/host/spi-builder-workspace/Sources/MockingKit/Mocks/MockUserDefaults.swift:99:24: error: method does not override any method from its superclass
 97 |     }
 98 |
 99 |     open override func setValue(_ value: Any?, forKey key: String) {
    |                        `- error: method does not override any method from its superclass
100 |         setValueWithInstance(value, forKey: key)
101 |     }
[5/15] Compiling MockingKit Mockable+Reset.swift
[6/15] Compiling MockingKit Mockable.swift
[7/15] Compiling MockingKit Mockable+Inspect.swift
[8/15] Compiling MockingKit Mockable+Register.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[9/15] Compiling MockingKit AsyncMockReference.swift
[10/15] Compiling MockingKit Escaping.swift
[11/15] Compiling MockingKit Mock.swift
[12/15] Compiling MockingKit MockCall.swift
[13/15] Compiling MockingKit MockReference.swift
[14/15] Compiling MockingKit Mockable+Call.swift
[15/15] Emitting module MockingKit
/host/spi-builder-workspace/Sources/MockingKit/Mocks/MockNotificationCenter.swift:57:88: error: cannot find type 'OperationQueue' in scope
55 | private extension MockNotificationCenter {
56 |
57 |     func mockAddObserverForName(_ name: NSNotification.Name?, object obj: Any?, queue: OperationQueue?, using block: @escaping (Notification) -> Void) -> NSObjectProtocol {
   |                                                                                        `- error: cannot find type 'OperationQueue' in scope
58 |         call(addObserverForNameRef, args: (name, obj, queue, block))
59 |     }
/host/spi-builder-workspace/Sources/MockingKit/Mocks/MockNotificationCenter.swift:14:45: error: generic parameter 'Arguments' could not be inferred
12 | open class MockNotificationCenter: NotificationCenter, Mockable, @unchecked Sendable {
13 |
14 |     public lazy var addObserverForNameRef = MockReference(mockAddObserverForName)
   |                                             `- error: generic parameter 'Arguments' could not be inferred
15 |     public lazy var addObserverWithSelectorRef = MockReference(mockAddObserverWithSelector)
16 |     public lazy var postNotificationRef = MockReference(mockPostNotification)
/host/spi-builder-workspace/Sources/MockingKit/MockReference.swift:15:29: note: 'Arguments' declared as parameter to type 'MockReference'
13 | /// Function references get unique IDs, which means that the
14 | /// mock reference instance can be uniquely identified.
15 | public struct MockReference<Arguments, Result>: Identifiable {
   |                             `- note: 'Arguments' declared as parameter to type 'MockReference'
16 |
17 |     public init(_ function: @escaping (Arguments) throws -> Result) {
/host/spi-builder-workspace/Sources/MockingKit/Mocks/MockNotificationCenter.swift:14:45: error: generic parameter 'Result' could not be inferred
12 | open class MockNotificationCenter: NotificationCenter, Mockable, @unchecked Sendable {
13 |
14 |     public lazy var addObserverForNameRef = MockReference(mockAddObserverForName)
   |                                             |- error: generic parameter 'Result' could not be inferred
   |                                             `- note: explicitly specify the generic arguments to fix this issue
15 |     public lazy var addObserverWithSelectorRef = MockReference(mockAddObserverWithSelector)
16 |     public lazy var postNotificationRef = MockReference(mockPostNotification)
/host/spi-builder-workspace/Sources/MockingKit/MockReference.swift:15:40: note: 'Result' declared as parameter to type 'MockReference'
13 | /// Function references get unique IDs, which means that the
14 | /// mock reference instance can be uniquely identified.
15 | public struct MockReference<Arguments, Result>: Identifiable {
   |                                        `- note: 'Result' declared as parameter to type 'MockReference'
16 |
17 |     public init(_ function: @escaping (Arguments) throws -> Result) {
/host/spi-builder-workspace/Sources/MockingKit/Mocks/MockNotificationCenter.swift:61:75: error: cannot find type 'Selector' in scope
59 |     }
60 |
61 |     func mockAddObserverWithSelector(_ observer: Any, selector aSelector: Selector, name aName: NSNotification.Name?, object anObject: Any?) {
   |                                                                           `- error: cannot find type 'Selector' in scope
62 |         call(addObserverWithSelectorRef, args: (observer, aSelector, aName, anObject))
63 |     }
/host/spi-builder-workspace/Sources/MockingKit/Mocks/MockNotificationCenter.swift:15:50: error: generic parameter 'Arguments' could not be inferred
13 |
14 |     public lazy var addObserverForNameRef = MockReference(mockAddObserverForName)
15 |     public lazy var addObserverWithSelectorRef = MockReference(mockAddObserverWithSelector)
   |                                                  `- error: generic parameter 'Arguments' could not be inferred
16 |     public lazy var postNotificationRef = MockReference(mockPostNotification)
17 |     public lazy var postNotificationNameRef = MockReference(mockPostNotificationName)
/host/spi-builder-workspace/Sources/MockingKit/MockReference.swift:15:29: note: 'Arguments' declared as parameter to type 'MockReference'
13 | /// Function references get unique IDs, which means that the
14 | /// mock reference instance can be uniquely identified.
15 | public struct MockReference<Arguments, Result>: Identifiable {
   |                             `- note: 'Arguments' declared as parameter to type 'MockReference'
16 |
17 |     public init(_ function: @escaping (Arguments) throws -> Result) {
/host/spi-builder-workspace/Sources/MockingKit/Mocks/MockNotificationCenter.swift:15:50: error: generic parameter 'Result' could not be inferred
13 |
14 |     public lazy var addObserverForNameRef = MockReference(mockAddObserverForName)
15 |     public lazy var addObserverWithSelectorRef = MockReference(mockAddObserverWithSelector)
   |                                                  |- error: generic parameter 'Result' could not be inferred
   |                                                  `- note: explicitly specify the generic arguments to fix this issue
16 |     public lazy var postNotificationRef = MockReference(mockPostNotification)
17 |     public lazy var postNotificationNameRef = MockReference(mockPostNotificationName)
/host/spi-builder-workspace/Sources/MockingKit/MockReference.swift:15:40: note: 'Result' declared as parameter to type 'MockReference'
13 | /// Function references get unique IDs, which means that the
14 | /// mock reference instance can be uniquely identified.
15 | public struct MockReference<Arguments, Result>: Identifiable {
   |                                        `- note: 'Result' declared as parameter to type 'MockReference'
16 |
17 |     public init(_ function: @escaping (Arguments) throws -> Result) {
/host/spi-builder-workspace/Sources/MockingKit/Mocks/MockNotificationCenter.swift:22:73: error: cannot find type 'Selector' in scope
20 |     public let mock = Mock()
21 |
22 |     open override func addObserver(_ observer: Any, selector aSelector: Selector, name aName: NSNotification.Name?, object anObject: Any?) {
   |                                                                         `- error: cannot find type 'Selector' in scope
23 |         mockAddObserverWithSelector(observer, selector: aSelector, name: aName, object: anObject)
24 |     }
/host/spi-builder-workspace/Sources/MockingKit/Mocks/MockNotificationCenter.swift:26:97: error: cannot find type 'OperationQueue' in scope
24 |     }
25 |
26 |     open override func addObserver(forName name: NSNotification.Name?, object obj: Any?, queue: OperationQueue?, using block: @escaping (Notification) -> Void) -> NSObjectProtocol {
   |                                                                                                 `- error: cannot find type 'OperationQueue' in scope
27 |         mockAddObserverForName(name, object: obj, queue: queue, using: block)
28 |     }
/host/spi-builder-workspace/Sources/MockingKit/Mocks/MockNotificationCenter.swift:30:24: error: method does not override any method from its superclass
28 |     }
29 |
30 |     open override func post(_ notification: Notification) {
   |                        `- error: method does not override any method from its superclass
31 |         mockPostNotification(notification)
32 |     }
/host/spi-builder-workspace/Sources/MockingKit/Mocks/MockNotificationCenter.swift:34:24: error: method does not override any method from its superclass
32 |     }
33 |
34 |     open override func post(name aName: NSNotification.Name, object anObject: Any?) {
   |                        `- error: method does not override any method from its superclass
35 |         mockPostNotificationName(name: aName, object: anObject, userInfo: nil)
36 |     }
/host/spi-builder-workspace/Sources/MockingKit/Mocks/MockNotificationCenter.swift:38:24: error: method does not override any method from its superclass
36 |     }
37 |
38 |     open override func post(name aName: NSNotification.Name, object anObject: Any?, userInfo aUserInfo: [AnyHashable: Any]? = nil) {
   |                        `- error: method does not override any method from its superclass
39 |         mockPostNotificationName(name: aName, object: anObject, userInfo: aUserInfo)
40 |     }
/host/spi-builder-workspace/Sources/MockingKit/Mocks/MockNotificationCenter.swift:42:24: error: method does not override any method from its superclass
40 |     }
41 |
42 |     open override func removeObserver(_ observer: Any) {
   |                        `- error: method does not override any method from its superclass
43 |         mockRemoveObserver(observer, name: nil, object: nil)
44 |     }
/host/spi-builder-workspace/Sources/MockingKit/Mocks/MockNotificationCenter.swift:46:24: error: method does not override any method from its superclass
44 |     }
45 |
46 |     open override func removeObserver(_ observer: Any, name aName: NSNotification.Name?, object anObject: Any?) {
   |                        `- error: method does not override any method from its superclass
47 |         mockRemoveObserver(observer, name: aName, object: anObject)
48 |     }
/host/spi-builder-workspace/Sources/MockingKit/Mocks/MockNotificationCenter.swift:12:36: error: cannot find type 'NotificationCenter' in scope
10 |
11 | /// This class can be used to mock `NotificationCenter`.
12 | open class MockNotificationCenter: NotificationCenter, Mockable, @unchecked Sendable {
   |                                    `- error: cannot find type 'NotificationCenter' in scope
13 |
14 |     public lazy var addObserverForNameRef = MockReference(mockAddObserverForName)
/host/spi-builder-workspace/Sources/MockingKit/Mocks/MockUserDefaults.swift:99:24: error: method does not override any method from its superclass
 97 |     }
 98 |
 99 |     open override func setValue(_ value: Any?, forKey key: String) {
    |                        `- error: method does not override any method from its superclass
100 |         setValueWithInstance(value, forKey: key)
101 |     }
BUILD FAILURE 6.1 wasm