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 RVS_BasicGCDTimer, reference 1.7.2 (c6c10c), with Swift 6.1 for Wasm on 30 May 2025 14:11:46 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/RiftValleySoftware/RVS_BasicGCDTimer.git
Reference: 1.7.2
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/RiftValleySoftware/RVS_BasicGCDTimer
 * tag               1.7.2      -> FETCH_HEAD
HEAD is now at c6c10ce Whoops. Forgot that I made it 1.7.1.
Cloned https://github.com/RiftValleySoftware/RVS_BasicGCDTimer.git
Revision (git rev-parse @):
c6c10ce58fd8241e76ee1e48126d1f97b81dc7aa
SUCCESS checkout https://github.com/RiftValleySoftware/RVS_BasicGCDTimer.git at 1.7.2
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/RiftValleySoftware/RVS_BasicGCDTimer.git
https://github.com/RiftValleySoftware/RVS_BasicGCDTimer.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "RVS_BasicGCDTimer",
  "name" : "RVS_BasicGCDTimer",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "11.0"
    },
    {
      "name" : "tvos",
      "version" : "11.0"
    },
    {
      "name" : "macos",
      "version" : "10.14"
    },
    {
      "name" : "watchos",
      "version" : "5.0"
    }
  ],
  "products" : [
    {
      "name" : "RVS_BasicGCDTimer",
      "targets" : [
        "RVS_BasicGCDTimer"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "RVS_BasicGCDTimerTest",
      "module_type" : "SwiftTarget",
      "name" : "RVS_BasicGCDTimerTest",
      "path" : "Tests/RVS_BasicGCDTimerTest",
      "sources" : [
        "RVS_BasicGCDTimerTests.swift"
      ],
      "target_dependencies" : [
        "RVS_BasicGCDTimer"
      ],
      "type" : "test"
    },
    {
      "c99name" : "RVS_BasicGCDTimer",
      "module_type" : "SwiftTarget",
      "name" : "RVS_BasicGCDTimer",
      "path" : "Sources/RVS_BasicGCDTimer",
      "product_memberships" : [
        "RVS_BasicGCDTimer"
      ],
      "sources" : [
        "RVS_BasicGCDTimer.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.5"
}
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 -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 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
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/4] Emitting module RVS_BasicGCDTimer
/host/spi-builder-workspace/Sources/RVS_BasicGCDTimer/RVS_BasicGCDTimer.swift:159:28: error: cannot find type 'DispatchSourceTimer' in scope
157 |     private var _onlyFireOnce: Bool = true
158 |     /// This contains the actual dispatch timer object instance.
159 |     private var _timerVar: DispatchSourceTimer?
    |                            `- error: cannot find type 'DispatchSourceTimer' in scope
160 |     /// This is the contained delegate instance
161 |     private weak var _delegate: RVS_BasicGCDTimerDelegate?
/host/spi-builder-workspace/Sources/RVS_BasicGCDTimer/RVS_BasicGCDTimer.swift:169:25: error: cannot find type 'DispatchSourceTimer' in scope
167 |      It uses the current queue.
168 |      */
169 |     private var _timer: DispatchSourceTimer? {
    |                         `- error: cannot find type 'DispatchSourceTimer' in scope
170 |         if nil == _timerVar {   // If we don't already have a timer, we create one. Otherwise, we simply return the already-instantiated object.
171 |             #if DEBUG
/host/spi-builder-workspace/Sources/RVS_BasicGCDTimer/RVS_BasicGCDTimer.swift:261:23: error: cannot find type 'DispatchQueue' in scope
259 |     public var context: Any!
260 |     /// This is the dispatch queue the timer will use.
261 |     public var queue: DispatchQueue!
    |                       `- error: cannot find type 'DispatchQueue' in scope
262 |     /// True, if we are to use the Apple "Wall Clock" time.
263 |     public var isWallTime: Bool = false
/host/spi-builder-workspace/Sources/RVS_BasicGCDTimer/RVS_BasicGCDTimer.swift:358:32: error: cannot find type 'DispatchQueue' in scope
356 |                 onlyFireOnce inOnlyFireOnce: Bool = true,
357 |                 context inContext: Any! = nil,
358 |                 queue inQueue: DispatchQueue! = nil,
    |                                `- error: cannot find type 'DispatchQueue' in scope
359 |                 isWallTime inIsWallTime: Bool = false,
360 |                 completion inCompletion: RVS_BasicGCDTimerCompletion! = nil
[4/4] Compiling RVS_BasicGCDTimer RVS_BasicGCDTimer.swift
/host/spi-builder-workspace/Sources/RVS_BasicGCDTimer/RVS_BasicGCDTimer.swift:159:28: error: cannot find type 'DispatchSourceTimer' in scope
157 |     private var _onlyFireOnce: Bool = true
158 |     /// This contains the actual dispatch timer object instance.
159 |     private var _timerVar: DispatchSourceTimer?
    |                            `- error: cannot find type 'DispatchSourceTimer' in scope
160 |     /// This is the contained delegate instance
161 |     private weak var _delegate: RVS_BasicGCDTimerDelegate?
/host/spi-builder-workspace/Sources/RVS_BasicGCDTimer/RVS_BasicGCDTimer.swift:169:25: error: cannot find type 'DispatchSourceTimer' in scope
167 |      It uses the current queue.
168 |      */
169 |     private var _timer: DispatchSourceTimer? {
    |                         `- error: cannot find type 'DispatchSourceTimer' in scope
170 |         if nil == _timerVar {   // If we don't already have a timer, we create one. Otherwise, we simply return the already-instantiated object.
171 |             #if DEBUG
/host/spi-builder-workspace/Sources/RVS_BasicGCDTimer/RVS_BasicGCDTimer.swift:261:23: error: cannot find type 'DispatchQueue' in scope
259 |     public var context: Any!
260 |     /// This is the dispatch queue the timer will use.
261 |     public var queue: DispatchQueue!
    |                       `- error: cannot find type 'DispatchQueue' in scope
262 |     /// True, if we are to use the Apple "Wall Clock" time.
263 |     public var isWallTime: Bool = false
/host/spi-builder-workspace/Sources/RVS_BasicGCDTimer/RVS_BasicGCDTimer.swift:358:32: error: cannot find type 'DispatchQueue' in scope
356 |                 onlyFireOnce inOnlyFireOnce: Bool = true,
357 |                 context inContext: Any! = nil,
358 |                 queue inQueue: DispatchQueue! = nil,
    |                                `- error: cannot find type 'DispatchQueue' in scope
359 |                 isWallTime inIsWallTime: Bool = false,
360 |                 completion inCompletion: RVS_BasicGCDTimerCompletion! = nil
/host/spi-builder-workspace/Sources/RVS_BasicGCDTimer/RVS_BasicGCDTimer.swift:174:25: error: cannot find 'DispatchSource' in scope
172 |                 print("timer create GCD object")
173 |             #endif
174 |             _timerVar = DispatchSource.makeTimerSource(queue: queue)                // We make a generic, default timer source. No frou-frou. If a queue was specified, we use that.
    |                         `- error: cannot find 'DispatchSource' in scope
175 |             let leeway = DispatchTimeInterval.milliseconds(leewayInMilliseconds)    // If they have provided a leeway, we apply it here. We assume milliseconds.
176 |             _timerVar?.setEventHandler { [weak self] in                             // This is the timer's base callback. This is called from the system timer.
/host/spi-builder-workspace/Sources/RVS_BasicGCDTimer/RVS_BasicGCDTimer.swift:175:26: error: cannot find 'DispatchTimeInterval' in scope
173 |             #endif
174 |             _timerVar = DispatchSource.makeTimerSource(queue: queue)                // We make a generic, default timer source. No frou-frou. If a queue was specified, we use that.
175 |             let leeway = DispatchTimeInterval.milliseconds(leewayInMilliseconds)    // If they have provided a leeway, we apply it here. We assume milliseconds.
    |                          `- error: cannot find 'DispatchTimeInterval' in scope
176 |             _timerVar?.setEventHandler { [weak self] in                             // This is the timer's base callback. This is called from the system timer.
177 |                 if let self = self {
/host/spi-builder-workspace/Sources/RVS_BasicGCDTimer/RVS_BasicGCDTimer.swift:194:55: error: cannot find 'DispatchWallTime' in scope
192 |             if _onlyFireOnce {                                                      // Just this once...
193 |                 if isWallTime {                                                     // See if we want to use "Wall" time, which doesn't care whether or not the computer goes to sleep.
194 |                     _timerVar?.schedule(wallDeadline: DispatchWallTime.now() + timeIntervalInSeconds)
    |                                                       `- error: cannot find 'DispatchWallTime' in scope
195 |                 } else {
196 |                     _timerVar?.schedule(deadline: .now() + timeIntervalInSeconds)
/host/spi-builder-workspace/Sources/RVS_BasicGCDTimer/RVS_BasicGCDTimer.swift:196:52: error: cannot call value of non-function type 'Date'
194 |                     _timerVar?.schedule(wallDeadline: DispatchWallTime.now() + timeIntervalInSeconds)
195 |                 } else {
196 |                     _timerVar?.schedule(deadline: .now() + timeIntervalInSeconds)
    |                                                    `- error: cannot call value of non-function type 'Date'
197 |                 }
198 |             } else {
/host/spi-builder-workspace/Sources/RVS_BasicGCDTimer/RVS_BasicGCDTimer.swift:200:55: error: cannot find 'DispatchWallTime' in scope
198 |             } else {
199 |                 if isWallTime {                                                     // See if we want to use "Wall" time, which doesn't care whether or not the computer goes to sleep.
200 |                     _timerVar?.schedule(wallDeadline: DispatchWallTime.now() + timeIntervalInSeconds,   // The number of seconds each iteration of the timer will take.
    |                                                       `- error: cannot find 'DispatchWallTime' in scope
201 |                         repeating: timeIntervalInSeconds,                                               // If we are repeating (default), we add our duration as the repeating time.
202 |                         leeway: leeway)                                                                 // Add any leeway we specified.
/host/spi-builder-workspace/Sources/RVS_BasicGCDTimer/RVS_BasicGCDTimer.swift:204:52: error: cannot call value of non-function type 'Date'
202 |                         leeway: leeway)                                                                 // Add any leeway we specified.
203 |                 } else {
204 |                     _timerVar?.schedule(deadline: .now() + timeIntervalInSeconds,   // The number of seconds each iteration of the timer will take.
    |                                                    `- error: cannot call value of non-function type 'Date'
205 |                         repeating: timeIntervalInSeconds,                           // If we are repeating (default), we add our duration as the repeating time.
206 |                         leeway: leeway)                                             // Add any leeway we specified.
/host/spi-builder-workspace/Sources/RVS_BasicGCDTimer/RVS_BasicGCDTimer.swift:227:44: error: 'nil' requires a contextual type
225 |             delegate?.basicGCDTimerWillBecomeInvalid(self)
226 |             _delegate = nil
227 |             timer.setEventHandler(handler: nil)
    |                                            `- error: 'nil' requires a contextual type
228 |             timer.cancel()
229 |
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/3] Emitting module RVS_BasicGCDTimer
/host/spi-builder-workspace/Sources/RVS_BasicGCDTimer/RVS_BasicGCDTimer.swift:159:28: error: cannot find type 'DispatchSourceTimer' in scope
157 |     private var _onlyFireOnce: Bool = true
158 |     /// This contains the actual dispatch timer object instance.
159 |     private var _timerVar: DispatchSourceTimer?
    |                            `- error: cannot find type 'DispatchSourceTimer' in scope
160 |     /// This is the contained delegate instance
161 |     private weak var _delegate: RVS_BasicGCDTimerDelegate?
/host/spi-builder-workspace/Sources/RVS_BasicGCDTimer/RVS_BasicGCDTimer.swift:169:25: error: cannot find type 'DispatchSourceTimer' in scope
167 |      It uses the current queue.
168 |      */
169 |     private var _timer: DispatchSourceTimer? {
    |                         `- error: cannot find type 'DispatchSourceTimer' in scope
170 |         if nil == _timerVar {   // If we don't already have a timer, we create one. Otherwise, we simply return the already-instantiated object.
171 |             #if DEBUG
/host/spi-builder-workspace/Sources/RVS_BasicGCDTimer/RVS_BasicGCDTimer.swift:261:23: error: cannot find type 'DispatchQueue' in scope
259 |     public var context: Any!
260 |     /// This is the dispatch queue the timer will use.
261 |     public var queue: DispatchQueue!
    |                       `- error: cannot find type 'DispatchQueue' in scope
262 |     /// True, if we are to use the Apple "Wall Clock" time.
263 |     public var isWallTime: Bool = false
/host/spi-builder-workspace/Sources/RVS_BasicGCDTimer/RVS_BasicGCDTimer.swift:358:32: error: cannot find type 'DispatchQueue' in scope
356 |                 onlyFireOnce inOnlyFireOnce: Bool = true,
357 |                 context inContext: Any! = nil,
358 |                 queue inQueue: DispatchQueue! = nil,
    |                                `- error: cannot find type 'DispatchQueue' in scope
359 |                 isWallTime inIsWallTime: Bool = false,
360 |                 completion inCompletion: RVS_BasicGCDTimerCompletion! = nil
[3/3] Compiling RVS_BasicGCDTimer RVS_BasicGCDTimer.swift
/host/spi-builder-workspace/Sources/RVS_BasicGCDTimer/RVS_BasicGCDTimer.swift:159:28: error: cannot find type 'DispatchSourceTimer' in scope
157 |     private var _onlyFireOnce: Bool = true
158 |     /// This contains the actual dispatch timer object instance.
159 |     private var _timerVar: DispatchSourceTimer?
    |                            `- error: cannot find type 'DispatchSourceTimer' in scope
160 |     /// This is the contained delegate instance
161 |     private weak var _delegate: RVS_BasicGCDTimerDelegate?
/host/spi-builder-workspace/Sources/RVS_BasicGCDTimer/RVS_BasicGCDTimer.swift:169:25: error: cannot find type 'DispatchSourceTimer' in scope
167 |      It uses the current queue.
168 |      */
169 |     private var _timer: DispatchSourceTimer? {
    |                         `- error: cannot find type 'DispatchSourceTimer' in scope
170 |         if nil == _timerVar {   // If we don't already have a timer, we create one. Otherwise, we simply return the already-instantiated object.
171 |             #if DEBUG
/host/spi-builder-workspace/Sources/RVS_BasicGCDTimer/RVS_BasicGCDTimer.swift:261:23: error: cannot find type 'DispatchQueue' in scope
259 |     public var context: Any!
260 |     /// This is the dispatch queue the timer will use.
261 |     public var queue: DispatchQueue!
    |                       `- error: cannot find type 'DispatchQueue' in scope
262 |     /// True, if we are to use the Apple "Wall Clock" time.
263 |     public var isWallTime: Bool = false
/host/spi-builder-workspace/Sources/RVS_BasicGCDTimer/RVS_BasicGCDTimer.swift:358:32: error: cannot find type 'DispatchQueue' in scope
356 |                 onlyFireOnce inOnlyFireOnce: Bool = true,
357 |                 context inContext: Any! = nil,
358 |                 queue inQueue: DispatchQueue! = nil,
    |                                `- error: cannot find type 'DispatchQueue' in scope
359 |                 isWallTime inIsWallTime: Bool = false,
360 |                 completion inCompletion: RVS_BasicGCDTimerCompletion! = nil
/host/spi-builder-workspace/Sources/RVS_BasicGCDTimer/RVS_BasicGCDTimer.swift:174:25: error: cannot find 'DispatchSource' in scope
172 |                 print("timer create GCD object")
173 |             #endif
174 |             _timerVar = DispatchSource.makeTimerSource(queue: queue)                // We make a generic, default timer source. No frou-frou. If a queue was specified, we use that.
    |                         `- error: cannot find 'DispatchSource' in scope
175 |             let leeway = DispatchTimeInterval.milliseconds(leewayInMilliseconds)    // If they have provided a leeway, we apply it here. We assume milliseconds.
176 |             _timerVar?.setEventHandler { [weak self] in                             // This is the timer's base callback. This is called from the system timer.
/host/spi-builder-workspace/Sources/RVS_BasicGCDTimer/RVS_BasicGCDTimer.swift:175:26: error: cannot find 'DispatchTimeInterval' in scope
173 |             #endif
174 |             _timerVar = DispatchSource.makeTimerSource(queue: queue)                // We make a generic, default timer source. No frou-frou. If a queue was specified, we use that.
175 |             let leeway = DispatchTimeInterval.milliseconds(leewayInMilliseconds)    // If they have provided a leeway, we apply it here. We assume milliseconds.
    |                          `- error: cannot find 'DispatchTimeInterval' in scope
176 |             _timerVar?.setEventHandler { [weak self] in                             // This is the timer's base callback. This is called from the system timer.
177 |                 if let self = self {
/host/spi-builder-workspace/Sources/RVS_BasicGCDTimer/RVS_BasicGCDTimer.swift:194:55: error: cannot find 'DispatchWallTime' in scope
192 |             if _onlyFireOnce {                                                      // Just this once...
193 |                 if isWallTime {                                                     // See if we want to use "Wall" time, which doesn't care whether or not the computer goes to sleep.
194 |                     _timerVar?.schedule(wallDeadline: DispatchWallTime.now() + timeIntervalInSeconds)
    |                                                       `- error: cannot find 'DispatchWallTime' in scope
195 |                 } else {
196 |                     _timerVar?.schedule(deadline: .now() + timeIntervalInSeconds)
/host/spi-builder-workspace/Sources/RVS_BasicGCDTimer/RVS_BasicGCDTimer.swift:196:52: error: cannot call value of non-function type 'Date'
194 |                     _timerVar?.schedule(wallDeadline: DispatchWallTime.now() + timeIntervalInSeconds)
195 |                 } else {
196 |                     _timerVar?.schedule(deadline: .now() + timeIntervalInSeconds)
    |                                                    `- error: cannot call value of non-function type 'Date'
197 |                 }
198 |             } else {
/host/spi-builder-workspace/Sources/RVS_BasicGCDTimer/RVS_BasicGCDTimer.swift:200:55: error: cannot find 'DispatchWallTime' in scope
198 |             } else {
199 |                 if isWallTime {                                                     // See if we want to use "Wall" time, which doesn't care whether or not the computer goes to sleep.
200 |                     _timerVar?.schedule(wallDeadline: DispatchWallTime.now() + timeIntervalInSeconds,   // The number of seconds each iteration of the timer will take.
    |                                                       `- error: cannot find 'DispatchWallTime' in scope
201 |                         repeating: timeIntervalInSeconds,                                               // If we are repeating (default), we add our duration as the repeating time.
202 |                         leeway: leeway)                                                                 // Add any leeway we specified.
/host/spi-builder-workspace/Sources/RVS_BasicGCDTimer/RVS_BasicGCDTimer.swift:204:52: error: cannot call value of non-function type 'Date'
202 |                         leeway: leeway)                                                                 // Add any leeway we specified.
203 |                 } else {
204 |                     _timerVar?.schedule(deadline: .now() + timeIntervalInSeconds,   // The number of seconds each iteration of the timer will take.
    |                                                    `- error: cannot call value of non-function type 'Date'
205 |                         repeating: timeIntervalInSeconds,                           // If we are repeating (default), we add our duration as the repeating time.
206 |                         leeway: leeway)                                             // Add any leeway we specified.
/host/spi-builder-workspace/Sources/RVS_BasicGCDTimer/RVS_BasicGCDTimer.swift:227:44: error: 'nil' requires a contextual type
225 |             delegate?.basicGCDTimerWillBecomeInvalid(self)
226 |             _delegate = nil
227 |             timer.setEventHandler(handler: nil)
    |                                            `- error: 'nil' requires a contextual type
228 |             timer.cancel()
229 |
BUILD FAILURE 6.1 wasm