The Swift Package Index logo.Swift Package Index

Build Information

Failed to build Replacer, reference master (2d6199), with Swift 6.2 for macOS (SPM) on 18 Jun 2025 11:11:29 UTC.

Build Command

env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64

Build Log

========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/tattn/Replacer.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/tattn/Replacer
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 2d6199d Merge pull request #5 from tattn/dependabot/bundler/tzinfo-1.2.10
Cloned https://github.com/tattn/Replacer.git
Revision (git rev-parse @):
2d6199d8e5200fa18a654ce0b111fdf976f34d8d
SUCCESS checkout https://github.com/tattn/Replacer.git at master
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/tattn/Replacer.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-1EA4D86E10B52AF.txt
[4/9] Compiling Replacer URLStubProtocol.swift
[5/9] Compiling Replacer URLStub.swift
[6/9] Compiling Replacer Replacer.swift
[7/9] Emitting module Replacer
[8/9] Compiling Replacer URLSessionConfiguration+.swift
[9/9] Compiling Replacer URLStubManager.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[10/11] Compiling TestReplacer XCTest+.swift
/Users/admin/builder/spi-builder-workspace/Sources/TestReplacer/XCTest+.swift:16:78: error: ambiguous use of 'tearDown'
14 |
15 |     private static let swizzleTearDown: Void = {
16 |         let tearDown = class_getInstanceMethod(XCTest.self, #selector(XCTest.tearDown))!
   |                                                                              `- error: ambiguous use of 'tearDown'
17 |         let replacerTearDown = class_getInstanceMethod(XCTest.self, #selector(XCTest.autoResetTearDown))!
18 |         method_exchangeImplementations(tearDown, replacerTearDown)
XCTest.XCTest.tearDown:2:11: note: found this candidate in module 'XCTest'
1 | class XCTest {
2 | open func tearDown()}
  |           `- note: found this candidate in module 'XCTest'
3 |
XCTest.XCTest.tearDown:2:11: note: found this candidate in module 'XCTest'
1 | class XCTest {
2 | open func tearDown(completion: @escaping @Sendable ((any Error)?) -> Void)}
  |           `- note: found this candidate in module 'XCTest'
3 |
[11/11] Emitting module TestReplacer
/Users/admin/builder/spi-builder-workspace/Sources/TestReplacer/XCTest+.swift:16:78: error: ambiguous use of 'tearDown'
14 |
15 |     private static let swizzleTearDown: Void = {
16 |         let tearDown = class_getInstanceMethod(XCTest.self, #selector(XCTest.tearDown))!
   |                                                                              `- error: ambiguous use of 'tearDown'
17 |         let replacerTearDown = class_getInstanceMethod(XCTest.self, #selector(XCTest.autoResetTearDown))!
18 |         method_exchangeImplementations(tearDown, replacerTearDown)
XCTest.XCTest.tearDown:2:11: note: found this candidate in module 'XCTest'
1 | class XCTest {
2 | open func tearDown()}
  |           `- note: found this candidate in module 'XCTest'
3 |
XCTest.XCTest.tearDown:2:11: note: found this candidate in module 'XCTest'
1 | class XCTest {
2 | open func tearDown(completion: @escaping @Sendable ((any Error)?) -> Void)}
  |           `- note: found this candidate in module 'XCTest'
3 |
Fetching https://github.com/Alamofire/Alamofire.git
[1/30141] Fetching alamofire
Fetched https://github.com/Alamofire/Alamofire.git from cache (2.81s)
Computing version for https://github.com/Alamofire/Alamofire.git
Computed https://github.com/Alamofire/Alamofire.git at 4.9.1 (3.34s)
Creating working copy for https://github.com/Alamofire/Alamofire.git
Working copy of https://github.com/Alamofire/Alamofire.git resolved at 4.9.1
BUILD FAILURE 6.2 macosSpm