Build Information
Failed to build BroadcastWriter, reference main (ef52e6
), with Swift 6.1 for macOS (SPM) on 26 Apr 2025 09:26:08 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
Build Log
========================================
RunAll
========================================
Builder version: 4.61.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",
"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",
"dependencies": [
]
}
]
}
Fetching https://github.com/romiroma/BroadcastWriter.git
[1/63] Fetching broadcastwriter
Fetched https://github.com/romiroma/BroadcastWriter.git from cache (0.62s)
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.1
Building package at path: $PWD
https://github.com/romiroma/BroadcastWriter.git
https://github.com/romiroma/BroadcastWriter.git
{
"dependencies" : [
],
"manifest_display_name" : "BroadcastWriter",
"name" : "BroadcastWriter",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "13.0"
}
],
"products" : [
{
"name" : "BroadcastWriter",
"targets" : [
"BroadcastWriter"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "BroadcastWriterTests",
"module_type" : "SwiftTarget",
"name" : "BroadcastWriterTests",
"path" : "Tests/BroadcastWriterTests",
"sources" : [
"BroadcastWriterTests.swift",
"XCTestManifests.swift"
],
"target_dependencies" : [
"BroadcastWriter"
],
"type" : "test"
},
{
"c99name" : "BroadcastWriter",
"module_type" : "SwiftTarget",
"name" : "BroadcastWriter",
"path" : "Sources/BroadcastWriter",
"product_memberships" : [
"BroadcastWriter"
],
"sources" : [
"AVAssetWriter.Status+stringDescription.swift",
"BroadcastWriter.swift",
"CGFloat+NSNumber.swift",
"Int+NSNumber.swift"
],
"type" : "library"
}
],
"tools_version" : "5.3"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-2F0A5646E1D333AE.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-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.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-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:361:29: note: 'sampleRate' has been explicitly marked unavailable here
359 |
360 | /// The current hardware sample rate. Is key-value observable (starting iOS 18.0).
361 | @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
362 |
363 | /// 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-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.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-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:361:29: note: 'sampleRate' has been explicitly marked unavailable here
359 |
360 | /// The current hardware sample rate. Is key-value observable (starting iOS 18.0).
361 | @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
362 |
363 | /// 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-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.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-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:361:29: note: 'sampleRate' has been explicitly marked unavailable here
359 |
360 | /// The current hardware sample rate. Is key-value observable (starting iOS 18.0).
361 | @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
362 |
363 | /// 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 | )
/Users/admin/builder/spi-builder-workspace/Sources/BroadcastWriter/BroadcastWriter.swift:198:34: warning: capture of 'self' with non-sendable type 'BroadcastWriter?' in a '@Sendable' closure
8 | }
9 |
10 | public final class BroadcastWriter {
| `- note: class 'BroadcastWriter' does not conform to the 'Sendable' protocol
11 |
12 | private var assetWriterSessionStarted: Bool = false
:
196 | }
197 |
198 | guard let self = self else {
| `- warning: capture of 'self' with non-sendable type 'BroadcastWriter?' in a '@Sendable' closure
199 | error = Error.selfDeallocated
200 | return
/Users/admin/builder/spi-builder-workspace/Sources/BroadcastWriter/BroadcastWriter.swift:199:21: warning: mutation of captured var 'error' in concurrently-executing code
197 |
198 | guard let self = self else {
199 | error = Error.selfDeallocated
| `- warning: mutation of captured var 'error' in concurrently-executing code
200 | return
201 | }
/Users/admin/builder/spi-builder-workspace/Sources/BroadcastWriter/BroadcastWriter.swift:204:21: warning: mutation of captured var 'error' in concurrently-executing code
202 |
203 | if let e = self.assetWriter.error {
204 | error = e
| `- warning: mutation of captured var 'error' in concurrently-executing code
205 | return
206 | }
/Users/admin/builder/spi-builder-workspace/Sources/BroadcastWriter/BroadcastWriter.swift:210:21: warning: mutation of captured var 'error' in concurrently-executing code
208 | let status = self.assetWriter.status
209 | guard status == .completed else {
210 | error = Error.wrongAssetWriterStatus(status)
| `- warning: mutation of captured var 'error' in concurrently-executing code
211 | return
212 | }
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-2F0A5646E1D333AE.txt
[2/6] Compiling BroadcastWriter Int+NSNumber.swift
[3/6] Compiling BroadcastWriter CGFloat+NSNumber.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/6] 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 {
[5/6] 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-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.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-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:361:29: note: 'sampleRate' has been explicitly marked unavailable here
359 |
360 | /// The current hardware sample rate. Is key-value observable (starting iOS 18.0).
361 | @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
362 |
363 | /// 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 |
[6/6] 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-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.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-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:361:29: note: 'sampleRate' has been explicitly marked unavailable here
359 |
360 | /// The current hardware sample rate. Is key-value observable (starting iOS 18.0).
361 | @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
362 |
363 | /// 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-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.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-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:361:29: note: 'sampleRate' has been explicitly marked unavailable here
359 |
360 | /// The current hardware sample rate. Is key-value observable (starting iOS 18.0).
361 | @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
362 |
363 | /// 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.1 macosSpm