Build Information
Failed to build ECWavingHaptics, reference main (ee87bc
), with Swift 6.0 for macOS (SPM) on 16 Sep 2024 17:46:13 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.0.0-Release.Candidate.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
========================================
RunAll
========================================
Builder version: 4.53.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
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/excitedcosmos/ECWavingHaptics.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.0.0-Release.Candidate.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-117DEE11B69C53C9.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.0 macosSpm