The Swift Package Index logo.Swift Package Index

Build Information

Failed to build XCSnippets, reference master (32f56c), with Swift 6.0 for Linux on 19 Mar 2026 08:18:58 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.69.2
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/dtaylor1701/xcsnippets.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/dtaylor1701/xcsnippets
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 32f56c2 chore: ignore build folder and remove any tracked build artifacts
Cloned https://github.com/dtaylor1701/xcsnippets.git
Revision (git rev-parse @):
32f56c21723500493c1a0efb3b350601c20d2c1f
SUCCESS checkout https://github.com/dtaylor1701/xcsnippets.git at master
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/dtaylor1701/xcsnippets.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.0-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:ece747c77e94bae4930a5e18230daf779deb87c9e35c56d75daa73885bd2cdd2
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:basic-6.0-latest
Building for debugging...
[0/7] Write sources
[2/7] Write swift-version-24593BA9C3E375BF.txt
[4/12] Compiling XCSnippetsCore SnippetRepository.swift
[5/12] Compiling XCSnippetsCore SnippetParser.swift
/host/spi-builder-workspace/Sources/XCSnippetsCore/SnippetParser.swift:21:26: error: cannot find type 'XMLParserDelegate' in scope
19 | }
20 |
21 | extension SnippetParser: XMLParserDelegate {
   |                          `- error: cannot find type 'XMLParserDelegate' in scope
22 |     func parser(_ parser: XMLParser, didStartElement elementName: String, namespaceURI: String?, qualifiedName qName: String?, attributes attributeDict: [String : String] = [:]) {
23 |
/host/spi-builder-workspace/Sources/XCSnippetsCore/SnippetParser.swift:22:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
20 |
21 | extension SnippetParser: XMLParserDelegate {
22 |     func parser(_ parser: XMLParser, didStartElement elementName: String, namespaceURI: String?, qualifiedName qName: String?, attributes attributeDict: [String : String] = [:]) {
   |                           `- error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
23 |
24 |         if elementName == "key" {
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationXML module. Import that module to use it.")
2 | public typealias XMLParser = AnyObject
  |                  `- note: 'XMLParser' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/XCSnippetsCore/SnippetParser.swift:32:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
30 |     }
31 |
32 |     func parser(_ parser: XMLParser, didEndElement elementName: String, namespaceURI: String?, qualifiedName qName: String?) {
   |                           `- error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
33 |         if currentTag == .key {
34 |             if let property = SnippetProperty(rawValue: currentElement) {
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationXML module. Import that module to use it.")
2 | public typealias XMLParser = AnyObject
  |                  `- note: 'XMLParser' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/XCSnippetsCore/SnippetParser.swift:46:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
44 |     }
45 |
46 |     func parser(_ parser: XMLParser, foundCharacters string: String) {
   |                           `- error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
47 |         let data = string.trimmingCharacters(in: CharacterSet.whitespacesAndNewlines)
48 |
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationXML module. Import that module to use it.")
2 | public typealias XMLParser = AnyObject
  |                  `- note: 'XMLParser' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/XCSnippetsCore/SnippetParser.swift:14:25: error: 'XMLParser' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
12 |     init(file: URL) {
13 |         super.init()
14 |         if let parser = XMLParser(contentsOf: file) {
   |                         `- error: 'XMLParser' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
15 |             parser.delegate = self
16 |             parser.parse()
error: emit-module command failed with exit code 1 (use -v to see invocation)
[6/12] Compiling XCSnippetsCore Shell.swift
/host/spi-builder-workspace/Sources/XCSnippetsCore/Shell.swift:16:14: warning: 'launchPath' is deprecated: renamed to 'executableURL'
14 |     static func execute(_ args: String...) -> ShellResult {
15 |         let task = Process()
16 |         task.launchPath = "/usr/bin/env"
   |              |- warning: 'launchPath' is deprecated: renamed to 'executableURL'
   |              `- note: use 'executableURL' instead
17 |         task.arguments = args
18 |
/host/spi-builder-workspace/Sources/XCSnippetsCore/Shell.swift:22:14: warning: 'launch()' is deprecated: renamed to 'run'
20 |         task.standardOutput = pipe
21 |
22 |         task.launch()
   |              |- warning: 'launch()' is deprecated: renamed to 'run'
   |              `- note: use 'run' instead
23 |
24 |         let outData = pipe.fileHandleForReading.readDataToEndOfFile()
[7/12] Emitting module XCSnippetsCore
/host/spi-builder-workspace/Sources/XCSnippetsCore/SnippetParser.swift:21:26: error: cannot find type 'XMLParserDelegate' in scope
19 | }
20 |
21 | extension SnippetParser: XMLParserDelegate {
   |                          `- error: cannot find type 'XMLParserDelegate' in scope
22 |     func parser(_ parser: XMLParser, didStartElement elementName: String, namespaceURI: String?, qualifiedName qName: String?, attributes attributeDict: [String : String] = [:]) {
23 |
/host/spi-builder-workspace/Sources/XCSnippetsCore/SnippetParser.swift:22:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
20 |
21 | extension SnippetParser: XMLParserDelegate {
22 |     func parser(_ parser: XMLParser, didStartElement elementName: String, namespaceURI: String?, qualifiedName qName: String?, attributes attributeDict: [String : String] = [:]) {
   |                           `- error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
23 |
24 |         if elementName == "key" {
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationXML module. Import that module to use it.")
2 | public typealias XMLParser = AnyObject
  |                  `- note: 'XMLParser' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/XCSnippetsCore/SnippetParser.swift:32:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
30 |     }
31 |
32 |     func parser(_ parser: XMLParser, didEndElement elementName: String, namespaceURI: String?, qualifiedName qName: String?) {
   |                           `- error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
33 |         if currentTag == .key {
34 |             if let property = SnippetProperty(rawValue: currentElement) {
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationXML module. Import that module to use it.")
2 | public typealias XMLParser = AnyObject
  |                  `- note: 'XMLParser' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/XCSnippetsCore/SnippetParser.swift:46:27: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
44 |     }
45 |
46 |     func parser(_ parser: XMLParser, foundCharacters string: String) {
   |                           `- error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
47 |         let data = string.trimmingCharacters(in: CharacterSet.whitespacesAndNewlines)
48 |
Foundation.XMLParser:2:18: note: 'XMLParser' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationXML module. Import that module to use it.")
2 | public typealias XMLParser = AnyObject
  |                  `- note: 'XMLParser' has been explicitly marked unavailable here
[8/12] Compiling XCSnippetsCore SnippetManager.swift
/host/spi-builder-workspace/Sources/XCSnippetsCore/SnippetManager.swift:186:34: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
184 |         printLine("Getting snippet repository list")
185 |         let semaphore = DispatchSemaphore(value: 0)
186 |         let session = URLSession.shared
    |                                  `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
187 |         let url = URL(string: "https://dtaylor1701.github.io/XCSnippets/Collections/main.json")!
188 |         let task = session.dataTask(with: url) { (data, _, error) in
BUILD FAILURE 6.0 linux