The Swift Package Index logo.Swift Package Index

Build Information

Failed to build FDSoundActivatedRecorder, reference main (8a5513), with Swift 6.4 for macOS (SPM) on 14 Oct 2026 23:04:36 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 5.1.2
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/fulldecent/FDSoundActivatedRecorder.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/fulldecent/FDSoundActivatedRecorder
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 8a55132 ci: adopt the swift6-module-template 16.6.0 lint workflow
Cloned https://github.com/fulldecent/FDSoundActivatedRecorder.git
Revision (git rev-parse @):
8a551323caf8dd18c6664748703c65dee6216bc6
SUCCESS checkout https://github.com/fulldecent/FDSoundActivatedRecorder.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": "fdsoundactivatedrecorder",
      "name": "FDSoundActivatedRecorder",
      "url": "https://github.com/fulldecent/FDSoundActivatedRecorder.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/FDSoundActivatedRecorder",
      "traits": [
        "default"
      ],
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/fulldecent/FDSoundActivatedRecorder.git
[1/679] Fetching fdsoundactivatedrecorder
Fetched https://github.com/fulldecent/FDSoundActivatedRecorder.git (1.08s)
Creating working copy for https://github.com/fulldecent/FDSoundActivatedRecorder.git
Working copy of https://github.com/fulldecent/FDSoundActivatedRecorder.git resolved at main (8a55132)
warning: '.resolve-product-dependencies': dependency 'fdsoundactivatedrecorder' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.4
Building package at path:  $PWD
https://github.com/fulldecent/FDSoundActivatedRecorder.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-27.0.0.app xcrun swift build --arch arm64
Building for debugging...
[Pre-planning 1 / 66]
[Planning deferred tasks]
[19 / 28]
[20 / 29] FDSoundActivatedRecorder
[30 / 91]
[32 / 91]
[39 / 91]
[41 / 91]
[42 / 91]
[47 / 91]
[49 / 91]
[52 / 91]
[57 / 91]
[60 / 91]
[62 / 91]
[63 / 91]
[70 / 91]
[71 / 91]
[72 / 91]
[76 / 91]
[79 / 91]
[80 / 91]
[82 / 91] FDSoundActivatedRecorder
[88 / 91] FDSoundActivatedRecorder
error: SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/FDSoundActivatedRecorder/FDSoundActivatedRecorder.swift failed with a nonzero exit code. Command line:     cd /Users/admin/builder
    builtin-SwiftPerFileCompile FDSoundActivatedRecorder.swift
