The Swift Package Index logo.Swift Package Index

Build Information

Failed to build ECWavingHaptics, reference main (ee87bc), with Swift 6.3 for macOS (SPM) on 14 Apr 2026 21:40:29 UTC.

Build Command

env DEVELOPER_DIR=/Applications/Xcode-26.4.0.app xcrun swift build --arch arm64

Build Log

========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/excitedcosmos/ECWavingHaptics.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/excitedcosmos/ECWavingHaptics
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at ee87bc2 Remove irrelevant files
Cloned https://github.com/excitedcosmos/ECWavingHaptics.git
Revision (git rev-parse @):
ee87bc250e077d49ecd4b63b2598ad737b2f7b84
SUCCESS checkout https://github.com/excitedcosmos/ECWavingHaptics.git at main
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
  "identity": ".resolve-product-dependencies",
  "name": "resolve-dependencies",
  "url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "version": "unspecified",
  "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "traits": [
    "default"
  ],
  "dependencies": [
    {
      "identity": "ecwavinghaptics",
      "name": "ECWavingHaptics",
      "url": "https://github.com/excitedcosmos/ECWavingHaptics.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/ECWavingHaptics",
      "traits": [
        "default"
      ],
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/excitedcosmos/ECWavingHaptics.git
[1/50] Fetching ecwavinghaptics
Fetched https://github.com/excitedcosmos/ECWavingHaptics.git from cache (0.66s)
Creating working copy for https://github.com/excitedcosmos/ECWavingHaptics.git
Working copy of https://github.com/excitedcosmos/ECWavingHaptics.git resolved at main (ee87bc2)
warning: '.resolve-product-dependencies': dependency 'ecwavinghaptics' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.3
Building package at path:  $PWD
https://github.com/excitedcosmos/ECWavingHaptics.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.4.0.app xcrun swift build --arch arm64
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--6988338F2F200930.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/4] Emitting module ECWavingHaptics
/Users/admin/builder/spi-builder-workspace/Sources/ECWavingHaptics/ECWavingHaptics.swift:109:25: error: 'CHHapticEngine' is only available in macOS 10.15 or newer
106 | import CoreHaptics
107 |
108 | class ECWavingHaptics {
    |       `- note: add '@available' attribute to enclosing class
109 |     private var engine: CHHapticEngine?
    |                         `- error: 'CHHapticEngine' is only available in macOS 10.15 or newer
110 |     private var audioEngine: AVAudioEngine?
111 |     private var audioPlayerNode: AVAudioPlayerNode?
[4/4] Compiling ECWavingHaptics ECWavingHaptics.swift
/Users/admin/builder/spi-builder-workspace/Sources/ECWavingHaptics/ECWavingHaptics.swift:109:25: error: 'CHHapticEngine' is only available in macOS 10.15 or newer
106 | import CoreHaptics
107 |
108 | class ECWavingHaptics {
    |       `- note: add '@available' attribute to enclosing class
109 |     private var engine: CHHapticEngine?
    |                         `- error: 'CHHapticEngine' is only available in macOS 10.15 or newer
110 |     private var audioEngine: AVAudioEngine?
111 |     private var audioPlayerNode: AVAudioPlayerNode?
/Users/admin/builder/spi-builder-workspace/Sources/ECWavingHaptics/ECWavingHaptics.swift:138:15: error: 'CHHapticEngine' is only available in macOS 10.15 or newer
106 | import CoreHaptics
107 |
108 | class ECWavingHaptics {
    |       `- note: add '@available' attribute to enclosing class
109 |     private var engine: CHHapticEngine?
110 |     private var audioEngine: AVAudioEngine?
    :
135 |     }
136 |
137 |     private func setupHaptics() {
    |                  `- note: add '@available' attribute to enclosing instance method
138 |         guard CHHapticEngine.capabilitiesForHardware().supportsHaptics else { return }
    |               |- error: 'CHHapticEngine' is only available in macOS 10.15 or newer
    |               `- note: add 'if #available' version check
139 |
140 |         do {
/Users/admin/builder/spi-builder-workspace/Sources/ECWavingHaptics/ECWavingHaptics.swift:141:26: error: 'CHHapticEngine' is only available in macOS 10.15 or newer
106 | import CoreHaptics
107 |
108 | class ECWavingHaptics {
    |       `- note: add '@available' attribute to enclosing class
109 |     private var engine: CHHapticEngine?
110 |     private var audioEngine: AVAudioEngine?
    :
135 |     }
136 |
137 |     private func setupHaptics() {
    |                  `- note: add '@available' attribute to enclosing instance method
138 |         guard CHHapticEngine.capabilitiesForHardware().supportsHaptics else { return }
139 |
140 |         do {
141 |             engine = try CHHapticEngine()
    |                          |- error: 'CHHapticEngine' is only available in macOS 10.15 or newer
    |                          `- note: add 'if #available' version check
142 |             try engine?.start()
143 |
/Users/admin/builder/spi-builder-workspace/Sources/ECWavingHaptics/ECWavingHaptics.swift:155:15: error: 'CHHapticEngine' is only available in macOS 10.15 or newer
106 | import CoreHaptics
107 |
108 | class ECWavingHaptics {
    |       `- note: add '@available' attribute to enclosing class
109 |     private var engine: CHHapticEngine?
110 |     private var audioEngine: AVAudioEngine?
    :
152 |     }
153 |
154 |     private func restartHapticEngine() {
    |                  `- note: add '@available' attribute to enclosing instance method
155 |         guard CHHapticEngine.capabilitiesForHardware().supportsHaptics else { return }
    |               |- error: 'CHHapticEngine' is only available in macOS 10.15 or newer
    |               `- note: add 'if #available' version check
156 |
157 |         do {
/Users/admin/builder/spi-builder-workspace/Sources/ECWavingHaptics/ECWavingHaptics.swift:252:15: error: 'CHHapticEngine' is only available in macOS 10.15 or newer
106 | import CoreHaptics
107 |
108 | class ECWavingHaptics {
    |       `- note: add '@available' attribute to enclosing class
109 |     private var engine: CHHapticEngine?
110 |     private var audioEngine: AVAudioEngine?
    :
249 |     }
250 |
251 |     private func triggerHapticFeedback(intensity: Float) {
    |                  `- note: add '@available' attribute to enclosing instance method
252 |         guard CHHapticEngine.capabilitiesForHardware().supportsHaptics,
    |               |- error: 'CHHapticEngine' is only available in macOS 10.15 or newer
    |               `- note: add 'if #available' version check
253 |               let engine = engine else { return }
254 |
/Users/admin/builder/spi-builder-workspace/Sources/ECWavingHaptics/ECWavingHaptics.swift:255:34: error: 'CHHapticEventParameter' is only available in macOS 10.15 or newer
106 | import CoreHaptics
107 |
108 | class ECWavingHaptics {
    |       `- note: add '@available' attribute to enclosing class
109 |     private var engine: CHHapticEngine?
110 |     private var audioEngine: AVAudioEngine?
    :
249 |     }
250 |
251 |     private func triggerHapticFeedback(intensity: Float) {
    |                  `- note: add '@available' attribute to enclosing instance method
252 |         guard CHHapticEngine.capabilitiesForHardware().supportsHaptics,
253 |               let engine = engine else { return }
254 |
255 |         let intensityParameter = CHHapticEventParameter(parameterID: .hapticIntensity, value: intensity)
    |                                  |- error: 'CHHapticEventParameter' is only available in macOS 10.15 or newer
    |                                  `- note: add 'if #available' version check
256 |         let sharpnessParameter = CHHapticEventParameter(parameterID: .hapticSharpness, value: 0.5)
257 |
/Users/admin/builder/spi-builder-workspace/Sources/ECWavingHaptics/ECWavingHaptics.swift:255:71: error: 'hapticIntensity' is only available in macOS 10.15 or newer
106 | import CoreHaptics
107 |
108 | class ECWavingHaptics {
    |       `- note: add '@available' attribute to enclosing class
109 |     private var engine: CHHapticEngine?
110 |     private var audioEngine: AVAudioEngine?
    :
249 |     }
250 |
251 |     private func triggerHapticFeedback(intensity: Float) {
    |                  `- note: add '@available' attribute to enclosing instance method
252 |         guard CHHapticEngine.capabilitiesForHardware().supportsHaptics,
253 |               let engine = engine else { return }
254 |
255 |         let intensityParameter = CHHapticEventParameter(parameterID: .hapticIntensity, value: intensity)
    |                                                                       |- error: 'hapticIntensity' is only available in macOS 10.15 or newer
    |                                                                       `- note: add 'if #available' version check
256 |         let sharpnessParameter = CHHapticEventParameter(parameterID: .hapticSharpness, value: 0.5)
257 |
/Users/admin/builder/spi-builder-workspace/Sources/ECWavingHaptics/ECWavingHaptics.swift:256:34: error: 'CHHapticEventParameter' is only available in macOS 10.15 or newer
106 | import CoreHaptics
107 |
108 | class ECWavingHaptics {
    |       `- note: add '@available' attribute to enclosing class
109 |     private var engine: CHHapticEngine?
110 |     private var audioEngine: AVAudioEngine?
    :
249 |     }
250 |
251 |     private func triggerHapticFeedback(intensity: Float) {
    |                  `- note: add '@available' attribute to enclosing instance method
252 |         guard CHHapticEngine.capabilitiesForHardware().supportsHaptics,
253 |               let engine = engine else { return }
254 |
255 |         let intensityParameter = CHHapticEventParameter(parameterID: .hapticIntensity, value: intensity)
256 |         let sharpnessParameter = CHHapticEventParameter(parameterID: .hapticSharpness, value: 0.5)
    |                                  |- error: 'CHHapticEventParameter' is only available in macOS 10.15 or newer
    |                                  `- note: add 'if #available' version check
257 |
258 |         let event = CHHapticEvent(eventType: .hapticContinuous, parameters: [intensityParameter, sharpnessParameter], relativeTime: 0, duration: 0.1)
/Users/admin/builder/spi-builder-workspace/Sources/ECWavingHaptics/ECWavingHaptics.swift:256:71: error: 'hapticSharpness' is only available in macOS 10.15 or newer
106 | import CoreHaptics
107 |
108 | class ECWavingHaptics {
    |       `- note: add '@available' attribute to enclosing class
109 |     private var engine: CHHapticEngine?
110 |     private var audioEngine: AVAudioEngine?
    :
249 |     }
250 |
251 |     private func triggerHapticFeedback(intensity: Float) {
    |                  `- note: add '@available' attribute to enclosing instance method
252 |         guard CHHapticEngine.capabilitiesForHardware().supportsHaptics,
253 |               let engine = engine else { return }
254 |
255 |         let intensityParameter = CHHapticEventParameter(parameterID: .hapticIntensity, value: intensity)
256 |         let sharpnessParameter = CHHapticEventParameter(parameterID: .hapticSharpness, value: 0.5)
    |                                                                       |- error: 'hapticSharpness' is only available in macOS 10.15 or newer
    |                                                                       `- note: add 'if #available' version check
257 |
258 |         let event = CHHapticEvent(eventType: .hapticContinuous, parameters: [intensityParameter, sharpnessParameter], relativeTime: 0, duration: 0.1)
/Users/admin/builder/spi-builder-workspace/Sources/ECWavingHaptics/ECWavingHaptics.swift:258:21: error: 'CHHapticEvent' is only available in macOS 10.15 or newer
106 | import CoreHaptics
107 |
108 | class ECWavingHaptics {
    |       `- note: add '@available' attribute to enclosing class
109 |     private var engine: CHHapticEngine?
110 |     private var audioEngine: AVAudioEngine?
    :
249 |     }
250 |
251 |     private func triggerHapticFeedback(intensity: Float) {
    |                  `- note: add '@available' attribute to enclosing instance method
252 |         guard CHHapticEngine.capabilitiesForHardware().supportsHaptics,
253 |               let engine = engine else { return }
    :
256 |         let sharpnessParameter = CHHapticEventParameter(parameterID: .hapticSharpness, value: 0.5)
257 |
258 |         let event = CHHapticEvent(eventType: .hapticContinuous, parameters: [intensityParameter, sharpnessParameter], relativeTime: 0, duration: 0.1)
    |                     |- error: 'CHHapticEvent' is only available in macOS 10.15 or newer
    |                     `- note: add 'if #available' version check
259 |
260 |         do {
/Users/admin/builder/spi-builder-workspace/Sources/ECWavingHaptics/ECWavingHaptics.swift:258:47: error: 'hapticContinuous' is only available in macOS 10.15 or newer
106 | import CoreHaptics
107 |
108 | class ECWavingHaptics {
    |       `- note: add '@available' attribute to enclosing class
109 |     private var engine: CHHapticEngine?
110 |     private var audioEngine: AVAudioEngine?
    :
249 |     }
250 |
251 |     private func triggerHapticFeedback(intensity: Float) {
    |                  `- note: add '@available' attribute to enclosing instance method
252 |         guard CHHapticEngine.capabilitiesForHardware().supportsHaptics,
253 |               let engine = engine else { return }
    :
256 |         let sharpnessParameter = CHHapticEventParameter(parameterID: .hapticSharpness, value: 0.5)
257 |
258 |         let event = CHHapticEvent(eventType: .hapticContinuous, parameters: [intensityParameter, sharpnessParameter], relativeTime: 0, duration: 0.1)
    |                                               |- error: 'hapticContinuous' is only available in macOS 10.15 or newer
    |                                               `- note: add 'if #available' version check
259 |
260 |         do {
/Users/admin/builder/spi-builder-workspace/Sources/ECWavingHaptics/ECWavingHaptics.swift:261:31: error: 'CHHapticPattern' is only available in macOS 10.15 or newer
106 | import CoreHaptics
107 |
108 | class ECWavingHaptics {
    |       `- note: add '@available' attribute to enclosing class
109 |     private var engine: CHHapticEngine?
110 |     private var audioEngine: AVAudioEngine?
    :
249 |     }
250 |
251 |     private func triggerHapticFeedback(intensity: Float) {
    |                  `- note: add '@available' attribute to enclosing instance method
252 |         guard CHHapticEngine.capabilitiesForHardware().supportsHaptics,
253 |               let engine = engine else { return }
    :
259 |
260 |         do {
261 |             let pattern = try CHHapticPattern(events: [event], parameters: [])
    |                               |- error: 'CHHapticPattern' is only available in macOS 10.15 or newer
    |                               `- note: add 'if #available' version check
262 |             let player = try engine.makePlayer(with: pattern)
263 |             try player.start(atTime: CHHapticTimeImmediate)
/Users/admin/builder/spi-builder-workspace/Sources/ECWavingHaptics/ECWavingHaptics.swift:287:57: error: cannot find 'UIApplication' in scope
285 |
286 |     private func setupNotifications() {
287 |         NotificationCenter.default.addObserver(forName: UIApplication.didEnterBackgroundNotification, object: nil, queue: .main) { [weak self] _ in
    |                                                         `- error: cannot find 'UIApplication' in scope
288 |             self?.wasPlayingBeforeBackground = self?.isPlaying ?? false
289 |             self?.stopAudioProcessing()
/Users/admin/builder/spi-builder-workspace/Sources/ECWavingHaptics/ECWavingHaptics.swift:292:57: error: cannot find 'UIApplication' in scope
290 |         }
291 |
292 |         NotificationCenter.default.addObserver(forName: UIApplication.willEnterForegroundNotification, object: nil, queue: .main) { [weak self] _ in
    |                                                         `- error: cannot find 'UIApplication' in scope
293 |             if self?.wasPlayingBeforeBackground == true {
294 |                 self?.restartHapticEngine()
BUILD FAILURE 6.3 macosSpm