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 XCResource, reference main (2059d8), with Swift 6.0 for Linux on 31 Aug 2025 16:02:21 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.67.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/nearfri/XCResource.git
Reference: main
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/nearfri/XCResource
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 2059d88 Fix URL(filePath:expandingTilde:directoryHint:relativeTo:) compatibility on macOS 26
Cloned https://github.com/nearfri/XCResource.git
Revision (git rev-parse @):
2059d8808b02a935fd4526852addcf765059a1dc
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/nearfri/XCResource.git at main
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/nearfri/XCResource.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:2ffdcefcdb291d9eb78a77ed5e4b4766a710a1cb89004e0bfdb0fefda731df2f
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Fetching https://github.com/nearfri/Strix.git
Fetching https://github.com/swiftlang/swift-syntax.git
Fetching https://github.com/apple/swift-argument-parser.git
[1/1997] Fetching strix
[1998/73839] Fetching strix, swift-syntax
[3435/89528] Fetching strix, swift-syntax, swift-argument-parser
Fetched https://github.com/nearfri/Strix.git from cache (4.36s)
Fetched https://github.com/apple/swift-argument-parser.git from cache (4.37s)
Fetched https://github.com/swiftlang/swift-syntax.git from cache (4.41s)
Computing version for https://github.com/nearfri/Strix.git
Computed https://github.com/nearfri/Strix.git at 2.4.8 (0.48s)
Computing version for https://github.com/swiftlang/swift-syntax.git
Computed https://github.com/swiftlang/swift-syntax.git at 601.0.1 (2.03s)
Computing version for https://github.com/apple/swift-argument-parser.git
Computed https://github.com/apple/swift-argument-parser.git at 1.6.1 (0.57s)
Creating working copy for https://github.com/nearfri/Strix.git
Working copy of https://github.com/nearfri/Strix.git resolved at 2.4.8
Creating working copy for https://github.com/swiftlang/swift-syntax.git
Working copy of https://github.com/swiftlang/swift-syntax.git resolved at 601.0.1
Creating working copy for https://github.com/apple/swift-argument-parser.git
Working copy of https://github.com/apple/swift-argument-parser.git resolved at 1.6.1
[1/1] Compiling plugin Generate Resource Code
[2/2] Compiling plugin GenerateDoccReference
[3/3] Compiling plugin GenerateManual
Building for debugging...
[3/55] Write sources
[28/55] Copying Resources
[29/55] Compiling _SwiftSyntaxCShims dummy.c
[30/55] Write swift-version-24593BA9C3E375BF.txt
[32/86] Emitting module SwiftSyntax509
[33/95] Compiling SwiftSyntax601 Empty.swift
[34/95] Emitting module SwiftSyntax601
[35/96] Compiling SwiftSyntax509 Empty.swift
[36/97] Emitting module SwiftSyntax600
[37/97] Compiling SwiftSyntax600 Empty.swift
[38/98] Emitting module SwiftSyntax510
[39/98] Compiling SwiftSyntax510 Empty.swift
[43/99] Emitting module TestUtil
[44/99] Compiling TestUtil expectEqual.swift
[46/100] Wrapping AST for SwiftSyntax601 for debugging
[47/100] Wrapping AST for SwiftSyntax600 for debugging
[48/101] Wrapping AST for SwiftSyntax510 for debugging
[49/103] Wrapping AST for SwiftSyntax509 for debugging
[51/142] Emitting module Documentation
[52/142] Compiling Documentation EmptyFile.swift
[53/170] Emitting module ArgumentParserToolInfo
[54/170] Compiling ArgumentParserToolInfo ToolInfo.swift
[56/171] Wrapping AST for ArgumentParserToolInfo for debugging
[58/215] Compiling SampleData BundleAccessor.swift
[59/215] Compiling XCResourceUtil URL+.swift
[60/215] Compiling XCResourceUtil FileManager+.swift
/host/spi-builder-workspace/Sources/XCResourceUtil/FileManager+.swift:22:17: error: 'replaceItem(at:withItemAt:backupItemName:options:resultingItemURL:)' has been renamed to 'replaceItem(at:withItemAt:backupItemName:options:)': Returning an object through an autoreleased pointer is not supported in swift-corelibs-foundation. Use replaceItem(at:withItemAt:backupItemName:options:) instead.
20 |             try removeItem(at: newItemURL)
21 |         } else {
22 |             try replaceItem(at: originalItemURL,
   |                 `- error: 'replaceItem(at:withItemAt:backupItemName:options:resultingItemURL:)' has been renamed to 'replaceItem(at:withItemAt:backupItemName:options:)': Returning an object through an autoreleased pointer is not supported in swift-corelibs-foundation. Use replaceItem(at:withItemAt:backupItemName:options:) instead.
23 |                             withItemAt: newItemURL,
24 |                             backupItemName: nil,
Foundation.FileManager:17:17: note: 'replaceItem(at:withItemAt:backupItemName:options:resultingItemURL:)' has been explicitly marked unavailable here
15 |     public func replaceItemAt(_ originalItemURL: URL, withItemAt newItemURL: URL, backupItemName: String? = nil, options: FileManager.ItemReplacementOptions = []) throws -> URL?
16 |     @available(*, unavailable, renamed: "replaceItem(at:withItemAt:backupItemName:options:)", message: "Returning an object through an autoreleased pointer is not supported in swift-corelibs-foundation. Use replaceItem(at:withItemAt:backupItemName:options:) instead.")
17 |     public func replaceItem(at originalItemURL: URL, withItemAt newItemURL: URL, backupItemName: String?, options: FileManager.ItemReplacementOptions = [], resultingItemURL resultingURL: UnsafeMutablePointer<NSURL?>?) throws
   |                 `- note: 'replaceItem(at:withItemAt:backupItemName:options:resultingItemURL:)' has been explicitly marked unavailable here
18 | }
[61/215] Compiling ArgumentParser NameSpecification.swift
[62/215] Compiling ArgumentParser Option.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[63/217] Emitting module XCResourceUtil
/host/spi-builder-workspace/Sources/XCResourceUtil/String+.swift:74:20: error: cannot find 'applyingTransform' in scope
 72 |         }
 73 |
 74 |         if self == applyingTransform(.toLatin, reverse: false) {
    |                    `- error: cannot find 'applyingTransform' in scope
 75 |             return self
 76 |         }
/host/spi-builder-workspace/Sources/XCResourceUtil/String+.swift:74:39: error: cannot infer contextual base in reference to member 'toLatin'
 72 |         }
 73 |
 74 |         if self == applyingTransform(.toLatin, reverse: false) {
    |                                       `- error: cannot infer contextual base in reference to member 'toLatin'
 75 |             return self
 76 |         }
