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 BroadcastWriter, reference 0.1.0 (ef52e6), with Swift 6.2 (beta) for macOS (SPM) on 18 Jun 2025 21:54:03 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/romiroma/BroadcastWriter.git
Reference: 0.1.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/romiroma/BroadcastWriter
 * tag               0.1.0      -> FETCH_HEAD
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 0.1.0
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/romiroma/BroadcastWriter.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-1EA4D86E10B52AF.txt
[3/7] Compiling BroadcastWriter CGFloat+NSNumber.swift
[4/7] Compiling BroadcastWriter Int+NSNumber.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[5/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 {
[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.0.0-Beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:30:12: note: 'AVAudioSession' has been explicitly marked unavailable here
 28 | NS_SWIFT_SENDABLE
 29 | API_AVAILABLE(ios(3.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos)
 30 | @interface AVAudioSession : NSObject {
    |            `- note: 'AVAudioSession' has been explicitly marked unavailable here
 31 | @private
 32 | //	Reenable once rdar://135815013 is unblocked
/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.0.0-Beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:385:29: note: 'sampleRate' has been explicitly marked unavailable here
383 |
384 | /// The current hardware sample rate. Is key-value observable (starting iOS 18.0).
385 | @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
386 |
387 | /// 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.0.0-Beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:30:12: note: 'AVAudioSession' has been explicitly marked unavailable here
 28 | NS_SWIFT_SENDABLE
 29 | API_AVAILABLE(ios(3.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos)
 30 | @interface AVAudioSession : NSObject {
    |            `- note: 'AVAudioSession' has been explicitly marked unavailable here
 31 | @private
 32 | //	Reenable once rdar://135815013 is unblocked
/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.0.0-Beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:385:29: note: 'sampleRate' has been explicitly marked unavailable here
383 |
384 | /// The current hardware sample rate. Is key-value observable (starting iOS 18.0).
385 | @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
386 |
387 | /// 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.0.0-Beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:30:12: note: 'AVAudioSession' has been explicitly marked unavailable here
 28 | NS_SWIFT_SENDABLE
 29 | API_AVAILABLE(ios(3.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos)
 30 | @interface AVAudioSession : NSObject {
    |            `- note: 'AVAudioSession' has been explicitly marked unavailable here
 31 | @private
 32 | //	Reenable once rdar://135815013 is unblocked
/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.0.0-Beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:385:29: note: 'sampleRate' has been explicitly marked unavailable here
383 |
384 | /// The current hardware sample rate. Is key-value observable (starting iOS 18.0).
385 | @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
386 |
387 | /// 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.2 macosSpm