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 Reblog, reference main (2840bc), with Swift 6.1 for Wasm on 30 May 2025 22:23:29 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/mattmassicotte/Reblog.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/mattmassicotte/Reblog
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 2840bc2 Fix missing optionality
Cloned https://github.com/mattmassicotte/Reblog.git
Revision (git rev-parse @):
2840bc217873068b4c9da891dc6ceec122ad6e37
SUCCESS checkout https://github.com/mattmassicotte/Reblog.git at main
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/mattmassicotte/Reblog.git
https://github.com/mattmassicotte/Reblog.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Reblog",
  "name" : "Reblog",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "Reblog",
      "targets" : [
        "Reblog"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "ReblogTests",
      "module_type" : "SwiftTarget",
      "name" : "ReblogTests",
      "path" : "Tests/ReblogTests",
      "sources" : [
        "ContentParserTests.swift"
      ],
      "target_dependencies" : [
        "Reblog"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Reblog",
      "module_type" : "SwiftTarget",
      "name" : "Reblog",
      "path" : "Sources/Reblog",
      "product_memberships" : [
        "Reblog"
      ],
      "sources" : [
        "Account.swift",
        "ContentParser.swift",
        "Marker.swift",
        "MediaAttachment.swift",
        "ReblogStatus.swift",
        "Status.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "6.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/9] Compiling Reblog Status.swift
[4/9] Compiling Reblog ReblogStatus.swift
[5/9] Compiling Reblog ContentParser.swift
/host/spi-builder-workspace/Sources/Reblog/ContentParser.swift:25:33: error: cannot find type 'XMLParserDelegate' in scope
 23 | }
 24 |
 25 | class ParserDelegate: NSObject, XMLParserDelegate {
    |                                 `- error: cannot find type 'XMLParserDelegate' in scope
 26 | 	public var elementHandler: ((HTMLComponent) -> Void)?
 27 | 	private var activeComponent: HTMLComponent? = nil
/host/spi-builder-workspace/Sources/Reblog/ContentParser.swift:40:24: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
 38 | 	}
 39 |
 40 | 	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.
 41 | 		switch elementName {
 42 | 		case "p":
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/Reblog/ContentParser.swift:66:24: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
 64 | 	}
 65 |
 66 | 	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.
 67 | 		switch elementName {
 68 | 		case "a":
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/Reblog/ContentParser.swift:76:24: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
 74 | 	}
 75 |
 76 | 	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.
 77 | 		switch activeComponent {
 78 | 		case let .link(url, text):
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/Reblog/ContentParser.swift:88:38: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
 86 | 	}
 87 |
 88 | 	func parserDidEndDocument(_ parser: XMLParser) {
    |                                      `- error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
 89 | 		commitActive()
 90 | 	}
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/Reblog/ContentParser.swift:109:9: error: cannot find 'CFStringTransform' in scope
107 | 		let convertedString = string.mutableCopy() as! NSMutableString
108 |
109 | 		guard CFStringTransform(convertedString, nil, transform, true) else {
    |         `- error: cannot find 'CFStringTransform' in scope
110 | 			throw ContentParserError.transformFailed
111 | 		}
/host/spi-builder-workspace/Sources/Reblog/ContentParser.swift:109:44: error: 'nil' requires a contextual type
107 | 		let convertedString = string.mutableCopy() as! NSMutableString
108 |
109 | 		guard CFStringTransform(convertedString, nil, transform, true) else {
    |                                            `- error: 'nil' requires a contextual type
110 | 			throw ContentParserError.transformFailed
111 | 		}
/host/spi-builder-workspace/Sources/Reblog/ContentParser.swift:145:16: error: 'XMLParser' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
143 |
144 | 		let delegate = ParserDelegate()
145 | 		let parser = XMLParser(data: Data(xmlString.utf8))
    |                `- error: 'XMLParser' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
146 |
147 | 		parser.delegate = delegate
[6/9] Compiling Reblog MediaAttachment.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[7/9] Compiling Reblog Account.swift
[8/9] Emitting module Reblog
/host/spi-builder-workspace/Sources/Reblog/ContentParser.swift:25:33: error: cannot find type 'XMLParserDelegate' in scope
 23 | }
 24 |
 25 | class ParserDelegate: NSObject, XMLParserDelegate {
    |                                 `- error: cannot find type 'XMLParserDelegate' in scope
 26 | 	public var elementHandler: ((HTMLComponent) -> Void)?
 27 | 	private var activeComponent: HTMLComponent? = nil
/host/spi-builder-workspace/Sources/Reblog/ContentParser.swift:40:24: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
 38 | 	}
 39 |
 40 | 	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.
 41 | 		switch elementName {
 42 | 		case "p":
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/Reblog/ContentParser.swift:66:24: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
 64 | 	}
 65 |
 66 | 	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.
 67 | 		switch elementName {
 68 | 		case "a":
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/Reblog/ContentParser.swift:76:24: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
 74 | 	}
 75 |
 76 | 	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.
 77 | 		switch activeComponent {
 78 | 		case let .link(url, text):
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/Reblog/ContentParser.swift:88:38: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
 86 | 	}
 87 |
 88 | 	func parserDidEndDocument(_ parser: XMLParser) {
    |                                      `- error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
 89 | 		commitActive()
 90 | 	}
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
[9/9] Compiling Reblog Marker.swift
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/8] Emitting module Reblog
/host/spi-builder-workspace/Sources/Reblog/ContentParser.swift:25:33: error: cannot find type 'XMLParserDelegate' in scope
 23 | }
 24 |
 25 | class ParserDelegate: NSObject, XMLParserDelegate {
    |                                 `- error: cannot find type 'XMLParserDelegate' in scope
 26 | 	public var elementHandler: ((HTMLComponent) -> Void)?
 27 | 	private var activeComponent: HTMLComponent? = nil
/host/spi-builder-workspace/Sources/Reblog/ContentParser.swift:40:24: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
 38 | 	}
 39 |
 40 | 	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.
 41 | 		switch elementName {
 42 | 		case "p":
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/Reblog/ContentParser.swift:66:24: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
 64 | 	}
 65 |
 66 | 	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.
 67 | 		switch elementName {
 68 | 		case "a":
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/Reblog/ContentParser.swift:76:24: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
 74 | 	}
 75 |
 76 | 	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.
 77 | 		switch activeComponent {
 78 | 		case let .link(url, text):
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/Reblog/ContentParser.swift:88:38: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
 86 | 	}
 87 |
 88 | 	func parserDidEndDocument(_ parser: XMLParser) {
    |                                      `- error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
 89 | 		commitActive()
 90 | 	}
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
[3/8] Compiling Reblog Status.swift
[4/8] Compiling Reblog Account.swift
[5/8] Compiling Reblog ReblogStatus.swift
[6/8] Compiling Reblog MediaAttachment.swift
[7/8] Compiling Reblog ContentParser.swift
/host/spi-builder-workspace/Sources/Reblog/ContentParser.swift:25:33: error: cannot find type 'XMLParserDelegate' in scope
 23 | }
 24 |
 25 | class ParserDelegate: NSObject, XMLParserDelegate {
    |                                 `- error: cannot find type 'XMLParserDelegate' in scope
 26 | 	public var elementHandler: ((HTMLComponent) -> Void)?
 27 | 	private var activeComponent: HTMLComponent? = nil
/host/spi-builder-workspace/Sources/Reblog/ContentParser.swift:40:24: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
 38 | 	}
 39 |
 40 | 	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.
 41 | 		switch elementName {
 42 | 		case "p":
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/Reblog/ContentParser.swift:66:24: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
 64 | 	}
 65 |
 66 | 	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.
 67 | 		switch elementName {
 68 | 		case "a":
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/Reblog/ContentParser.swift:76:24: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
 74 | 	}
 75 |
 76 | 	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.
 77 | 		switch activeComponent {
 78 | 		case let .link(url, text):
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/Reblog/ContentParser.swift:88:38: error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
 86 | 	}
 87 |
 88 | 	func parserDidEndDocument(_ parser: XMLParser) {
    |                                      `- error: 'XMLParser' is unavailable: This type has moved to the FoundationXML module. Import that module to use it.
 89 | 		commitActive()
 90 | 	}
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/Reblog/ContentParser.swift:109:9: error: cannot find 'CFStringTransform' in scope
107 | 		let convertedString = string.mutableCopy() as! NSMutableString
108 |
109 | 		guard CFStringTransform(convertedString, nil, transform, true) else {
    |         `- error: cannot find 'CFStringTransform' in scope
110 | 			throw ContentParserError.transformFailed
111 | 		}
/host/spi-builder-workspace/Sources/Reblog/ContentParser.swift:109:44: error: 'nil' requires a contextual type
107 | 		let convertedString = string.mutableCopy() as! NSMutableString
108 |
109 | 		guard CFStringTransform(convertedString, nil, transform, true) else {
    |                                            `- error: 'nil' requires a contextual type
110 | 			throw ContentParserError.transformFailed
111 | 		}
/host/spi-builder-workspace/Sources/Reblog/ContentParser.swift:145:16: error: 'XMLParser' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
143 |
144 | 		let delegate = ParserDelegate()
145 | 		let parser = XMLParser(data: Data(xmlString.utf8))
    |                `- error: 'XMLParser' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
146 |
147 | 		parser.delegate = delegate
[8/8] Compiling Reblog Marker.swift
BUILD FAILURE 6.1 wasm