Build Information
Failed to build XCSnippets, reference v1.1.0 (636bb1), with Swift 6.2 for Linux on 18 Jun 2025 03:25:39 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.2-latest swift build --triple x86_64-unknown-linux-gnu 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/dtaylor1701/xcsnippets.git
Reference: v1.1.0
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
* tag v1.1.0 -> FETCH_HEAD
HEAD is now at 636bb1c removed erroneous argument
Cloned https://github.com/dtaylor1701/xcsnippets.git
Revision (git rev-parse @):
636bb1cd3eb172c96183c933a86237f8744c19cb
SUCCESS checkout https://github.com/dtaylor1701/xcsnippets.git at v1.1.0
========================================
Build
========================================
Selected platform: linux
Swift version: 6.2
Building package at path: $PWD
https://github.com/dtaylor1701/xcsnippets.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.2-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:f81a7bd7aa87a0f81848d48c5bcc03f5f78deebd37fa5f9be9913077205d3687
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.2-latest
Building for debugging...
[0/7] Write sources
[2/7] Write swift-version-24593BA9C3E375BF.txt
[4/12] Compiling XCSnippetsCore SnippetRepository.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[5/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
[6/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()
[7/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
[8/12] Compiling XCSnippetsCore Shell.swift
/host/spi-builder-workspace/Sources/XCSnippetsCore/Shell.swift:16:14: warning: 'launchPath' is deprecated: renamed to 'executableURL' [#DeprecatedDeclaration]
14 | static func execute(_ args: String...) -> ShellResult {
15 | let task = Process()
16 | task.launchPath = "/usr/bin/env"
| |- warning: 'launchPath' is deprecated: renamed to 'executableURL' [#DeprecatedDeclaration]
| `- 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' [#DeprecatedDeclaration]
20 | task.standardOutput = pipe
21 |
22 | task.launch()
| |- warning: 'launch()' is deprecated: renamed to 'run' [#DeprecatedDeclaration]
| `- note: use 'run' instead
23 |
24 | let outData = pipe.fileHandleForReading.readDataToEndOfFile()
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
BUILD FAILURE 6.2 linux