The Swift Package Index logo.Swift Package Index

Build Information

Failed to build Pushover, reference 1.0.0 (17caff), with Swift 6.1 for Wasm on 30 May 2025 04:13:50 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/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/kiliankoe/pushover.git
Reference: 1.0.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/kiliankoe/pushover
 * tag               1.0.0      -> FETCH_HEAD
HEAD is now at 17caffa Merge pull request #4 from sgade/master
Cloned https://github.com/kiliankoe/pushover.git
Revision (git rev-parse @):
17caffad643a16c8f896936c196c6dcf194408a9
SUCCESS checkout https://github.com/kiliankoe/pushover.git at 1.0.0
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/kiliankoe/pushover.git
https://github.com/kiliankoe/pushover.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Pushover",
  "name" : "Pushover",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "maccatalyst",
      "version" : "13.0"
    },
    {
      "name" : "watchos",
      "version" : "6.0"
    },
    {
      "name" : "tvos",
      "version" : "13.0"
    },
    {
      "name" : "visionos",
      "version" : "1.0"
    }
  ],
  "products" : [
    {
      "name" : "Pushover",
      "targets" : [
        "Pushover"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "PushoverTests",
      "module_type" : "SwiftTarget",
      "name" : "PushoverTests",
      "path" : "Tests/PushoverTests",
      "sources" : [
        "NotificationTests.swift",
        "PushoverTests.swift"
      ],
      "target_dependencies" : [
        "Pushover"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Pushover",
      "module_type" : "SwiftTarget",
      "name" : "Pushover",
      "path" : "Sources/Pushover",
      "product_memberships" : [
        "Pushover"
      ],
      "sources" : [
        "API.swift",
        "Endpoint.swift",
        "Notification.swift",
        "Priority.swift",
        "Pushover.swift",
        "PushoverError.swift",
        "Response.swift",
        "Sound.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "6.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/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/10] Compiling Pushover PushoverError.swift
[4/11] Compiling Pushover Sound.swift
[5/11] Compiling Pushover Response.swift
[6/11] Compiling Pushover Priority.swift
[7/11] Compiling Pushover Pushover.swift
/host/spi-builder-workspace/Sources/Pushover/Pushover.swift:42:23: error: cannot find 'URLRequest' in scope
40 |     @discardableResult
41 |     public func send(_ notification: Notification) async throws(PushoverError) -> Response {
42 |         var request = URLRequest(url: Endpoint.messages)
   |                       `- error: cannot find 'URLRequest' in scope
43 |         request.httpMethod = "POST"
44 |         request.add(notification: notification, withToken: self.token)
/host/spi-builder-workspace/Sources/Pushover/API.swift:17:33: error: cannot find type 'URLRequest' in scope
15 |
16 | enum API {
17 |     static func send(_ request: URLRequest) async throws(PushoverError) -> ([String: String], JSON) {
   |                                 `- error: cannot find type 'URLRequest' in scope
18 |         do {
19 |             let (data, response) = try await URLSession.shared.data(for: request)
[8/11] Compiling Pushover Notification.swift
/host/spi-builder-workspace/Sources/Pushover/Notification.swift:128:11: error: cannot find type 'URLRequest' in scope
126 | }
127 |
128 | extension URLRequest {
    |           `- error: cannot find type 'URLRequest' in scope
129 |     mutating func add(notification: Notification, withToken token: String) {
130 |         let params = "token=\(token)&\(notification.paramsString)"
error: emit-module command failed with exit code 1 (use -v to see invocation)
[9/11] Compiling Pushover Endpoint.swift
[10/11] Emitting module Pushover
/host/spi-builder-workspace/Sources/Pushover/API.swift:17:33: error: cannot find type 'URLRequest' in scope
15 |
16 | enum API {
17 |     static func send(_ request: URLRequest) async throws(PushoverError) -> ([String: String], JSON) {
   |                                 `- error: cannot find type 'URLRequest' in scope
18 |         do {
19 |             let (data, response) = try await URLSession.shared.data(for: request)
/host/spi-builder-workspace/Sources/Pushover/Notification.swift:128:11: error: cannot find type 'URLRequest' in scope
126 | }
127 |
128 | extension URLRequest {
    |           `- error: cannot find type 'URLRequest' in scope
129 |     mutating func add(notification: Notification, withToken token: String) {
130 |         let params = "token=\(token)&\(notification.paramsString)"
[11/11] Compiling Pushover API.swift
/host/spi-builder-workspace/Sources/Pushover/API.swift:17:33: error: cannot find type 'URLRequest' in scope
15 |
16 | enum API {
17 |     static func send(_ request: URLRequest) async throws(PushoverError) -> ([String: String], JSON) {
   |                                 `- error: cannot find type 'URLRequest' in scope
18 |         do {
19 |             let (data, response) = try await URLSession.shared.data(for: request)
/host/spi-builder-workspace/Sources/Pushover/API.swift:19:57: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
17 |     static func send(_ request: URLRequest) async throws(PushoverError) -> ([String: String], JSON) {
18 |         do {
19 |             let (data, response) = try await URLSession.shared.data(for: request)
   |                                                         `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
20 |
21 |             guard let httpResponse = response as? HTTPURLResponse,
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/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/9] Compiling Pushover Endpoint.swift
[3/9] Compiling Pushover Priority.swift
[4/9] Emitting module Pushover
/host/spi-builder-workspace/Sources/Pushover/API.swift:17:33: error: cannot find type 'URLRequest' in scope
15 |
16 | enum API {
17 |     static func send(_ request: URLRequest) async throws(PushoverError) -> ([String: String], JSON) {
   |                                 `- error: cannot find type 'URLRequest' in scope
18 |         do {
19 |             let (data, response) = try await URLSession.shared.data(for: request)
/host/spi-builder-workspace/Sources/Pushover/Notification.swift:128:11: error: cannot find type 'URLRequest' in scope
126 | }
127 |
128 | extension URLRequest {
    |           `- error: cannot find type 'URLRequest' in scope
129 |     mutating func add(notification: Notification, withToken token: String) {
130 |         let params = "token=\(token)&\(notification.paramsString)"
[5/9] Compiling Pushover API.swift
/host/spi-builder-workspace/Sources/Pushover/API.swift:17:33: error: cannot find type 'URLRequest' in scope
15 |
16 | enum API {
17 |     static func send(_ request: URLRequest) async throws(PushoverError) -> ([String: String], JSON) {
   |                                 `- error: cannot find type 'URLRequest' in scope
18 |         do {
19 |             let (data, response) = try await URLSession.shared.data(for: request)
/host/spi-builder-workspace/Sources/Pushover/API.swift:19:57: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
17 |     static func send(_ request: URLRequest) async throws(PushoverError) -> ([String: String], JSON) {
18 |         do {
19 |             let (data, response) = try await URLSession.shared.data(for: request)
   |                                                         `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
20 |
21 |             guard let httpResponse = response as? HTTPURLResponse,
[6/9] Compiling Pushover Notification.swift
/host/spi-builder-workspace/Sources/Pushover/Notification.swift:128:11: error: cannot find type 'URLRequest' in scope
126 | }
127 |
128 | extension URLRequest {
    |           `- error: cannot find type 'URLRequest' in scope
129 |     mutating func add(notification: Notification, withToken token: String) {
130 |         let params = "token=\(token)&\(notification.paramsString)"
[7/10] Compiling Pushover PushoverError.swift
[8/10] Compiling Pushover Response.swift
[9/10] Compiling Pushover Pushover.swift
/host/spi-builder-workspace/Sources/Pushover/Pushover.swift:42:23: error: cannot find 'URLRequest' in scope
40 |     @discardableResult
41 |     public func send(_ notification: Notification) async throws(PushoverError) -> Response {
42 |         var request = URLRequest(url: Endpoint.messages)
   |                       `- error: cannot find 'URLRequest' in scope
43 |         request.httpMethod = "POST"
44 |         request.add(notification: notification, withToken: self.token)
/host/spi-builder-workspace/Sources/Pushover/API.swift:17:33: error: cannot find type 'URLRequest' in scope
15 |
16 | enum API {
17 |     static func send(_ request: URLRequest) async throws(PushoverError) -> ([String: String], JSON) {
   |                                 `- error: cannot find type 'URLRequest' in scope
18 |         do {
19 |             let (data, response) = try await URLSession.shared.data(for: request)
[10/10] Compiling Pushover Sound.swift
BUILD FAILURE 6.1 wasm