/Users/admin/builder/spi-builder-workspace/Sources/FDSoundActivatedRecorder/FDSoundActivatedRecorder.swift:170:17: error: 'AVAudioSession' is unavailable in macOS
168 |
169 |     private func prepareSession() {
170 |         let s = AVAudioSession.sharedInstance()
    |                 `- error: 'AVAudioSession' is unavailable in macOS
171 |         try? s.setCategory(.playAndRecord, mode: .default, options: [.defaultToSpeaker])
172 |         try? s.setActive(true)
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX27.0.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:32:12: note: 'AVAudioSession' has been explicitly marked unavailable here
 30 | NS_SWIFT_SENDABLE
 31 | API_AVAILABLE(ios(3.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos)
 32 | @interface AVAudioSession : NSObject {
    |            `- note: 'AVAudioSession' has been explicitly marked unavailable here
 33 | @private
 34 | 	void *_impl;
/Users/admin/builder/spi-builder-workspace/Sources/FDSoundActivatedRecorder/FDSoundActivatedRecorder.swift:170:32: error: 'sharedInstance()' is unavailable in macOS
168 |
169 |     private func prepareSession() {
170 |         let s = AVAudioSession.sharedInstance()
    |                                `- error: 'sharedInstance()' is unavailable in macOS
171 |         try? s.setCategory(.playAndRecord, mode: .default, options: [.defaultToSpeaker])
172 |         try? s.setActive(true)
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX27.0.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:38:1: note: 'sharedInstance()' has been explicitly marked unavailable here
 36 |
 37 | /// Return singleton instance.
 38 | + (AVAudioSession *)sharedInstance API_AVAILABLE(ios(3.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
    | `- note: 'sharedInstance()' has been explicitly marked unavailable here
 39 |
 40 | /// Get the list of categories available on the device.  Certain categories may be unavailable on
/Users/admin/builder/spi-builder-workspace/Sources/FDSoundActivatedRecorder/FDSoundActivatedRecorder.swift:171:16: error: 'setCategory(_:mode:options:)' is unavailable in macOS
169 |     private func prepareSession() {
170 |         let s = AVAudioSession.sharedInstance()
171 |         try? s.setCategory(.playAndRecord, mode: .default, options: [.defaultToSpeaker])
    |                `- error: 'setCategory(_:mode:options:)' is unavailable in macOS
172 |         try? s.setActive(true)
173 |     }
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX27.0.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:53:1: note: 'setCategory(_:mode:options:)' has been explicitly marked unavailable here
 51 | 	API_AVAILABLE(ios(6.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
 52 | /// Set session category and mode with options.
 53 | - (BOOL)setCategory:(AVAudioSessionCategory)category
    | `- note: 'setCategory(_:mode:options:)' has been explicitly marked unavailable here
 54 | 			   mode:(AVAudioSessionMode)mode
 55 | 			options:(AVAudioSessionCategoryOptions)options
/Users/admin/builder/spi-builder-workspace/Sources/FDSoundActivatedRecorder/FDSoundActivatedRecorder.swift:171:29: error: 'playAndRecord' is unavailable in macOS
169 |     private func prepareSession() {
170 |         let s = AVAudioSession.sharedInstance()
171 |         try? s.setCategory(.playAndRecord, mode: .default, options: [.defaultToSpeaker])
    |                             `- error: 'playAndRecord' is unavailable in macOS
172 |         try? s.setActive(true)
173 |     }
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX27.0.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionTypes.h:109:40: note: 'playAndRecord' has been explicitly marked unavailable here
 107 |
 108 | /*! Use this category when recording and playing back audio. */
 109 | OS_EXPORT AVAudioSessionCategory const AVAudioSessionCategoryPlayAndRecord		API_AVAILABLE(ios(3.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
     |                                        `- note: 'playAndRecord' has been explicitly marked unavailable here
 110 |
 111 | /*! Use this category when using a hardware codec or signal processor while
/Users/admin/builder/spi-builder-workspace/Sources/FDSoundActivatedRecorder/FDSoundActivatedRecorder.swift:171:51: error: 'default' is unavailable in macOS
169 |     private func prepareSession() {
170 |         let s = AVAudioSession.sharedInstance()
171 |         try? s.setCategory(.playAndRecord, mode: .default, options: [.defaultToSpeaker])
    |                                                   `- error: 'default' is unavailable in macOS
172 |         try? s.setActive(true)
173 |     }
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX27.0.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionTypes.h:139:36: note: 'default' has been explicitly marked unavailable here
 137 |
 138 | /*! The default mode */
 139 | OS_EXPORT AVAudioSessionMode const AVAudioSessionModeDefault API_AVAILABLE(ios(5.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
     |                                    `- note: 'default' has been explicitly marked unavailable here
 140 |
 141 | /*! Only valid with AVAudioSessionCategoryPlayAndRecord.  Appropriate for Voice over IP
/Users/admin/builder/spi-builder-workspace/Sources/FDSoundActivatedRecorder/FDSoundActivatedRecorder.swift:171:71: error: 'defaultToSpeaker' is unavailable in macOS
169 |     private func prepareSession() {
170 |         let s = AVAudioSession.sharedInstance()
171 |         try? s.setCategory(.playAndRecord, mode: .default, options: [.defaultToSpeaker])
    |                                                                       `- error: 'defaultToSpeaker' is unavailable in macOS
172 |         try? s.setActive(true)
173 |     }
AVFAudio.AVAudioSession.CategoryOptions.defaultToSpeaker:4:23: note: 'defaultToSpeaker' has been explicitly marked unavailable here
2 |   struct CategoryOptions {
3 | @available(macOS, unavailable)
4 |     public static var defaultToSpeaker: AVAudioSession.CategoryOptions { get }  }
  |                       `- note: 'defaultToSpeaker' has been explicitly marked unavailable here
5 | }
6 |
/Users/admin/builder/spi-builder-workspace/Sources/FDSoundActivatedRecorder/FDSoundActivatedRecorder.swift:172:16: error: 'setActive' is unavailable in Swift
170 |         let s = AVAudioSession.sharedInstance()
171 |         try? s.setCategory(.playAndRecord, mode: .default, options: [.defaultToSpeaker])
172 |         try? s.setActive(true)
    |                `- error: 'setActive' is unavailable in Swift
173 |     }
174 |
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX27.0.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:264:1: note: 'setActive' has been explicitly marked unavailable here
262 | 	no longer return AVAudioSessionErrorCodeIsBusy.
263 | */
264 | - (BOOL)setActive:(BOOL)active error:(NSError **)outError API_AVAILABLE(ios(3.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
    | `- note: 'setActive' has been explicitly marked unavailable here
265 | - (BOOL)setActive:(BOOL)active withOptions:(AVAudioSessionSetActiveOptions)options error:(NSError **)outError API_AVAILABLE(ios(6.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
266 |
/Users/admin/builder/spi-builder-workspace/Sources/FDSoundActivatedRecorder/FDSoundActivatedRecorder.swift:180:33: error: 'sleep(for:tolerance:clock:)' is only available in macOS 13.0 or newer
 36 |  */
 37 |
 38 | public actor FDSoundActivatedRecorder {
    |              `- note: add '@available' attribute to enclosing actor
 39 |
 40 |     // MARK: – Nested types ---------------------------------------------------
    :
173 |     }
174 |
175 |     private func startMonitorLoop() {
    |                  `- note: add '@available' attribute to enclosing instance method
176 |         let millis = Int(config.intervalSeconds * 1_000)
177 |
178 |         monitorTask = Task {
179 |             while true {
180 |                 try? await Task.sleep(for: .milliseconds(millis))
    |                                 |- error: 'sleep(for:tolerance:clock:)' is only available in macOS 13.0 or newer
    |                                 `- note: add 'if #available' version check
181 |                 guard let recorder = await self.recorder else { continue }
182 |
/Users/admin/builder/spi-builder-workspace/Sources/FDSoundActivatedRecorder/FDSoundActivatedRecorder.swift:180:45: error: 'milliseconds' is only available in macOS 13.0 or newer
 36 |  */
 37 |
 38 | public actor FDSoundActivatedRecorder {
    |              `- note: add '@available' attribute to enclosing actor
 39 |
 40 |     // MARK: – Nested types ---------------------------------------------------
    :
173 |     }
174 |
175 |     private func startMonitorLoop() {
    |                  `- note: add '@available' attribute to enclosing instance method
176 |         let millis = Int(config.intervalSeconds * 1_000)
177 |
178 |         monitorTask = Task {
179 |             while true {
180 |                 try? await Task.sleep(for: .milliseconds(millis))
    |                                             |- error: 'milliseconds' is only available in macOS 13.0 or newer
    |                                             `- note: add 'if #available' version check
181 |                 guard let recorder = await self.recorder else { continue }
182 |
/Users/admin/builder/spi-builder-workspace/Sources/FDSoundActivatedRecorder/FDSoundActivatedRecorder.swift:181:38: warning: no 'async' operations occur within 'await' expression [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/unnecessary-effect-marker\UnnecessaryEffectMarker]8;;\]
179 |             while true {
180 |                 try? await Task.sleep(for: .milliseconds(millis))
181 |                 guard let recorder = await self.recorder else { continue }
    |                                      `- warning: no 'async' operations occur within 'await' expression [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/unnecessary-effect-marker\UnnecessaryEffectMarker]8;;\]
182 |
183 |                 await recorder.updateMeters()
/Users/admin/builder/spi-builder-workspace/Sources/FDSoundActivatedRecorder/FDSoundActivatedRecorder.swift:183:17: warning: no 'async' operations occur within 'await' expression [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/unnecessary-effect-marker\UnnecessaryEffectMarker]8;;\]
181 |                 guard let recorder = await self.recorder else { continue }
182 |
183 |                 await recorder.updateMeters()
    |                 `- warning: no 'async' operations occur within 'await' expression [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/unnecessary-effect-marker\UnnecessaryEffectMarker]8;;\]
184 |
185 |                 // Timed‑out while listening and never started saving
/Users/admin/builder/spi-builder-workspace/Sources/FDSoundActivatedRecorder/FDSoundActivatedRecorder.swift:187:24: warning: no 'async' operations occur within 'await' expression [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/unnecessary-effect-marker\UnnecessaryEffectMarker]8;;\]
185 |                 // Timed‑out while listening and never started saving
186 |                 if !recorder.isRecording {
187 |                     if await self.status == .listening {
    |                        `- warning: no 'async' operations occur within 'await' expression [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/unnecessary-effect-marker\UnnecessaryEffectMarker]8;;\]
188 |                         await self.finishByTimeout()
189 |                     }
[#UnnecessaryEffectMarker]: <https://docs.swift.org/compiler/documentation/diagnostics/unnecessary-effect-marker>
Failed frontend command:
/Applications/Xcode-27.0.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-frontend -frontend -c -primary-file /Users/admin/builder/spi-builder-workspace/Sources/FDSoundActivatedRecorder/FDSoundActivatedRecorder.swift -emit-dependencies-path /Users/admin/builder/spi-builder-workspace/.build/out/Intermediates.noindex/FDSoundActivatedRecorder.build/Debug/FDSoundActivatedRecorder-t.build/Objects-normal/arm64/FDSoundActivatedRecorder.d -emit-const-values-path /Users/admin/builder/spi-builder-workspace/.build/out/Intermediates.noindex/FDSoundActivatedRecorder.build/Debug/FDSoundActivatedRecorder-t.build/Objects-normal/arm64/FDSoundActivatedRecorder.swiftconstvalues -emit-reference-dependencies-path /Users/admin/builder/spi-builder-workspace/.build/out/Intermediates.noindex/FDSoundActivatedRecorder.build/Debug/FDSoundActivatedRecorder-t.build/Objects-normal/arm64/FDSoundActivatedRecorder.swiftdeps -serialize-diagnostics-path /Users/admin/builder/spi-builder-workspace/.build/out/Intermediates.noindex/FDSoundActivatedRecorder.build/Debug/FDSoundActivatedRecorder-t.build/Objects-normal/arm64/FDSoundActivatedRecorder.dia -target arm64-apple-macos12.0 -disable-cross-import-overlay-search -load-resolved-plugin /Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/lib/swift/host/plugins/libFoundationMacros.dylib\#/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/bin/swift-plugin-server\#FoundationMacros -load-resolved-plugin /Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/lib/swift/host/plugins/libObservationMacros.dylib\#/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/bin/swift-plugin-server\#ObservationMacros -load-resolved-plugin /Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/lib/swift/host/plugins/libSwiftMacros.dylib\#/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/bin/swift-plugin-server\#SwiftMacros -disable-implicit-swift-modules -Xcc -fno-implicit-modules -Xcc -fno-implicit-module-maps -explicit-swift-module-map-file /Users/admin/builder/spi-builder-workspace/.build/out/Intermediates.noindex/FDSoundActivatedRecorder.build/Debug/FDSoundActivatedRecorder-t.build/Objects-normal/arm64/FDSoundActivatedRecorder-dependencies-1.json -Xllvm -aarch64-use-tbi -enable-objc-interop -stack-check -sdk /Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX27.0.sdk -I /Users/admin/builder/spi-builder-workspace/.build/out/Products/Debug -Isystem /Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/lib -F /Users/admin/builder/spi-builder-workspace/.build/out/Products/Debug -F /Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks -module-cache-path /Users/admin/builder/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftExplicitPrecompiledModules -color-diagnostics -Xcc -fcolor-diagnostics -enable-testing -g -debug-info-format\=dwarf -dwarf-version\=4 -swift-version 6 -Onone -D SWIFT_PACKAGE -D DEBUG -D SWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE -D Xcode -serialize-debugging-options -enable-experimental-feature DebugDescriptionMacro -empty-abi-descriptor -validate-clang-modules-once -clang-build-session-file /Users/admin/builder/spi-builder-workspace/.build/out/ModuleCache.noindex/Session.modulevalidation -Xcc -working-directory -Xcc /Users/admin/builder -enable-anonymous-context-mangled-names -file-compilation-dir /Users/admin/builder -Xcc -D_LIBCPP_HARDENING_MODE\=_LIBCPP_HARDENING_MODE_DEBUG -Xcc -ivfsstatcache -Xcc /Users/admin/builder/spi-builder-workspace/.build/out/SDKStatCaches.noindex/macosx27.0-26A425-80c5bbf1d171475443272936d42f90a389db99fe7804849a4777d653a8cfc1be.sdkstatcache -Xcc -fmodules-prune-interval\=86400 -Xcc -fmodules-prune-after\=345600 -Xcc -I/Users/admin/builder/spi-builder-workspace/.build/out/Products/Debug/include -Xcc -I/Users/admin/builder/spi-builder-workspace/.build/out/Intermediates.noindex/FDSoundActivatedRecorder.build/Debug/FDSoundActivatedRecorder-t.build/DerivedSources-normal/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.build/out/Intermediates.noindex/FDSoundActivatedRecorder.build/Debug/FDSoundActivatedRecorder-t.build/DerivedSources/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.build/out/Intermediates.noindex/FDSoundActivatedRecorder.build/Debug/FDSoundActivatedRecorder-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name FDSoundActivatedRecorder -package-name spi_builder_workspace -const-gather-protocols-file /Users/admin/builder/spi-builder-workspace/.build/out/Intermediates.noindex/FDSoundActivatedRecorder.build/Debug/FDSoundActivatedRecorder-t.build/Objects-normal/arm64/FDSoundActivatedRecorder_const_extract_protocols.json -disable-clang-spi -clang-target arm64-apple-macos27.0 -target-sdk-version 27.0 -target-sdk-name macosx27.0 -in-process-plugin-server-path /Applications/Xcode-27.0.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host/libSwiftInProcPluginServer.dylib -parse-as-library -o /Users/admin/builder/spi-builder-workspace/.build/out/Intermediates.noindex/FDSoundActivatedRecorder.build/Debug/FDSoundActivatedRecorder-t.build/Objects-normal/arm64/FDSoundActivatedRecorder.o -debug-module-path /Users/admin/builder/spi-builder-workspace/.build/out/Intermediates.noindex/FDSoundActivatedRecorder.build/Debug/FDSoundActivatedRecorder-t.build/Objects-normal/arm64/FDSoundActivatedRecorder.swiftmodule -index-unit-output-path /FDSoundActivatedRecorder.build/Debug/FDSoundActivatedRecorder-t.build/Objects-normal/arm64/FDSoundActivatedRecorder.o -index-store-path /Users/admin/builder/spi-builder-workspace/.build/out -index-system-modules
error: Build failed
BUILD FAILURE 6.4 macosSpm