[64/217] Compiling XCResourceUtil DefaultStringInterpolation+.swift
[65/217] Emitting module SampleData
[66/217] Compiling SampleData resource_bundle_accessor.swift
[67/217] Compiling ArgumentParser ExpressibleByArgument.swift
[68/217] Compiling ArgumentParser ArgumentVisibility.swift
[69/217] Compiling ArgumentParser CompletionKind.swift
[70/217] Compiling ArgumentParser Errors.swift
[71/217] Compiling ArgumentParser Flag.swift
[72/218] Emitting module Strix
[73/218] Compiling ArgumentParser BashCompletionsGenerator.swift
[74/218] Compiling ArgumentParser CompletionsGenerator.swift
[75/218] Compiling ArgumentParser FishCompletionsGenerator.swift
[76/218] Compiling ArgumentParser ZshCompletionsGenerator.swift
[77/218] Compiling ArgumentParser Argument.swift
[78/218] Compiling ArgumentParser ArgumentDiscussion.swift
[79/218] Compiling XCResourceUtil TextFileOutputStream.swift
[80/218] Compiling XCResourceUtil Tree.swift
[81/218] Compiling ArgumentParser ArgumentHelp.swift
[82/218] Compiling ArgumentParser OptionGroup.swift
[83/218] Compiling ArgumentParser AsyncParsableCommand.swift
[84/218] Compiling ArgumentParser CommandConfiguration.swift
[85/218] Compiling ArgumentParser CommandGroup.swift
[86/218] Compiling ArgumentParser EnumerableFlag.swift
[88/218] Compiling Strix SequenceParsers.swift
[89/218] Compiling Strix StringParsers.swift
[90/219] Wrapping AST for Strix for debugging
[92/233] Compiling StrixParsers JSONParser.swift
[93/234] Compiling StrixParsers FormatPlaceholder.swift
[94/234] Compiling StrixParsers FormatSpecifier.swift
[95/234] Compiling StrixParsers CSVParser.swift
[96/234] Compiling StrixParsers Calculator.swift
[97/234] Emitting module StrixParsers
[98/234] Compiling StrixParsers ASCIIPlist.swift
[99/234] Compiling StrixParsers ASCIIPlistParser.swift
[100/234] Compiling StrixParsers Data+.swift
[101/234] Compiling StrixParsers String+.swift
[102/234] Compiling StrixParsers JSON.swift
[103/234] Compiling StrixParsers JSONConvertibleValue.swift
[104/234] Compiling StrixParsers FormatSpecifierParser.swift
[105/234] Compiling StrixParsers Indent.swift
[106/234] Compiling StrixParsers PrattParser.swift
[107/234] Compiling XCResourceUtil SettableByKeyPath.swift
[108/234] Compiling XCResourceUtil String+.swift
/host/spi-builder-workspace/Sources/XCResourceUtil/String+.swift:74:20: error: cannot find 'applyingTransform' in scope
 72 |         }
 73 |
 74 |         if self == applyingTransform(.toLatin, reverse: false) {
    |                    `- error: cannot find 'applyingTransform' in scope
 75 |             return self
 76 |         }
/host/spi-builder-workspace/Sources/XCResourceUtil/String+.swift:74:39: error: cannot infer contextual base in reference to member 'toLatin'
 72 |         }
 73 |
 74 |         if self == applyingTransform(.toLatin, reverse: false) {
    |                                       `- error: cannot infer contextual base in reference to member 'toLatin'
 75 |             return self
 76 |         }
BUILD FAILURE 6.0 linux