The Swift Package Index logo.Swift Package Index

Build Information

Failed to build BroadcastWriter, reference main (ef52e6), with Swift 6.3 for macOS (SPM) on 12 Apr 2026 02:51:02 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/romiroma/BroadcastWriter.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/romiroma/BroadcastWriter
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at ef52e6f Update README.md
Cloned https://github.com/romiroma/BroadcastWriter.git
Revision (git rev-parse @):
ef52e6f09f12c60bcca8544934799a5863947a7f
SUCCESS checkout https://github.com/romiroma/BroadcastWriter.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": "broadcastwriter",
      "name": "BroadcastWriter",
      "url": "https://github.com/romiroma/BroadcastWriter.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/BroadcastWriter",
      "traits": [
        "default"
      ],
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/romiroma/BroadcastWriter.git
[1/63] Fetching broadcastwriter
Fetched https://github.com/romiroma/BroadcastWriter.git from cache (0.65s)
Creating working copy for https://github.com/romiroma/BroadcastWriter.git
Working copy of https://github.com/romiroma/BroadcastWriter.git resolved at main (ef52e6f)
warning: '.resolve-product-dependencies': dependency 'broadcastwriter' 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/romiroma/BroadcastWriter.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
[3/7] Compiling BroadcastWriter CGFloat+NSNumber.swift
[4/7] Compiling BroadcastWriter AVAssetWriter.Status+stringDescription.swift
/Users/admin/builder/spi-builder-workspace/Sources/BroadcastWriter/AVAssetWriter.Status+stringDescription.swift:4:1: warning: extension declares a conformance of imported type 'Status' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'AVFoundation' introduce this conformance in the future
 2 | import AVFoundation
 3 |
 4 | extension AVAssetWriter.Status: CustomStringConvertible {
   | |- warning: extension declares a conformance of imported type 'Status' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'AVFoundation' introduce this conformance in the future
   | `- note: add '@retroactive' to silence this warning
 5 |
 6 |     public var description: String {
error: emit-module command failed with exit code 1 (use -v to see invocation)
[5/7] Compiling BroadcastWriter Int+NSNumber.swift
[6/7] Emitting module BroadcastWriter
/Users/admin/builder/spi-builder-workspace/Sources/BroadcastWriter/AVAssetWriter.Status+stringDescription.swift:4:1: warning: extension declares a conformance of imported type 'Status' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'AVFoundation' introduce this conformance in the future
 2 | import AVFoundation
 3 |
 4 | extension AVAssetWriter.Status: CustomStringConvertible {
   | |- warning: extension declares a conformance of imported type 'Status' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'AVFoundation' introduce this conformance in the future
   | `- note: add '@retroactive' to silence this warning
 5 |
 6 |     public var description: String {
/Users/admin/builder/spi-builder-workspace/Sources/BroadcastWriter/BroadcastWriter.swift:58:26: error: 'AVAudioSession' is unavailable in macOS
 56 |
 57 |     private lazy var microphoneInput: AVAssetWriterInput = {
 58 |         let sampleRate = AVAudioSession.sharedInstance().sampleRate
    |                          `- error: 'AVAudioSession' is unavailable in macOS
 59 |
 60 |         var audioSettings: [String: Any] = [
/Applications/Xcode-26.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:29:12: note: 'AVAudioSession' has been explicitly marked unavailable here
 27 | NS_SWIFT_SENDABLE
 28 | API_AVAILABLE(ios(3.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos)
 29 | @interface AVAudioSession : NSObject {
    |            `- note: 'AVAudioSession' has been explicitly marked unavailable here
 30 | @private
 31 | 	void *_impl;
/Users/admin/builder/spi-builder-workspace/Sources/BroadcastWriter/BroadcastWriter.swift:58:41: error: 'sharedInstance()' is unavailable in macOS
 56 |
 57 |     private lazy var microphoneInput: AVAssetWriterInput = {
 58 |         let sampleRate = AVAudioSession.sharedInstance().sampleRate
    |                                         `- error: 'sharedInstance()' is unavailable in macOS
 59 |
 60 |         var audioSettings: [String: Any] = [
AVFAudio.AVAudioSession.sharedInstance:3:19: note: 'sharedInstance()' has been explicitly marked unavailable here
1 | class AVAudioSession {
2 | @available(macOS, unavailable)
3 |   open class func sharedInstance() -> AVAudioSession}
  |                   `- note: 'sharedInstance()' has been explicitly marked unavailable here
4 |
/Users/admin/builder/spi-builder-workspace/Sources/BroadcastWriter/BroadcastWriter.swift:58:58: error: 'sampleRate' is unavailable in macOS
 56 |
 57 |     private lazy var microphoneInput: AVAssetWriterInput = {
 58 |         let sampleRate = AVAudioSession.sharedInstance().sampleRate
    |                                                          `- error: 'sampleRate' is unavailable in macOS
 59 |
 60 |         var audioSettings: [String: Any] = [
/Applications/Xcode-26.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:387:29: note: 'sampleRate' has been explicitly marked unavailable here
385 |
386 | /// The current hardware sample rate. Is key-value observable (starting iOS 18.0).
387 | @property (readonly) double sampleRate API_AVAILABLE(ios(6.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
    |                             `- note: 'sampleRate' has been explicitly marked unavailable here
388 |
389 | /// The current number of hardware input channels. Is key-value observable.
/Users/admin/builder/spi-builder-workspace/Sources/BroadcastWriter/BroadcastWriter.swift:120:32: error: 'RPSampleBufferType' is only available in macOS 11.0 or newer
  8 | }
  9 |
 10 | public final class BroadcastWriter {
    |                    `- note: add '@available' attribute to enclosing class
 11 |
 12 |     private var assetWriterSessionStarted: Bool = false
    :
116 |     }
117 |
118 |     public func processSampleBuffer(
    |                 `- note: add '@available' attribute to enclosing instance method
119 |         _ sampleBuffer: CMSampleBuffer,
120 |         with sampleBufferType: RPSampleBufferType
    |                                `- error: 'RPSampleBufferType' is only available in macOS 11.0 or newer
121 |     ) throws -> Bool {
122 |
[7/7] Compiling BroadcastWriter BroadcastWriter.swift
/Users/admin/builder/spi-builder-workspace/Sources/BroadcastWriter/BroadcastWriter.swift:58:26: error: 'AVAudioSession' is unavailable in macOS
 56 |
 57 |     private lazy var microphoneInput: AVAssetWriterInput = {
 58 |         let sampleRate = AVAudioSession.sharedInstance().sampleRate
    |                          `- error: 'AVAudioSession' is unavailable in macOS
 59 |
 60 |         var audioSettings: [String: Any] = [
/Applications/Xcode-26.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:29:12: note: 'AVAudioSession' has been explicitly marked unavailable here
 27 | NS_SWIFT_SENDABLE
 28 | API_AVAILABLE(ios(3.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos)
 29 | @interface AVAudioSession : NSObject {
    |            `- note: 'AVAudioSession' has been explicitly marked unavailable here
 30 | @private
 31 | 	void *_impl;
/Users/admin/builder/spi-builder-workspace/Sources/BroadcastWriter/BroadcastWriter.swift:58:41: error: 'sharedInstance()' is unavailable in macOS
 56 |
 57 |     private lazy var microphoneInput: AVAssetWriterInput = {
 58 |         let sampleRate = AVAudioSession.sharedInstance().sampleRate
    |                                         `- error: 'sharedInstance()' is unavailable in macOS
 59 |
 60 |         var audioSettings: [String: Any] = [
AVFAudio.AVAudioSession.sharedInstance:3:19: note: 'sharedInstance()' has been explicitly marked unavailable here
1 | class AVAudioSession {
2 | @available(macOS, unavailable)
3 |   open class func sharedInstance() -> AVAudioSession}
  |                   `- note: 'sharedInstance()' has been explicitly marked unavailable here
4 |
/Users/admin/builder/spi-builder-workspace/Sources/BroadcastWriter/BroadcastWriter.swift:58:58: error: 'sampleRate' is unavailable in macOS
 56 |
 57 |     private lazy var microphoneInput: AVAssetWriterInput = {
 58 |         let sampleRate = AVAudioSession.sharedInstance().sampleRate
    |                                                          `- error: 'sampleRate' is unavailable in macOS
 59 |
 60 |         var audioSettings: [String: Any] = [
/Applications/Xcode-26.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:387:29: note: 'sampleRate' has been explicitly marked unavailable here
385 |
386 | /// The current hardware sample rate. Is key-value observable (starting iOS 18.0).
387 | @property (readonly) double sampleRate API_AVAILABLE(ios(6.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
    |                             `- note: 'sampleRate' has been explicitly marked unavailable here
388 |
389 | /// The current number of hardware input channels. Is key-value observable.
/Users/admin/builder/spi-builder-workspace/Sources/BroadcastWriter/BroadcastWriter.swift:120:32: error: 'RPSampleBufferType' is only available in macOS 11.0 or newer
  8 | }
  9 |
 10 | public final class BroadcastWriter {
    |                    `- note: add '@available' attribute to enclosing class
 11 |
 12 |     private var assetWriterSessionStarted: Bool = false
    :
116 |     }
117 |
118 |     public func processSampleBuffer(
    |                 `- note: add '@available' attribute to enclosing instance method
119 |         _ sampleBuffer: CMSampleBuffer,
120 |         with sampleBufferType: RPSampleBufferType
    |                                `- error: 'RPSampleBufferType' is only available in macOS 11.0 or newer
121 |     ) throws -> Bool {
122 |
/Users/admin/builder/spi-builder-workspace/Sources/BroadcastWriter/BroadcastWriter.swift:40:9: error: 'AVAudioSession' is unavailable in macOS
 38 |
 39 |     private var audioSampleRate: Double {
 40 |         AVAudioSession.sharedInstance().sampleRate
    |         `- error: 'AVAudioSession' is unavailable in macOS
 41 |     }
 42 |     private lazy var audioInput: AVAssetWriterInput = {
/Applications/Xcode-26.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:29:12: note: 'AVAudioSession' has been explicitly marked unavailable here
 27 | NS_SWIFT_SENDABLE
 28 | API_AVAILABLE(ios(3.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos)
 29 | @interface AVAudioSession : NSObject {
    |            `- note: 'AVAudioSession' has been explicitly marked unavailable here
 30 | @private
 31 | 	void *_impl;
/Users/admin/builder/spi-builder-workspace/Sources/BroadcastWriter/BroadcastWriter.swift:40:24: error: 'sharedInstance()' is unavailable in macOS
 38 |
 39 |     private var audioSampleRate: Double {
 40 |         AVAudioSession.sharedInstance().sampleRate
    |                        `- error: 'sharedInstance()' is unavailable in macOS
 41 |     }
 42 |     private lazy var audioInput: AVAssetWriterInput = {
AVFAudio.AVAudioSession.sharedInstance:3:19: note: 'sharedInstance()' has been explicitly marked unavailable here
1 | class AVAudioSession {
2 | @available(macOS, unavailable)
3 |   open class func sharedInstance() -> AVAudioSession}
  |                   `- note: 'sharedInstance()' has been explicitly marked unavailable here
4 |
/Users/admin/builder/spi-builder-workspace/Sources/BroadcastWriter/BroadcastWriter.swift:40:41: error: 'sampleRate' is unavailable in macOS
 38 |
 39 |     private var audioSampleRate: Double {
 40 |         AVAudioSession.sharedInstance().sampleRate
    |                                         `- error: 'sampleRate' is unavailable in macOS
 41 |     }
 42 |     private lazy var audioInput: AVAssetWriterInput = {
/Applications/Xcode-26.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:387:29: note: 'sampleRate' has been explicitly marked unavailable here
385 |
386 | /// The current hardware sample rate. Is key-value observable (starting iOS 18.0).
387 | @property (readonly) double sampleRate API_AVAILABLE(ios(6.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
    |                             `- note: 'sampleRate' has been explicitly marked unavailable here
388 |
389 | /// The current number of hardware input channels. Is key-value observable.
/Users/admin/builder/spi-builder-workspace/Sources/BroadcastWriter/BroadcastWriter.swift:123:28: error: 'isValid' is only available in macOS 10.15 or newer
  8 | }
  9 |
 10 | public final class BroadcastWriter {
    |                    `- note: add '@available' attribute to enclosing class
 11 |
 12 |     private var assetWriterSessionStarted: Bool = false
    :
116 |     }
117 |
118 |     public func processSampleBuffer(
    |                 `- note: add '@available' attribute to enclosing instance method
119 |         _ sampleBuffer: CMSampleBuffer,
120 |         with sampleBufferType: RPSampleBufferType
121 |     ) throws -> Bool {
122 |
123 |         guard sampleBuffer.isValid,
    |                            |- error: 'isValid' is only available in macOS 10.15 or newer
    |                            `- note: add 'if #available' version check
124 |               CMSampleBufferDataIsReady(sampleBuffer) else {
125 |             debugPrint(
/Users/admin/builder/spi-builder-workspace/Sources/BroadcastWriter/BroadcastWriter.swift:126:54: error: 'isValid' is only available in macOS 10.15 or newer
  8 | }
  9 |
 10 | public final class BroadcastWriter {
    |                    `- note: add '@available' attribute to enclosing class
 11 |
 12 |     private var assetWriterSessionStarted: Bool = false
    :
116 |     }
117 |
118 |     public func processSampleBuffer(
    |                 `- note: add '@available' attribute to enclosing instance method
119 |         _ sampleBuffer: CMSampleBuffer,
120 |         with sampleBufferType: RPSampleBufferType
    :
124 |               CMSampleBufferDataIsReady(sampleBuffer) else {
125 |             debugPrint(
126 |                 "sampleBuffer.isValid", sampleBuffer.isValid,
    |                                                      |- error: 'isValid' is only available in macOS 10.15 or newer
    |                                                      `- note: add 'if #available' version check
127 |                 "CMSampleBufferDataIsReady(sampleBuffer)", CMSampleBufferDataIsReady(sampleBuffer)
128 |             )
BUILD FAILURE 6.3 macosSpm