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 Schedule, reference master (e388fc), with Swift 6.1 for Wasm on 27 May 2025 20:33:30 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-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/luoxiu/Schedule.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/luoxiu/Schedule
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at e388fca Merge branch 'master' of https://github.com/luoxiu/Schedule
Cloned https://github.com/luoxiu/Schedule.git
Revision (git rev-parse @):
e388fcab1d870f32c0359a414fda81b8e81b98c9
SUCCESS checkout https://github.com/luoxiu/Schedule.git at master
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/luoxiu/Schedule.git
https://github.com/luoxiu/Schedule.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Schedule",
  "name" : "Schedule",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.11"
    },
    {
      "name" : "ios",
      "version" : "9.0"
    },
    {
      "name" : "tvos",
      "version" : "9.0"
    },
    {
      "name" : "watchos",
      "version" : "2.0"
    }
  ],
  "products" : [
    {
      "name" : "Schedule",
      "targets" : [
        "Schedule"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "swift_languages_versions" : [
    "5"
  ],
  "targets" : [
    {
      "c99name" : "ScheduleTests",
      "module_type" : "SwiftTarget",
      "name" : "ScheduleTests",
      "path" : "Tests/ScheduleTests",
      "sources" : [
        "AtomicTests.swift",
        "BagTests.swift",
        "ExtensionsTests.swift",
        "Helpers.swift",
        "IntervalTests.swift",
        "MonthdayTests.swift",
        "PeriodTests.swift",
        "PlanTests.swift",
        "TaskCenterTests.swift",
        "TaskTests.swift",
        "TimeTests.swift",
        "WeekdayTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "Schedule"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Schedule",
      "module_type" : "SwiftTarget",
      "name" : "Schedule",
      "path" : "Sources/Schedule",
      "product_memberships" : [
        "Schedule"
      ],
      "sources" : [
        "Atomic.swift",
        "Bag.swift",
        "Extensions.swift",
        "Interval.swift",
        "Monthday.swift",
        "Period.swift",
        "Plan.swift",
        "RunLoopTask.swift",
        "Task.swift",
        "TaskCenter.swift",
        "Time.swift",
        "Weekday.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-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 -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
[3/14] Compiling Schedule Time.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/15] Emitting module Schedule
/host/spi-builder-workspace/Sources/Schedule/Interval.swift:326:11: error: cannot find type 'DispatchSourceTimer' in scope
324 | // MARK: - DispatchSourceTimer
325 |
326 | extension DispatchSourceTimer {
    |           `- error: cannot find type 'DispatchSourceTimer' in scope
327 |
328 |     /// Schedule this timer after the given interval.
/host/spi-builder-workspace/Sources/Schedule/Period.swift:45:24: warning: static property 'quantifiers' is not concurrency-safe because non-'Sendable' type 'Atomic<[String : Int]>' may have shared mutable state; this is an error in the Swift 6 language mode
 43 |     }
 44 |
 45 |     private static let quantifiers: Atomic<[String: Int]> = Atomic([
    |                        |- warning: static property 'quantifiers' is not concurrency-safe because non-'Sendable' type 'Atomic<[String : Int]>' may have shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: add '@MainActor' to make static property 'quantifiers' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 46 |         "one": 1, "two": 2, "three": 3, "four": 4, "five": 5, "six": 6,
 47 |         "seven": 7, "eight": 8, "nine": 9, "ten": 10, "eleven": 11, "twelve": 12
/host/spi-builder-workspace/Sources/Schedule/Atomic.swift:4:13: note: generic class 'Atomic' does not conform to the 'Sendable' protocol
 2 |
 3 | /// An atomic box that can read and write the underlying value atomically.
 4 | final class Atomic<T> {
   |             `- note: generic class 'Atomic' does not conform to the 'Sendable' protocol
 5 |
 6 |     private var val: T
/host/spi-builder-workspace/Sources/Schedule/Plan.swift:27:16: error: cannot find type 'DispatchQueue' in scope
 25 |     /// - Returns: The task just created.
 26 |     public func `do`(
 27 |         queue: DispatchQueue,
    |                `- error: cannot find type 'DispatchQueue' in scope
 28 |         action: @escaping (Task) -> Void
 29 |     ) -> Task {
/host/spi-builder-workspace/Sources/Schedule/Plan.swift:40:16: error: cannot find type 'DispatchQueue' in scope
 38 |     /// - Returns: The task just created.
 39 |     public func `do`(
 40 |         queue: DispatchQueue,
    |                `- error: cannot find type 'DispatchQueue' in scope
 41 |         action: @escaping () -> Void
 42 |     ) -> Task {
/host/spi-builder-workspace/Sources/Schedule/Task.swift:111:16: error: cannot find type 'DispatchQueue' in scope
109 |     init(
110 |         plan: Plan,
111 |         queue: DispatchQueue?,
    |                `- error: cannot find type 'DispatchQueue' in scope
112 |         action: @escaping (Task) -> Void
113 |     ) {
/host/spi-builder-workspace/Sources/Schedule/Task.swift:24:25: error: cannot find type 'DispatchSourceTimer' in scope
 22 |
 23 |     private var _iterator: AnyIterator<Interval>
 24 |     private let _timer: DispatchSourceTimer
    |                         `- error: cannot find type 'DispatchSourceTimer' in scope
 25 |
 26 |     private var _actions = Bag<Action>()
/host/spi-builder-workspace/Sources/Schedule/TaskCenter.swift:28:13: warning: let '_default' is not concurrency-safe because non-'Sendable' type 'TaskCenter' may have shared mutable state; this is an error in the Swift 6 language mode
 26 | }
 27 |
 28 | private let _default = TaskCenter()
    |             |- warning: let '_default' is not concurrency-safe because non-'Sendable' type 'TaskCenter' may have shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: add '@MainActor' to make let '_default' part of global actor 'MainActor'
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 29 |
 30 | /// A task center that enables batch operation.
 31 | open class TaskCenter {
    |            `- note: class 'TaskCenter' does not conform to the 'Sendable' protocol
 32 |
 33 |     private let lock = NSLock()
[5/15] Compiling Schedule Monthday.swift
/host/spi-builder-workspace/Sources/Schedule/Period.swift:45:24: warning: static property 'quantifiers' is not concurrency-safe because non-'Sendable' type 'Atomic<[String : Int]>' may have shared mutable state; this is an error in the Swift 6 language mode
 43 |     }
 44 |
 45 |     private static let quantifiers: Atomic<[String: Int]> = Atomic([
    |                        |- warning: static property 'quantifiers' is not concurrency-safe because non-'Sendable' type 'Atomic<[String : Int]>' may have shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: add '@MainActor' to make static property 'quantifiers' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 46 |         "one": 1, "two": 2, "three": 3, "four": 4, "five": 5, "six": 6,
 47 |         "seven": 7, "eight": 8, "nine": 9, "ten": 10, "eleven": 11, "twelve": 12
/host/spi-builder-workspace/Sources/Schedule/Atomic.swift:4:13: note: generic class 'Atomic' does not conform to the 'Sendable' protocol
 2 |
 3 | /// An atomic box that can read and write the underlying value atomically.
 4 | final class Atomic<T> {
   |             `- note: generic class 'Atomic' does not conform to the 'Sendable' protocol
 5 |
 6 |     private var val: T
[6/15] Compiling Schedule Period.swift
/host/spi-builder-workspace/Sources/Schedule/Period.swift:45:24: warning: static property 'quantifiers' is not concurrency-safe because non-'Sendable' type 'Atomic<[String : Int]>' may have shared mutable state; this is an error in the Swift 6 language mode
 43 |     }
 44 |
 45 |     private static let quantifiers: Atomic<[String: Int]> = Atomic([
    |                        |- warning: static property 'quantifiers' is not concurrency-safe because non-'Sendable' type 'Atomic<[String : Int]>' may have shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: add '@MainActor' to make static property 'quantifiers' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 46 |         "one": 1, "two": 2, "three": 3, "four": 4, "five": 5, "six": 6,
 47 |         "seven": 7, "eight": 8, "nine": 9, "ten": 10, "eleven": 11, "twelve": 12
/host/spi-builder-workspace/Sources/Schedule/Atomic.swift:4:13: note: generic class 'Atomic' does not conform to the 'Sendable' protocol
 2 |
 3 | /// An atomic box that can read and write the underlying value atomically.
 4 | final class Atomic<T> {
   |             `- note: generic class 'Atomic' does not conform to the 'Sendable' protocol
 5 |
 6 |     private var val: T
[7/15] Compiling Schedule Atomic.swift
[8/15] Compiling Schedule Bag.swift
[9/15] Compiling Schedule Extensions.swift
/host/spi-builder-workspace/Sources/Schedule/Interval.swift:326:11: error: cannot find type 'DispatchSourceTimer' in scope
324 | // MARK: - DispatchSourceTimer
325 |
326 | extension DispatchSourceTimer {
    |           `- error: cannot find type 'DispatchSourceTimer' in scope
327 |
328 |     /// Schedule this timer after the given interval.
[10/15] Compiling Schedule Interval.swift
/host/spi-builder-workspace/Sources/Schedule/Interval.swift:326:11: error: cannot find type 'DispatchSourceTimer' in scope
324 | // MARK: - DispatchSourceTimer
325 |
326 | extension DispatchSourceTimer {
    |           `- error: cannot find type 'DispatchSourceTimer' in scope
327 |
328 |     /// Schedule this timer after the given interval.
[11/15] Compiling Schedule Task.swift
/host/spi-builder-workspace/Sources/Schedule/Task.swift:24:25: error: cannot find type 'DispatchSourceTimer' in scope
 22 |
 23 |     private var _iterator: AnyIterator<Interval>
 24 |     private let _timer: DispatchSourceTimer
    |                         `- error: cannot find type 'DispatchSourceTimer' in scope
 25 |
 26 |     private var _actions = Bag<Action>()
/host/spi-builder-workspace/Sources/Schedule/Task.swift:111:16: error: cannot find type 'DispatchQueue' in scope
109 |     init(
110 |         plan: Plan,
111 |         queue: DispatchQueue?,
    |                `- error: cannot find type 'DispatchQueue' in scope
112 |         action: @escaping (Task) -> Void
113 |     ) {
/host/spi-builder-workspace/Sources/Schedule/Task.swift:115:18: error: cannot find 'DispatchSource' in scope
113 |     ) {
114 |         _iterator = plan.makeIterator()
115 |         _timer = DispatchSource.makeTimerSource(queue: queue)
    |                  `- error: cannot find 'DispatchSource' in scope
116 |
117 |         _actions.append(action)
[12/15] Compiling Schedule TaskCenter.swift
/host/spi-builder-workspace/Sources/Schedule/TaskCenter.swift:28:13: warning: let '_default' is not concurrency-safe because non-'Sendable' type 'TaskCenter' may have shared mutable state; this is an error in the Swift 6 language mode
 26 | }
 27 |
 28 | private let _default = TaskCenter()
    |             |- warning: let '_default' is not concurrency-safe because non-'Sendable' type 'TaskCenter' may have shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: add '@MainActor' to make let '_default' part of global actor 'MainActor'
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 29 |
 30 | /// A task center that enables batch operation.
 31 | open class TaskCenter {
    |            `- note: class 'TaskCenter' does not conform to the 'Sendable' protocol
 32 |
 33 |     private let lock = NSLock()
/host/spi-builder-workspace/Sources/Schedule/Task.swift:24:25: error: cannot find type 'DispatchSourceTimer' in scope
 22 |
 23 |     private var _iterator: AnyIterator<Interval>
 24 |     private let _timer: DispatchSourceTimer
    |                         `- error: cannot find type 'DispatchSourceTimer' in scope
 25 |
 26 |     private var _actions = Bag<Action>()
[13/15] Compiling Schedule Plan.swift
/host/spi-builder-workspace/Sources/Schedule/Plan.swift:27:16: error: cannot find type 'DispatchQueue' in scope
 25 |     /// - Returns: The task just created.
 26 |     public func `do`(
 27 |         queue: DispatchQueue,
    |                `- error: cannot find type 'DispatchQueue' in scope
 28 |         action: @escaping (Task) -> Void
 29 |     ) -> Task {
/host/spi-builder-workspace/Sources/Schedule/Plan.swift:40:16: error: cannot find type 'DispatchQueue' in scope
 38 |     /// - Returns: The task just created.
 39 |     public func `do`(
 40 |         queue: DispatchQueue,
    |                `- error: cannot find type 'DispatchQueue' in scope
 41 |         action: @escaping () -> Void
 42 |     ) -> Task {
/host/spi-builder-workspace/Sources/Schedule/Task.swift:111:16: error: cannot find type 'DispatchQueue' in scope
109 |     init(
110 |         plan: Plan,
111 |         queue: DispatchQueue?,
    |                `- error: cannot find type 'DispatchQueue' in scope
112 |         action: @escaping (Task) -> Void
113 |     ) {
/host/spi-builder-workspace/Sources/Schedule/Plan.swift:43:31: error: extra argument 'queue' in call
 41 |         action: @escaping () -> Void
 42 |     ) -> Task {
 43 |         return self.do(queue: queue, action: { (_) in action() })
    |                               `- error: extra argument 'queue' in call
 44 |     }
 45 | }
/host/spi-builder-workspace/Sources/Schedule/RunLoopTask.swift:57:39: error: 'nil' requires a contextual type
55 |         action: @escaping (Task) -> Void
56 |     ) {
57 |         super.init(plan: plan, queue: nil) { (task) in
   |                                       `- error: 'nil' requires a contextual type
58 |             guard let task = task as? RunLoopTask, let timer = task.timer else { return }
59 |             timer.fireDate = Date()
/host/spi-builder-workspace/Sources/Schedule/RunLoopTask.swift:78:25: error: value of type 'RunLoop' has no member 'add'
76 |         #endif
77 |
78 |         RunLoop.current.add(timer, forMode: mode)
   |                         `- error: value of type 'RunLoop' has no member 'add'
79 |     }
80 |
[14/15] Compiling Schedule RunLoopTask.swift
/host/spi-builder-workspace/Sources/Schedule/Plan.swift:27:16: error: cannot find type 'DispatchQueue' in scope
 25 |     /// - Returns: The task just created.
 26 |     public func `do`(
 27 |         queue: DispatchQueue,
    |                `- error: cannot find type 'DispatchQueue' in scope
 28 |         action: @escaping (Task) -> Void
 29 |     ) -> Task {
/host/spi-builder-workspace/Sources/Schedule/Plan.swift:40:16: error: cannot find type 'DispatchQueue' in scope
 38 |     /// - Returns: The task just created.
 39 |     public func `do`(
 40 |         queue: DispatchQueue,
    |                `- error: cannot find type 'DispatchQueue' in scope
 41 |         action: @escaping () -> Void
 42 |     ) -> Task {
/host/spi-builder-workspace/Sources/Schedule/Task.swift:111:16: error: cannot find type 'DispatchQueue' in scope
109 |     init(
110 |         plan: Plan,
111 |         queue: DispatchQueue?,
    |                `- error: cannot find type 'DispatchQueue' in scope
112 |         action: @escaping (Task) -> Void
113 |     ) {
/host/spi-builder-workspace/Sources/Schedule/Plan.swift:43:31: error: extra argument 'queue' in call
 41 |         action: @escaping () -> Void
 42 |     ) -> Task {
 43 |         return self.do(queue: queue, action: { (_) in action() })
    |                               `- error: extra argument 'queue' in call
 44 |     }
 45 | }
/host/spi-builder-workspace/Sources/Schedule/RunLoopTask.swift:57:39: error: 'nil' requires a contextual type
55 |         action: @escaping (Task) -> Void
56 |     ) {
57 |         super.init(plan: plan, queue: nil) { (task) in
   |                                       `- error: 'nil' requires a contextual type
58 |             guard let task = task as? RunLoopTask, let timer = task.timer else { return }
59 |             timer.fireDate = Date()
/host/spi-builder-workspace/Sources/Schedule/RunLoopTask.swift:78:25: error: value of type 'RunLoop' has no member 'add'
76 |         #endif
77 |
78 |         RunLoop.current.add(timer, forMode: mode)
   |                         `- error: value of type 'RunLoop' has no member 'add'
79 |     }
80 |
[15/15] Compiling Schedule Weekday.swift
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-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/13] Compiling Schedule Atomic.swift
[3/13] Compiling Schedule Bag.swift
[4/13] Emitting module Schedule
/host/spi-builder-workspace/Sources/Schedule/Interval.swift:326:11: error: cannot find type 'DispatchSourceTimer' in scope
324 | // MARK: - DispatchSourceTimer
325 |
326 | extension DispatchSourceTimer {
    |           `- error: cannot find type 'DispatchSourceTimer' in scope
327 |
328 |     /// Schedule this timer after the given interval.
/host/spi-builder-workspace/Sources/Schedule/Plan.swift:27:16: error: cannot find type 'DispatchQueue' in scope
 25 |     /// - Returns: The task just created.
 26 |     public func `do`(
 27 |         queue: DispatchQueue,
    |                `- error: cannot find type 'DispatchQueue' in scope
 28 |         action: @escaping (Task) -> Void
 29 |     ) -> Task {
/host/spi-builder-workspace/Sources/Schedule/Plan.swift:40:16: error: cannot find type 'DispatchQueue' in scope
 38 |     /// - Returns: The task just created.
 39 |     public func `do`(
 40 |         queue: DispatchQueue,
    |                `- error: cannot find type 'DispatchQueue' in scope
 41 |         action: @escaping () -> Void
 42 |     ) -> Task {
/host/spi-builder-workspace/Sources/Schedule/Task.swift:111:16: error: cannot find type 'DispatchQueue' in scope
109 |     init(
110 |         plan: Plan,
111 |         queue: DispatchQueue?,
    |                `- error: cannot find type 'DispatchQueue' in scope
112 |         action: @escaping (Task) -> Void
113 |     ) {
/host/spi-builder-workspace/Sources/Schedule/Task.swift:24:25: error: cannot find type 'DispatchSourceTimer' in scope
 22 |
 23 |     private var _iterator: AnyIterator<Interval>
 24 |     private let _timer: DispatchSourceTimer
    |                         `- error: cannot find type 'DispatchSourceTimer' in scope
 25 |
 26 |     private var _actions = Bag<Action>()
[5/13] Compiling Schedule Extensions.swift
/host/spi-builder-workspace/Sources/Schedule/Interval.swift:326:11: error: cannot find type 'DispatchSourceTimer' in scope
324 | // MARK: - DispatchSourceTimer
325 |
326 | extension DispatchSourceTimer {
    |           `- error: cannot find type 'DispatchSourceTimer' in scope
327 |
328 |     /// Schedule this timer after the given interval.
[6/13] Compiling Schedule Interval.swift
/host/spi-builder-workspace/Sources/Schedule/Interval.swift:326:11: error: cannot find type 'DispatchSourceTimer' in scope
324 | // MARK: - DispatchSourceTimer
325 |
326 | extension DispatchSourceTimer {
    |           `- error: cannot find type 'DispatchSourceTimer' in scope
327 |
328 |     /// Schedule this timer after the given interval.
[7/14] Compiling Schedule Task.swift
/host/spi-builder-workspace/Sources/Schedule/Task.swift:24:25: error: cannot find type 'DispatchSourceTimer' in scope
 22 |
 23 |     private var _iterator: AnyIterator<Interval>
 24 |     private let _timer: DispatchSourceTimer
    |                         `- error: cannot find type 'DispatchSourceTimer' in scope
 25 |
 26 |     private var _actions = Bag<Action>()
/host/spi-builder-workspace/Sources/Schedule/Task.swift:111:16: error: cannot find type 'DispatchQueue' in scope
109 |     init(
110 |         plan: Plan,
111 |         queue: DispatchQueue?,
    |                `- error: cannot find type 'DispatchQueue' in scope
112 |         action: @escaping (Task) -> Void
113 |     ) {
/host/spi-builder-workspace/Sources/Schedule/Task.swift:115:18: error: cannot find 'DispatchSource' in scope
113 |     ) {
114 |         _iterator = plan.makeIterator()
115 |         _timer = DispatchSource.makeTimerSource(queue: queue)
    |                  `- error: cannot find 'DispatchSource' in scope
116 |
117 |         _actions.append(action)
[8/14] Compiling Schedule TaskCenter.swift
/host/spi-builder-workspace/Sources/Schedule/Task.swift:24:25: error: cannot find type 'DispatchSourceTimer' in scope
 22 |
 23 |     private var _iterator: AnyIterator<Interval>
 24 |     private let _timer: DispatchSourceTimer
    |                         `- error: cannot find type 'DispatchSourceTimer' in scope
 25 |
 26 |     private var _actions = Bag<Action>()
[9/14] Compiling Schedule Time.swift
[10/14] Compiling Schedule Weekday.swift
[11/14] Compiling Schedule Monthday.swift
[12/14] Compiling Schedule Period.swift
[13/14] Compiling Schedule Plan.swift
/host/spi-builder-workspace/Sources/Schedule/Plan.swift:27:16: error: cannot find type 'DispatchQueue' in scope
 25 |     /// - Returns: The task just created.
 26 |     public func `do`(
 27 |         queue: DispatchQueue,
    |                `- error: cannot find type 'DispatchQueue' in scope
 28 |         action: @escaping (Task) -> Void
 29 |     ) -> Task {
/host/spi-builder-workspace/Sources/Schedule/Plan.swift:40:16: error: cannot find type 'DispatchQueue' in scope
 38 |     /// - Returns: The task just created.
 39 |     public func `do`(
 40 |         queue: DispatchQueue,
    |                `- error: cannot find type 'DispatchQueue' in scope
 41 |         action: @escaping () -> Void
 42 |     ) -> Task {
/host/spi-builder-workspace/Sources/Schedule/Task.swift:111:16: error: cannot find type 'DispatchQueue' in scope
109 |     init(
110 |         plan: Plan,
111 |         queue: DispatchQueue?,
    |                `- error: cannot find type 'DispatchQueue' in scope
112 |         action: @escaping (Task) -> Void
113 |     ) {
/host/spi-builder-workspace/Sources/Schedule/Plan.swift:43:31: error: extra argument 'queue' in call
 41 |         action: @escaping () -> Void
 42 |     ) -> Task {
 43 |         return self.do(queue: queue, action: { (_) in action() })
    |                               `- error: extra argument 'queue' in call
 44 |     }
 45 | }
/host/spi-builder-workspace/Sources/Schedule/RunLoopTask.swift:57:39: error: 'nil' requires a contextual type
55 |         action: @escaping (Task) -> Void
56 |     ) {
57 |         super.init(plan: plan, queue: nil) { (task) in
   |                                       `- error: 'nil' requires a contextual type
58 |             guard let task = task as? RunLoopTask, let timer = task.timer else { return }
59 |             timer.fireDate = Date()
/host/spi-builder-workspace/Sources/Schedule/RunLoopTask.swift:78:25: error: value of type 'RunLoop' has no member 'add'
76 |         #endif
77 |
78 |         RunLoop.current.add(timer, forMode: mode)
   |                         `- error: value of type 'RunLoop' has no member 'add'
79 |     }
80 |
[14/14] Compiling Schedule RunLoopTask.swift
/host/spi-builder-workspace/Sources/Schedule/Plan.swift:27:16: error: cannot find type 'DispatchQueue' in scope
 25 |     /// - Returns: The task just created.
 26 |     public func `do`(
 27 |         queue: DispatchQueue,
    |                `- error: cannot find type 'DispatchQueue' in scope
 28 |         action: @escaping (Task) -> Void
 29 |     ) -> Task {
/host/spi-builder-workspace/Sources/Schedule/Plan.swift:40:16: error: cannot find type 'DispatchQueue' in scope
 38 |     /// - Returns: The task just created.
 39 |     public func `do`(
 40 |         queue: DispatchQueue,
    |                `- error: cannot find type 'DispatchQueue' in scope
 41 |         action: @escaping () -> Void
 42 |     ) -> Task {
/host/spi-builder-workspace/Sources/Schedule/Task.swift:111:16: error: cannot find type 'DispatchQueue' in scope
109 |     init(
110 |         plan: Plan,
111 |         queue: DispatchQueue?,
    |                `- error: cannot find type 'DispatchQueue' in scope
112 |         action: @escaping (Task) -> Void
113 |     ) {
/host/spi-builder-workspace/Sources/Schedule/Plan.swift:43:31: error: extra argument 'queue' in call
 41 |         action: @escaping () -> Void
 42 |     ) -> Task {
 43 |         return self.do(queue: queue, action: { (_) in action() })
    |                               `- error: extra argument 'queue' in call
 44 |     }
 45 | }
/host/spi-builder-workspace/Sources/Schedule/RunLoopTask.swift:57:39: error: 'nil' requires a contextual type
55 |         action: @escaping (Task) -> Void
56 |     ) {
57 |         super.init(plan: plan, queue: nil) { (task) in
   |                                       `- error: 'nil' requires a contextual type
58 |             guard let task = task as? RunLoopTask, let timer = task.timer else { return }
59 |             timer.fireDate = Date()
/host/spi-builder-workspace/Sources/Schedule/RunLoopTask.swift:78:25: error: value of type 'RunLoop' has no member 'add'
76 |         #endif
77 |
78 |         RunLoop.current.add(timer, forMode: mode)
   |                         `- error: value of type 'RunLoop' has no member 'add'
79 |     }
80 |
BUILD FAILURE 6.1 wasm