Build Information
Failed to build sMock with Swift 5.9 for Linux.
Build Command
docker run --rm -v "checkouts-4609320-0":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.22.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Alkenso/sMock.git
Reference: 1.2.0
Cloned https://github.com/Alkenso/sMock.git into spi-builder-workspace
SUCCESS checkout https://github.com/Alkenso/sMock.git at 1.2.0
========================================
Build
========================================
Selected platform: linux
Swift version: 5.9
Building package at path: spi-builder-workspace
Running build ...
docker run --rm -v "checkouts-4609320-0":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1
Building for debugging...
[1/6] Compiling sMock MockMethod.swift
[2/6] Compiling sMock sMock.swift
/host/spi-builder-workspace/Sources/sMock/sMock.swift:179:75: error: cannot find 'NSSelectorFromString' in scope
let builtInObservers = XCTestObservationCenter.shared.perform(NSSelectorFromString("observers")),
^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/sMock/sMock.swift:179:67: error: value of type 'XCTestObservationCenter' has no member 'perform'
let builtInObservers = XCTestObservationCenter.shared.perform(NSSelectorFromString("observers")),
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~
/host/spi-builder-workspace/Sources/sMock/sMock.swift:182:57: error: cannot find 'NSSelectorFromString' in scope
let currentCaseAny = misuseObserver.perform(NSSelectorFromString("currentTestCase")),
^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/sMock/sMock.swift:221:28: error: cannot find 'XCTSourceCodeLocation' in scope
let location = XCTSourceCodeLocation(filePath: _file, lineNumber: _line)
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/sMock/sMock.swift:222:27: error: cannot find 'XCTSourceCodeContext' in scope
let context = XCTSourceCodeContext(location: location)
^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/sMock/sMock.swift:223:25: error: cannot find 'XCTIssue' in scope
let issue = XCTIssue(type: .assertionFailure, compactDescription: description, detailedDescription: nil, sourceCodeContext: context, associatedError: nil, attachments: [])
^~~~~~~~
/host/spi-builder-workspace/Sources/sMock/sMock.swift:223:41: error: cannot infer contextual base in reference to member 'assertionFailure'
let issue = XCTIssue(type: .assertionFailure, compactDescription: description, detailedDescription: nil, sourceCodeContext: context, associatedError: nil, attachments: [])
~^~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/sMock/sMock.swift:223:113: error: 'nil' requires a contextual type
let issue = XCTIssue(type: .assertionFailure, compactDescription: description, detailedDescription: nil, sourceCodeContext: context, associatedError: nil, attachments: [])
^
/host/spi-builder-workspace/Sources/sMock/sMock.swift:223:163: error: 'nil' requires a contextual type
let issue = XCTIssue(type: .assertionFailure, compactDescription: description, detailedDescription: nil, sourceCodeContext: context, associatedError: nil, attachments: [])
^
/host/spi-builder-workspace/Sources/sMock/sMock.swift:224:49: error: value of type 'XCTestCase' has no member 'record'
MocksSupport.shared.currentTestCase.record(issue)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~
[3/6] Compiling sMock Matcher.swift
[4/6] Emitting module sMock
[5/6] Compiling sMock MockClosure.swift
[6/6] Compiling sMock _MockFunctionBase.swift
error: fatalError
BUILD FAILURE 5.9 linux
Build Machine: Linux 2