Build Information
Failed to build swiftymocky, reference master (3672ee
), with Swift 6.1 for Android on 28 May 2025 18:48:19 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/MakeAWishFoundation/SwiftyMocky.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/MakeAWishFoundation/SwiftyMocky
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at 3672eea Merge pull request #363 from mapierce/xcode-16-fixes
Cloned https://github.com/MakeAWishFoundation/SwiftyMocky.git
Revision (git rev-parse @):
3672eea08c7098214ac54ee26c7a7e39ea01a2f1
SUCCESS checkout https://github.com/MakeAWishFoundation/SwiftyMocky.git at master
========================================
Build
========================================
Selected platform: android
Swift version: 6.1
Building package at path: $PWD
https://github.com/MakeAWishFoundation/SwiftyMocky.git
https://github.com/MakeAWishFoundation/SwiftyMocky.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
{
"identity" : "shellout",
"requirement" : {
"range" : [
{
"lower_bound" : "2.3.0",
"upper_bound" : "3.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/JohnSundell/ShellOut"
},
{
"identity" : "xcodeproj",
"requirement" : {
"range" : [
{
"lower_bound" : "8.3.1",
"upper_bound" : "9.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/tuist/xcodeproj"
},
{
"identity" : "chalk",
"requirement" : {
"exact" : [
"0.2.1"
]
},
"type" : "sourceControl",
"url" : "https://github.com/luoxiu/Chalk"
},
{
"identity" : "commander",
"requirement" : {
"range" : [
{
"lower_bound" : "0.9.1",
"upper_bound" : "1.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/kylef/Commander"
},
{
"identity" : "pathkit",
"requirement" : {
"range" : [
{
"lower_bound" : "1.0.1",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/kylef/PathKit"
},
{
"identity" : "yams",
"requirement" : {
"range" : [
{
"lower_bound" : "5.0.1",
"upper_bound" : "6.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/jpsim/Yams"
}
],
"manifest_display_name" : "swiftymocky",
"name" : "swiftymocky",
"path" : "/host/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "SwiftyMocky",
"targets" : [
"SwiftyMocky"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "SwiftyPrototype",
"targets" : [
"SwiftyPrototype"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "swiftymocky",
"targets" : [
"SwiftyMockyCLI"
],
"type" : {
"executable" : null
}
}
],
"targets" : [
{
"c99name" : "SwiftyPrototype",
"module_type" : "SwiftTarget",
"name" : "SwiftyPrototype",
"path" : "Sources/SwiftyPrototype",
"product_memberships" : [
"SwiftyPrototype"
],
"sources" : [
"MockyAssert.swift",
"Shared/Count.swift",
"Shared/Countable.swift",
"Shared/GenericAttribute.swift",
"Shared/Matcher.swift",
"Shared/Mock+Assertions.swift",
"Shared/Mock.swift",
"Shared/Parameter+Compare.swift",
"Shared/Parameter+Optionals.swift",
"Shared/Parameter.swift",
"Shared/Policies.swift",
"Shared/Stubbing.swift",
"Shared/Utils.swift",
"SwiftyMockyTestObserver.swift"
],
"type" : "library"
},
{
"c99name" : "SwiftyMockyTests",
"module_type" : "SwiftTarget",
"name" : "SwiftyMockyTests",
"path" : "Tests/SwiftyMockyTests",
"sources" : [
"Mock.generated.swift",
"Shared/AssociatedTypes/SuggestionRepositoryTests.swift",
"Shared/Example 1/ProtocolsWithCollectionsTests.swift",
"Shared/Example 1/SimpleProtocolsTests.swift",
"Shared/Example 10/ProtocolWithGenericConstraintsTests.swift",
"Shared/Example 2/ProtocolWithThrowingMehtodsTests.swift",
"Shared/Example 3/ProtocolsWithCustomAttributesTests.swift",
"Shared/Example 4/ProtocolWithStaticMembersTests.swift",
"Shared/Example 5/ProtocolWithClosuresTests.swift",
"Shared/Example 6/ProtocolWithInitializersTests.swift",
"Shared/Example 7/ProtocolsWithGenericsTests.swift",
"Shared/Example 8/ProtocolWithPropertiesTests.swift",
"Shared/Example 9/ProtocolMethodsThatDifferOnlyInReturnTypeTests.swift",
"Shared/Other/ComplicatedServiceTests.swift",
"Shared/Other/ComposedServiceTests.swift",
"Shared/Other/CustomAssertionsTests.swift",
"Shared/Other/EdgeCasesTests.swift",
"Shared/Other/ExampleTests.swift",
"Shared/Other/ExpressibleByLiteralsTests.swift",
"Shared/Other/GenericProtocolsTests.swift",
"Shared/Other/InoutParameterTests.swift",
"Shared/Other/MatcherTests.swift",
"Shared/Other/MockClearTests.swift",
"Shared/Other/MultiThreadAccessTests.swift",
"Shared/Other/PropertiesHandlingTests.swift",
"Shared/Other/ProtocolWithAttributesTests.swift",
"Shared/Other/SampleServiceTests.swift",
"Shared/Other/SelfConstrainedProtocolTests.swift",
"Shared/Other/SimpleSequencingTests.swift",
"Shared/Other/SubscriptsTests.swift",
"Shared/Other/UnnamedAttributesTests.swift",
"Shared/Other/VariadicParametersTests.swift",
"Shared/Other/VerifyMessagesTests.swift",
"XCTestManifests.swift"
],
"target_dependencies" : [
"Mocky_Example_macOS",
"SwiftyMocky"
],
"type" : "test"
},
{
"c99name" : "SwiftyMockyCLICoreTests",
"module_type" : "SwiftTarget",
"name" : "SwiftyMockyCLICoreTests",
"path" : "Tests/SwiftyMockyCLICoreTests",
"sources" : [
"CommandLineInterfaceTests.swift",
"Mock.generated.swift",
"XCTestManifests.swift"
],
"target_dependencies" : [
"SwiftyMockyCLICore",
"SwiftyMocky"
],
"type" : "test"
},
{
"c99name" : "SwiftyMockyCLICore",
"module_type" : "SwiftTarget",
"name" : "SwiftyMockyCLICore",
"path" : "Sources/CLI/Core",
"product_dependencies" : [
"ShellOut",
"Chalk",
"XcodeProj",
"PathKit",
"Yams"
],
"product_memberships" : [
"swiftymocky"
],
"sources" : [
"Application.swift",
"Assets/Assets.swift",
"Assets/Messages.swift",
"Commands/GenerationController.swift",
"Commands/MacOS/InspectionController.swift",
"Commands/MacOS/MigrationController.swift",
"Commands/MacOS/ProjectSetupController.swift",
"Commands/MockfileInteractor.swift",
"Entities/MockConfiguration.swift",
"Entities/Mockfile.swift",
"Entities/SourceryConfiguration.swift",
"InstanceFactory.swift",
"InteractiveOptions/AddingOption.swift",
"InteractiveOptions/Booloption.swift",
"InteractiveOptions/ProjectOption.swift",
"InteractiveOptions/SelectableOption.swift",
"Utils/Global.swift",
"Utils/MacOS/XCodeProj+Extensions.swift",
"Utils/Message.swift",
"Utils/PathKit+Extensions.swift",
"Utils/ProjectFile.swift",
"Utils/ShellOut+Extensions.swift",
"Utils/WorkingDirectory.swift"
],
"type" : "library"
},
{
"c99name" : "SwiftyMockyCLI",
"module_type" : "SwiftTarget",
"name" : "SwiftyMockyCLI",
"path" : "Sources/CLI/App",
"product_dependencies" : [
"Commander"
],
"product_memberships" : [
"swiftymocky"
],
"sources" : [
"main.swift"
],
"target_dependencies" : [
"SwiftyMockyCLICore"
],
"type" : "executable"
},
{
"c99name" : "SwiftyMocky",
"module_type" : "SwiftTarget",
"name" : "SwiftyMocky",
"path" : "Sources/SwiftyMocky",
"product_memberships" : [
"SwiftyMocky"
],
"sources" : [
"ArgumentCaptor.swift",
"CustomAssertions.swift",
"MockyAssert.swift",
"Parameter+Literals.swift",
"Shared/Count.swift",
"Shared/Countable.swift",
"Shared/GenericAttribute.swift",
"Shared/Matcher.swift",
"Shared/Mock+Assertions.swift",
"Shared/Mock.swift",
"Shared/Parameter+Compare.swift",
"Shared/Parameter+Optionals.swift",
"Shared/Parameter.swift",
"Shared/Policies.swift",
"Shared/Stubbing.swift",
"Shared/Utils.swift",
"SwiftyMockyTestObserver.swift"
],
"type" : "library"
},
{
"c99name" : "Shared",
"module_type" : "SwiftTarget",
"name" : "Shared",
"path" : "Sources/Shared",
"sources" : [
"Count.swift",
"Countable.swift",
"GenericAttribute.swift",
"Matcher.swift",
"Mock+Assertions.swift",
"Mock.swift",
"Parameter+Compare.swift",
"Parameter+Optionals.swift",
"Parameter.swift",
"Policies.swift",
"Stubbing.swift",
"Utils.swift"
],
"type" : "library"
},
{
"c99name" : "RuntimeLibaryTests",
"module_type" : "SwiftTarget",
"name" : "RuntimeLibaryTests",
"path" : "Tests/RuntimeLibaryTests",
"sources" : [
"MatcherTests.swift",
"XCTestManifests.swift"
],
"target_dependencies" : [
"SwiftyMocky"
],
"type" : "test"
},
{
"c99name" : "Mocky_Example_macOS",
"module_type" : "SwiftTarget",
"name" : "Mocky_Example_macOS",
"path" : "SwiftyMocky-Example/Shared",
"sources" : [
"AssociatedTypes/SuggestionRepository.swift",
"Example 1/ProtocolsWithCollections.swift",
"Example 1/SimpleProtocols.swift",
"Example 10/ProtocolWithGenericConstraints.swift",
"Example 2/ProtocolWithThrowingMethods.swift",
"Example 3/ProtocolsWithCustomAttributes.swift",
"Example 4/ProtocolWithStaticMembers.swift",
"Example 5/ProtocolsWithClosures.swift",
"Example 6/ProtocolWithInitializers.swift",
"Example 7/ProtocolsWithGenerics.swift",
"Example 8/ProtocolWithProperties.swift",
"Example 9/ProtocolMethodsThatDifferOnlyInReturnType.swift",
"Model/Item.swift",
"Model/Models.swift",
"Other/AllLiteralsContainerProtocol.swift",
"Other/EdgeCasesProtocols.swift",
"Other/ExampleProtocols.swift",
"Other/Excluded.generated.swift",
"Other/GenericProtocols.swift",
"Other/InoutParameterProtocols.swift",
"Other/ItemsRepository.swift",
"Other/MultiThreadAccess.swift",
"Other/NonSwiftProtocol.swift",
"Other/ProtocolWithAttributes.swift",
"Other/ProtocolWithMethodWithManyParameters.swift",
"Other/ProtocolWithSubscripts.swift",
"Other/SampleService.swift",
"Other/SelfConstrainedProtocol.swift",
"Other/UnnamedAttributesProtocol.swift",
"Other/VariadicParametersProtocol.swift"
],
"type" : "library"
}
],
"tools_version" : "4.2"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 -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
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
Fetching https://github.com/kylef/Commander
Fetching https://github.com/jpsim/Yams
Fetching https://github.com/tuist/xcodeproj
Fetching https://github.com/kylef/PathKit
Fetching https://github.com/luoxiu/Chalk
Fetching https://github.com/JohnSundell/ShellOut
[16/1588] Fetching commander
[208/1917] Fetching commander, chalk
[1918/2877] Fetching commander, chalk, shellout
[2878/4288] Fetching commander, chalk, shellout, pathkit
[4289/14945] Fetching commander, chalk, shellout, pathkit, yams
Fetched https://github.com/JohnSundell/ShellOut from cache (0.37s)
[4181/13985] Fetching commander, chalk, pathkit, yams
Fetched https://github.com/luoxiu/Chalk from cache (0.38s)
Fetched https://github.com/kylef/PathKit from cache (0.38s)
[2548/12245] Fetching commander, yams
[3188/35535] Fetching commander, yams, xcodeproj
Fetched https://github.com/jpsim/Yams from cache (1.88s)
Fetched https://github.com/kylef/Commander from cache (2.25s)
Fetched https://github.com/tuist/xcodeproj from cache (2.31s)
Computing version for https://github.com/kylef/PathKit
Computed https://github.com/kylef/PathKit at 1.0.1 (3.27s)
Fetching https://github.com/kylef/Spectre.git
[1/1021] Fetching spectre
Fetched https://github.com/kylef/Spectre.git from cache (0.41s)
Computing version for https://github.com/luoxiu/Chalk
Computed https://github.com/luoxiu/Chalk at 0.2.1 (3.74s)
Fetching https://github.com/luoxiu/Rainbow
[1/234] Fetching rainbow
Fetched https://github.com/luoxiu/Rainbow from cache (0.32s)
Computing version for https://github.com/JohnSundell/ShellOut
Computed https://github.com/JohnSundell/ShellOut at 2.3.0 (0.91s)
Computing version for https://github.com/kylef/Commander
Computed https://github.com/kylef/Commander at 0.9.2 (3.18s)
Computing version for https://github.com/kylef/Spectre.git
Computed https://github.com/kylef/Spectre.git at 0.10.1 (1.04s)
Computing version for https://github.com/luoxiu/Rainbow
Computed https://github.com/luoxiu/Rainbow at 0.1.1 (0.68s)
Computing version for https://github.com/jpsim/Yams
Computed https://github.com/jpsim/Yams at 5.4.0 (4.39s)
Computing version for https://github.com/tuist/xcodeproj
Computed https://github.com/tuist/xcodeproj at 8.27.7 (0.50s)
Fetching https://github.com/tadija/AEXML.git
[1/2127] Fetching aexml
Fetched https://github.com/tadija/AEXML.git from cache (0.34s)
Computing version for https://github.com/tadija/AEXML.git
Computed https://github.com/tadija/AEXML.git at 4.7.0 (1.33s)
Creating working copy for https://github.com/kylef/Spectre.git
Working copy of https://github.com/kylef/Spectre.git resolved at 0.10.1
Creating working copy for https://github.com/JohnSundell/ShellOut
Working copy of https://github.com/JohnSundell/ShellOut resolved at 2.3.0
Creating working copy for https://github.com/tadija/AEXML.git
Working copy of https://github.com/tadija/AEXML.git resolved at 4.7.0
Creating working copy for https://github.com/kylef/PathKit
Working copy of https://github.com/kylef/PathKit resolved at 1.0.1
Creating working copy for https://github.com/jpsim/Yams
Working copy of https://github.com/jpsim/Yams resolved at 5.4.0
Creating working copy for https://github.com/kylef/Commander
Working copy of https://github.com/kylef/Commander resolved at 0.9.2
Creating working copy for https://github.com/luoxiu/Rainbow
Working copy of https://github.com/luoxiu/Rainbow resolved at 0.1.1
Creating working copy for https://github.com/luoxiu/Chalk
Working copy of https://github.com/luoxiu/Chalk resolved at 0.2.1
Creating working copy for https://github.com/tuist/xcodeproj
Working copy of https://github.com/tuist/xcodeproj resolved at 8.27.7
Building for debugging...
[0/33] Write sources
[14/33] Compiling writer.c
[15/33] Compiling reader.c
[16/33] Compiling api.c
[17/33] Compiling parser.c
[18/33] Compiling emitter.c
[19/33] Write swift-version-24593BA9C3E375BF.txt
[20/33] Compiling scanner.c
[22/120] Emitting module SwiftyMocky
/host/spi-builder-workspace/Sources/SwiftyMocky/MockyAssert.swift:14:23: warning: static property 'handler' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
12 | /// You can use it to define assertion behaviour.
13 | /// Leave blank to not assert at all.
14 | public static var handler: ((Bool, String, StaticString, UInt) -> Void)?
| |- warning: static property 'handler' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'handler' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'handler' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 | }
16 |
/host/spi-builder-workspace/Sources/SwiftyMocky/Shared/Matcher.swift:6:23: warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
4 | public class Matcher {
5 | /// Shared **Matcher** instance
6 | public static var `default` = Matcher()
| |- warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'default' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
7 | /// [Internal] Matchers storage
8 | private var matchers: [(Mirror,Any)] = []
/host/spi-builder-workspace/Sources/SwiftyMocky/Shared/Matcher.swift:14:23: warning: static property 'fatalErrorHandler' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
12 | private var line: UInt?
13 | /// [Internal] matcher fatal error handler
14 | public static var fatalErrorHandler: (String, StaticString, UInt) -> Void = { _,_,_ in}
| |- warning: static property 'fatalErrorHandler' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'fatalErrorHandler' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'fatalErrorHandler' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 |
16 | /// Create new clean matcher instance.
/host/spi-builder-workspace/Sources/SwiftyMocky/Shared/Mock+Assertions.swift:149:24: warning: static property 'handler' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
147 | public struct FatalErrorUtil {
148 | /// [Internal] Handler
149 | private static var handler: (String) -> Never = {
| |- warning: static property 'handler' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'handler' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'handler' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
150 | print($0)
151 | exit(0)
/host/spi-builder-workspace/Sources/SwiftyMocky/Shared/Mock+Assertions.swift:154:24: warning: static property 'defalutHandler' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
152 | }
153 | /// [Internal] Default handler
154 | private static var defalutHandler: (String) -> Never = {
| |- warning: static property 'defalutHandler' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defalutHandler' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defalutHandler' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
155 | print($0)
156 | exit(0)
/host/spi-builder-workspace/Sources/SwiftyMocky/SwiftyMockyTestObserver.swift:8:24: warning: static property 'currentTestCase' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
6 | public class SwiftyMockyTestObserver: NSObject, XCTestObservation {
7 | /// [Internal] Current test case
8 | private static var currentTestCase: XCTestCase?
| |- warning: static property 'currentTestCase' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'currentTestCase' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'currentTestCase' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
9 | /// [Internal] Setup observing once
10 | private static let setupBlock: (() -> Void) = {
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/SwiftyMocky/SwiftyMockyTestObserver.swift:10:24: warning: static property 'setupBlock' is not concurrency-safe because non-'Sendable' type '() -> Void' may have shared mutable state; this is an error in the Swift 6 language mode
8 | private static var currentTestCase: XCTestCase?
9 | /// [Internal] Setup observing once
10 | private static let setupBlock: (() -> Void) = {
| |- warning: static property 'setupBlock' is not concurrency-safe because non-'Sendable' type '() -> Void' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'setupBlock' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
11 | Matcher.fatalErrorHandler = SwiftyMockyTestObserver.handleFatalError
12 | let addObserver = { XCTestObservationCenter.shared.addTestObserver(SwiftyMockyTestObserver()) }
[23/122] Emitting module Rainbow
error: emit-module command failed with exit code 1 (use -v to see invocation)
[24/122] Emitting module Mocky_Example_macOS
/host/spi-builder-workspace/SwiftyMocky-Example/Shared/Other/InoutParameterProtocols.swift:13:39: error: cannot find type 'URLRequest' in scope
11 | //sourcery: AutoMockable
12 | protocol InoutProtocol: AnyObject {
13 | func passThisAsInOut(value: inout URLRequest)
| `- error: cannot find type 'URLRequest' in scope
14 | func returnAndInOut(value: inout Int) -> String
15 | func genericInOutClosure<T>(closure: (inout T) -> Void)
/host/spi-builder-workspace/SwiftyMocky-Example/Shared/Other/NonSwiftProtocol.swift:12:2: error: Objective-C interoperability is disabled
10 |
11 | //sourcery: AutoMockable
12 | @objc protocol NonSwiftProtocol {
| `- error: Objective-C interoperability is disabled
13 | @objc optional func returnNoting()
14 | func someMethod()
/host/spi-builder-workspace/SwiftyMocky-Example/Shared/Other/NonSwiftProtocol.swift:13:11: error: 'optional' can only be applied to members of an @objc protocol
11 | //sourcery: AutoMockable
12 | @objc protocol NonSwiftProtocol {
13 | @objc optional func returnNoting()
| `- error: 'optional' can only be applied to members of an @objc protocol
14 | func someMethod()
15 | }
/host/spi-builder-workspace/SwiftyMocky-Example/Shared/Other/NonSwiftProtocol.swift:13:6: error: @objc can only be used with members of classes, @objc protocols, and concrete extensions of classes
11 | //sourcery: AutoMockable
12 | @objc protocol NonSwiftProtocol {
13 | @objc optional func returnNoting()
| `- error: @objc can only be used with members of classes, @objc protocols, and concrete extensions of classes
14 | func someMethod()
15 | }
/host/spi-builder-workspace/SwiftyMocky-Example/Shared/Other/NonSwiftProtocol.swift:18:2: error: Objective-C interoperability is disabled
16 |
17 | //sourcery: AutoMockable
18 | @objc(PRProtocolWithObjc) public protocol ProtocolWithObjc {
| `- error: Objective-C interoperability is disabled
19 |
20 | @objc(doStaticStuffWithParameter1: andParameter2:)
/host/spi-builder-workspace/SwiftyMocky-Example/Shared/Other/NonSwiftProtocol.swift:20:6: error: @objc can only be used with members of classes, @objc protocols, and concrete extensions of classes
18 | @objc(PRProtocolWithObjc) public protocol ProtocolWithObjc {
19 |
20 | @objc(doStaticStuffWithParameter1: andParameter2:)
| `- error: @objc can only be used with members of classes, @objc protocols, and concrete extensions of classes
21 | static func doStaticStuff(parameter1: String, parameter2: String)
22 |
/host/spi-builder-workspace/SwiftyMocky-Example/Shared/Other/NonSwiftProtocol.swift:23:6: error: @objc can only be used with members of classes, @objc protocols, and concrete extensions of classes
21 | static func doStaticStuff(parameter1: String, parameter2: String)
22 |
23 | @objc(doStuffWithParameter1: andParameter2:)
| `- error: @objc can only be used with members of classes, @objc protocols, and concrete extensions of classes
24 | func doStuff(parameter1: String, parameter2: String)
25 | }
/host/spi-builder-workspace/SwiftyMocky-Example/Shared/Other/ProtocolWithAttributes.swift:3:24: error: Objective-C interoperability is disabled
1 | import Foundation
2 |
3 | @available(iOS 14, *) @objc
| `- error: Objective-C interoperability is disabled
4 | protocol ProtocolWithAttributes: AutoMockable {
5 | func funcA()
/host/spi-builder-workspace/SwiftyMocky-Example/Shared/Other/SampleService.swift:11:2: error: Objective-C interoperability is disabled
9 | import Foundation
10 |
11 | @objc public protocol AutoMockable { }
| `- error: Objective-C interoperability is disabled
12 |
13 | struct Point {
[25/122] Compiling Mocky_Example_macOS SuggestionRepository.swift
[26/122] Compiling Mocky_Example_macOS ProtocolsWithCollections.swift
[27/122] Compiling Mocky_Example_macOS SimpleProtocols.swift
[28/122] Compiling Mocky_Example_macOS ProtocolWithGenericConstraints.swift
[29/125] Compiling Mocky_Example_macOS ProtocolWithThrowingMethods.swift
[30/125] Compiling Mocky_Example_macOS ProtocolsWithCustomAttributes.swift
[31/125] Compiling Mocky_Example_macOS ProtocolWithStaticMembers.swift
[32/125] Compiling Mocky_Example_macOS ProtocolsWithClosures.swift
[33/125] Emitting module ShellOut
[34/125] Compiling ShellOut ShellOut.swift
[35/125] Compiling Mocky_Example_macOS Models.swift
[36/125] Compiling Mocky_Example_macOS AllLiteralsContainerProtocol.swift
[37/126] Compiling Shared Policies.swift
[39/127] Compiling Mocky_Example_macOS ProtocolMethodsThatDifferOnlyInReturnType.swift
[40/127] Compiling Mocky_Example_macOS Item.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[41/127] Emitting module PathKit
/host/spi-builder-workspace/.build/checkouts/PathKit/Sources/PathKit.swift:8:8: error: no such module 'Darwin'
6 | let system_glob = Glibc.glob
7 | #else
8 | import Darwin
| `- error: no such module 'Darwin'
9 |
10 | let system_glob = Darwin.glob
[42/127] Compiling PathKit PathKit.swift
/host/spi-builder-workspace/.build/checkouts/PathKit/Sources/PathKit.swift:8:8: error: no such module 'Darwin'
6 | let system_glob = Glibc.glob
7 | #else
8 | import Darwin
| `- error: no such module 'Darwin'
9 |
10 | let system_glob = Darwin.glob
[43/127] Compiling Rainbow Color+Cocoa.swift
/host/spi-builder-workspace/Sources/SwiftyMocky/SwiftyMockyTestObserver.swift:8:24: warning: static property 'currentTestCase' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
6 | public class SwiftyMockyTestObserver: NSObject, XCTestObservation {
7 | /// [Internal] Current test case
8 | private static var currentTestCase: XCTestCase?
| |- warning: static property 'currentTestCase' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'currentTestCase' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'currentTestCase' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
9 | /// [Internal] Setup observing once
10 | private static let setupBlock: (() -> Void) = {
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/SwiftyMocky/SwiftyMockyTestObserver.swift:10:24: warning: static property 'setupBlock' is not concurrency-safe because non-'Sendable' type '() -> Void' may have shared mutable state; this is an error in the Swift 6 language mode
8 | private static var currentTestCase: XCTestCase?
9 | /// [Internal] Setup observing once
10 | private static let setupBlock: (() -> Void) = {
| |- warning: static property 'setupBlock' is not concurrency-safe because non-'Sendable' type '() -> Void' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'setupBlock' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
11 | Matcher.fatalErrorHandler = SwiftyMockyTestObserver.handleFatalError
12 | let addObserver = { XCTestObservationCenter.shared.addTestObserver(SwiftyMockyTestObserver()) }
/host/spi-builder-workspace/Sources/SwiftyMocky/SwiftyMockyTestObserver.swift:59:29: error: cannot find 'XCTIssue' in scope
57 | let methodName = getNameOfExtecutedTestCase(testCase)
58 | if let name = methodName, let failingLine = FilesExlorer().findTestCaseLine(for: name, file: file) {
59 | testCase.record(XCTIssue(
| `- error: cannot find 'XCTIssue' in scope
60 | type: .system,
61 | compactDescription: message,
/host/spi-builder-workspace/Sources/SwiftyMocky/SwiftyMockyTestObserver.swift:59:22: error: value of type 'XCTestCase' has no member 'record'
57 | let methodName = getNameOfExtecutedTestCase(testCase)
58 | if let name = methodName, let failingLine = FilesExlorer().findTestCaseLine(for: name, file: file) {
59 | testCase.record(XCTIssue(
| `- error: value of type 'XCTestCase' has no member 'record'
60 | type: .system,
61 | compactDescription: message,
/host/spi-builder-workspace/Sources/SwiftyMocky/SwiftyMockyTestObserver.swift:60:24: error: cannot infer contextual base in reference to member 'system'
58 | if let name = methodName, let failingLine = FilesExlorer().findTestCaseLine(for: name, file: file) {
59 | testCase.record(XCTIssue(
60 | type: .system,
| `- error: cannot infer contextual base in reference to member 'system'
61 | compactDescription: message,
62 | detailedDescription: nil,
/host/spi-builder-workspace/Sources/SwiftyMocky/SwiftyMockyTestObserver.swift:62:38: error: 'nil' requires a contextual type
60 | type: .system,
61 | compactDescription: message,
62 | detailedDescription: nil,
| `- error: 'nil' requires a contextual type
63 | sourceCodeContext: .init(location: .init(filePath: file.description, lineNumber: Int(failingLine))),
64 | associatedError: nil,
/host/spi-builder-workspace/Sources/SwiftyMocky/SwiftyMockyTestObserver.swift:63:37: error: cannot infer contextual base in reference to member 'init'
61 | compactDescription: message,
62 | detailedDescription: nil,
63 | sourceCodeContext: .init(location: .init(filePath: file.description, lineNumber: Int(failingLine))),
| `- error: cannot infer contextual base in reference to member 'init'
64 | associatedError: nil,
65 | attachments: []
/host/spi-builder-workspace/Sources/SwiftyMocky/SwiftyMockyTestObserver.swift:63:53: error: cannot infer contextual base in reference to member 'init'
61 | compactDescription: message,
62 | detailedDescription: nil,
63 | sourceCodeContext: .init(location: .init(filePath: file.description, lineNumber: Int(failingLine))),
| `- error: cannot infer contextual base in reference to member 'init'
64 | associatedError: nil,
65 | attachments: []
[44/127] Compiling AEXML Options.swift
[45/127] Compiling AEXML Builders.swift
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
[0/1] Planning build
Building for debugging...
[0/13] Write swift-version-24593BA9C3E375BF.txt
[2/113] Compiling Shared Stubbing.swift
[3/114] Compiling Shared GenericAttribute.swift
[4/114] Compiling Shared Matcher.swift
[5/114] Compiling Shared Count.swift
[6/114] Compiling Shared Countable.swift
[7/117] Compiling Mocky_Example_macOS ExampleProtocols.swift
/host/spi-builder-workspace/SwiftyMocky-Example/Shared/Other/InoutParameterProtocols.swift:13:39: error: cannot find type 'URLRequest' in scope
11 | //sourcery: AutoMockable
12 | protocol InoutProtocol: AnyObject {
13 | func passThisAsInOut(value: inout URLRequest)
| `- error: cannot find type 'URLRequest' in scope
14 | func returnAndInOut(value: inout Int) -> String
15 | func genericInOutClosure<T>(closure: (inout T) -> Void)
[8/117] Compiling Mocky_Example_macOS Excluded.generated.swift
/host/spi-builder-workspace/SwiftyMocky-Example/Shared/Other/InoutParameterProtocols.swift:13:39: error: cannot find type 'URLRequest' in scope
11 | //sourcery: AutoMockable
12 | protocol InoutProtocol: AnyObject {
13 | func passThisAsInOut(value: inout URLRequest)
| `- error: cannot find type 'URLRequest' in scope
14 | func returnAndInOut(value: inout Int) -> String
15 | func genericInOutClosure<T>(closure: (inout T) -> Void)
[9/117] Compiling Mocky_Example_macOS GenericProtocols.swift
/host/spi-builder-workspace/SwiftyMocky-Example/Shared/Other/InoutParameterProtocols.swift:13:39: error: cannot find type 'URLRequest' in scope
11 | //sourcery: AutoMockable
12 | protocol InoutProtocol: AnyObject {
13 | func passThisAsInOut(value: inout URLRequest)
| `- error: cannot find type 'URLRequest' in scope
14 | func returnAndInOut(value: inout Int) -> String
15 | func genericInOutClosure<T>(closure: (inout T) -> Void)
[10/117] Compiling Mocky_Example_macOS InoutParameterProtocols.swift
/host/spi-builder-workspace/SwiftyMocky-Example/Shared/Other/InoutParameterProtocols.swift:13:39: error: cannot find type 'URLRequest' in scope
11 | //sourcery: AutoMockable
12 | protocol InoutProtocol: AnyObject {
13 | func passThisAsInOut(value: inout URLRequest)
| `- error: cannot find type 'URLRequest' in scope
14 | func returnAndInOut(value: inout Int) -> String
15 | func genericInOutClosure<T>(closure: (inout T) -> Void)
[11/117] Compiling Mocky_Example_macOS ItemsRepository.swift
/host/spi-builder-workspace/SwiftyMocky-Example/Shared/Other/NonSwiftProtocol.swift:12:2: error: Objective-C interoperability is disabled
10 |
11 | //sourcery: AutoMockable
12 | @objc protocol NonSwiftProtocol {
| `- error: Objective-C interoperability is disabled
13 | @objc optional func returnNoting()
14 | func someMethod()
/host/spi-builder-workspace/SwiftyMocky-Example/Shared/Other/NonSwiftProtocol.swift:13:11: error: 'optional' can only be applied to members of an @objc protocol
11 | //sourcery: AutoMockable
12 | @objc protocol NonSwiftProtocol {
13 | @objc optional func returnNoting()
| `- error: 'optional' can only be applied to members of an @objc protocol
14 | func someMethod()
15 | }
/host/spi-builder-workspace/SwiftyMocky-Example/Shared/Other/NonSwiftProtocol.swift:13:6: error: @objc can only be used with members of classes, @objc protocols, and concrete extensions of classes
11 | //sourcery: AutoMockable
12 | @objc protocol NonSwiftProtocol {
13 | @objc optional func returnNoting()
| `- error: @objc can only be used with members of classes, @objc protocols, and concrete extensions of classes
14 | func someMethod()
15 | }
/host/spi-builder-workspace/SwiftyMocky-Example/Shared/Other/NonSwiftProtocol.swift:18:2: error: Objective-C interoperability is disabled
16 |
17 | //sourcery: AutoMockable
18 | @objc(PRProtocolWithObjc) public protocol ProtocolWithObjc {
| `- error: Objective-C interoperability is disabled
19 |
20 | @objc(doStaticStuffWithParameter1: andParameter2:)
/host/spi-builder-workspace/SwiftyMocky-Example/Shared/Other/NonSwiftProtocol.swift:20:6: error: @objc can only be used with members of classes, @objc protocols, and concrete extensions of classes
18 | @objc(PRProtocolWithObjc) public protocol ProtocolWithObjc {
19 |
20 | @objc(doStaticStuffWithParameter1: andParameter2:)
| `- error: @objc can only be used with members of classes, @objc protocols, and concrete extensions of classes
21 | static func doStaticStuff(parameter1: String, parameter2: String)
22 |
/host/spi-builder-workspace/SwiftyMocky-Example/Shared/Other/NonSwiftProtocol.swift:23:6: error: @objc can only be used with members of classes, @objc protocols, and concrete extensions of classes
21 | static func doStaticStuff(parameter1: String, parameter2: String)
22 |
23 | @objc(doStuffWithParameter1: andParameter2:)
| `- error: @objc can only be used with members of classes, @objc protocols, and concrete extensions of classes
24 | func doStuff(parameter1: String, parameter2: String)
25 | }
/host/spi-builder-workspace/SwiftyMocky-Example/Shared/Other/ProtocolWithAttributes.swift:3:24: error: Objective-C interoperability is disabled
1 | import Foundation
2 |
3 | @available(iOS 14, *) @objc
| `- error: Objective-C interoperability is disabled
4 | protocol ProtocolWithAttributes: AutoMockable {
5 | func funcA()
[12/117] Compiling Mocky_Example_macOS MultiThreadAccess.swift
/host/spi-builder-workspace/SwiftyMocky-Example/Shared/Other/NonSwiftProtocol.swift:12:2: error: Objective-C interoperability is disabled
10 |
11 | //sourcery: AutoMockable
12 | @objc protocol NonSwiftProtocol {
| `- error: Objective-C interoperability is disabled
13 | @objc optional func returnNoting()
14 | func someMethod()
/host/spi-builder-workspace/SwiftyMocky-Example/Shared/Other/NonSwiftProtocol.swift:13:11: error: 'optional' can only be applied to members of an @objc protocol
11 | //sourcery: AutoMockable
12 | @objc protocol NonSwiftProtocol {
13 | @objc optional func returnNoting()
| `- error: 'optional' can only be applied to members of an @objc protocol
14 | func someMethod()
15 | }
/host/spi-builder-workspace/SwiftyMocky-Example/Shared/Other/NonSwiftProtocol.swift:13:6: error: @objc can only be used with members of classes, @objc protocols, and concrete extensions of classes
11 | //sourcery: AutoMockable
12 | @objc protocol NonSwiftProtocol {
13 | @objc optional func returnNoting()
| `- error: @objc can only be used with members of classes, @objc protocols, and concrete extensions of classes
14 | func someMethod()
15 | }
/host/spi-builder-workspace/SwiftyMocky-Example/Shared/Other/NonSwiftProtocol.swift:18:2: error: Objective-C interoperability is disabled
16 |
17 | //sourcery: AutoMockable
18 | @objc(PRProtocolWithObjc) public protocol ProtocolWithObjc {
| `- error: Objective-C interoperability is disabled
19 |
20 | @objc(doStaticStuffWithParameter1: andParameter2:)
/host/spi-builder-workspace/SwiftyMocky-Example/Shared/Other/NonSwiftProtocol.swift:20:6: error: @objc can only be used with members of classes, @objc protocols, and concrete extensions of classes
18 | @objc(PRProtocolWithObjc) public protocol ProtocolWithObjc {
19 |
20 | @objc(doStaticStuffWithParameter1: andParameter2:)
| `- error: @objc can only be used with members of classes, @objc protocols, and concrete extensions of classes
21 | static func doStaticStuff(parameter1: String, parameter2: String)
22 |
/host/spi-builder-workspace/SwiftyMocky-Example/Shared/Other/NonSwiftProtocol.swift:23:6: error: @objc can only be used with members of classes, @objc protocols, and concrete extensions of classes
21 | static func doStaticStuff(parameter1: String, parameter2: String)
22 |
23 | @objc(doStuffWithParameter1: andParameter2:)
| `- error: @objc can only be used with members of classes, @objc protocols, and concrete extensions of classes
24 | func doStuff(parameter1: String, parameter2: String)
25 | }
/host/spi-builder-workspace/SwiftyMocky-Example/Shared/Other/ProtocolWithAttributes.swift:3:24: error: Objective-C interoperability is disabled
1 | import Foundation
2 |
3 | @available(iOS 14, *) @objc
| `- error: Objective-C interoperability is disabled
4 | protocol ProtocolWithAttributes: AutoMockable {
5 | func funcA()
[13/117] Compiling Mocky_Example_macOS NonSwiftProtocol.swift
/host/spi-builder-workspace/SwiftyMocky-Example/Shared/Other/NonSwiftProtocol.swift:12:2: error: Objective-C interoperability is disabled
10 |
11 | //sourcery: AutoMockable
12 | @objc protocol NonSwiftProtocol {
| `- error: Objective-C interoperability is disabled
13 | @objc optional func returnNoting()
14 | func someMethod()
/host/spi-builder-workspace/SwiftyMocky-Example/Shared/Other/NonSwiftProtocol.swift:13:11: error: 'optional' can only be applied to members of an @objc protocol
11 | //sourcery: AutoMockable
12 | @objc protocol NonSwiftProtocol {
13 | @objc optional func returnNoting()
| `- error: 'optional' can only be applied to members of an @objc protocol
14 | func someMethod()
15 | }
/host/spi-builder-workspace/SwiftyMocky-Example/Shared/Other/NonSwiftProtocol.swift:13:6: error: @objc can only be used with members of classes, @objc protocols, and concrete extensions of classes
11 | //sourcery: AutoMockable
12 | @objc protocol NonSwiftProtocol {
13 | @objc optional func returnNoting()
| `- error: @objc can only be used with members of classes, @objc protocols, and concrete extensions of classes
14 | func someMethod()
15 | }
/host/spi-builder-workspace/SwiftyMocky-Example/Shared/Other/NonSwiftProtocol.swift:18:2: error: Objective-C interoperability is disabled
16 |
17 | //sourcery: AutoMockable
18 | @objc(PRProtocolWithObjc) public protocol ProtocolWithObjc {
| `- error: Objective-C interoperability is disabled
19 |
20 | @objc(doStaticStuffWithParameter1: andParameter2:)
/host/spi-builder-workspace/SwiftyMocky-Example/Shared/Other/NonSwiftProtocol.swift:20:6: error: @objc can only be used with members of classes, @objc protocols, and concrete extensions of classes
18 | @objc(PRProtocolWithObjc) public protocol ProtocolWithObjc {
19 |
20 | @objc(doStaticStuffWithParameter1: andParameter2:)
| `- error: @objc can only be used with members of classes, @objc protocols, and concrete extensions of classes
21 | static func doStaticStuff(parameter1: String, parameter2: String)
22 |
/host/spi-builder-workspace/SwiftyMocky-Example/Shared/Other/NonSwiftProtocol.swift:23:6: error: @objc can only be used with members of classes, @objc protocols, and concrete extensions of classes
21 | static func doStaticStuff(parameter1: String, parameter2: String)
22 |
23 | @objc(doStuffWithParameter1: andParameter2:)
| `- error: @objc can only be used with members of classes, @objc protocols, and concrete extensions of classes
24 | func doStuff(parameter1: String, parameter2: String)
25 | }
/host/spi-builder-workspace/SwiftyMocky-Example/Shared/Other/ProtocolWithAttributes.swift:3:24: error: Objective-C interoperability is disabled
1 | import Foundation
2 |
3 | @available(iOS 14, *) @objc
| `- error: Objective-C interoperability is disabled
4 | protocol ProtocolWithAttributes: AutoMockable {
5 | func funcA()
[14/117] Compiling Mocky_Example_macOS ProtocolWithAttributes.swift
/host/spi-builder-workspace/SwiftyMocky-Example/Shared/Other/NonSwiftProtocol.swift:12:2: error: Objective-C interoperability is disabled
10 |
11 | //sourcery: AutoMockable
12 | @objc protocol NonSwiftProtocol {
| `- error: Objective-C interoperability is disabled
13 | @objc optional func returnNoting()
14 | func someMethod()
/host/spi-builder-workspace/SwiftyMocky-Example/Shared/Other/NonSwiftProtocol.swift:13:11: error: 'optional' can only be applied to members of an @objc protocol
11 | //sourcery: AutoMockable
12 | @objc protocol NonSwiftProtocol {
13 | @objc optional func returnNoting()
| `- error: 'optional' can only be applied to members of an @objc protocol
14 | func someMethod()
15 | }
/host/spi-builder-workspace/SwiftyMocky-Example/Shared/Other/NonSwiftProtocol.swift:13:6: error: @objc can only be used with members of classes, @objc protocols, and concrete extensions of classes
11 | //sourcery: AutoMockable
12 | @objc protocol NonSwiftProtocol {
13 | @objc optional func returnNoting()
| `- error: @objc can only be used with members of classes, @objc protocols, and concrete extensions of classes
14 | func someMethod()
15 | }
/host/spi-builder-workspace/SwiftyMocky-Example/Shared/Other/NonSwiftProtocol.swift:18:2: error: Objective-C interoperability is disabled
16 |
17 | //sourcery: AutoMockable
18 | @objc(PRProtocolWithObjc) public protocol ProtocolWithObjc {
| `- error: Objective-C interoperability is disabled
19 |
20 | @objc(doStaticStuffWithParameter1: andParameter2:)
/host/spi-builder-workspace/SwiftyMocky-Example/Shared/Other/NonSwiftProtocol.swift:20:6: error: @objc can only be used with members of classes, @objc protocols, and concrete extensions of classes
18 | @objc(PRProtocolWithObjc) public protocol ProtocolWithObjc {
19 |
20 | @objc(doStaticStuffWithParameter1: andParameter2:)
| `- error: @objc can only be used with members of classes, @objc protocols, and concrete extensions of classes
21 | static func doStaticStuff(parameter1: String, parameter2: String)
22 |
/host/spi-builder-workspace/SwiftyMocky-Example/Shared/Other/NonSwiftProtocol.swift:23:6: error: @objc can only be used with members of classes, @objc protocols, and concrete extensions of classes
21 | static func doStaticStuff(parameter1: String, parameter2: String)
22 |
23 | @objc(doStuffWithParameter1: andParameter2:)
| `- error: @objc can only be used with members of classes, @objc protocols, and concrete extensions of classes
24 | func doStuff(parameter1: String, parameter2: String)
25 | }
/host/spi-builder-workspace/SwiftyMocky-Example/Shared/Other/ProtocolWithAttributes.swift:3:24: error: Objective-C interoperability is disabled
1 | import Foundation
2 |
3 | @available(iOS 14, *) @objc
| `- error: Objective-C interoperability is disabled
4 | protocol ProtocolWithAttributes: AutoMockable {
5 | func funcA()
[15/117] Compiling Mocky_Example_macOS ProtocolWithMethodWithManyParameters.swift
/host/spi-builder-workspace/SwiftyMocky-Example/Shared/Other/SampleService.swift:11:2: error: Objective-C interoperability is disabled
9 | import Foundation
10 |
11 | @objc public protocol AutoMockable { }
| `- error: Objective-C interoperability is disabled
12 |
13 | struct Point {
[16/117] Compiling Mocky_Example_macOS ProtocolWithSubscripts.swift
/host/spi-builder-workspace/SwiftyMocky-Example/Shared/Other/SampleService.swift:11:2: error: Objective-C interoperability is disabled
9 | import Foundation
10 |
11 | @objc public protocol AutoMockable { }
| `- error: Objective-C interoperability is disabled
12 |
13 | struct Point {
[17/117] Compiling Mocky_Example_macOS SampleService.swift
/host/spi-builder-workspace/SwiftyMocky-Example/Shared/Other/SampleService.swift:11:2: error: Objective-C interoperability is disabled
9 | import Foundation
10 |
11 | @objc public protocol AutoMockable { }
| `- error: Objective-C interoperability is disabled
12 |
13 | struct Point {
error: emit-module command failed with exit code 1 (use -v to see invocation)
[18/117] Emitting module Mocky_Example_macOS
/host/spi-builder-workspace/SwiftyMocky-Example/Shared/Other/InoutParameterProtocols.swift:13:39: error: cannot find type 'URLRequest' in scope
11 | //sourcery: AutoMockable
12 | protocol InoutProtocol: AnyObject {
13 | func passThisAsInOut(value: inout URLRequest)
| `- error: cannot find type 'URLRequest' in scope
14 | func returnAndInOut(value: inout Int) -> String
15 | func genericInOutClosure<T>(closure: (inout T) -> Void)
/host/spi-builder-workspace/SwiftyMocky-Example/Shared/Other/NonSwiftProtocol.swift:12:2: error: Objective-C interoperability is disabled
10 |
11 | //sourcery: AutoMockable
12 | @objc protocol NonSwiftProtocol {
| `- error: Objective-C interoperability is disabled
13 | @objc optional func returnNoting()
14 | func someMethod()
/host/spi-builder-workspace/SwiftyMocky-Example/Shared/Other/NonSwiftProtocol.swift:13:11: error: 'optional' can only be applied to members of an @objc protocol
11 | //sourcery: AutoMockable
12 | @objc protocol NonSwiftProtocol {
13 | @objc optional func returnNoting()
| `- error: 'optional' can only be applied to members of an @objc protocol
14 | func someMethod()
15 | }
/host/spi-builder-workspace/SwiftyMocky-Example/Shared/Other/NonSwiftProtocol.swift:13:6: error: @objc can only be used with members of classes, @objc protocols, and concrete extensions of classes
11 | //sourcery: AutoMockable
12 | @objc protocol NonSwiftProtocol {
13 | @objc optional func returnNoting()
| `- error: @objc can only be used with members of classes, @objc protocols, and concrete extensions of classes
14 | func someMethod()
15 | }
/host/spi-builder-workspace/SwiftyMocky-Example/Shared/Other/NonSwiftProtocol.swift:18:2: error: Objective-C interoperability is disabled
16 |
17 | //sourcery: AutoMockable
18 | @objc(PRProtocolWithObjc) public protocol ProtocolWithObjc {
| `- error: Objective-C interoperability is disabled
19 |
20 | @objc(doStaticStuffWithParameter1: andParameter2:)
/host/spi-builder-workspace/SwiftyMocky-Example/Shared/Other/NonSwiftProtocol.swift:20:6: error: @objc can only be used with members of classes, @objc protocols, and concrete extensions of classes
18 | @objc(PRProtocolWithObjc) public protocol ProtocolWithObjc {
19 |
20 | @objc(doStaticStuffWithParameter1: andParameter2:)
| `- error: @objc can only be used with members of classes, @objc protocols, and concrete extensions of classes
21 | static func doStaticStuff(parameter1: String, parameter2: String)
22 |
/host/spi-builder-workspace/SwiftyMocky-Example/Shared/Other/NonSwiftProtocol.swift:23:6: error: @objc can only be used with members of classes, @objc protocols, and concrete extensions of classes
21 | static func doStaticStuff(parameter1: String, parameter2: String)
22 |
23 | @objc(doStuffWithParameter1: andParameter2:)
| `- error: @objc can only be used with members of classes, @objc protocols, and concrete extensions of classes
24 | func doStuff(parameter1: String, parameter2: String)
25 | }
/host/spi-builder-workspace/SwiftyMocky-Example/Shared/Other/ProtocolWithAttributes.swift:3:24: error: Objective-C interoperability is disabled
1 | import Foundation
2 |
3 | @available(iOS 14, *) @objc
| `- error: Objective-C interoperability is disabled
4 | protocol ProtocolWithAttributes: AutoMockable {
5 | func funcA()
/host/spi-builder-workspace/SwiftyMocky-Example/Shared/Other/SampleService.swift:11:2: error: Objective-C interoperability is disabled
9 | import Foundation
10 |
11 | @objc public protocol AutoMockable { }
| `- error: Objective-C interoperability is disabled
12 |
13 | struct Point {
[19/117] Compiling Rainbow NSRegularExpression.swift
[23/119] Compiling Shared Parameter.swift
[24/119] Compiling Shared Policies.swift
[25/119] Compiling Rainbow Double.swift
[26/119] Compiling Shared Utils.swift
[27/119] Emitting module Shared
[28/119] Emitting module SwiftyMocky
[29/119] Compiling Mocky_Example_macOS SelfConstrainedProtocol.swift
[30/119] Compiling Mocky_Example_macOS UnnamedAttributesProtocol.swift
[31/119] Compiling Mocky_Example_macOS VariadicParametersProtocol.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[32/119] Emitting module PathKit
/host/spi-builder-workspace/.build/checkouts/PathKit/Sources/PathKit.swift:8:8: error: no such module 'Darwin'
6 | let system_glob = Glibc.glob
7 | #else
8 | import Darwin
| `- error: no such module 'Darwin'
9 |
10 | let system_glob = Darwin.glob
[33/119] Compiling PathKit PathKit.swift
/host/spi-builder-workspace/.build/checkouts/PathKit/Sources/PathKit.swift:8:8: error: no such module 'Darwin'
6 | let system_glob = Glibc.glob
7 | #else
8 | import Darwin
| `- error: no such module 'Darwin'
9 |
10 | let system_glob = Darwin.glob
[34/119] Compiling SwiftyMocky Count.swift
[35/119] Compiling SwiftyMocky Policies.swift
[36/119] Compiling SwiftyPrototype Policies.swift
[37/119] Compiling SwiftyPrototype Stubbing.swift
[38/119] Compiling Shared Mock+Assertions.swift
[39/119] Compiling Shared Mock.swift
[40/119] Compiling Shared Parameter+Compare.swift
[41/119] Compiling Shared Parameter+Optionals.swift
[42/119] Compiling SwiftyMocky Parameter.swift
[43/119] Compiling SwiftyMocky Mock.swift
[44/119] Compiling SwiftyMocky Parameter+Compare.swift
[45/119] Compiling SwiftyMocky Utils.swift
[55/122] Compiling SwiftyMocky SwiftyMockyTestObserver.swift
[56/122] Compiling SwiftyPrototype Utils.swift
[59/122] Compiling ShellOut ShellOut.swift
[60/122] Emitting module ShellOut
[65/123] Compiling Rainbow Color+Cocoa.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[68/123] Emitting module SwiftyPrototype
/host/spi-builder-workspace/Sources/SwiftyPrototype/SwiftyMockyTestObserver.swift:5:6: error: Objective-C interoperability is disabled
3 | public class SwiftyMockyTestObserver: NSObject {
4 | /// [Internal] No setup whatsoever
5 | @objc public static func setup() {
| `- error: Objective-C interoperability is disabled
6 | // Empty on purpose
7 | }
BUILD FAILURE 6.1 android