The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Failed to build XCSnippets with Swift 6.0 (beta) for Linux (c74e6f) on 10 Jul 2024 20:51:19 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.46.0
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 c74e6fe Added badges tp readme
Cloned https://github.com/dtaylor1701/xcsnippets.git
Revision (git rev-parse @):
c74e6feeb8a1b0003fd50271f2d22b688c14a207
SUCCESS checkout https://github.com/dtaylor1701/xcsnippets.git at master
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $workDir
https://github.com/dtaylor1701/xcsnippets.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:939bcf47aaf06a33919ac1ec1df3a4704fc37493bc970719b13df1c85d27e20a
Status: Image is up to date for registry.gitlab.com/finestructure/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
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 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] 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 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()
BUILD FAILURE 6.0 linux