The Swift Package Index logo.Swift Package Index

Build Information

Failed to build OpenGraphKit, reference main (481695), with Swift 6.3 for Wasm on 14 Apr 2026 19:49:32 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/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:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/engali94/OpenGraphKit.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/engali94/OpenGraphKit
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 481695e chore: fix a typo
Cloned https://github.com/engali94/OpenGraphKit.git
Revision (git rev-parse @):
481695e44305770b617cef46a130b824a38b3060
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/engali94/OpenGraphKit.git at main
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.3
Building package at path:  $PWD
https://github.com/engali94/OpenGraphKit.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/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:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1
wasm-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:d69f4e7582c319245442d62a08b2d7c7fd5a0c0c69f5d2ef11d1530cd8d3329b
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest
Fetching https://github.com/apple/swift-docc-plugin
[1/2271] Fetching swift-docc-plugin
Fetched https://github.com/apple/swift-docc-plugin from cache (1.32s)
Computing version for https://github.com/apple/swift-docc-plugin
Computed https://github.com/apple/swift-docc-plugin at 1.4.6 (4.03s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3672] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (1.00s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (1.58s)
Creating working copy for https://github.com/swiftlang/swift-docc-symbolkit
Working copy of https://github.com/swiftlang/swift-docc-symbolkit resolved at 1.0.0
Creating working copy for https://github.com/apple/swift-docc-plugin
Working copy of https://github.com/apple/swift-docc-plugin resolved at 1.4.6
[1/1] Compiling plugin Swift-DocC Preview
[2/2] Compiling plugin Swift-DocC
Building for debugging...
[2/4] Write sources
[3/4] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[5/8] Emitting module OpenGraphKit
/host/spi-builder-workspace/Sources/OpenGraphKit/OpenGraphKit.swift:82:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 80 | ///
 81 | public final class OpenGraphParser {
 82 |     private let urlSession: URLSession
    |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 83 |
 84 |     /// Initializes a new instance of OpenGraphParser.
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/OpenGraphKit/OpenGraphKit.swift:88:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 86 |     /// - Parameter urlSession: The URLSession to use for network requests.
 87 |     ///   Defaults to `URLSession.shared`.
 88 |     public init(urlSession: URLSession = .shared) {
    |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 89 |         self.urlSession = urlSession
 90 |     }
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/OpenGraphKit/OpenGraphKit.swift:88:43: error: value of type '_' expected to be instance of class or class-constrained type
 86 |     /// - Parameter urlSession: The URLSession to use for network requests.
 87 |     ///   Defaults to `URLSession.shared`.
 88 |     public init(urlSession: URLSession = .shared) {
    |                                           `- error: value of type '_' expected to be instance of class or class-constrained type
 89 |         self.urlSession = urlSession
 90 |     }
/host/spi-builder-workspace/Sources/OpenGraphKit/OpenGraphKit.swift:88:43: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 86 |     /// - Parameter urlSession: The URLSession to use for network requests.
 87 |     ///   Defaults to `URLSession.shared`.
 88 |     public init(urlSession: URLSession = .shared) {
    |                                           `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 89 |         self.urlSession = urlSession
 90 |     }
/host/spi-builder-workspace/Sources/OpenGraphKit/OpenGraphKit.swift:134:35: error: cannot find type 'URLRequest' in scope
132 |     /// - Throws: `OpenGraphParserError.networkError` if there's an issue with the network request.
133 |     ///           `OpenGraphParserError.parsingError` if the content can't be parsed.
134 |     public func parse(urlRequest: URLRequest) async throws -> OpenGraphMetadata {
    |                                   `- error: cannot find type 'URLRequest' in scope
135 |         let (data, _) = try await urlSession.asyncData(for: urlRequest)
136 |         guard let htmlString = String(data: data, encoding: .utf8) else {
/host/spi-builder-workspace/Sources/OpenGraphKit/OpenGraphKit.swift:238:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
236 | }
237 |
238 | extension URLSession {
    | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
239 |
240 |     /// A reimplementation of `URLSession.shared.data(from: url)` required for Linux
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[6/8] Compiling OpenGraphKit OpenGraphKit.swift
/host/spi-builder-workspace/Sources/OpenGraphKit/OpenGraphKit.swift:82:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 80 | ///
 81 | public final class OpenGraphParser {
 82 |     private let urlSession: URLSession
    |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 83 |
 84 |     /// Initializes a new instance of OpenGraphParser.
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/OpenGraphKit/OpenGraphKit.swift:88:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 86 |     /// - Parameter urlSession: The URLSession to use for network requests.
 87 |     ///   Defaults to `URLSession.shared`.
 88 |     public init(urlSession: URLSession = .shared) {
    |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 89 |         self.urlSession = urlSession
 90 |     }
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/OpenGraphKit/OpenGraphKit.swift:88:43: error: value of type '_' expected to be instance of class or class-constrained type
 86 |     /// - Parameter urlSession: The URLSession to use for network requests.
 87 |     ///   Defaults to `URLSession.shared`.
 88 |     public init(urlSession: URLSession = .shared) {
    |                                           `- error: value of type '_' expected to be instance of class or class-constrained type
 89 |         self.urlSession = urlSession
 90 |     }
/host/spi-builder-workspace/Sources/OpenGraphKit/OpenGraphKit.swift:88:43: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 86 |     /// - Parameter urlSession: The URLSession to use for network requests.
 87 |     ///   Defaults to `URLSession.shared`.
 88 |     public init(urlSession: URLSession = .shared) {
    |                                           `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 89 |         self.urlSession = urlSession
 90 |     }
/host/spi-builder-workspace/Sources/OpenGraphKit/OpenGraphKit.swift:134:35: error: cannot find type 'URLRequest' in scope
132 |     /// - Throws: `OpenGraphParserError.networkError` if there's an issue with the network request.
133 |     ///           `OpenGraphParserError.parsingError` if the content can't be parsed.
134 |     public func parse(urlRequest: URLRequest) async throws -> OpenGraphMetadata {
    |                                   `- error: cannot find type 'URLRequest' in scope
135 |         let (data, _) = try await urlSession.asyncData(for: urlRequest)
136 |         guard let htmlString = String(data: data, encoding: .utf8) else {
/host/spi-builder-workspace/Sources/OpenGraphKit/OpenGraphKit.swift:238:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
236 | }
237 |
238 | extension URLSession {
    | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
239 |
240 |     /// A reimplementation of `URLSession.shared.data(from: url)` required for Linux
/host/spi-builder-workspace/Sources/OpenGraphKit/OpenGraphKit.swift:101:46: error: value of type 'URLSession' (aka 'AnyObject') has no member 'asyncData'
 99 |     ///           `OpenGraphParserError.parsingError` if the content can't be parsed.
100 |     public func parse(url: URL) async throws -> OpenGraphMetadata {
101 |         let (data, _) = try await urlSession.asyncData(from: url)
    |                                              `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'asyncData'
102 |         guard let htmlString = String(data: data, encoding: .utf8) else {
103 |             throw OpenGraphParserError.parsingError("Unable to convert data to string")
/host/spi-builder-workspace/Sources/OpenGraphKit/OpenGraphKit.swift:135:46: error: value of type 'URLSession' (aka 'AnyObject') has no member 'asyncData'
133 |     ///           `OpenGraphParserError.parsingError` if the content can't be parsed.
134 |     public func parse(urlRequest: URLRequest) async throws -> OpenGraphMetadata {
135 |         let (data, _) = try await urlSession.asyncData(for: urlRequest)
    |                                              `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'asyncData'
136 |         guard let htmlString = String(data: data, encoding: .utf8) else {
137 |             throw OpenGraphParserError.parsingError("Unable to convert data to string")
/host/spi-builder-workspace/Sources/OpenGraphKit/OpenGraphKit.swift:269:33: error: cannot find type 'URLRequest' in scope
267 |     }
268 |
269 |     func asyncData(for request: URLRequest) async throws -> (Data, URLResponse) {
    |                                 `- error: cannot find type 'URLRequest' in scope
270 |         return try await withCheckedThrowingContinuation { continuation in
271 |             let task = self.dataTask(with: request) { data, response, error in
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[7/8] Compiling OpenGraphKit OpenGraphMetadata.swift
[8/8] Compiling OpenGraphKit OpenGraphParserError.swift
BUILD FAILURE 6.3 wasm