This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.

The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Failed to build BroadcastWriter with Swift 6.0 for macOS (SPM).

Build Command

env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

Build Log

========================================
RunAll
========================================
Builder version: 4.40.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
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/romiroma/BroadcastWriter.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a 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-6F35C1178C84523A.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/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 {
[4/7] Compiling BroadcastWriter Int+NSNumber.swift
[5/7] Compiling BroadcastWriter CGFloat+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] = [
AVFAudio.AVAudioSession:2:12: note: 'AVAudioSession' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | open class AVAudioSession : NSObject {
   |            `- note: 'AVAudioSession' has been explicitly marked unavailable here
 3 |     @available(macOS, unavailable)
 4 |     open class func sharedInstance() -> AVAudioSession
/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:4:21: note: 'sharedInstance()' has been explicitly marked unavailable here
 2 | open class AVAudioSession : NSObject {
 3 |     @available(macOS, unavailable)
 4 |     open class func sharedInstance() -> AVAudioSession
   |                     `- note: 'sharedInstance()' has been explicitly marked unavailable here
 5 |     @available(macOS, unavailable)
 6 |     open var availableCategories: [AVAudioSession.Category] { get }
/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] = [
AVFAudio.AVAudioSession:55:14: note: 'sampleRate' has been explicitly marked unavailable here
53 |     open func setOutputDataSource(_ dataSource: AVAudioSessionDataSourceDescription?) throws
54 |     @available(macOS, unavailable)
55 |     open var sampleRate: Double { get }
   |              `- note: 'sampleRate' has been explicitly marked unavailable here
56 |     @available(macOS, unavailable)
57 |     open var inputNumberOfChannels: Int { get }
/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] = [
AVFAudio.AVAudioSession:2:12: note: 'AVAudioSession' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | open class AVAudioSession : NSObject {
   |            `- note: 'AVAudioSession' has been explicitly marked unavailable here
 3 |     @available(macOS, unavailable)
 4 |     open class func sharedInstance() -> AVAudioSession
/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:4:21: note: 'sharedInstance()' has been explicitly marked unavailable here
 2 | open class AVAudioSession : NSObject {
 3 |     @available(macOS, unavailable)
 4 |     open class func sharedInstance() -> AVAudioSession
   |                     `- note: 'sharedInstance()' has been explicitly marked unavailable here
 5 |     @available(macOS, unavailable)
 6 |     open var availableCategories: [AVAudioSession.Category] { get }
/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] = [
AVFAudio.AVAudioSession:55:14: note: 'sampleRate' has been explicitly marked unavailable here
53 |     open func setOutputDataSource(_ dataSource: AVAudioSessionDataSourceDescription?) throws
54 |     @available(macOS, unavailable)
55 |     open var sampleRate: Double { get }
   |              `- note: 'sampleRate' has been explicitly marked unavailable here
56 |     @available(macOS, unavailable)
57 |     open var inputNumberOfChannels: Int { get }
/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 = {
AVFAudio.AVAudioSession:2:12: note: 'AVAudioSession' has been explicitly marked unavailable here
 1 | @available(macOS, unavailable)
 2 | open class AVAudioSession : NSObject {
   |            `- note: 'AVAudioSession' has been explicitly marked unavailable here
 3 |     @available(macOS, unavailable)
 4 |     open class func sharedInstance() -> AVAudioSession
/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:4:21: note: 'sharedInstance()' has been explicitly marked unavailable here
 2 | open class AVAudioSession : NSObject {
 3 |     @available(macOS, unavailable)
 4 |     open class func sharedInstance() -> AVAudioSession
   |                     `- note: 'sharedInstance()' has been explicitly marked unavailable here
 5 |     @available(macOS, unavailable)
 6 |     open var availableCategories: [AVAudioSession.Category] { get }
/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 = {
AVFAudio.AVAudioSession:55:14: note: 'sampleRate' has been explicitly marked unavailable here
53 |     open func setOutputDataSource(_ dataSource: AVAudioSessionDataSourceDescription?) throws
54 |     @available(macOS, unavailable)
55 |     open var sampleRate: Double { get }
   |              `- note: 'sampleRate' has been explicitly marked unavailable here
56 |     @available(macOS, unavailable)
57 |     open var inputNumberOfChannels: Int { get }
/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.0 macosSpm
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.