Build Information
Failed to build telnyx-webrtc-ios, reference main (412a7b), with Swift 6.0 for macOS (SPM) on 19 Apr 2026 00:26:58 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.2.0.app xcrun swift build --arch arm64Build Log
| `- note: 'routeChangeNotification' has been explicitly marked unavailable here
6 | @available(macOS, unavailable)
7 | public class let mediaServicesWereLostNotification: NSNotification.Name
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1426:32: error: 'AVAudioSession' is unavailable in macOS
1424 | Logger.log.i(message: "[ACM_RESET] TxClient:: setEarpiece() called")
1425 | do {
1426 | let audioSession = AVAudioSession.sharedInstance()
| `- error: 'AVAudioSession' is unavailable in macOS
1427 | try audioSession.overrideOutputAudioPort(.none)
1428 | _isSpeakerEnabled = false
AVFAudio.AVAudioSession:2:12: note: 'AVAudioSession' has been explicitly marked unavailable here
1 | @available(macOS, unavailable)
2 | open class AVAudioSession : NSObject, @unchecked Sendable {
| `- note: 'AVAudioSession' has been explicitly marked unavailable here
3 | @available(macOS, unavailable)
4 | open class func sharedInstance() -> AVAudioSession
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1426:47: error: 'sharedInstance()' is unavailable in macOS
1424 | Logger.log.i(message: "[ACM_RESET] TxClient:: setEarpiece() called")
1425 | do {
1426 | let audioSession = AVAudioSession.sharedInstance()
| `- error: 'sharedInstance()' is unavailable in macOS
1427 | try audioSession.overrideOutputAudioPort(.none)
1428 | _isSpeakerEnabled = false
AVFAudio.AVAudioSession:4:21: note: 'sharedInstance()' has been explicitly marked unavailable here
2 | open class AVAudioSession : NSObject, @unchecked Sendable {
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/TelnyxRTC/Telnyx/TxClient.swift:1427:30: error: 'overrideOutputAudioPort' is unavailable in macOS
1425 | do {
1426 | let audioSession = AVAudioSession.sharedInstance()
1427 | try audioSession.overrideOutputAudioPort(.none)
| `- error: 'overrideOutputAudioPort' is unavailable in macOS
1428 | _isSpeakerEnabled = false
1429 | Logger.log.i(message: "[ACM_RESET] TxClient:: Earpiece set successfully, _isSpeakerEnabled: \(_isSpeakerEnabled)")
AVFAudio.AVAudioSession:45:15: note: 'overrideOutputAudioPort' has been explicitly marked unavailable here
43 | open func requestRecordPermission(_ response: @escaping (Bool) -> Void)
44 | @available(macOS, unavailable)
45 | open func overrideOutputAudioPort(_ portOverride: AVAudioSession.PortOverride) throws
| `- note: 'overrideOutputAudioPort' has been explicitly marked unavailable here
46 | @available(macOS, unavailable)
47 | open func setPreferredInput(_ inPort: AVAudioSessionPortDescription?) throws
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1439:32: error: 'AVAudioSession' is unavailable in macOS
1437 | Logger.log.i(message: "[ACM_RESET] TxClient:: setSpeaker() called")
1438 | do {
1439 | let audioSession = AVAudioSession.sharedInstance()
| `- error: 'AVAudioSession' is unavailable in macOS
1440 | try audioSession.overrideOutputAudioPort(.speaker)
1441 | _isSpeakerEnabled = true
AVFAudio.AVAudioSession:2:12: note: 'AVAudioSession' has been explicitly marked unavailable here
1 | @available(macOS, unavailable)
2 | open class AVAudioSession : NSObject, @unchecked Sendable {
| `- note: 'AVAudioSession' has been explicitly marked unavailable here
3 | @available(macOS, unavailable)
4 | open class func sharedInstance() -> AVAudioSession
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1439:47: error: 'sharedInstance()' is unavailable in macOS
1437 | Logger.log.i(message: "[ACM_RESET] TxClient:: setSpeaker() called")
1438 | do {
1439 | let audioSession = AVAudioSession.sharedInstance()
| `- error: 'sharedInstance()' is unavailable in macOS
1440 | try audioSession.overrideOutputAudioPort(.speaker)
1441 | _isSpeakerEnabled = true
AVFAudio.AVAudioSession:4:21: note: 'sharedInstance()' has been explicitly marked unavailable here
2 | open class AVAudioSession : NSObject, @unchecked Sendable {
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/TelnyxRTC/Telnyx/TxClient.swift:1440:30: error: 'overrideOutputAudioPort' is unavailable in macOS
1438 | do {
1439 | let audioSession = AVAudioSession.sharedInstance()
1440 | try audioSession.overrideOutputAudioPort(.speaker)
| `- error: 'overrideOutputAudioPort' is unavailable in macOS
1441 | _isSpeakerEnabled = true
1442 | Logger.log.i(message: "[ACM_RESET] TxClient:: Speaker set successfully, _isSpeakerEnabled: \(_isSpeakerEnabled)")
AVFAudio.AVAudioSession:45:15: note: 'overrideOutputAudioPort' has been explicitly marked unavailable here
43 | open func requestRecordPermission(_ response: @escaping (Bool) -> Void)
44 | @available(macOS, unavailable)
45 | open func overrideOutputAudioPort(_ portOverride: AVAudioSession.PortOverride) throws
| `- note: 'overrideOutputAudioPort' has been explicitly marked unavailable here
46 | @available(macOS, unavailable)
47 | open func setPreferredInput(_ inPort: AVAudioSessionPortDescription?) throws
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1440:55: error: 'speaker' is unavailable in macOS
1438 | do {
1439 | let audioSession = AVAudioSession.sharedInstance()
1440 | try audioSession.overrideOutputAudioPort(.speaker)
| `- error: 'speaker' is unavailable in macOS
1441 | _isSpeakerEnabled = true
1442 | Logger.log.i(message: "[ACM_RESET] TxClient:: Speaker set successfully, _isSpeakerEnabled: \(_isSpeakerEnabled)")
AVFAudio.AVAudioSession:28:14: note: 'speaker' has been explicitly marked unavailable here
26 | public static var None: AVAudioSession.PortOverride { get }
27 | @available(macOS, unavailable)
28 | case speaker
| `- note: 'speaker' has been explicitly marked unavailable here
29 | }
30 | public enum RouteChangeReason : UInt, @unchecked Sendable {
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1963:28: error: 'AVAudioSession' is unavailable in macOS
1961 | extension TxClient {
1962 | internal func resetAudioConfiguration() {
1963 | let audioSession = AVAudioSession.sharedInstance()
| `- error: 'AVAudioSession' is unavailable in macOS
1964 | do {
1965 | try audioSession.setCategory(
AVFAudio.AVAudioSession:2:12: note: 'AVAudioSession' has been explicitly marked unavailable here
1 | @available(macOS, unavailable)
2 | open class AVAudioSession : NSObject, @unchecked Sendable {
| `- note: 'AVAudioSession' has been explicitly marked unavailable here
3 | @available(macOS, unavailable)
4 | open class func sharedInstance() -> AVAudioSession
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1963:43: error: 'sharedInstance()' is unavailable in macOS
1961 | extension TxClient {
1962 | internal func resetAudioConfiguration() {
1963 | let audioSession = AVAudioSession.sharedInstance()
| `- error: 'sharedInstance()' is unavailable in macOS
1964 | do {
1965 | try audioSession.setCategory(
AVFAudio.AVAudioSession:4:21: note: 'sharedInstance()' has been explicitly marked unavailable here
2 | open class AVAudioSession : NSObject, @unchecked Sendable {
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/TelnyxRTC/Telnyx/TxClient.swift:1965:30: error: 'setCategory(_:mode:options:)' is unavailable in macOS
1963 | let audioSession = AVAudioSession.sharedInstance()
1964 | do {
1965 | try audioSession.setCategory(
| `- error: 'setCategory(_:mode:options:)' is unavailable in macOS
1966 | .playback,
1967 | mode: .default,
AVFAudio.AVAudioSession:18:15: note: 'setCategory(_:mode:options:)' has been explicitly marked unavailable here
16 | open func setCategory(_ category: AVAudioSession.Category, withOptions options: AVAudioSession.CategoryOptions = []) throws
17 | @available(macOS, unavailable)
18 | open func setCategory(_ category: AVAudioSession.Category, mode: AVAudioSession.Mode, options: AVAudioSession.CategoryOptions = []) throws
| `- note: 'setCategory(_:mode:options:)' has been explicitly marked unavailable here
19 | @available(macOS, unavailable)
20 | open func setCategory(_ category: AVAudioSession.Category, mode: AVAudioSession.Mode, policy: AVAudioSession.RouteSharingPolicy, options: AVAudioSession.CategoryOptions = []) throws
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1966:18: error: 'playback' is unavailable in macOS
1964 | do {
1965 | try audioSession.setCategory(
1966 | .playback,
| `- error: 'playback' is unavailable in macOS
1967 | mode: .default,
1968 | options: [.mixWithOthers]
AVFAudio.AVAudioSession.Category:7:23: note: 'playback' has been explicitly marked unavailable here
5 | public static let soloAmbient: AVAudioSession.Category
6 | @available(macOS, unavailable)
7 | public static let playback: AVAudioSession.Category
| `- note: 'playback' has been explicitly marked unavailable here
8 | @available(macOS, unavailable)
9 | public static let record: AVAudioSession.Category
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1967:24: error: 'default' is unavailable in macOS
1965 | try audioSession.setCategory(
1966 | .playback,
1967 | mode: .default,
| `- error: 'default' is unavailable in macOS
1968 | options: [.mixWithOthers]
1969 | )
AVFAudio.AVAudioSession.Mode:3:23: note: 'default' has been explicitly marked unavailable here
1 | extension AVAudioSession.Mode {
2 | @available(macOS, unavailable)
3 | public static let `default`: AVAudioSession.Mode
| `- note: 'default' has been explicitly marked unavailable here
4 | @available(macOS, unavailable)
5 | public static let voiceChat: AVAudioSession.Mode
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1976:31: error: cannot find 'RTCAudioSession' in scope
1974 |
1975 | internal func setupCorrectAudioConfiguration() {
1976 | let rtcAudioSession = RTCAudioSession.sharedInstance()
| `- error: cannot find 'RTCAudioSession' in scope
1977 | rtcAudioSession.lockForConfiguration()
1978 |
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1979:29: error: cannot find 'RTCAudioSessionConfiguration' in scope
1977 | rtcAudioSession.lockForConfiguration()
1978 |
1979 | let configuration = RTCAudioSessionConfiguration.webRTC()
| `- error: cannot find 'RTCAudioSessionConfiguration' in scope
1980 | configuration.categoryOptions = [
1981 | .duckOthers,
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1981:14: error: reference to member 'duckOthers' cannot be resolved without a contextual type
1979 | let configuration = RTCAudioSessionConfiguration.webRTC()
1980 | configuration.categoryOptions = [
1981 | .duckOthers,
| `- error: reference to member 'duckOthers' cannot be resolved without a contextual type
1982 | .allowBluetooth,
1983 | ]
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1982:14: error: reference to member 'allowBluetooth' cannot be resolved without a contextual type
1980 | configuration.categoryOptions = [
1981 | .duckOthers,
1982 | .allowBluetooth,
| `- error: reference to member 'allowBluetooth' cannot be resolved without a contextual type
1983 | ]
1984 |
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1995:31: error: cannot find 'RTCAudioSession' in scope
1993 |
1994 | internal func setAudioSessionActive(_ active: Bool) {
1995 | let rtcAudioSession = RTCAudioSession.sharedInstance()
| `- error: cannot find 'RTCAudioSession' in scope
1996 |
1997 | rtcAudioSession.lockForConfiguration()
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/Utils/FileLoger.swift:96:19: warning: value 'logData' was defined but never used; consider replacing with boolean test
94 |
95 | let logFileURL = FileLogger.shared.logFileURL
96 | guard let logData = try? Data(contentsOf: logFileURL) else {
| `- warning: value 'logData' was defined but never used; consider replacing with boolean test
97 | Logger.log.e(message: "Failed to read log file")
98 | return
[93/103] Compiling TelnyxRTC CallTimingBenchmark.swift
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:140:35: error: 'CXAnswerCallAction' is unavailable in macOS
138 | private var socket : Socket?
139 |
140 | private var answerCallAction: CXAnswerCallAction? = nil
| `- error: 'CXAnswerCallAction' is unavailable in macOS
141 | private var endCallAction: CXEndCallAction? = nil
142 | private var sessionId : String?
CallKit.CXAnswerCallAction:2:12: note: 'CXAnswerCallAction' has been explicitly marked unavailable here
1 | @available(macOS, unavailable)
2 | open class CXAnswerCallAction : CXCallAction {
| `- note: 'CXAnswerCallAction' has been explicitly marked unavailable here
3 | open func fulfill(withDateConnected dateConnected: Date)
4 | @available(swift, obsoleted: 3, renamed: "fulfill(withDateConnected:)")
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:141:32: error: 'CXEndCallAction' is unavailable in macOS
139 |
140 | private var answerCallAction: CXAnswerCallAction? = nil
141 | private var endCallAction: CXEndCallAction? = nil
| `- error: 'CXEndCallAction' is unavailable in macOS
142 | private var sessionId : String?
143 | internal var txConfig: TxConfig?
CallKit.CXEndCallAction:2:12: note: 'CXEndCallAction' has been explicitly marked unavailable here
1 | @available(macOS, unavailable)
2 | open class CXEndCallAction : CXCallAction {
| `- note: 'CXEndCallAction' has been explicitly marked unavailable here
3 | open func fulfill(withDateEnded dateEnded: Date)
4 | @available(swift, obsoleted: 3, renamed: "fulfill(withDateEnded:)")
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:234:50: error: 'AVAudioSession' is unavailable in macOS
232 | /// }
233 | /// ```
234 | public func enableAudioSession(audioSession: AVAudioSession) {
| `- error: 'AVAudioSession' is unavailable in macOS
235 | setupCorrectAudioConfiguration()
236 | setAudioSessionActive(true)
AVFAudio.AVAudioSession:2:12: note: 'AVAudioSession' has been explicitly marked unavailable here
1 | @available(macOS, unavailable)
2 | open class AVAudioSession : NSObject, @unchecked Sendable {
| `- note: 'AVAudioSession' has been explicitly marked unavailable here
3 | @available(macOS, unavailable)
4 | open class func sharedInstance() -> AVAudioSession
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:253:51: error: 'AVAudioSession' is unavailable in macOS
251 | /// }
252 | /// ```
253 | public func disableAudioSession(audioSession: AVAudioSession) {
| `- error: 'AVAudioSession' is unavailable in macOS
254 | resetAudioConfiguration()
255 | setAudioSessionActive(false)
AVFAudio.AVAudioSession:2:12: note: 'AVAudioSession' has been explicitly marked unavailable here
1 | @available(macOS, unavailable)
2 | open class AVAudioSession : NSObject, @unchecked Sendable {
| `- note: 'AVAudioSession' has been explicitly marked unavailable here
3 | @available(macOS, unavailable)
4 | open class func sharedInstance() -> AVAudioSession
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:260:24: error: 'AVAudioSession' is unavailable in macOS
258 | /// The current audio route configuration.
259 | /// This provides information about the active input and output ports.
260 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
| `- error: 'AVAudioSession' is unavailable in macOS
261 |
262 | /// Client must be registered in order to receive or place calls.
AVFAudio.AVAudioSession:2:12: note: 'AVAudioSession' has been explicitly marked unavailable here
1 | @available(macOS, unavailable)
2 | open class AVAudioSession : NSObject, @unchecked Sendable {
| `- note: 'AVAudioSession' has been explicitly marked unavailable here
3 | @available(macOS, unavailable)
4 | open class func sharedInstance() -> AVAudioSession
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:260:39: error: 'sharedInstance()' is unavailable in macOS
258 | /// The current audio route configuration.
259 | /// This provides information about the active input and output ports.
260 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
| `- error: 'sharedInstance()' is unavailable in macOS
261 |
262 | /// Client must be registered in order to receive or place calls.
AVFAudio.AVAudioSession:4:21: note: 'sharedInstance()' has been explicitly marked unavailable here
2 | open class AVAudioSession : NSObject, @unchecked Sendable {
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/TelnyxRTC/Telnyx/TxClient.swift:260:56: error: 'currentRoute' is unavailable in macOS
258 | /// The current audio route configuration.
259 | /// This provides information about the active input and output ports.
260 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
| `- error: 'currentRoute' is unavailable in macOS
261 |
262 | /// Client must be registered in order to receive or place calls.
AVFAudio.AVAudioSession:5:14: note: 'currentRoute' has been explicitly marked unavailable here
3 | open var availableInputs: [AVAudioSessionPortDescription]? { get }
4 | @available(macOS, unavailable)
5 | open var currentRoute: AVAudioSessionRouteDescription { get }
| `- note: 'currentRoute' has been explicitly marked unavailable here
6 | @available(macOS, unavailable)
7 | open func setAggregatedIOPreference(_ inIOType: AVAudioSession.IOType) throws
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:697:49: error: 'CXAnswerCallAction' is unavailable in macOS
695 | /// - debug: (optional) Enable debug mode for call quality metrics and WebRTC statistics.
696 | /// When enabled, real-time call quality metrics will be available through the call's `onCallQualityChange` callback.
697 | public func answerFromCallkit(answerAction: CXAnswerCallAction,
| `- error: 'CXAnswerCallAction' is unavailable in macOS
698 | customHeaders: [String:String] = [:],
699 | debug: Bool = false) {
CallKit.CXAnswerCallAction:2:12: note: 'CXAnswerCallAction' has been explicitly marked unavailable here
1 | @available(macOS, unavailable)
2 | open class CXAnswerCallAction : CXCallAction {
| `- note: 'CXAnswerCallAction' has been explicitly marked unavailable here
3 | open func fulfill(withDateConnected dateConnected: Date)
4 | @available(swift, obsoleted: 3, renamed: "fulfill(withDateConnected:)")
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:801:47: error: 'CXEndCallAction' is unavailable in macOS
799 |
800 | /// To end and control callKit active and conn
801 | public func endCallFromCallkit(endAction: CXEndCallAction,
| `- error: 'CXEndCallAction' is unavailable in macOS
802 | callId: UUID? = nil) {
803 | Logger.log.i(message: "TxClient:: endCallFromCallkit - started for callID \(String(describing: endAction.callUUID))")
CallKit.CXEndCallAction:2:12: note: 'CXEndCallAction' has been explicitly marked unavailable here
1 | @available(macOS, unavailable)
2 | open class CXEndCallAction : CXCallAction {
| `- note: 'CXEndCallAction' has been explicitly marked unavailable here
3 | open func fulfill(withDateEnded dateEnded: Date)
4 | @available(swift, obsoleted: 3, renamed: "fulfill(withDateEnded:)")
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:208:20: error: cannot find 'RTCAudioSession' in scope
206 | public var isAudioDeviceEnabled : Bool {
207 | get {
208 | return RTCAudioSession.sharedInstance().isAudioEnabled
| `- error: cannot find 'RTCAudioSession' in scope
209 | }
210 | set {
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:212:17: error: cannot find 'RTCAudioSession' in scope
210 | set {
211 | if newValue {
212 | RTCAudioSession.sharedInstance().audioSessionDidActivate(AVAudioSession.sharedInstance())
| `- error: cannot find 'RTCAudioSession' in scope
213 | } else {
214 | RTCAudioSession.sharedInstance().audioSessionDidDeactivate(AVAudioSession.sharedInstance())
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:214:17: error: cannot find 'RTCAudioSession' in scope
212 | RTCAudioSession.sharedInstance().audioSessionDidActivate(AVAudioSession.sharedInstance())
213 | } else {
214 | RTCAudioSession.sharedInstance().audioSessionDidDeactivate(AVAudioSession.sharedInstance())
| `- error: cannot find 'RTCAudioSession' in scope
215 | }
216 | RTCAudioSession.sharedInstance().isAudioEnabled = newValue
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:216:13: error: cannot find 'RTCAudioSession' in scope
214 | RTCAudioSession.sharedInstance().audioSessionDidDeactivate(AVAudioSession.sharedInstance())
215 | }
216 | RTCAudioSession.sharedInstance().isAudioEnabled = newValue
| `- error: cannot find 'RTCAudioSession' in scope
217 | }
218 | }
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:318:63: error: 'AVAudioSession' is unavailable in macOS
316 |
317 | // Remove audio route change observer
318 | NotificationCenter.default.removeObserver(self, name: AVAudioSession.routeChangeNotification, object: nil)
| `- error: 'AVAudioSession' is unavailable in macOS
319 |
320 | // Remove ACM reset observers
AVFAudio.AVAudioSession:2:12: note: 'AVAudioSession' has been explicitly marked unavailable here
1 | @available(macOS, unavailable)
2 | open class AVAudioSession : NSObject, @unchecked Sendable {
| `- note: 'AVAudioSession' has been explicitly marked unavailable here
3 | @available(macOS, unavailable)
4 | open class func sharedInstance() -> AVAudioSession
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:318:78: error: 'routeChangeNotification' is unavailable in macOS
316 |
317 | // Remove audio route change observer
318 | NotificationCenter.default.removeObserver(self, name: AVAudioSession.routeChangeNotification, object: nil)
| `- error: 'routeChangeNotification' is unavailable in macOS
319 |
320 | // Remove ACM reset observers
AVFAudio.AVAudioSession:5:22: note: 'routeChangeNotification' has been explicitly marked unavailable here
3 | public class let interruptionNotification: NSNotification.Name
4 | @available(macOS, unavailable)
5 | public class let routeChangeNotification: NSNotification.Name
| `- note: 'routeChangeNotification' has been explicitly marked unavailable here
6 | @available(macOS, unavailable)
7 | public class let mediaServicesWereLostNotification: NSNotification.Name
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:338:19: error: 'AVAudioSession' is unavailable in macOS
336 | self,
337 | selector: #selector(handleAudioRouteChange),
338 | name: AVAudioSession.routeChangeNotification,
| `- error: 'AVAudioSession' is unavailable in macOS
339 | object: nil)
340 |
AVFAudio.AVAudioSession:2:12: note: 'AVAudioSession' has been explicitly marked unavailable here
1 | @available(macOS, unavailable)
2 | open class AVAudioSession : NSObject, @unchecked Sendable {
| `- note: 'AVAudioSession' has been explicitly marked unavailable here
3 | @available(macOS, unavailable)
4 | open class func sharedInstance() -> AVAudioSession
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:338:34: error: 'routeChangeNotification' is unavailable in macOS
336 | self,
337 | selector: #selector(handleAudioRouteChange),
338 | name: AVAudioSession.routeChangeNotification,
| `- error: 'routeChangeNotification' is unavailable in macOS
339 | object: nil)
340 |
AVFAudio.AVAudioSession:5:22: note: 'routeChangeNotification' has been explicitly marked unavailable here
3 | public class let interruptionNotification: NSNotification.Name
4 | @available(macOS, unavailable)
5 | public class let routeChangeNotification: NSNotification.Name
| `- note: 'routeChangeNotification' has been explicitly marked unavailable here
6 | @available(macOS, unavailable)
7 | public class let mediaServicesWereLostNotification: NSNotification.Name
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:375:42: error: 'AVAudioSessionRouteChangeReasonKey' is unavailable in macOS
373 | @objc private func handleAudioRouteChange(notification: Notification) {
374 | guard let userInfo = notification.userInfo,
375 | let reasonValue = userInfo[AVAudioSessionRouteChangeReasonKey] as? UInt,
| `- error: 'AVAudioSessionRouteChangeReasonKey' is unavailable in macOS
376 | let reason = AVAudioSession.RouteChangeReason(rawValue: reasonValue) else {
377 | return
AVFAudio.AVAudioSessionRouteChangeReasonKey:2:12: note: 'AVAudioSessionRouteChangeReasonKey' has been explicitly marked unavailable here
1 | @available(macOS, unavailable)
2 | public let AVAudioSessionRouteChangeReasonKey: String
| `- note: 'AVAudioSessionRouteChangeReasonKey' has been explicitly marked unavailable here
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:376:28: error: 'AVAudioSession' is unavailable in macOS
374 | guard let userInfo = notification.userInfo,
375 | let reasonValue = userInfo[AVAudioSessionRouteChangeReasonKey] as? UInt,
376 | let reason = AVAudioSession.RouteChangeReason(rawValue: reasonValue) else {
| `- error: 'AVAudioSession' is unavailable in macOS
377 | return
378 | }
AVFAudio.AVAudioSession:2:12: note: 'AVAudioSession' has been explicitly marked unavailable here
1 | @available(macOS, unavailable)
2 | open class AVAudioSession : NSObject, @unchecked Sendable {
| `- note: 'AVAudioSession' has been explicitly marked unavailable here
3 | @available(macOS, unavailable)
4 | open class func sharedInstance() -> AVAudioSession
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:380:23: error: 'AVAudioSession' is unavailable in macOS
378 | }
379 |
380 | let session = AVAudioSession.sharedInstance()
| `- error: 'AVAudioSession' is unavailable in macOS
381 | let currentRoute = session.currentRoute
382 |
AVFAudio.AVAudioSession:2:12: note: 'AVAudioSession' has been explicitly marked unavailable here
1 | @available(macOS, unavailable)
2 | open class AVAudioSession : NSObject, @unchecked Sendable {
| `- note: 'AVAudioSession' has been explicitly marked unavailable here
3 | @available(macOS, unavailable)
4 | open class func sharedInstance() -> AVAudioSession
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:380:38: error: 'sharedInstance()' is unavailable in macOS
378 | }
379 |
380 | let session = AVAudioSession.sharedInstance()
| `- error: 'sharedInstance()' is unavailable in macOS
381 | let currentRoute = session.currentRoute
382 |
AVFAudio.AVAudioSession:4:21: note: 'sharedInstance()' has been explicitly marked unavailable here
2 | open class AVAudioSession : NSObject, @unchecked Sendable {
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/TelnyxRTC/Telnyx/TxClient.swift:381:36: error: 'currentRoute' is unavailable in macOS
379 |
380 | let session = AVAudioSession.sharedInstance()
381 | let currentRoute = session.currentRoute
| `- error: 'currentRoute' is unavailable in macOS
382 |
383 | // Ensure we have at least one output port
AVFAudio.AVAudioSession:5:14: note: 'currentRoute' has been explicitly marked unavailable here
3 | open var availableInputs: [AVAudioSessionPortDescription]? { get }
4 | @available(macOS, unavailable)
5 | open var currentRoute: AVAudioSessionRouteDescription { get }
| `- note: 'currentRoute' has been explicitly marked unavailable here
6 | @available(macOS, unavailable)
7 | open func setAggregatedIOPreference(_ inIOType: AVAudioSession.IOType) throws
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:384:41: error: 'outputs' is unavailable in macOS
382 |
383 | // Ensure we have at least one output port
384 | guard let output = currentRoute.outputs.first else {
| `- error: 'outputs' is unavailable in macOS
385 | return
386 | }
AVFAudio.AVAudioSessionRouteDescription:6:14: note: 'outputs' has been explicitly marked unavailable here
4 | open var inputs: [AVAudioSessionPortDescription] { get }
5 | @available(macOS, unavailable)
6 | open var outputs: [AVAudioSessionPortDescription] { get }
| `- note: 'outputs' has been explicitly marked unavailable here
7 | public init()
8 | }
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:388:85: error: 'portType' is unavailable in macOS
386 | }
387 |
388 | Logger.log.i(message: "[ACM_RESET] TxClient:: Audio route changed: \(output.portType), reason: \(reason), isACMResetInProgress: \(isACMResetInProgress)")
| `- error: 'portType' is unavailable in macOS
389 |
390 | // Ignore audio route changes during ACM reset to prevent state desynchronization
AVFAudio.AVAudioSessionPortDescription:4:14: note: 'portType' has been explicitly marked unavailable here
2 | open class AVAudioSessionPortDescription : NSObject, @unchecked Sendable {
3 | @available(macOS, unavailable)
4 | open var portType: AVAudioSession.Port { get }
| `- note: 'portType' has been explicitly marked unavailable here
5 | @available(macOS, unavailable)
6 | open var portName: String { get }
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:399:40: error: 'portType' is unavailable in macOS
397 | case .categoryChange, .override, .routeConfigurationChange:
398 | // Update internal speaker state based on current output
399 | let isSpeaker = output.portType == .builtInSpeaker
| `- error: 'portType' is unavailable in macOS
400 | _isSpeakerEnabled = isSpeaker
401 |
AVFAudio.AVAudioSessionPortDescription:4:14: note: 'portType' has been explicitly marked unavailable here
2 | open class AVAudioSessionPortDescription : NSObject, @unchecked Sendable {
3 | @available(macOS, unavailable)
4 | open var portType: AVAudioSession.Port { get }
| `- note: 'portType' has been explicitly marked unavailable here
5 | @available(macOS, unavailable)
6 | open var portName: String { get }
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:399:53: error: 'builtInSpeaker' is unavailable in macOS
397 | case .categoryChange, .override, .routeConfigurationChange:
398 | // Update internal speaker state based on current output
399 | let isSpeaker = output.portType == .builtInSpeaker
| `- error: 'builtInSpeaker' is unavailable in macOS
400 | _isSpeakerEnabled = isSpeaker
401 |
AVFAudio.AVAudioSession.Port:19:23: note: 'builtInSpeaker' has been explicitly marked unavailable here
17 | public static let builtInReceiver: AVAudioSession.Port
18 | @available(macOS, unavailable)
19 | public static let builtInSpeaker: AVAudioSession.Port
| `- note: 'builtInSpeaker' has been explicitly marked unavailable here
20 | @available(macOS, unavailable)
21 | public static let HDMI: AVAudioSession.Port
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:408:50: error: 'portType' is unavailable in macOS
406 | userInfo: [
407 | "isSpeakerEnabled": isSpeaker,
408 | "outputPortType": output.portType
| `- error: 'portType' is unavailable in macOS
409 | ]
410 | )
AVFAudio.AVAudioSessionPortDescription:4:14: note: 'portType' has been explicitly marked unavailable here
2 | open class AVAudioSessionPortDescription : NSObject, @unchecked Sendable {
3 | @available(macOS, unavailable)
4 | open var portType: AVAudioSession.Port { get }
| `- note: 'portType' has been explicitly marked unavailable here
5 | @available(macOS, unavailable)
6 | open var portName: String { get }
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:474:32: error: 'AVAudioSession' is unavailable in macOS
472 |
473 | // Verify if speaker is actually active
474 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
| `- error: 'AVAudioSession' is unavailable in macOS
475 | let isSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
476 |
AVFAudio.AVAudioSession:2:12: note: 'AVAudioSession' has been explicitly marked unavailable here
1 | @available(macOS, unavailable)
2 | open class AVAudioSession : NSObject, @unchecked Sendable {
| `- note: 'AVAudioSession' has been explicitly marked unavailable here
3 | @available(macOS, unavailable)
4 | open class func sharedInstance() -> AVAudioSession
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:474:47: error: 'sharedInstance()' is unavailable in macOS
472 |
473 | // Verify if speaker is actually active
474 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
| `- error: 'sharedInstance()' is unavailable in macOS
475 | let isSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
476 |
AVFAudio.AVAudioSession:4:21: note: 'sharedInstance()' has been explicitly marked unavailable here
2 | open class AVAudioSession : NSObject, @unchecked Sendable {
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/TelnyxRTC/Telnyx/TxClient.swift:474:64: error: 'currentRoute' is unavailable in macOS
472 |
473 | // Verify if speaker is actually active
474 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
| `- error: 'currentRoute' is unavailable in macOS
475 | let isSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
476 |
AVFAudio.AVAudioSession:5:14: note: 'currentRoute' has been explicitly marked unavailable here
3 | open var availableInputs: [AVAudioSessionPortDescription]? { get }
4 | @available(macOS, unavailable)
5 | open var currentRoute: AVAudioSessionRouteDescription { get }
| `- note: 'currentRoute' has been explicitly marked unavailable here
6 | @available(macOS, unavailable)
7 | open func setAggregatedIOPreference(_ inIOType: AVAudioSession.IOType) throws
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:475:48: error: 'outputs' is unavailable in macOS
473 | // Verify if speaker is actually active
474 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
475 | let isSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
| `- error: 'outputs' is unavailable in macOS
476 |
477 | if isSpeakerActive {
AVFAudio.AVAudioSessionRouteDescription:6:14: note: 'outputs' has been explicitly marked unavailable here
4 | open var inputs: [AVAudioSessionPortDescription] { get }
5 | @available(macOS, unavailable)
6 | open var outputs: [AVAudioSessionPortDescription] { get }
| `- note: 'outputs' has been explicitly marked unavailable here
7 | public init()
8 | }
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:475:70: error: 'portType' is unavailable in macOS
473 | // Verify if speaker is actually active
474 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
475 | let isSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
| `- error: 'portType' is unavailable in macOS
476 |
477 | if isSpeakerActive {
AVFAudio.AVAudioSessionPortDescription:4:14: note: 'portType' has been explicitly marked unavailable here
2 | open class AVAudioSessionPortDescription : NSObject, @unchecked Sendable {
3 | @available(macOS, unavailable)
4 | open var portType: AVAudioSession.Port { get }
| `- note: 'portType' has been explicitly marked unavailable here
5 | @available(macOS, unavailable)
6 | open var portName: String { get }
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:475:83: error: 'builtInSpeaker' is unavailable in macOS
473 | // Verify if speaker is actually active
474 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
475 | let isSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
| `- error: 'builtInSpeaker' is unavailable in macOS
476 |
477 | if isSpeakerActive {
AVFAudio.AVAudioSession.Port:19:23: note: 'builtInSpeaker' has been explicitly marked unavailable here
17 | public static let builtInReceiver: AVAudioSession.Port
18 | @available(macOS, unavailable)
19 | public static let builtInSpeaker: AVAudioSession.Port
| `- note: 'builtInSpeaker' has been explicitly marked unavailable here
20 | @available(macOS, unavailable)
21 | public static let HDMI: AVAudioSession.Port
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:644:57: error: 'AVAudioSession' is unavailable in macOS
642 | // Remove audio route change observer
643 | NotificationCenter.default.removeObserver(self,
644 | name: AVAudioSession.routeChangeNotification,
| `- error: 'AVAudioSession' is unavailable in macOS
645 | object: nil)
646 | socket?.disconnect(reconnect: false)
AVFAudio.AVAudioSession:2:12: note: 'AVAudioSession' has been explicitly marked unavailable here
1 | @available(macOS, unavailable)
2 | open class AVAudioSession : NSObject, @unchecked Sendable {
| `- note: 'AVAudioSession' has been explicitly marked unavailable here
3 | @available(macOS, unavailable)
4 | open class func sharedInstance() -> AVAudioSession
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:644:72: error: 'routeChangeNotification' is unavailable in macOS
642 | // Remove audio route change observer
643 | NotificationCenter.default.removeObserver(self,
644 | name: AVAudioSession.routeChangeNotification,
| `- error: 'routeChangeNotification' is unavailable in macOS
645 | object: nil)
646 | socket?.disconnect(reconnect: false)
AVFAudio.AVAudioSession:5:22: note: 'routeChangeNotification' has been explicitly marked unavailable here
3 | public class let interruptionNotification: NSNotification.Name
4 | @available(macOS, unavailable)
5 | public class let routeChangeNotification: NSNotification.Name
| `- note: 'routeChangeNotification' has been explicitly marked unavailable here
6 | @available(macOS, unavailable)
7 | public class let mediaServicesWereLostNotification: NSNotification.Name
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1426:32: error: 'AVAudioSession' is unavailable in macOS
1424 | Logger.log.i(message: "[ACM_RESET] TxClient:: setEarpiece() called")
1425 | do {
1426 | let audioSession = AVAudioSession.sharedInstance()
| `- error: 'AVAudioSession' is unavailable in macOS
1427 | try audioSession.overrideOutputAudioPort(.none)
1428 | _isSpeakerEnabled = false
AVFAudio.AVAudioSession:2:12: note: 'AVAudioSession' has been explicitly marked unavailable here
1 | @available(macOS, unavailable)
2 | open class AVAudioSession : NSObject, @unchecked Sendable {
| `- note: 'AVAudioSession' has been explicitly marked unavailable here
3 | @available(macOS, unavailable)
4 | open class func sharedInstance() -> AVAudioSession
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1426:47: error: 'sharedInstance()' is unavailable in macOS
1424 | Logger.log.i(message: "[ACM_RESET] TxClient:: setEarpiece() called")
1425 | do {
1426 | let audioSession = AVAudioSession.sharedInstance()
| `- error: 'sharedInstance()' is unavailable in macOS
1427 | try audioSession.overrideOutputAudioPort(.none)
1428 | _isSpeakerEnabled = false
AVFAudio.AVAudioSession:4:21: note: 'sharedInstance()' has been explicitly marked unavailable here
2 | open class AVAudioSession : NSObject, @unchecked Sendable {
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/TelnyxRTC/Telnyx/TxClient.swift:1427:30: error: 'overrideOutputAudioPort' is unavailable in macOS
1425 | do {
1426 | let audioSession = AVAudioSession.sharedInstance()
1427 | try audioSession.overrideOutputAudioPort(.none)
| `- error: 'overrideOutputAudioPort' is unavailable in macOS
1428 | _isSpeakerEnabled = false
1429 | Logger.log.i(message: "[ACM_RESET] TxClient:: Earpiece set successfully, _isSpeakerEnabled: \(_isSpeakerEnabled)")
AVFAudio.AVAudioSession:45:15: note: 'overrideOutputAudioPort' has been explicitly marked unavailable here
43 | open func requestRecordPermission(_ response: @escaping (Bool) -> Void)
44 | @available(macOS, unavailable)
45 | open func overrideOutputAudioPort(_ portOverride: AVAudioSession.PortOverride) throws
| `- note: 'overrideOutputAudioPort' has been explicitly marked unavailable here
46 | @available(macOS, unavailable)
47 | open func setPreferredInput(_ inPort: AVAudioSessionPortDescription?) throws
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1439:32: error: 'AVAudioSession' is unavailable in macOS
1437 | Logger.log.i(message: "[ACM_RESET] TxClient:: setSpeaker() called")
1438 | do {
1439 | let audioSession = AVAudioSession.sharedInstance()
| `- error: 'AVAudioSession' is unavailable in macOS
1440 | try audioSession.overrideOutputAudioPort(.speaker)
1441 | _isSpeakerEnabled = true
AVFAudio.AVAudioSession:2:12: note: 'AVAudioSession' has been explicitly marked unavailable here
1 | @available(macOS, unavailable)
2 | open class AVAudioSession : NSObject, @unchecked Sendable {
| `- note: 'AVAudioSession' has been explicitly marked unavailable here
3 | @available(macOS, unavailable)
4 | open class func sharedInstance() -> AVAudioSession
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1439:47: error: 'sharedInstance()' is unavailable in macOS
1437 | Logger.log.i(message: "[ACM_RESET] TxClient:: setSpeaker() called")
1438 | do {
1439 | let audioSession = AVAudioSession.sharedInstance()
| `- error: 'sharedInstance()' is unavailable in macOS
1440 | try audioSession.overrideOutputAudioPort(.speaker)
1441 | _isSpeakerEnabled = true
AVFAudio.AVAudioSession:4:21: note: 'sharedInstance()' has been explicitly marked unavailable here
2 | open class AVAudioSession : NSObject, @unchecked Sendable {
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/TelnyxRTC/Telnyx/TxClient.swift:1440:30: error: 'overrideOutputAudioPort' is unavailable in macOS
1438 | do {
1439 | let audioSession = AVAudioSession.sharedInstance()
1440 | try audioSession.overrideOutputAudioPort(.speaker)
| `- error: 'overrideOutputAudioPort' is unavailable in macOS
1441 | _isSpeakerEnabled = true
1442 | Logger.log.i(message: "[ACM_RESET] TxClient:: Speaker set successfully, _isSpeakerEnabled: \(_isSpeakerEnabled)")
AVFAudio.AVAudioSession:45:15: note: 'overrideOutputAudioPort' has been explicitly marked unavailable here
43 | open func requestRecordPermission(_ response: @escaping (Bool) -> Void)
44 | @available(macOS, unavailable)
45 | open func overrideOutputAudioPort(_ portOverride: AVAudioSession.PortOverride) throws
| `- note: 'overrideOutputAudioPort' has been explicitly marked unavailable here
46 | @available(macOS, unavailable)
47 | open func setPreferredInput(_ inPort: AVAudioSessionPortDescription?) throws
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1440:55: error: 'speaker' is unavailable in macOS
1438 | do {
1439 | let audioSession = AVAudioSession.sharedInstance()
1440 | try audioSession.overrideOutputAudioPort(.speaker)
| `- error: 'speaker' is unavailable in macOS
1441 | _isSpeakerEnabled = true
1442 | Logger.log.i(message: "[ACM_RESET] TxClient:: Speaker set successfully, _isSpeakerEnabled: \(_isSpeakerEnabled)")
AVFAudio.AVAudioSession:28:14: note: 'speaker' has been explicitly marked unavailable here
26 | public static var None: AVAudioSession.PortOverride { get }
27 | @available(macOS, unavailable)
28 | case speaker
| `- note: 'speaker' has been explicitly marked unavailable here
29 | }
30 | public enum RouteChangeReason : UInt, @unchecked Sendable {
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1963:28: error: 'AVAudioSession' is unavailable in macOS
1961 | extension TxClient {
1962 | internal func resetAudioConfiguration() {
1963 | let audioSession = AVAudioSession.sharedInstance()
| `- error: 'AVAudioSession' is unavailable in macOS
1964 | do {
1965 | try audioSession.setCategory(
AVFAudio.AVAudioSession:2:12: note: 'AVAudioSession' has been explicitly marked unavailable here
1 | @available(macOS, unavailable)
2 | open class AVAudioSession : NSObject, @unchecked Sendable {
| `- note: 'AVAudioSession' has been explicitly marked unavailable here
3 | @available(macOS, unavailable)
4 | open class func sharedInstance() -> AVAudioSession
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1963:43: error: 'sharedInstance()' is unavailable in macOS
1961 | extension TxClient {
1962 | internal func resetAudioConfiguration() {
1963 | let audioSession = AVAudioSession.sharedInstance()
| `- error: 'sharedInstance()' is unavailable in macOS
1964 | do {
1965 | try audioSession.setCategory(
AVFAudio.AVAudioSession:4:21: note: 'sharedInstance()' has been explicitly marked unavailable here
2 | open class AVAudioSession : NSObject, @unchecked Sendable {
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/TelnyxRTC/Telnyx/TxClient.swift:1965:30: error: 'setCategory(_:mode:options:)' is unavailable in macOS
1963 | let audioSession = AVAudioSession.sharedInstance()
1964 | do {
1965 | try audioSession.setCategory(
| `- error: 'setCategory(_:mode:options:)' is unavailable in macOS
1966 | .playback,
1967 | mode: .default,
AVFAudio.AVAudioSession:18:15: note: 'setCategory(_:mode:options:)' has been explicitly marked unavailable here
16 | open func setCategory(_ category: AVAudioSession.Category, withOptions options: AVAudioSession.CategoryOptions = []) throws
17 | @available(macOS, unavailable)
18 | open func setCategory(_ category: AVAudioSession.Category, mode: AVAudioSession.Mode, options: AVAudioSession.CategoryOptions = []) throws
| `- note: 'setCategory(_:mode:options:)' has been explicitly marked unavailable here
19 | @available(macOS, unavailable)
20 | open func setCategory(_ category: AVAudioSession.Category, mode: AVAudioSession.Mode, policy: AVAudioSession.RouteSharingPolicy, options: AVAudioSession.CategoryOptions = []) throws
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1966:18: error: 'playback' is unavailable in macOS
1964 | do {
1965 | try audioSession.setCategory(
1966 | .playback,
| `- error: 'playback' is unavailable in macOS
1967 | mode: .default,
1968 | options: [.mixWithOthers]
AVFAudio.AVAudioSession.Category:7:23: note: 'playback' has been explicitly marked unavailable here
5 | public static let soloAmbient: AVAudioSession.Category
6 | @available(macOS, unavailable)
7 | public static let playback: AVAudioSession.Category
| `- note: 'playback' has been explicitly marked unavailable here
8 | @available(macOS, unavailable)
9 | public static let record: AVAudioSession.Category
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1967:24: error: 'default' is unavailable in macOS
1965 | try audioSession.setCategory(
1966 | .playback,
1967 | mode: .default,
| `- error: 'default' is unavailable in macOS
1968 | options: [.mixWithOthers]
1969 | )
AVFAudio.AVAudioSession.Mode:3:23: note: 'default' has been explicitly marked unavailable here
1 | extension AVAudioSession.Mode {
2 | @available(macOS, unavailable)
3 | public static let `default`: AVAudioSession.Mode
| `- note: 'default' has been explicitly marked unavailable here
4 | @available(macOS, unavailable)
5 | public static let voiceChat: AVAudioSession.Mode
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1976:31: error: cannot find 'RTCAudioSession' in scope
1974 |
1975 | internal func setupCorrectAudioConfiguration() {
1976 | let rtcAudioSession = RTCAudioSession.sharedInstance()
| `- error: cannot find 'RTCAudioSession' in scope
1977 | rtcAudioSession.lockForConfiguration()
1978 |
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1979:29: error: cannot find 'RTCAudioSessionConfiguration' in scope
1977 | rtcAudioSession.lockForConfiguration()
1978 |
1979 | let configuration = RTCAudioSessionConfiguration.webRTC()
| `- error: cannot find 'RTCAudioSessionConfiguration' in scope
1980 | configuration.categoryOptions = [
1981 | .duckOthers,
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1981:14: error: reference to member 'duckOthers' cannot be resolved without a contextual type
1979 | let configuration = RTCAudioSessionConfiguration.webRTC()
1980 | configuration.categoryOptions = [
1981 | .duckOthers,
| `- error: reference to member 'duckOthers' cannot be resolved without a contextual type
1982 | .allowBluetooth,
1983 | ]
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1982:14: error: reference to member 'allowBluetooth' cannot be resolved without a contextual type
1980 | configuration.categoryOptions = [
1981 | .duckOthers,
1982 | .allowBluetooth,
| `- error: reference to member 'allowBluetooth' cannot be resolved without a contextual type
1983 | ]
1984 |
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1995:31: error: cannot find 'RTCAudioSession' in scope
1993 |
1994 | internal func setAudioSessionActive(_ active: Bool) {
1995 | let rtcAudioSession = RTCAudioSession.sharedInstance()
| `- error: cannot find 'RTCAudioSession' in scope
1996 |
1997 | rtcAudioSession.lockForConfiguration()
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/Utils/FileLoger.swift:96:19: warning: value 'logData' was defined but never used; consider replacing with boolean test
94 |
95 | let logFileURL = FileLogger.shared.logFileURL
96 | guard let logData = try? Data(contentsOf: logFileURL) else {
| `- warning: value 'logData' was defined but never used; consider replacing with boolean test
97 | Logger.log.e(message: "Failed to read log file")
98 | return
[94/103] Compiling TelnyxRTC FileLoger.swift
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:140:35: error: 'CXAnswerCallAction' is unavailable in macOS
138 | private var socket : Socket?
139 |
140 | private var answerCallAction: CXAnswerCallAction? = nil
| `- error: 'CXAnswerCallAction' is unavailable in macOS
141 | private var endCallAction: CXEndCallAction? = nil
142 | private var sessionId : String?
CallKit.CXAnswerCallAction:2:12: note: 'CXAnswerCallAction' has been explicitly marked unavailable here
1 | @available(macOS, unavailable)
2 | open class CXAnswerCallAction : CXCallAction {
| `- note: 'CXAnswerCallAction' has been explicitly marked unavailable here
3 | open func fulfill(withDateConnected dateConnected: Date)
4 | @available(swift, obsoleted: 3, renamed: "fulfill(withDateConnected:)")
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:141:32: error: 'CXEndCallAction' is unavailable in macOS
139 |
140 | private var answerCallAction: CXAnswerCallAction? = nil
141 | private var endCallAction: CXEndCallAction? = nil
| `- error: 'CXEndCallAction' is unavailable in macOS
142 | private var sessionId : String?
143 | internal var txConfig: TxConfig?
CallKit.CXEndCallAction:2:12: note: 'CXEndCallAction' has been explicitly marked unavailable here
1 | @available(macOS, unavailable)
2 | open class CXEndCallAction : CXCallAction {
| `- note: 'CXEndCallAction' has been explicitly marked unavailable here
3 | open func fulfill(withDateEnded dateEnded: Date)
4 | @available(swift, obsoleted: 3, renamed: "fulfill(withDateEnded:)")
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:234:50: error: 'AVAudioSession' is unavailable in macOS
232 | /// }
233 | /// ```
234 | public func enableAudioSession(audioSession: AVAudioSession) {
| `- error: 'AVAudioSession' is unavailable in macOS
235 | setupCorrectAudioConfiguration()
236 | setAudioSessionActive(true)
AVFAudio.AVAudioSession:2:12: note: 'AVAudioSession' has been explicitly marked unavailable here
1 | @available(macOS, unavailable)
2 | open class AVAudioSession : NSObject, @unchecked Sendable {
| `- note: 'AVAudioSession' has been explicitly marked unavailable here
3 | @available(macOS, unavailable)
4 | open class func sharedInstance() -> AVAudioSession
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:253:51: error: 'AVAudioSession' is unavailable in macOS
251 | /// }
252 | /// ```
253 | public func disableAudioSession(audioSession: AVAudioSession) {
| `- error: 'AVAudioSession' is unavailable in macOS
254 | resetAudioConfiguration()
255 | setAudioSessionActive(false)
AVFAudio.AVAudioSession:2:12: note: 'AVAudioSession' has been explicitly marked unavailable here
1 | @available(macOS, unavailable)
2 | open class AVAudioSession : NSObject, @unchecked Sendable {
| `- note: 'AVAudioSession' has been explicitly marked unavailable here
3 | @available(macOS, unavailable)
4 | open class func sharedInstance() -> AVAudioSession
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:260:24: error: 'AVAudioSession' is unavailable in macOS
258 | /// The current audio route configuration.
259 | /// This provides information about the active input and output ports.
260 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
| `- error: 'AVAudioSession' is unavailable in macOS
261 |
262 | /// Client must be registered in order to receive or place calls.
AVFAudio.AVAudioSession:2:12: note: 'AVAudioSession' has been explicitly marked unavailable here
1 | @available(macOS, unavailable)
2 | open class AVAudioSession : NSObject, @unchecked Sendable {
| `- note: 'AVAudioSession' has been explicitly marked unavailable here
3 | @available(macOS, unavailable)
4 | open class func sharedInstance() -> AVAudioSession
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:260:39: error: 'sharedInstance()' is unavailable in macOS
258 | /// The current audio route configuration.
259 | /// This provides information about the active input and output ports.
260 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
| `- error: 'sharedInstance()' is unavailable in macOS
261 |
262 | /// Client must be registered in order to receive or place calls.
AVFAudio.AVAudioSession:4:21: note: 'sharedInstance()' has been explicitly marked unavailable here
2 | open class AVAudioSession : NSObject, @unchecked Sendable {
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/TelnyxRTC/Telnyx/TxClient.swift:260:56: error: 'currentRoute' is unavailable in macOS
258 | /// The current audio route configuration.
259 | /// This provides information about the active input and output ports.
260 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
| `- error: 'currentRoute' is unavailable in macOS
261 |
262 | /// Client must be registered in order to receive or place calls.
AVFAudio.AVAudioSession:5:14: note: 'currentRoute' has been explicitly marked unavailable here
3 | open var availableInputs: [AVAudioSessionPortDescription]? { get }
4 | @available(macOS, unavailable)
5 | open var currentRoute: AVAudioSessionRouteDescription { get }
| `- note: 'currentRoute' has been explicitly marked unavailable here
6 | @available(macOS, unavailable)
7 | open func setAggregatedIOPreference(_ inIOType: AVAudioSession.IOType) throws
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:697:49: error: 'CXAnswerCallAction' is unavailable in macOS
695 | /// - debug: (optional) Enable debug mode for call quality metrics and WebRTC statistics.
696 | /// When enabled, real-time call quality metrics will be available through the call's `onCallQualityChange` callback.
697 | public func answerFromCallkit(answerAction: CXAnswerCallAction,
| `- error: 'CXAnswerCallAction' is unavailable in macOS
698 | customHeaders: [String:String] = [:],
699 | debug: Bool = false) {
CallKit.CXAnswerCallAction:2:12: note: 'CXAnswerCallAction' has been explicitly marked unavailable here
1 | @available(macOS, unavailable)
2 | open class CXAnswerCallAction : CXCallAction {
| `- note: 'CXAnswerCallAction' has been explicitly marked unavailable here
3 | open func fulfill(withDateConnected dateConnected: Date)
4 | @available(swift, obsoleted: 3, renamed: "fulfill(withDateConnected:)")
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:801:47: error: 'CXEndCallAction' is unavailable in macOS
799 |
800 | /// To end and control callKit active and conn
801 | public func endCallFromCallkit(endAction: CXEndCallAction,
| `- error: 'CXEndCallAction' is unavailable in macOS
802 | callId: UUID? = nil) {
803 | Logger.log.i(message: "TxClient:: endCallFromCallkit - started for callID \(String(describing: endAction.callUUID))")
CallKit.CXEndCallAction:2:12: note: 'CXEndCallAction' has been explicitly marked unavailable here
1 | @available(macOS, unavailable)
2 | open class CXEndCallAction : CXCallAction {
| `- note: 'CXEndCallAction' has been explicitly marked unavailable here
3 | open func fulfill(withDateEnded dateEnded: Date)
4 | @available(swift, obsoleted: 3, renamed: "fulfill(withDateEnded:)")
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:208:20: error: cannot find 'RTCAudioSession' in scope
206 | public var isAudioDeviceEnabled : Bool {
207 | get {
208 | return RTCAudioSession.sharedInstance().isAudioEnabled
| `- error: cannot find 'RTCAudioSession' in scope
209 | }
210 | set {
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:212:17: error: cannot find 'RTCAudioSession' in scope
210 | set {
211 | if newValue {
212 | RTCAudioSession.sharedInstance().audioSessionDidActivate(AVAudioSession.sharedInstance())
| `- error: cannot find 'RTCAudioSession' in scope
213 | } else {
214 | RTCAudioSession.sharedInstance().audioSessionDidDeactivate(AVAudioSession.sharedInstance())
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:214:17: error: cannot find 'RTCAudioSession' in scope
212 | RTCAudioSession.sharedInstance().audioSessionDidActivate(AVAudioSession.sharedInstance())
213 | } else {
214 | RTCAudioSession.sharedInstance().audioSessionDidDeactivate(AVAudioSession.sharedInstance())
| `- error: cannot find 'RTCAudioSession' in scope
215 | }
216 | RTCAudioSession.sharedInstance().isAudioEnabled = newValue
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:216:13: error: cannot find 'RTCAudioSession' in scope
214 | RTCAudioSession.sharedInstance().audioSessionDidDeactivate(AVAudioSession.sharedInstance())
215 | }
216 | RTCAudioSession.sharedInstance().isAudioEnabled = newValue
| `- error: cannot find 'RTCAudioSession' in scope
217 | }
218 | }
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:318:63: error: 'AVAudioSession' is unavailable in macOS
316 |
317 | // Remove audio route change observer
318 | NotificationCenter.default.removeObserver(self, name: AVAudioSession.routeChangeNotification, object: nil)
| `- error: 'AVAudioSession' is unavailable in macOS
319 |
320 | // Remove ACM reset observers
AVFAudio.AVAudioSession:2:12: note: 'AVAudioSession' has been explicitly marked unavailable here
1 | @available(macOS, unavailable)
2 | open class AVAudioSession : NSObject, @unchecked Sendable {
| `- note: 'AVAudioSession' has been explicitly marked unavailable here
3 | @available(macOS, unavailable)
4 | open class func sharedInstance() -> AVAudioSession
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:318:78: error: 'routeChangeNotification' is unavailable in macOS
316 |
317 | // Remove audio route change observer
318 | NotificationCenter.default.removeObserver(self, name: AVAudioSession.routeChangeNotification, object: nil)
| `- error: 'routeChangeNotification' is unavailable in macOS
319 |
320 | // Remove ACM reset observers
AVFAudio.AVAudioSession:5:22: note: 'routeChangeNotification' has been explicitly marked unavailable here
3 | public class let interruptionNotification: NSNotification.Name
4 | @available(macOS, unavailable)
5 | public class let routeChangeNotification: NSNotification.Name
| `- note: 'routeChangeNotification' has been explicitly marked unavailable here
6 | @available(macOS, unavailable)
7 | public class let mediaServicesWereLostNotification: NSNotification.Name
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:338:19: error: 'AVAudioSession' is unavailable in macOS
336 | self,
337 | selector: #selector(handleAudioRouteChange),
338 | name: AVAudioSession.routeChangeNotification,
| `- error: 'AVAudioSession' is unavailable in macOS
339 | object: nil)
340 |
AVFAudio.AVAudioSession:2:12: note: 'AVAudioSession' has been explicitly marked unavailable here
1 | @available(macOS, unavailable)
2 | open class AVAudioSession : NSObject, @unchecked Sendable {
| `- note: 'AVAudioSession' has been explicitly marked unavailable here
3 | @available(macOS, unavailable)
4 | open class func sharedInstance() -> AVAudioSession
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:338:34: error: 'routeChangeNotification' is unavailable in macOS
336 | self,
337 | selector: #selector(handleAudioRouteChange),
338 | name: AVAudioSession.routeChangeNotification,
| `- error: 'routeChangeNotification' is unavailable in macOS
339 | object: nil)
340 |
AVFAudio.AVAudioSession:5:22: note: 'routeChangeNotification' has been explicitly marked unavailable here
3 | public class let interruptionNotification: NSNotification.Name
4 | @available(macOS, unavailable)
5 | public class let routeChangeNotification: NSNotification.Name
| `- note: 'routeChangeNotification' has been explicitly marked unavailable here
6 | @available(macOS, unavailable)
7 | public class let mediaServicesWereLostNotification: NSNotification.Name
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:375:42: error: 'AVAudioSessionRouteChangeReasonKey' is unavailable in macOS
373 | @objc private func handleAudioRouteChange(notification: Notification) {
374 | guard let userInfo = notification.userInfo,
375 | let reasonValue = userInfo[AVAudioSessionRouteChangeReasonKey] as? UInt,
| `- error: 'AVAudioSessionRouteChangeReasonKey' is unavailable in macOS
376 | let reason = AVAudioSession.RouteChangeReason(rawValue: reasonValue) else {
377 | return
AVFAudio.AVAudioSessionRouteChangeReasonKey:2:12: note: 'AVAudioSessionRouteChangeReasonKey' has been explicitly marked unavailable here
1 | @available(macOS, unavailable)
2 | public let AVAudioSessionRouteChangeReasonKey: String
| `- note: 'AVAudioSessionRouteChangeReasonKey' has been explicitly marked unavailable here
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:376:28: error: 'AVAudioSession' is unavailable in macOS
374 | guard let userInfo = notification.userInfo,
375 | let reasonValue = userInfo[AVAudioSessionRouteChangeReasonKey] as? UInt,
376 | let reason = AVAudioSession.RouteChangeReason(rawValue: reasonValue) else {
| `- error: 'AVAudioSession' is unavailable in macOS
377 | return
378 | }
AVFAudio.AVAudioSession:2:12: note: 'AVAudioSession' has been explicitly marked unavailable here
1 | @available(macOS, unavailable)
2 | open class AVAudioSession : NSObject, @unchecked Sendable {
| `- note: 'AVAudioSession' has been explicitly marked unavailable here
3 | @available(macOS, unavailable)
4 | open class func sharedInstance() -> AVAudioSession
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:380:23: error: 'AVAudioSession' is unavailable in macOS
378 | }
379 |
380 | let session = AVAudioSession.sharedInstance()
| `- error: 'AVAudioSession' is unavailable in macOS
381 | let currentRoute = session.currentRoute
382 |
AVFAudio.AVAudioSession:2:12: note: 'AVAudioSession' has been explicitly marked unavailable here
1 | @available(macOS, unavailable)
2 | open class AVAudioSession : NSObject, @unchecked Sendable {
| `- note: 'AVAudioSession' has been explicitly marked unavailable here
3 | @available(macOS, unavailable)
4 | open class func sharedInstance() -> AVAudioSession
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:380:38: error: 'sharedInstance()' is unavailable in macOS
378 | }
379 |
380 | let session = AVAudioSession.sharedInstance()
| `- error: 'sharedInstance()' is unavailable in macOS
381 | let currentRoute = session.currentRoute
382 |
AVFAudio.AVAudioSession:4:21: note: 'sharedInstance()' has been explicitly marked unavailable here
2 | open class AVAudioSession : NSObject, @unchecked Sendable {
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/TelnyxRTC/Telnyx/TxClient.swift:381:36: error: 'currentRoute' is unavailable in macOS
379 |
380 | let session = AVAudioSession.sharedInstance()
381 | let currentRoute = session.currentRoute
| `- error: 'currentRoute' is unavailable in macOS
382 |
383 | // Ensure we have at least one output port
AVFAudio.AVAudioSession:5:14: note: 'currentRoute' has been explicitly marked unavailable here
3 | open var availableInputs: [AVAudioSessionPortDescription]? { get }
4 | @available(macOS, unavailable)
5 | open var currentRoute: AVAudioSessionRouteDescription { get }
| `- note: 'currentRoute' has been explicitly marked unavailable here
6 | @available(macOS, unavailable)
7 | open func setAggregatedIOPreference(_ inIOType: AVAudioSession.IOType) throws
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:384:41: error: 'outputs' is unavailable in macOS
382 |
383 | // Ensure we have at least one output port
384 | guard let output = currentRoute.outputs.first else {
| `- error: 'outputs' is unavailable in macOS
385 | return
386 | }
AVFAudio.AVAudioSessionRouteDescription:6:14: note: 'outputs' has been explicitly marked unavailable here
4 | open var inputs: [AVAudioSessionPortDescription] { get }
5 | @available(macOS, unavailable)
6 | open var outputs: [AVAudioSessionPortDescription] { get }
| `- note: 'outputs' has been explicitly marked unavailable here
7 | public init()
8 | }
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:388:85: error: 'portType' is unavailable in macOS
386 | }
387 |
388 | Logger.log.i(message: "[ACM_RESET] TxClient:: Audio route changed: \(output.portType), reason: \(reason), isACMResetInProgress: \(isACMResetInProgress)")
| `- error: 'portType' is unavailable in macOS
389 |
390 | // Ignore audio route changes during ACM reset to prevent state desynchronization
AVFAudio.AVAudioSessionPortDescription:4:14: note: 'portType' has been explicitly marked unavailable here
2 | open class AVAudioSessionPortDescription : NSObject, @unchecked Sendable {
3 | @available(macOS, unavailable)
4 | open var portType: AVAudioSession.Port { get }
| `- note: 'portType' has been explicitly marked unavailable here
5 | @available(macOS, unavailable)
6 | open var portName: String { get }
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:399:40: error: 'portType' is unavailable in macOS
397 | case .categoryChange, .override, .routeConfigurationChange:
398 | // Update internal speaker state based on current output
399 | let isSpeaker = output.portType == .builtInSpeaker
| `- error: 'portType' is unavailable in macOS
400 | _isSpeakerEnabled = isSpeaker
401 |
AVFAudio.AVAudioSessionPortDescription:4:14: note: 'portType' has been explicitly marked unavailable here
2 | open class AVAudioSessionPortDescription : NSObject, @unchecked Sendable {
3 | @available(macOS, unavailable)
4 | open var portType: AVAudioSession.Port { get }
| `- note: 'portType' has been explicitly marked unavailable here
5 | @available(macOS, unavailable)
6 | open var portName: String { get }
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:399:53: error: 'builtInSpeaker' is unavailable in macOS
397 | case .categoryChange, .override, .routeConfigurationChange:
398 | // Update internal speaker state based on current output
399 | let isSpeaker = output.portType == .builtInSpeaker
| `- error: 'builtInSpeaker' is unavailable in macOS
400 | _isSpeakerEnabled = isSpeaker
401 |
AVFAudio.AVAudioSession.Port:19:23: note: 'builtInSpeaker' has been explicitly marked unavailable here
17 | public static let builtInReceiver: AVAudioSession.Port
18 | @available(macOS, unavailable)
19 | public static let builtInSpeaker: AVAudioSession.Port
| `- note: 'builtInSpeaker' has been explicitly marked unavailable here
20 | @available(macOS, unavailable)
21 | public static let HDMI: AVAudioSession.Port
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:408:50: error: 'portType' is unavailable in macOS
406 | userInfo: [
407 | "isSpeakerEnabled": isSpeaker,
408 | "outputPortType": output.portType
| `- error: 'portType' is unavailable in macOS
409 | ]
410 | )
AVFAudio.AVAudioSessionPortDescription:4:14: note: 'portType' has been explicitly marked unavailable here
2 | open class AVAudioSessionPortDescription : NSObject, @unchecked Sendable {
3 | @available(macOS, unavailable)
4 | open var portType: AVAudioSession.Port { get }
| `- note: 'portType' has been explicitly marked unavailable here
5 | @available(macOS, unavailable)
6 | open var portName: String { get }
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:474:32: error: 'AVAudioSession' is unavailable in macOS
472 |
473 | // Verify if speaker is actually active
474 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
| `- error: 'AVAudioSession' is unavailable in macOS
475 | let isSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
476 |
AVFAudio.AVAudioSession:2:12: note: 'AVAudioSession' has been explicitly marked unavailable here
1 | @available(macOS, unavailable)
2 | open class AVAudioSession : NSObject, @unchecked Sendable {
| `- note: 'AVAudioSession' has been explicitly marked unavailable here
3 | @available(macOS, unavailable)
4 | open class func sharedInstance() -> AVAudioSession
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:474:47: error: 'sharedInstance()' is unavailable in macOS
472 |
473 | // Verify if speaker is actually active
474 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
| `- error: 'sharedInstance()' is unavailable in macOS
475 | let isSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
476 |
AVFAudio.AVAudioSession:4:21: note: 'sharedInstance()' has been explicitly marked unavailable here
2 | open class AVAudioSession : NSObject, @unchecked Sendable {
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/TelnyxRTC/Telnyx/TxClient.swift:474:64: error: 'currentRoute' is unavailable in macOS
472 |
473 | // Verify if speaker is actually active
474 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
| `- error: 'currentRoute' is unavailable in macOS
475 | let isSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
476 |
AVFAudio.AVAudioSession:5:14: note: 'currentRoute' has been explicitly marked unavailable here
3 | open var availableInputs: [AVAudioSessionPortDescription]? { get }
4 | @available(macOS, unavailable)
5 | open var currentRoute: AVAudioSessionRouteDescription { get }
| `- note: 'currentRoute' has been explicitly marked unavailable here
6 | @available(macOS, unavailable)
7 | open func setAggregatedIOPreference(_ inIOType: AVAudioSession.IOType) throws
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:475:48: error: 'outputs' is unavailable in macOS
473 | // Verify if speaker is actually active
474 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
475 | let isSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
| `- error: 'outputs' is unavailable in macOS
476 |
477 | if isSpeakerActive {
AVFAudio.AVAudioSessionRouteDescription:6:14: note: 'outputs' has been explicitly marked unavailable here
4 | open var inputs: [AVAudioSessionPortDescription] { get }
5 | @available(macOS, unavailable)
6 | open var outputs: [AVAudioSessionPortDescription] { get }
| `- note: 'outputs' has been explicitly marked unavailable here
7 | public init()
8 | }
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:475:70: error: 'portType' is unavailable in macOS
473 | // Verify if speaker is actually active
474 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
475 | let isSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
| `- error: 'portType' is unavailable in macOS
476 |
477 | if isSpeakerActive {
AVFAudio.AVAudioSessionPortDescription:4:14: note: 'portType' has been explicitly marked unavailable here
2 | open class AVAudioSessionPortDescription : NSObject, @unchecked Sendable {
3 | @available(macOS, unavailable)
4 | open var portType: AVAudioSession.Port { get }
| `- note: 'portType' has been explicitly marked unavailable here
5 | @available(macOS, unavailable)
6 | open var portName: String { get }
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:475:83: error: 'builtInSpeaker' is unavailable in macOS
473 | // Verify if speaker is actually active
474 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
475 | let isSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
| `- error: 'builtInSpeaker' is unavailable in macOS
476 |
477 | if isSpeakerActive {
AVFAudio.AVAudioSession.Port:19:23: note: 'builtInSpeaker' has been explicitly marked unavailable here
17 | public static let builtInReceiver: AVAudioSession.Port
18 | @available(macOS, unavailable)
19 | public static let builtInSpeaker: AVAudioSession.Port
| `- note: 'builtInSpeaker' has been explicitly marked unavailable here
20 | @available(macOS, unavailable)
21 | public static let HDMI: AVAudioSession.Port
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:644:57: error: 'AVAudioSession' is unavailable in macOS
642 | // Remove audio route change observer
643 | NotificationCenter.default.removeObserver(self,
644 | name: AVAudioSession.routeChangeNotification,
| `- error: 'AVAudioSession' is unavailable in macOS
645 | object: nil)
646 | socket?.disconnect(reconnect: false)
AVFAudio.AVAudioSession:2:12: note: 'AVAudioSession' has been explicitly marked unavailable here
1 | @available(macOS, unavailable)
2 | open class AVAudioSession : NSObject, @unchecked Sendable {
| `- note: 'AVAudioSession' has been explicitly marked unavailable here
3 | @available(macOS, unavailable)
4 | open class func sharedInstance() -> AVAudioSession
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:644:72: error: 'routeChangeNotification' is unavailable in macOS
642 | // Remove audio route change observer
643 | NotificationCenter.default.removeObserver(self,
644 | name: AVAudioSession.routeChangeNotification,
| `- error: 'routeChangeNotification' is unavailable in macOS
645 | object: nil)
646 | socket?.disconnect(reconnect: false)
AVFAudio.AVAudioSession:5:22: note: 'routeChangeNotification' has been explicitly marked unavailable here
3 | public class let interruptionNotification: NSNotification.Name
4 | @available(macOS, unavailable)
5 | public class let routeChangeNotification: NSNotification.Name
| `- note: 'routeChangeNotification' has been explicitly marked unavailable here
6 | @available(macOS, unavailable)
7 | public class let mediaServicesWereLostNotification: NSNotification.Name
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1426:32: error: 'AVAudioSession' is unavailable in macOS
1424 | Logger.log.i(message: "[ACM_RESET] TxClient:: setEarpiece() called")
1425 | do {
1426 | let audioSession = AVAudioSession.sharedInstance()
| `- error: 'AVAudioSession' is unavailable in macOS
1427 | try audioSession.overrideOutputAudioPort(.none)
1428 | _isSpeakerEnabled = false
AVFAudio.AVAudioSession:2:12: note: 'AVAudioSession' has been explicitly marked unavailable here
1 | @available(macOS, unavailable)
2 | open class AVAudioSession : NSObject, @unchecked Sendable {
| `- note: 'AVAudioSession' has been explicitly marked unavailable here
3 | @available(macOS, unavailable)
4 | open class func sharedInstance() -> AVAudioSession
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1426:47: error: 'sharedInstance()' is unavailable in macOS
1424 | Logger.log.i(message: "[ACM_RESET] TxClient:: setEarpiece() called")
1425 | do {
1426 | let audioSession = AVAudioSession.sharedInstance()
| `- error: 'sharedInstance()' is unavailable in macOS
1427 | try audioSession.overrideOutputAudioPort(.none)
1428 | _isSpeakerEnabled = false
AVFAudio.AVAudioSession:4:21: note: 'sharedInstance()' has been explicitly marked unavailable here
2 | open class AVAudioSession : NSObject, @unchecked Sendable {
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/TelnyxRTC/Telnyx/TxClient.swift:1427:30: error: 'overrideOutputAudioPort' is unavailable in macOS
1425 | do {
1426 | let audioSession = AVAudioSession.sharedInstance()
1427 | try audioSession.overrideOutputAudioPort(.none)
| `- error: 'overrideOutputAudioPort' is unavailable in macOS
1428 | _isSpeakerEnabled = false
1429 | Logger.log.i(message: "[ACM_RESET] TxClient:: Earpiece set successfully, _isSpeakerEnabled: \(_isSpeakerEnabled)")
AVFAudio.AVAudioSession:45:15: note: 'overrideOutputAudioPort' has been explicitly marked unavailable here
43 | open func requestRecordPermission(_ response: @escaping (Bool) -> Void)
44 | @available(macOS, unavailable)
45 | open func overrideOutputAudioPort(_ portOverride: AVAudioSession.PortOverride) throws
| `- note: 'overrideOutputAudioPort' has been explicitly marked unavailable here
46 | @available(macOS, unavailable)
47 | open func setPreferredInput(_ inPort: AVAudioSessionPortDescription?) throws
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1439:32: error: 'AVAudioSession' is unavailable in macOS
1437 | Logger.log.i(message: "[ACM_RESET] TxClient:: setSpeaker() called")
1438 | do {
1439 | let audioSession = AVAudioSession.sharedInstance()
| `- error: 'AVAudioSession' is unavailable in macOS
1440 | try audioSession.overrideOutputAudioPort(.speaker)
1441 | _isSpeakerEnabled = true
AVFAudio.AVAudioSession:2:12: note: 'AVAudioSession' has been explicitly marked unavailable here
1 | @available(macOS, unavailable)
2 | open class AVAudioSession : NSObject, @unchecked Sendable {
| `- note: 'AVAudioSession' has been explicitly marked unavailable here
3 | @available(macOS, unavailable)
4 | open class func sharedInstance() -> AVAudioSession
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1439:47: error: 'sharedInstance()' is unavailable in macOS
1437 | Logger.log.i(message: "[ACM_RESET] TxClient:: setSpeaker() called")
1438 | do {
1439 | let audioSession = AVAudioSession.sharedInstance()
| `- error: 'sharedInstance()' is unavailable in macOS
1440 | try audioSession.overrideOutputAudioPort(.speaker)
1441 | _isSpeakerEnabled = true
AVFAudio.AVAudioSession:4:21: note: 'sharedInstance()' has been explicitly marked unavailable here
2 | open class AVAudioSession : NSObject, @unchecked Sendable {
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/TelnyxRTC/Telnyx/TxClient.swift:1440:30: error: 'overrideOutputAudioPort' is unavailable in macOS
1438 | do {
1439 | let audioSession = AVAudioSession.sharedInstance()
1440 | try audioSession.overrideOutputAudioPort(.speaker)
| `- error: 'overrideOutputAudioPort' is unavailable in macOS
1441 | _isSpeakerEnabled = true
1442 | Logger.log.i(message: "[ACM_RESET] TxClient:: Speaker set successfully, _isSpeakerEnabled: \(_isSpeakerEnabled)")
AVFAudio.AVAudioSession:45:15: note: 'overrideOutputAudioPort' has been explicitly marked unavailable here
43 | open func requestRecordPermission(_ response: @escaping (Bool) -> Void)
44 | @available(macOS, unavailable)
45 | open func overrideOutputAudioPort(_ portOverride: AVAudioSession.PortOverride) throws
| `- note: 'overrideOutputAudioPort' has been explicitly marked unavailable here
46 | @available(macOS, unavailable)
47 | open func setPreferredInput(_ inPort: AVAudioSessionPortDescription?) throws
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1440:55: error: 'speaker' is unavailable in macOS
1438 | do {
1439 | let audioSession = AVAudioSession.sharedInstance()
1440 | try audioSession.overrideOutputAudioPort(.speaker)
| `- error: 'speaker' is unavailable in macOS
1441 | _isSpeakerEnabled = true
1442 | Logger.log.i(message: "[ACM_RESET] TxClient:: Speaker set successfully, _isSpeakerEnabled: \(_isSpeakerEnabled)")
AVFAudio.AVAudioSession:28:14: note: 'speaker' has been explicitly marked unavailable here
26 | public static var None: AVAudioSession.PortOverride { get }
27 | @available(macOS, unavailable)
28 | case speaker
| `- note: 'speaker' has been explicitly marked unavailable here
29 | }
30 | public enum RouteChangeReason : UInt, @unchecked Sendable {
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1963:28: error: 'AVAudioSession' is unavailable in macOS
1961 | extension TxClient {
1962 | internal func resetAudioConfiguration() {
1963 | let audioSession = AVAudioSession.sharedInstance()
| `- error: 'AVAudioSession' is unavailable in macOS
1964 | do {
1965 | try audioSession.setCategory(
AVFAudio.AVAudioSession:2:12: note: 'AVAudioSession' has been explicitly marked unavailable here
1 | @available(macOS, unavailable)
2 | open class AVAudioSession : NSObject, @unchecked Sendable {
| `- note: 'AVAudioSession' has been explicitly marked unavailable here
3 | @available(macOS, unavailable)
4 | open class func sharedInstance() -> AVAudioSession
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1963:43: error: 'sharedInstance()' is unavailable in macOS
1961 | extension TxClient {
1962 | internal func resetAudioConfiguration() {
1963 | let audioSession = AVAudioSession.sharedInstance()
| `- error: 'sharedInstance()' is unavailable in macOS
1964 | do {
1965 | try audioSession.setCategory(
AVFAudio.AVAudioSession:4:21: note: 'sharedInstance()' has been explicitly marked unavailable here
2 | open class AVAudioSession : NSObject, @unchecked Sendable {
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/TelnyxRTC/Telnyx/TxClient.swift:1965:30: error: 'setCategory(_:mode:options:)' is unavailable in macOS
1963 | let audioSession = AVAudioSession.sharedInstance()
1964 | do {
1965 | try audioSession.setCategory(
| `- error: 'setCategory(_:mode:options:)' is unavailable in macOS
1966 | .playback,
1967 | mode: .default,
AVFAudio.AVAudioSession:18:15: note: 'setCategory(_:mode:options:)' has been explicitly marked unavailable here
16 | open func setCategory(_ category: AVAudioSession.Category, withOptions options: AVAudioSession.CategoryOptions = []) throws
17 | @available(macOS, unavailable)
18 | open func setCategory(_ category: AVAudioSession.Category, mode: AVAudioSession.Mode, options: AVAudioSession.CategoryOptions = []) throws
| `- note: 'setCategory(_:mode:options:)' has been explicitly marked unavailable here
19 | @available(macOS, unavailable)
20 | open func setCategory(_ category: AVAudioSession.Category, mode: AVAudioSession.Mode, policy: AVAudioSession.RouteSharingPolicy, options: AVAudioSession.CategoryOptions = []) throws
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1966:18: error: 'playback' is unavailable in macOS
1964 | do {
1965 | try audioSession.setCategory(
1966 | .playback,
| `- error: 'playback' is unavailable in macOS
1967 | mode: .default,
1968 | options: [.mixWithOthers]
AVFAudio.AVAudioSession.Category:7:23: note: 'playback' has been explicitly marked unavailable here
5 | public static let soloAmbient: AVAudioSession.Category
6 | @available(macOS, unavailable)
7 | public static let playback: AVAudioSession.Category
| `- note: 'playback' has been explicitly marked unavailable here
8 | @available(macOS, unavailable)
9 | public static let record: AVAudioSession.Category
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1967:24: error: 'default' is unavailable in macOS
1965 | try audioSession.setCategory(
1966 | .playback,
1967 | mode: .default,
| `- error: 'default' is unavailable in macOS
1968 | options: [.mixWithOthers]
1969 | )
AVFAudio.AVAudioSession.Mode:3:23: note: 'default' has been explicitly marked unavailable here
1 | extension AVAudioSession.Mode {
2 | @available(macOS, unavailable)
3 | public static let `default`: AVAudioSession.Mode
| `- note: 'default' has been explicitly marked unavailable here
4 | @available(macOS, unavailable)
5 | public static let voiceChat: AVAudioSession.Mode
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1976:31: error: cannot find 'RTCAudioSession' in scope
1974 |
1975 | internal func setupCorrectAudioConfiguration() {
1976 | let rtcAudioSession = RTCAudioSession.sharedInstance()
| `- error: cannot find 'RTCAudioSession' in scope
1977 | rtcAudioSession.lockForConfiguration()
1978 |
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1979:29: error: cannot find 'RTCAudioSessionConfiguration' in scope
1977 | rtcAudioSession.lockForConfiguration()
1978 |
1979 | let configuration = RTCAudioSessionConfiguration.webRTC()
| `- error: cannot find 'RTCAudioSessionConfiguration' in scope
1980 | configuration.categoryOptions = [
1981 | .duckOthers,
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1981:14: error: reference to member 'duckOthers' cannot be resolved without a contextual type
1979 | let configuration = RTCAudioSessionConfiguration.webRTC()
1980 | configuration.categoryOptions = [
1981 | .duckOthers,
| `- error: reference to member 'duckOthers' cannot be resolved without a contextual type
1982 | .allowBluetooth,
1983 | ]
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1982:14: error: reference to member 'allowBluetooth' cannot be resolved without a contextual type
1980 | configuration.categoryOptions = [
1981 | .duckOthers,
1982 | .allowBluetooth,
| `- error: reference to member 'allowBluetooth' cannot be resolved without a contextual type
1983 | ]
1984 |
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1995:31: error: cannot find 'RTCAudioSession' in scope
1993 |
1994 | internal func setAudioSessionActive(_ active: Bool) {
1995 | let rtcAudioSession = RTCAudioSession.sharedInstance()
| `- error: cannot find 'RTCAudioSession' in scope
1996 |
1997 | rtcAudioSession.lockForConfiguration()
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/Utils/FileLoger.swift:96:19: warning: value 'logData' was defined but never used; consider replacing with boolean test
94 |
95 | let logFileURL = FileLogger.shared.logFileURL
96 | guard let logData = try? Data(contentsOf: logFileURL) else {
| `- warning: value 'logData' was defined but never used; consider replacing with boolean test
97 | Logger.log.e(message: "Failed to read log file")
98 | return
[95/103] Compiling TelnyxRTC Logger.swift
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:140:35: error: 'CXAnswerCallAction' is unavailable in macOS
138 | private var socket : Socket?
139 |
140 | private var answerCallAction: CXAnswerCallAction? = nil
| `- error: 'CXAnswerCallAction' is unavailable in macOS
141 | private var endCallAction: CXEndCallAction? = nil
142 | private var sessionId : String?
CallKit.CXAnswerCallAction:2:12: note: 'CXAnswerCallAction' has been explicitly marked unavailable here
1 | @available(macOS, unavailable)
2 | open class CXAnswerCallAction : CXCallAction {
| `- note: 'CXAnswerCallAction' has been explicitly marked unavailable here
3 | open func fulfill(withDateConnected dateConnected: Date)
4 | @available(swift, obsoleted: 3, renamed: "fulfill(withDateConnected:)")
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:141:32: error: 'CXEndCallAction' is unavailable in macOS
139 |
140 | private var answerCallAction: CXAnswerCallAction? = nil
141 | private var endCallAction: CXEndCallAction? = nil
| `- error: 'CXEndCallAction' is unavailable in macOS
142 | private var sessionId : String?
143 | internal var txConfig: TxConfig?
CallKit.CXEndCallAction:2:12: note: 'CXEndCallAction' has been explicitly marked unavailable here
1 | @available(macOS, unavailable)
2 | open class CXEndCallAction : CXCallAction {
| `- note: 'CXEndCallAction' has been explicitly marked unavailable here
3 | open func fulfill(withDateEnded dateEnded: Date)
4 | @available(swift, obsoleted: 3, renamed: "fulfill(withDateEnded:)")
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:234:50: error: 'AVAudioSession' is unavailable in macOS
232 | /// }
233 | /// ```
234 | public func enableAudioSession(audioSession: AVAudioSession) {
| `- error: 'AVAudioSession' is unavailable in macOS
235 | setupCorrectAudioConfiguration()
236 | setAudioSessionActive(true)
AVFAudio.AVAudioSession:2:12: note: 'AVAudioSession' has been explicitly marked unavailable here
1 | @available(macOS, unavailable)
2 | open class AVAudioSession : NSObject, @unchecked Sendable {
| `- note: 'AVAudioSession' has been explicitly marked unavailable here
3 | @available(macOS, unavailable)
4 | open class func sharedInstance() -> AVAudioSession
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:253:51: error: 'AVAudioSession' is unavailable in macOS
251 | /// }
252 | /// ```
253 | public func disableAudioSession(audioSession: AVAudioSession) {
| `- error: 'AVAudioSession' is unavailable in macOS
254 | resetAudioConfiguration()
255 | setAudioSessionActive(false)
AVFAudio.AVAudioSession:2:12: note: 'AVAudioSession' has been explicitly marked unavailable here
1 | @available(macOS, unavailable)
2 | open class AVAudioSession : NSObject, @unchecked Sendable {
| `- note: 'AVAudioSession' has been explicitly marked unavailable here
3 | @available(macOS, unavailable)
4 | open class func sharedInstance() -> AVAudioSession
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:260:24: error: 'AVAudioSession' is unavailable in macOS
258 | /// The current audio route configuration.
259 | /// This provides information about the active input and output ports.
260 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
| `- error: 'AVAudioSession' is unavailable in macOS
261 |
262 | /// Client must be registered in order to receive or place calls.
AVFAudio.AVAudioSession:2:12: note: 'AVAudioSession' has been explicitly marked unavailable here
1 | @available(macOS, unavailable)
2 | open class AVAudioSession : NSObject, @unchecked Sendable {
| `- note: 'AVAudioSession' has been explicitly marked unavailable here
3 | @available(macOS, unavailable)
4 | open class func sharedInstance() -> AVAudioSession
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:260:39: error: 'sharedInstance()' is unavailable in macOS
258 | /// The current audio route configuration.
259 | /// This provides information about the active input and output ports.
260 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
| `- error: 'sharedInstance()' is unavailable in macOS
261 |
262 | /// Client must be registered in order to receive or place calls.
AVFAudio.AVAudioSession:4:21: note: 'sharedInstance()' has been explicitly marked unavailable here
2 | open class AVAudioSession : NSObject, @unchecked Sendable {
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/TelnyxRTC/Telnyx/TxClient.swift:260:56: error: 'currentRoute' is unavailable in macOS
258 | /// The current audio route configuration.
259 | /// This provides information about the active input and output ports.
260 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
| `- error: 'currentRoute' is unavailable in macOS
261 |
262 | /// Client must be registered in order to receive or place calls.
AVFAudio.AVAudioSession:5:14: note: 'currentRoute' has been explicitly marked unavailable here
3 | open var availableInputs: [AVAudioSessionPortDescription]? { get }
4 | @available(macOS, unavailable)
5 | open var currentRoute: AVAudioSessionRouteDescription { get }
| `- note: 'currentRoute' has been explicitly marked unavailable here
6 | @available(macOS, unavailable)
7 | open func setAggregatedIOPreference(_ inIOType: AVAudioSession.IOType) throws
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:697:49: error: 'CXAnswerCallAction' is unavailable in macOS
695 | /// - debug: (optional) Enable debug mode for call quality metrics and WebRTC statistics.
696 | /// When enabled, real-time call quality metrics will be available through the call's `onCallQualityChange` callback.
697 | public func answerFromCallkit(answerAction: CXAnswerCallAction,
| `- error: 'CXAnswerCallAction' is unavailable in macOS
698 | customHeaders: [String:String] = [:],
699 | debug: Bool = false) {
CallKit.CXAnswerCallAction:2:12: note: 'CXAnswerCallAction' has been explicitly marked unavailable here
1 | @available(macOS, unavailable)
2 | open class CXAnswerCallAction : CXCallAction {
| `- note: 'CXAnswerCallAction' has been explicitly marked unavailable here
3 | open func fulfill(withDateConnected dateConnected: Date)
4 | @available(swift, obsoleted: 3, renamed: "fulfill(withDateConnected:)")
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:801:47: error: 'CXEndCallAction' is unavailable in macOS
799 |
800 | /// To end and control callKit active and conn
801 | public func endCallFromCallkit(endAction: CXEndCallAction,
| `- error: 'CXEndCallAction' is unavailable in macOS
802 | callId: UUID? = nil) {
803 | Logger.log.i(message: "TxClient:: endCallFromCallkit - started for callID \(String(describing: endAction.callUUID))")
CallKit.CXEndCallAction:2:12: note: 'CXEndCallAction' has been explicitly marked unavailable here
1 | @available(macOS, unavailable)
2 | open class CXEndCallAction : CXCallAction {
| `- note: 'CXEndCallAction' has been explicitly marked unavailable here
3 | open func fulfill(withDateEnded dateEnded: Date)
4 | @available(swift, obsoleted: 3, renamed: "fulfill(withDateEnded:)")
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:208:20: error: cannot find 'RTCAudioSession' in scope
206 | public var isAudioDeviceEnabled : Bool {
207 | get {
208 | return RTCAudioSession.sharedInstance().isAudioEnabled
| `- error: cannot find 'RTCAudioSession' in scope
209 | }
210 | set {
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:212:17: error: cannot find 'RTCAudioSession' in scope
210 | set {
211 | if newValue {
212 | RTCAudioSession.sharedInstance().audioSessionDidActivate(AVAudioSession.sharedInstance())
| `- error: cannot find 'RTCAudioSession' in scope
213 | } else {
214 | RTCAudioSession.sharedInstance().audioSessionDidDeactivate(AVAudioSession.sharedInstance())
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:214:17: error: cannot find 'RTCAudioSession' in scope
212 | RTCAudioSession.sharedInstance().audioSessionDidActivate(AVAudioSession.sharedInstance())
213 | } else {
214 | RTCAudioSession.sharedInstance().audioSessionDidDeactivate(AVAudioSession.sharedInstance())
| `- error: cannot find 'RTCAudioSession' in scope
215 | }
216 | RTCAudioSession.sharedInstance().isAudioEnabled = newValue
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:216:13: error: cannot find 'RTCAudioSession' in scope
214 | RTCAudioSession.sharedInstance().audioSessionDidDeactivate(AVAudioSession.sharedInstance())
215 | }
216 | RTCAudioSession.sharedInstance().isAudioEnabled = newValue
| `- error: cannot find 'RTCAudioSession' in scope
217 | }
218 | }
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:318:63: error: 'AVAudioSession' is unavailable in macOS
316 |
317 | // Remove audio route change observer
318 | NotificationCenter.default.removeObserver(self, name: AVAudioSession.routeChangeNotification, object: nil)
| `- error: 'AVAudioSession' is unavailable in macOS
319 |
320 | // Remove ACM reset observers
AVFAudio.AVAudioSession:2:12: note: 'AVAudioSession' has been explicitly marked unavailable here
1 | @available(macOS, unavailable)
2 | open class AVAudioSession : NSObject, @unchecked Sendable {
| `- note: 'AVAudioSession' has been explicitly marked unavailable here
3 | @available(macOS, unavailable)
4 | open class func sharedInstance() -> AVAudioSession
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:318:78: error: 'routeChangeNotification' is unavailable in macOS
316 |
317 | // Remove audio route change observer
318 | NotificationCenter.default.removeObserver(self, name: AVAudioSession.routeChangeNotification, object: nil)
| `- error: 'routeChangeNotification' is unavailable in macOS
319 |
320 | // Remove ACM reset observers
AVFAudio.AVAudioSession:5:22: note: 'routeChangeNotification' has been explicitly marked unavailable here
3 | public class let interruptionNotification: NSNotification.Name
4 | @available(macOS, unavailable)
5 | public class let routeChangeNotification: NSNotification.Name
| `- note: 'routeChangeNotification' has been explicitly marked unavailable here
6 | @available(macOS, unavailable)
7 | public class let mediaServicesWereLostNotification: NSNotification.Name
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:338:19: error: 'AVAudioSession' is unavailable in macOS
336 | self,
337 | selector: #selector(handleAudioRouteChange),
338 | name: AVAudioSession.routeChangeNotification,
| `- error: 'AVAudioSession' is unavailable in macOS
339 | object: nil)
340 |
AVFAudio.AVAudioSession:2:12: note: 'AVAudioSession' has been explicitly marked unavailable here
1 | @available(macOS, unavailable)
2 | open class AVAudioSession : NSObject, @unchecked Sendable {
| `- note: 'AVAudioSession' has been explicitly marked unavailable here
3 | @available(macOS, unavailable)
4 | open class func sharedInstance() -> AVAudioSession
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:338:34: error: 'routeChangeNotification' is unavailable in macOS
336 | self,
337 | selector: #selector(handleAudioRouteChange),
338 | name: AVAudioSession.routeChangeNotification,
| `- error: 'routeChangeNotification' is unavailable in macOS
339 | object: nil)
340 |
AVFAudio.AVAudioSession:5:22: note: 'routeChangeNotification' has been explicitly marked unavailable here
3 | public class let interruptionNotification: NSNotification.Name
4 | @available(macOS, unavailable)
5 | public class let routeChangeNotification: NSNotification.Name
| `- note: 'routeChangeNotification' has been explicitly marked unavailable here
6 | @available(macOS, unavailable)
7 | public class let mediaServicesWereLostNotification: NSNotification.Name
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:375:42: error: 'AVAudioSessionRouteChangeReasonKey' is unavailable in macOS
373 | @objc private func handleAudioRouteChange(notification: Notification) {
374 | guard let userInfo = notification.userInfo,
375 | let reasonValue = userInfo[AVAudioSessionRouteChangeReasonKey] as? UInt,
| `- error: 'AVAudioSessionRouteChangeReasonKey' is unavailable in macOS
376 | let reason = AVAudioSession.RouteChangeReason(rawValue: reasonValue) else {
377 | return
AVFAudio.AVAudioSessionRouteChangeReasonKey:2:12: note: 'AVAudioSessionRouteChangeReasonKey' has been explicitly marked unavailable here
1 | @available(macOS, unavailable)
2 | public let AVAudioSessionRouteChangeReasonKey: String
| `- note: 'AVAudioSessionRouteChangeReasonKey' has been explicitly marked unavailable here
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:376:28: error: 'AVAudioSession' is unavailable in macOS
374 | guard let userInfo = notification.userInfo,
375 | let reasonValue = userInfo[AVAudioSessionRouteChangeReasonKey] as? UInt,
376 | let reason = AVAudioSession.RouteChangeReason(rawValue: reasonValue) else {
| `- error: 'AVAudioSession' is unavailable in macOS
377 | return
378 | }
AVFAudio.AVAudioSession:2:12: note: 'AVAudioSession' has been explicitly marked unavailable here
1 | @available(macOS, unavailable)
2 | open class AVAudioSession : NSObject, @unchecked Sendable {
| `- note: 'AVAudioSession' has been explicitly marked unavailable here
3 | @available(macOS, unavailable)
4 | open class func sharedInstance() -> AVAudioSession
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:380:23: error: 'AVAudioSession' is unavailable in macOS
378 | }
379 |
380 | let session = AVAudioSession.sharedInstance()
| `- error: 'AVAudioSession' is unavailable in macOS
381 | let currentRoute = session.currentRoute
382 |
AVFAudio.AVAudioSession:2:12: note: 'AVAudioSession' has been explicitly marked unavailable here
1 | @available(macOS, unavailable)
2 | open class AVAudioSession : NSObject, @unchecked Sendable {
| `- note: 'AVAudioSession' has been explicitly marked unavailable here
3 | @available(macOS, unavailable)
4 | open class func sharedInstance() -> AVAudioSession
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:380:38: error: 'sharedInstance()' is unavailable in macOS
378 | }
379 |
380 | let session = AVAudioSession.sharedInstance()
| `- error: 'sharedInstance()' is unavailable in macOS
381 | let currentRoute = session.currentRoute
382 |
AVFAudio.AVAudioSession:4:21: note: 'sharedInstance()' has been explicitly marked unavailable here
2 | open class AVAudioSession : NSObject, @unchecked Sendable {
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/TelnyxRTC/Telnyx/TxClient.swift:381:36: error: 'currentRoute' is unavailable in macOS
379 |
380 | let session = AVAudioSession.sharedInstance()
381 | let currentRoute = session.currentRoute
| `- error: 'currentRoute' is unavailable in macOS
382 |
383 | // Ensure we have at least one output port
AVFAudio.AVAudioSession:5:14: note: 'currentRoute' has been explicitly marked unavailable here
3 | open var availableInputs: [AVAudioSessionPortDescription]? { get }
4 | @available(macOS, unavailable)
5 | open var currentRoute: AVAudioSessionRouteDescription { get }
| `- note: 'currentRoute' has been explicitly marked unavailable here
6 | @available(macOS, unavailable)
7 | open func setAggregatedIOPreference(_ inIOType: AVAudioSession.IOType) throws
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:384:41: error: 'outputs' is unavailable in macOS
382 |
383 | // Ensure we have at least one output port
384 | guard let output = currentRoute.outputs.first else {
| `- error: 'outputs' is unavailable in macOS
385 | return
386 | }
AVFAudio.AVAudioSessionRouteDescription:6:14: note: 'outputs' has been explicitly marked unavailable here
4 | open var inputs: [AVAudioSessionPortDescription] { get }
5 | @available(macOS, unavailable)
6 | open var outputs: [AVAudioSessionPortDescription] { get }
| `- note: 'outputs' has been explicitly marked unavailable here
7 | public init()
8 | }
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:388:85: error: 'portType' is unavailable in macOS
386 | }
387 |
388 | Logger.log.i(message: "[ACM_RESET] TxClient:: Audio route changed: \(output.portType), reason: \(reason), isACMResetInProgress: \(isACMResetInProgress)")
| `- error: 'portType' is unavailable in macOS
389 |
390 | // Ignore audio route changes during ACM reset to prevent state desynchronization
AVFAudio.AVAudioSessionPortDescription:4:14: note: 'portType' has been explicitly marked unavailable here
2 | open class AVAudioSessionPortDescription : NSObject, @unchecked Sendable {
3 | @available(macOS, unavailable)
4 | open var portType: AVAudioSession.Port { get }
| `- note: 'portType' has been explicitly marked unavailable here
5 | @available(macOS, unavailable)
6 | open var portName: String { get }
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:399:40: error: 'portType' is unavailable in macOS
397 | case .categoryChange, .override, .routeConfigurationChange:
398 | // Update internal speaker state based on current output
399 | let isSpeaker = output.portType == .builtInSpeaker
| `- error: 'portType' is unavailable in macOS
400 | _isSpeakerEnabled = isSpeaker
401 |
AVFAudio.AVAudioSessionPortDescription:4:14: note: 'portType' has been explicitly marked unavailable here
2 | open class AVAudioSessionPortDescription : NSObject, @unchecked Sendable {
3 | @available(macOS, unavailable)
4 | open var portType: AVAudioSession.Port { get }
| `- note: 'portType' has been explicitly marked unavailable here
5 | @available(macOS, unavailable)
6 | open var portName: String { get }
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:399:53: error: 'builtInSpeaker' is unavailable in macOS
397 | case .categoryChange, .override, .routeConfigurationChange:
398 | // Update internal speaker state based on current output
399 | let isSpeaker = output.portType == .builtInSpeaker
| `- error: 'builtInSpeaker' is unavailable in macOS
400 | _isSpeakerEnabled = isSpeaker
401 |
AVFAudio.AVAudioSession.Port:19:23: note: 'builtInSpeaker' has been explicitly marked unavailable here
17 | public static let builtInReceiver: AVAudioSession.Port
18 | @available(macOS, unavailable)
19 | public static let builtInSpeaker: AVAudioSession.Port
| `- note: 'builtInSpeaker' has been explicitly marked unavailable here
20 | @available(macOS, unavailable)
21 | public static let HDMI: AVAudioSession.Port
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:408:50: error: 'portType' is unavailable in macOS
406 | userInfo: [
407 | "isSpeakerEnabled": isSpeaker,
408 | "outputPortType": output.portType
| `- error: 'portType' is unavailable in macOS
409 | ]
410 | )
AVFAudio.AVAudioSessionPortDescription:4:14: note: 'portType' has been explicitly marked unavailable here
2 | open class AVAudioSessionPortDescription : NSObject, @unchecked Sendable {
3 | @available(macOS, unavailable)
4 | open var portType: AVAudioSession.Port { get }
| `- note: 'portType' has been explicitly marked unavailable here
5 | @available(macOS, unavailable)
6 | open var portName: String { get }
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:474:32: error: 'AVAudioSession' is unavailable in macOS
472 |
473 | // Verify if speaker is actually active
474 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
| `- error: 'AVAudioSession' is unavailable in macOS
475 | let isSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
476 |
AVFAudio.AVAudioSession:2:12: note: 'AVAudioSession' has been explicitly marked unavailable here
1 | @available(macOS, unavailable)
2 | open class AVAudioSession : NSObject, @unchecked Sendable {
| `- note: 'AVAudioSession' has been explicitly marked unavailable here
3 | @available(macOS, unavailable)
4 | open class func sharedInstance() -> AVAudioSession
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:474:47: error: 'sharedInstance()' is unavailable in macOS
472 |
473 | // Verify if speaker is actually active
474 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
| `- error: 'sharedInstance()' is unavailable in macOS
475 | let isSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
476 |
AVFAudio.AVAudioSession:4:21: note: 'sharedInstance()' has been explicitly marked unavailable here
2 | open class AVAudioSession : NSObject, @unchecked Sendable {
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/TelnyxRTC/Telnyx/TxClient.swift:474:64: error: 'currentRoute' is unavailable in macOS
472 |
473 | // Verify if speaker is actually active
474 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
| `- error: 'currentRoute' is unavailable in macOS
475 | let isSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
476 |
AVFAudio.AVAudioSession:5:14: note: 'currentRoute' has been explicitly marked unavailable here
3 | open var availableInputs: [AVAudioSessionPortDescription]? { get }
4 | @available(macOS, unavailable)
5 | open var currentRoute: AVAudioSessionRouteDescription { get }
| `- note: 'currentRoute' has been explicitly marked unavailable here
6 | @available(macOS, unavailable)
7 | open func setAggregatedIOPreference(_ inIOType: AVAudioSession.IOType) throws
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:475:48: error: 'outputs' is unavailable in macOS
473 | // Verify if speaker is actually active
474 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
475 | let isSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
| `- error: 'outputs' is unavailable in macOS
476 |
477 | if isSpeakerActive {
AVFAudio.AVAudioSessionRouteDescription:6:14: note: 'outputs' has been explicitly marked unavailable here
4 | open var inputs: [AVAudioSessionPortDescription] { get }
5 | @available(macOS, unavailable)
6 | open var outputs: [AVAudioSessionPortDescription] { get }
| `- note: 'outputs' has been explicitly marked unavailable here
7 | public init()
8 | }
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:475:70: error: 'portType' is unavailable in macOS
473 | // Verify if speaker is actually active
474 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
475 | let isSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
| `- error: 'portType' is unavailable in macOS
476 |
477 | if isSpeakerActive {
AVFAudio.AVAudioSessionPortDescription:4:14: note: 'portType' has been explicitly marked unavailable here
2 | open class AVAudioSessionPortDescription : NSObject, @unchecked Sendable {
3 | @available(macOS, unavailable)
4 | open var portType: AVAudioSession.Port { get }
| `- note: 'portType' has been explicitly marked unavailable here
5 | @available(macOS, unavailable)
6 | open var portName: String { get }
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:475:83: error: 'builtInSpeaker' is unavailable in macOS
473 | // Verify if speaker is actually active
474 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
475 | let isSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
| `- error: 'builtInSpeaker' is unavailable in macOS
476 |
477 | if isSpeakerActive {
AVFAudio.AVAudioSession.Port:19:23: note: 'builtInSpeaker' has been explicitly marked unavailable here
17 | public static let builtInReceiver: AVAudioSession.Port
18 | @available(macOS, unavailable)
19 | public static let builtInSpeaker: AVAudioSession.Port
| `- note: 'builtInSpeaker' has been explicitly marked unavailable here
20 | @available(macOS, unavailable)
21 | public static let HDMI: AVAudioSession.Port
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:644:57: error: 'AVAudioSession' is unavailable in macOS
642 | // Remove audio route change observer
643 | NotificationCenter.default.removeObserver(self,
644 | name: AVAudioSession.routeChangeNotification,
| `- error: 'AVAudioSession' is unavailable in macOS
645 | object: nil)
646 | socket?.disconnect(reconnect: false)
AVFAudio.AVAudioSession:2:12: note: 'AVAudioSession' has been explicitly marked unavailable here
1 | @available(macOS, unavailable)
2 | open class AVAudioSession : NSObject, @unchecked Sendable {
| `- note: 'AVAudioSession' has been explicitly marked unavailable here
3 | @available(macOS, unavailable)
4 | open class func sharedInstance() -> AVAudioSession
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:644:72: error: 'routeChangeNotification' is unavailable in macOS
642 | // Remove audio route change observer
643 | NotificationCenter.default.removeObserver(self,
644 | name: AVAudioSession.routeChangeNotification,
| `- error: 'routeChangeNotification' is unavailable in macOS
645 | object: nil)
646 | socket?.disconnect(reconnect: false)
AVFAudio.AVAudioSession:5:22: note: 'routeChangeNotification' has been explicitly marked unavailable here
3 | public class let interruptionNotification: NSNotification.Name
4 | @available(macOS, unavailable)
5 | public class let routeChangeNotification: NSNotification.Name
| `- note: 'routeChangeNotification' has been explicitly marked unavailable here
6 | @available(macOS, unavailable)
7 | public class let mediaServicesWereLostNotification: NSNotification.Name
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1426:32: error: 'AVAudioSession' is unavailable in macOS
1424 | Logger.log.i(message: "[ACM_RESET] TxClient:: setEarpiece() called")
1425 | do {
1426 | let audioSession = AVAudioSession.sharedInstance()
| `- error: 'AVAudioSession' is unavailable in macOS
1427 | try audioSession.overrideOutputAudioPort(.none)
1428 | _isSpeakerEnabled = false
AVFAudio.AVAudioSession:2:12: note: 'AVAudioSession' has been explicitly marked unavailable here
1 | @available(macOS, unavailable)
2 | open class AVAudioSession : NSObject, @unchecked Sendable {
| `- note: 'AVAudioSession' has been explicitly marked unavailable here
3 | @available(macOS, unavailable)
4 | open class func sharedInstance() -> AVAudioSession
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1426:47: error: 'sharedInstance()' is unavailable in macOS
1424 | Logger.log.i(message: "[ACM_RESET] TxClient:: setEarpiece() called")
1425 | do {
1426 | let audioSession = AVAudioSession.sharedInstance()
| `- error: 'sharedInstance()' is unavailable in macOS
1427 | try audioSession.overrideOutputAudioPort(.none)
1428 | _isSpeakerEnabled = false
AVFAudio.AVAudioSession:4:21: note: 'sharedInstance()' has been explicitly marked unavailable here
2 | open class AVAudioSession : NSObject, @unchecked Sendable {
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/TelnyxRTC/Telnyx/TxClient.swift:1427:30: error: 'overrideOutputAudioPort' is unavailable in macOS
1425 | do {
1426 | let audioSession = AVAudioSession.sharedInstance()
1427 | try audioSession.overrideOutputAudioPort(.none)
| `- error: 'overrideOutputAudioPort' is unavailable in macOS
1428 | _isSpeakerEnabled = false
1429 | Logger.log.i(message: "[ACM_RESET] TxClient:: Earpiece set successfully, _isSpeakerEnabled: \(_isSpeakerEnabled)")
AVFAudio.AVAudioSession:45:15: note: 'overrideOutputAudioPort' has been explicitly marked unavailable here
43 | open func requestRecordPermission(_ response: @escaping (Bool) -> Void)
44 | @available(macOS, unavailable)
45 | open func overrideOutputAudioPort(_ portOverride: AVAudioSession.PortOverride) throws
| `- note: 'overrideOutputAudioPort' has been explicitly marked unavailable here
46 | @available(macOS, unavailable)
47 | open func setPreferredInput(_ inPort: AVAudioSessionPortDescription?) throws
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1439:32: error: 'AVAudioSession' is unavailable in macOS
1437 | Logger.log.i(message: "[ACM_RESET] TxClient:: setSpeaker() called")
1438 | do {
1439 | let audioSession = AVAudioSession.sharedInstance()
| `- error: 'AVAudioSession' is unavailable in macOS
1440 | try audioSession.overrideOutputAudioPort(.speaker)
1441 | _isSpeakerEnabled = true
AVFAudio.AVAudioSession:2:12: note: 'AVAudioSession' has been explicitly marked unavailable here
1 | @available(macOS, unavailable)
2 | open class AVAudioSession : NSObject, @unchecked Sendable {
| `- note: 'AVAudioSession' has been explicitly marked unavailable here
3 | @available(macOS, unavailable)
4 | open class func sharedInstance() -> AVAudioSession
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1439:47: error: 'sharedInstance()' is unavailable in macOS
1437 | Logger.log.i(message: "[ACM_RESET] TxClient:: setSpeaker() called")
1438 | do {
1439 | let audioSession = AVAudioSession.sharedInstance()
| `- error: 'sharedInstance()' is unavailable in macOS
1440 | try audioSession.overrideOutputAudioPort(.speaker)
1441 | _isSpeakerEnabled = true
AVFAudio.AVAudioSession:4:21: note: 'sharedInstance()' has been explicitly marked unavailable here
2 | open class AVAudioSession : NSObject, @unchecked Sendable {
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/TelnyxRTC/Telnyx/TxClient.swift:1440:30: error: 'overrideOutputAudioPort' is unavailable in macOS
1438 | do {
1439 | let audioSession = AVAudioSession.sharedInstance()
1440 | try audioSession.overrideOutputAudioPort(.speaker)
| `- error: 'overrideOutputAudioPort' is unavailable in macOS
1441 | _isSpeakerEnabled = true
1442 | Logger.log.i(message: "[ACM_RESET] TxClient:: Speaker set successfully, _isSpeakerEnabled: \(_isSpeakerEnabled)")
AVFAudio.AVAudioSession:45:15: note: 'overrideOutputAudioPort' has been explicitly marked unavailable here
43 | open func requestRecordPermission(_ response: @escaping (Bool) -> Void)
44 | @available(macOS, unavailable)
45 | open func overrideOutputAudioPort(_ portOverride: AVAudioSession.PortOverride) throws
| `- note: 'overrideOutputAudioPort' has been explicitly marked unavailable here
46 | @available(macOS, unavailable)
47 | open func setPreferredInput(_ inPort: AVAudioSessionPortDescription?) throws
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1440:55: error: 'speaker' is unavailable in macOS
1438 | do {
1439 | let audioSession = AVAudioSession.sharedInstance()
1440 | try audioSession.overrideOutputAudioPort(.speaker)
| `- error: 'speaker' is unavailable in macOS
1441 | _isSpeakerEnabled = true
1442 | Logger.log.i(message: "[ACM_RESET] TxClient:: Speaker set successfully, _isSpeakerEnabled: \(_isSpeakerEnabled)")
AVFAudio.AVAudioSession:28:14: note: 'speaker' has been explicitly marked unavailable here
26 | public static var None: AVAudioSession.PortOverride { get }
27 | @available(macOS, unavailable)
28 | case speaker
| `- note: 'speaker' has been explicitly marked unavailable here
29 | }
30 | public enum RouteChangeReason : UInt, @unchecked Sendable {
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1963:28: error: 'AVAudioSession' is unavailable in macOS
1961 | extension TxClient {
1962 | internal func resetAudioConfiguration() {
1963 | let audioSession = AVAudioSession.sharedInstance()
| `- error: 'AVAudioSession' is unavailable in macOS
1964 | do {
1965 | try audioSession.setCategory(
AVFAudio.AVAudioSession:2:12: note: 'AVAudioSession' has been explicitly marked unavailable here
1 | @available(macOS, unavailable)
2 | open class AVAudioSession : NSObject, @unchecked Sendable {
| `- note: 'AVAudioSession' has been explicitly marked unavailable here
3 | @available(macOS, unavailable)
4 | open class func sharedInstance() -> AVAudioSession
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1963:43: error: 'sharedInstance()' is unavailable in macOS
1961 | extension TxClient {
1962 | internal func resetAudioConfiguration() {
1963 | let audioSession = AVAudioSession.sharedInstance()
| `- error: 'sharedInstance()' is unavailable in macOS
1964 | do {
1965 | try audioSession.setCategory(
AVFAudio.AVAudioSession:4:21: note: 'sharedInstance()' has been explicitly marked unavailable here
2 | open class AVAudioSession : NSObject, @unchecked Sendable {
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/TelnyxRTC/Telnyx/TxClient.swift:1965:30: error: 'setCategory(_:mode:options:)' is unavailable in macOS
1963 | let audioSession = AVAudioSession.sharedInstance()
1964 | do {
1965 | try audioSession.setCategory(
| `- error: 'setCategory(_:mode:options:)' is unavailable in macOS
1966 | .playback,
1967 | mode: .default,
AVFAudio.AVAudioSession:18:15: note: 'setCategory(_:mode:options:)' has been explicitly marked unavailable here
16 | open func setCategory(_ category: AVAudioSession.Category, withOptions options: AVAudioSession.CategoryOptions = []) throws
17 | @available(macOS, unavailable)
18 | open func setCategory(_ category: AVAudioSession.Category, mode: AVAudioSession.Mode, options: AVAudioSession.CategoryOptions = []) throws
| `- note: 'setCategory(_:mode:options:)' has been explicitly marked unavailable here
19 | @available(macOS, unavailable)
20 | open func setCategory(_ category: AVAudioSession.Category, mode: AVAudioSession.Mode, policy: AVAudioSession.RouteSharingPolicy, options: AVAudioSession.CategoryOptions = []) throws
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1966:18: error: 'playback' is unavailable in macOS
1964 | do {
1965 | try audioSession.setCategory(
1966 | .playback,
| `- error: 'playback' is unavailable in macOS
1967 | mode: .default,
1968 | options: [.mixWithOthers]
AVFAudio.AVAudioSession.Category:7:23: note: 'playback' has been explicitly marked unavailable here
5 | public static let soloAmbient: AVAudioSession.Category
6 | @available(macOS, unavailable)
7 | public static let playback: AVAudioSession.Category
| `- note: 'playback' has been explicitly marked unavailable here
8 | @available(macOS, unavailable)
9 | public static let record: AVAudioSession.Category
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1967:24: error: 'default' is unavailable in macOS
1965 | try audioSession.setCategory(
1966 | .playback,
1967 | mode: .default,
| `- error: 'default' is unavailable in macOS
1968 | options: [.mixWithOthers]
1969 | )
AVFAudio.AVAudioSession.Mode:3:23: note: 'default' has been explicitly marked unavailable here
1 | extension AVAudioSession.Mode {
2 | @available(macOS, unavailable)
3 | public static let `default`: AVAudioSession.Mode
| `- note: 'default' has been explicitly marked unavailable here
4 | @available(macOS, unavailable)
5 | public static let voiceChat: AVAudioSession.Mode
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1976:31: error: cannot find 'RTCAudioSession' in scope
1974 |
1975 | internal func setupCorrectAudioConfiguration() {
1976 | let rtcAudioSession = RTCAudioSession.sharedInstance()
| `- error: cannot find 'RTCAudioSession' in scope
1977 | rtcAudioSession.lockForConfiguration()
1978 |
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1979:29: error: cannot find 'RTCAudioSessionConfiguration' in scope
1977 | rtcAudioSession.lockForConfiguration()
1978 |
1979 | let configuration = RTCAudioSessionConfiguration.webRTC()
| `- error: cannot find 'RTCAudioSessionConfiguration' in scope
1980 | configuration.categoryOptions = [
1981 | .duckOthers,
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1981:14: error: reference to member 'duckOthers' cannot be resolved without a contextual type
1979 | let configuration = RTCAudioSessionConfiguration.webRTC()
1980 | configuration.categoryOptions = [
1981 | .duckOthers,
| `- error: reference to member 'duckOthers' cannot be resolved without a contextual type
1982 | .allowBluetooth,
1983 | ]
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1982:14: error: reference to member 'allowBluetooth' cannot be resolved without a contextual type
1980 | configuration.categoryOptions = [
1981 | .duckOthers,
1982 | .allowBluetooth,
| `- error: reference to member 'allowBluetooth' cannot be resolved without a contextual type
1983 | ]
1984 |
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1995:31: error: cannot find 'RTCAudioSession' in scope
1993 |
1994 | internal func setAudioSessionActive(_ active: Bool) {
1995 | let rtcAudioSession = RTCAudioSession.sharedInstance()
| `- error: cannot find 'RTCAudioSession' in scope
1996 |
1997 | rtcAudioSession.lockForConfiguration()
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/Utils/FileLoger.swift:96:19: warning: value 'logData' was defined but never used; consider replacing with boolean test
94 |
95 | let logFileURL = FileLogger.shared.logFileURL
96 | guard let logData = try? Data(contentsOf: logFileURL) else {
| `- warning: value 'logData' was defined but never used; consider replacing with boolean test
97 | Logger.log.e(message: "Failed to read log file")
98 | return
[96/103] Compiling TelnyxRTC MOSCalculator.swift
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:140:35: error: 'CXAnswerCallAction' is unavailable in macOS
138 | private var socket : Socket?
139 |
140 | private var answerCallAction: CXAnswerCallAction? = nil
| `- error: 'CXAnswerCallAction' is unavailable in macOS
141 | private var endCallAction: CXEndCallAction? = nil
142 | private var sessionId : String?
CallKit.CXAnswerCallAction:2:12: note: 'CXAnswerCallAction' has been explicitly marked unavailable here
1 | @available(macOS, unavailable)
2 | open class CXAnswerCallAction : CXCallAction {
| `- note: 'CXAnswerCallAction' has been explicitly marked unavailable here
3 | open func fulfill(withDateConnected dateConnected: Date)
4 | @available(swift, obsoleted: 3, renamed: "fulfill(withDateConnected:)")
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:141:32: error: 'CXEndCallAction' is unavailable in macOS
139 |
140 | private var answerCallAction: CXAnswerCallAction? = nil
141 | private var endCallAction: CXEndCallAction? = nil
| `- error: 'CXEndCallAction' is unavailable in macOS
142 | private var sessionId : String?
143 | internal var txConfig: TxConfig?
CallKit.CXEndCallAction:2:12: note: 'CXEndCallAction' has been explicitly marked unavailable here
1 | @available(macOS, unavailable)
2 | open class CXEndCallAction : CXCallAction {
| `- note: 'CXEndCallAction' has been explicitly marked unavailable here
3 | open func fulfill(withDateEnded dateEnded: Date)
4 | @available(swift, obsoleted: 3, renamed: "fulfill(withDateEnded:)")
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:234:50: error: 'AVAudioSession' is unavailable in macOS
232 | /// }
233 | /// ```
234 | public func enableAudioSession(audioSession: AVAudioSession) {
| `- error: 'AVAudioSession' is unavailable in macOS
235 | setupCorrectAudioConfiguration()
236 | setAudioSessionActive(true)
AVFAudio.AVAudioSession:2:12: note: 'AVAudioSession' has been explicitly marked unavailable here
1 | @available(macOS, unavailable)
2 | open class AVAudioSession : NSObject, @unchecked Sendable {
| `- note: 'AVAudioSession' has been explicitly marked unavailable here
3 | @available(macOS, unavailable)
4 | open class func sharedInstance() -> AVAudioSession
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:253:51: error: 'AVAudioSession' is unavailable in macOS
251 | /// }
252 | /// ```
253 | public func disableAudioSession(audioSession: AVAudioSession) {
| `- error: 'AVAudioSession' is unavailable in macOS
254 | resetAudioConfiguration()
255 | setAudioSessionActive(false)
AVFAudio.AVAudioSession:2:12: note: 'AVAudioSession' has been explicitly marked unavailable here
1 | @available(macOS, unavailable)
2 | open class AVAudioSession : NSObject, @unchecked Sendable {
| `- note: 'AVAudioSession' has been explicitly marked unavailable here
3 | @available(macOS, unavailable)
4 | open class func sharedInstance() -> AVAudioSession
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:260:24: error: 'AVAudioSession' is unavailable in macOS
258 | /// The current audio route configuration.
259 | /// This provides information about the active input and output ports.
260 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
| `- error: 'AVAudioSession' is unavailable in macOS
261 |
262 | /// Client must be registered in order to receive or place calls.
AVFAudio.AVAudioSession:2:12: note: 'AVAudioSession' has been explicitly marked unavailable here
1 | @available(macOS, unavailable)
2 | open class AVAudioSession : NSObject, @unchecked Sendable {
| `- note: 'AVAudioSession' has been explicitly marked unavailable here
3 | @available(macOS, unavailable)
4 | open class func sharedInstance() -> AVAudioSession
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:260:39: error: 'sharedInstance()' is unavailable in macOS
258 | /// The current audio route configuration.
259 | /// This provides information about the active input and output ports.
260 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
| `- error: 'sharedInstance()' is unavailable in macOS
261 |
262 | /// Client must be registered in order to receive or place calls.
AVFAudio.AVAudioSession:4:21: note: 'sharedInstance()' has been explicitly marked unavailable here
2 | open class AVAudioSession : NSObject, @unchecked Sendable {
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/TelnyxRTC/Telnyx/TxClient.swift:260:56: error: 'currentRoute' is unavailable in macOS
258 | /// The current audio route configuration.
259 | /// This provides information about the active input and output ports.
260 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
| `- error: 'currentRoute' is unavailable in macOS
261 |
262 | /// Client must be registered in order to receive or place calls.
AVFAudio.AVAudioSession:5:14: note: 'currentRoute' has been explicitly marked unavailable here
3 | open var availableInputs: [AVAudioSessionPortDescription]? { get }
4 | @available(macOS, unavailable)
5 | open var currentRoute: AVAudioSessionRouteDescription { get }
| `- note: 'currentRoute' has been explicitly marked unavailable here
6 | @available(macOS, unavailable)
7 | open func setAggregatedIOPreference(_ inIOType: AVAudioSession.IOType) throws
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:697:49: error: 'CXAnswerCallAction' is unavailable in macOS
695 | /// - debug: (optional) Enable debug mode for call quality metrics and WebRTC statistics.
696 | /// When enabled, real-time call quality metrics will be available through the call's `onCallQualityChange` callback.
697 | public func answerFromCallkit(answerAction: CXAnswerCallAction,
| `- error: 'CXAnswerCallAction' is unavailable in macOS
698 | customHeaders: [String:String] = [:],
699 | debug: Bool = false) {
CallKit.CXAnswerCallAction:2:12: note: 'CXAnswerCallAction' has been explicitly marked unavailable here
1 | @available(macOS, unavailable)
2 | open class CXAnswerCallAction : CXCallAction {
| `- note: 'CXAnswerCallAction' has been explicitly marked unavailable here
3 | open func fulfill(withDateConnected dateConnected: Date)
4 | @available(swift, obsoleted: 3, renamed: "fulfill(withDateConnected:)")
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:801:47: error: 'CXEndCallAction' is unavailable in macOS
799 |
800 | /// To end and control callKit active and conn
801 | public func endCallFromCallkit(endAction: CXEndCallAction,
| `- error: 'CXEndCallAction' is unavailable in macOS
802 | callId: UUID? = nil) {
803 | Logger.log.i(message: "TxClient:: endCallFromCallkit - started for callID \(String(describing: endAction.callUUID))")
CallKit.CXEndCallAction:2:12: note: 'CXEndCallAction' has been explicitly marked unavailable here
1 | @available(macOS, unavailable)
2 | open class CXEndCallAction : CXCallAction {
| `- note: 'CXEndCallAction' has been explicitly marked unavailable here
3 | open func fulfill(withDateEnded dateEnded: Date)
4 | @available(swift, obsoleted: 3, renamed: "fulfill(withDateEnded:)")
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:208:20: error: cannot find 'RTCAudioSession' in scope
206 | public var isAudioDeviceEnabled : Bool {
207 | get {
208 | return RTCAudioSession.sharedInstance().isAudioEnabled
| `- error: cannot find 'RTCAudioSession' in scope
209 | }
210 | set {
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:212:17: error: cannot find 'RTCAudioSession' in scope
210 | set {
211 | if newValue {
212 | RTCAudioSession.sharedInstance().audioSessionDidActivate(AVAudioSession.sharedInstance())
| `- error: cannot find 'RTCAudioSession' in scope
213 | } else {
214 | RTCAudioSession.sharedInstance().audioSessionDidDeactivate(AVAudioSession.sharedInstance())
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:214:17: error: cannot find 'RTCAudioSession' in scope
212 | RTCAudioSession.sharedInstance().audioSessionDidActivate(AVAudioSession.sharedInstance())
213 | } else {
214 | RTCAudioSession.sharedInstance().audioSessionDidDeactivate(AVAudioSession.sharedInstance())
| `- error: cannot find 'RTCAudioSession' in scope
215 | }
216 | RTCAudioSession.sharedInstance().isAudioEnabled = newValue
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:216:13: error: cannot find 'RTCAudioSession' in scope
214 | RTCAudioSession.sharedInstance().audioSessionDidDeactivate(AVAudioSession.sharedInstance())
215 | }
216 | RTCAudioSession.sharedInstance().isAudioEnabled = newValue
| `- error: cannot find 'RTCAudioSession' in scope
217 | }
218 | }
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:318:63: error: 'AVAudioSession' is unavailable in macOS
316 |
317 | // Remove audio route change observer
318 | NotificationCenter.default.removeObserver(self, name: AVAudioSession.routeChangeNotification, object: nil)
| `- error: 'AVAudioSession' is unavailable in macOS
319 |
320 | // Remove ACM reset observers
AVFAudio.AVAudioSession:2:12: note: 'AVAudioSession' has been explicitly marked unavailable here
1 | @available(macOS, unavailable)
2 | open class AVAudioSession : NSObject, @unchecked Sendable {
| `- note: 'AVAudioSession' has been explicitly marked unavailable here
3 | @available(macOS, unavailable)
4 | open class func sharedInstance() -> AVAudioSession
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:318:78: error: 'routeChangeNotification' is unavailable in macOS
316 |
317 | // Remove audio route change observer
318 | NotificationCenter.default.removeObserver(self, name: AVAudioSession.routeChangeNotification, object: nil)
| `- error: 'routeChangeNotification' is unavailable in macOS
319 |
320 | // Remove ACM reset observers
AVFAudio.AVAudioSession:5:22: note: 'routeChangeNotification' has been explicitly marked unavailable here
3 | public class let interruptionNotification: NSNotification.Name
4 | @available(macOS, unavailable)
5 | public class let routeChangeNotification: NSNotification.Name
| `- note: 'routeChangeNotification' has been explicitly marked unavailable here
6 | @available(macOS, unavailable)
7 | public class let mediaServicesWereLostNotification: NSNotification.Name
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:338:19: error: 'AVAudioSession' is unavailable in macOS
336 | self,
337 | selector: #selector(handleAudioRouteChange),
338 | name: AVAudioSession.routeChangeNotification,
| `- error: 'AVAudioSession' is unavailable in macOS
339 | object: nil)
340 |
AVFAudio.AVAudioSession:2:12: note: 'AVAudioSession' has been explicitly marked unavailable here
1 | @available(macOS, unavailable)
2 | open class AVAudioSession : NSObject, @unchecked Sendable {
| `- note: 'AVAudioSession' has been explicitly marked unavailable here
3 | @available(macOS, unavailable)
4 | open class func sharedInstance() -> AVAudioSession
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:338:34: error: 'routeChangeNotification' is unavailable in macOS
336 | self,
337 | selector: #selector(handleAudioRouteChange),
338 | name: AVAudioSession.routeChangeNotification,
| `- error: 'routeChangeNotification' is unavailable in macOS
339 | object: nil)
340 |
AVFAudio.AVAudioSession:5:22: note: 'routeChangeNotification' has been explicitly marked unavailable here
3 | public class let interruptionNotification: NSNotification.Name
4 | @available(macOS, unavailable)
5 | public class let routeChangeNotification: NSNotification.Name
| `- note: 'routeChangeNotification' has been explicitly marked unavailable here
6 | @available(macOS, unavailable)
7 | public class let mediaServicesWereLostNotification: NSNotification.Name
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:375:42: error: 'AVAudioSessionRouteChangeReasonKey' is unavailable in macOS
373 | @objc private func handleAudioRouteChange(notification: Notification) {
374 | guard let userInfo = notification.userInfo,
375 | let reasonValue = userInfo[AVAudioSessionRouteChangeReasonKey] as? UInt,
| `- error: 'AVAudioSessionRouteChangeReasonKey' is unavailable in macOS
376 | let reason = AVAudioSession.RouteChangeReason(rawValue: reasonValue) else {
377 | return
AVFAudio.AVAudioSessionRouteChangeReasonKey:2:12: note: 'AVAudioSessionRouteChangeReasonKey' has been explicitly marked unavailable here
1 | @available(macOS, unavailable)
2 | public let AVAudioSessionRouteChangeReasonKey: String
| `- note: 'AVAudioSessionRouteChangeReasonKey' has been explicitly marked unavailable here
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:376:28: error: 'AVAudioSession' is unavailable in macOS
374 | guard let userInfo = notification.userInfo,
375 | let reasonValue = userInfo[AVAudioSessionRouteChangeReasonKey] as? UInt,
376 | let reason = AVAudioSession.RouteChangeReason(rawValue: reasonValue) else {
| `- error: 'AVAudioSession' is unavailable in macOS
377 | return
378 | }
AVFAudio.AVAudioSession:2:12: note: 'AVAudioSession' has been explicitly marked unavailable here
1 | @available(macOS, unavailable)
2 | open class AVAudioSession : NSObject, @unchecked Sendable {
| `- note: 'AVAudioSession' has been explicitly marked unavailable here
3 | @available(macOS, unavailable)
4 | open class func sharedInstance() -> AVAudioSession
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:380:23: error: 'AVAudioSession' is unavailable in macOS
378 | }
379 |
380 | let session = AVAudioSession.sharedInstance()
| `- error: 'AVAudioSession' is unavailable in macOS
381 | let currentRoute = session.currentRoute
382 |
AVFAudio.AVAudioSession:2:12: note: 'AVAudioSession' has been explicitly marked unavailable here
1 | @available(macOS, unavailable)
2 | open class AVAudioSession : NSObject, @unchecked Sendable {
| `- note: 'AVAudioSession' has been explicitly marked unavailable here
3 | @available(macOS, unavailable)
4 | open class func sharedInstance() -> AVAudioSession
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:380:38: error: 'sharedInstance()' is unavailable in macOS
378 | }
379 |
380 | let session = AVAudioSession.sharedInstance()
| `- error: 'sharedInstance()' is unavailable in macOS
381 | let currentRoute = session.currentRoute
382 |
AVFAudio.AVAudioSession:4:21: note: 'sharedInstance()' has been explicitly marked unavailable here
2 | open class AVAudioSession : NSObject, @unchecked Sendable {
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/TelnyxRTC/Telnyx/TxClient.swift:381:36: error: 'currentRoute' is unavailable in macOS
379 |
380 | let session = AVAudioSession.sharedInstance()
381 | let currentRoute = session.currentRoute
| `- error: 'currentRoute' is unavailable in macOS
382 |
383 | // Ensure we have at least one output port
AVFAudio.AVAudioSession:5:14: note: 'currentRoute' has been explicitly marked unavailable here
3 | open var availableInputs: [AVAudioSessionPortDescription]? { get }
4 | @available(macOS, unavailable)
5 | open var currentRoute: AVAudioSessionRouteDescription { get }
| `- note: 'currentRoute' has been explicitly marked unavailable here
6 | @available(macOS, unavailable)
7 | open func setAggregatedIOPreference(_ inIOType: AVAudioSession.IOType) throws
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:384:41: error: 'outputs' is unavailable in macOS
382 |
383 | // Ensure we have at least one output port
384 | guard let output = currentRoute.outputs.first else {
| `- error: 'outputs' is unavailable in macOS
385 | return
386 | }
AVFAudio.AVAudioSessionRouteDescription:6:14: note: 'outputs' has been explicitly marked unavailable here
4 | open var inputs: [AVAudioSessionPortDescription] { get }
5 | @available(macOS, unavailable)
6 | open var outputs: [AVAudioSessionPortDescription] { get }
| `- note: 'outputs' has been explicitly marked unavailable here
7 | public init()
8 | }
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:388:85: error: 'portType' is unavailable in macOS
386 | }
387 |
388 | Logger.log.i(message: "[ACM_RESET] TxClient:: Audio route changed: \(output.portType), reason: \(reason), isACMResetInProgress: \(isACMResetInProgress)")
| `- error: 'portType' is unavailable in macOS
389 |
390 | // Ignore audio route changes during ACM reset to prevent state desynchronization
AVFAudio.AVAudioSessionPortDescription:4:14: note: 'portType' has been explicitly marked unavailable here
2 | open class AVAudioSessionPortDescription : NSObject, @unchecked Sendable {
3 | @available(macOS, unavailable)
4 | open var portType: AVAudioSession.Port { get }
| `- note: 'portType' has been explicitly marked unavailable here
5 | @available(macOS, unavailable)
6 | open var portName: String { get }
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:399:40: error: 'portType' is unavailable in macOS
397 | case .categoryChange, .override, .routeConfigurationChange:
398 | // Update internal speaker state based on current output
399 | let isSpeaker = output.portType == .builtInSpeaker
| `- error: 'portType' is unavailable in macOS
400 | _isSpeakerEnabled = isSpeaker
401 |
AVFAudio.AVAudioSessionPortDescription:4:14: note: 'portType' has been explicitly marked unavailable here
2 | open class AVAudioSessionPortDescription : NSObject, @unchecked Sendable {
3 | @available(macOS, unavailable)
4 | open var portType: AVAudioSession.Port { get }
| `- note: 'portType' has been explicitly marked unavailable here
5 | @available(macOS, unavailable)
6 | open var portName: String { get }
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:399:53: error: 'builtInSpeaker' is unavailable in macOS
397 | case .categoryChange, .override, .routeConfigurationChange:
398 | // Update internal speaker state based on current output
399 | let isSpeaker = output.portType == .builtInSpeaker
| `- error: 'builtInSpeaker' is unavailable in macOS
400 | _isSpeakerEnabled = isSpeaker
401 |
AVFAudio.AVAudioSession.Port:19:23: note: 'builtInSpeaker' has been explicitly marked unavailable here
17 | public static let builtInReceiver: AVAudioSession.Port
18 | @available(macOS, unavailable)
19 | public static let builtInSpeaker: AVAudioSession.Port
| `- note: 'builtInSpeaker' has been explicitly marked unavailable here
20 | @available(macOS, unavailable)
21 | public static let HDMI: AVAudioSession.Port
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:408:50: error: 'portType' is unavailable in macOS
406 | userInfo: [
407 | "isSpeakerEnabled": isSpeaker,
408 | "outputPortType": output.portType
| `- error: 'portType' is unavailable in macOS
409 | ]
410 | )
AVFAudio.AVAudioSessionPortDescription:4:14: note: 'portType' has been explicitly marked unavailable here
2 | open class AVAudioSessionPortDescription : NSObject, @unchecked Sendable {
3 | @available(macOS, unavailable)
4 | open var portType: AVAudioSession.Port { get }
| `- note: 'portType' has been explicitly marked unavailable here
5 | @available(macOS, unavailable)
6 | open var portName: String { get }
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:474:32: error: 'AVAudioSession' is unavailable in macOS
472 |
473 | // Verify if speaker is actually active
474 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
| `- error: 'AVAudioSession' is unavailable in macOS
475 | let isSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
476 |
AVFAudio.AVAudioSession:2:12: note: 'AVAudioSession' has been explicitly marked unavailable here
1 | @available(macOS, unavailable)
2 | open class AVAudioSession : NSObject, @unchecked Sendable {
| `- note: 'AVAudioSession' has been explicitly marked unavailable here
3 | @available(macOS, unavailable)
4 | open class func sharedInstance() -> AVAudioSession
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:474:47: error: 'sharedInstance()' is unavailable in macOS
472 |
473 | // Verify if speaker is actually active
474 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
| `- error: 'sharedInstance()' is unavailable in macOS
475 | let isSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
476 |
AVFAudio.AVAudioSession:4:21: note: 'sharedInstance()' has been explicitly marked unavailable here
2 | open class AVAudioSession : NSObject, @unchecked Sendable {
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/TelnyxRTC/Telnyx/TxClient.swift:474:64: error: 'currentRoute' is unavailable in macOS
472 |
473 | // Verify if speaker is actually active
474 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
| `- error: 'currentRoute' is unavailable in macOS
475 | let isSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
476 |
AVFAudio.AVAudioSession:5:14: note: 'currentRoute' has been explicitly marked unavailable here
3 | open var availableInputs: [AVAudioSessionPortDescription]? { get }
4 | @available(macOS, unavailable)
5 | open var currentRoute: AVAudioSessionRouteDescription { get }
| `- note: 'currentRoute' has been explicitly marked unavailable here
6 | @available(macOS, unavailable)
7 | open func setAggregatedIOPreference(_ inIOType: AVAudioSession.IOType) throws
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:475:48: error: 'outputs' is unavailable in macOS
473 | // Verify if speaker is actually active
474 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
475 | let isSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
| `- error: 'outputs' is unavailable in macOS
476 |
477 | if isSpeakerActive {
AVFAudio.AVAudioSessionRouteDescription:6:14: note: 'outputs' has been explicitly marked unavailable here
4 | open var inputs: [AVAudioSessionPortDescription] { get }
5 | @available(macOS, unavailable)
6 | open var outputs: [AVAudioSessionPortDescription] { get }
| `- note: 'outputs' has been explicitly marked unavailable here
7 | public init()
8 | }
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:475:70: error: 'portType' is unavailable in macOS
473 | // Verify if speaker is actually active
474 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
475 | let isSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
| `- error: 'portType' is unavailable in macOS
476 |
477 | if isSpeakerActive {
AVFAudio.AVAudioSessionPortDescription:4:14: note: 'portType' has been explicitly marked unavailable here
2 | open class AVAudioSessionPortDescription : NSObject, @unchecked Sendable {
3 | @available(macOS, unavailable)
4 | open var portType: AVAudioSession.Port { get }
| `- note: 'portType' has been explicitly marked unavailable here
5 | @available(macOS, unavailable)
6 | open var portName: String { get }
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:475:83: error: 'builtInSpeaker' is unavailable in macOS
473 | // Verify if speaker is actually active
474 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
475 | let isSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
| `- error: 'builtInSpeaker' is unavailable in macOS
476 |
477 | if isSpeakerActive {
AVFAudio.AVAudioSession.Port:19:23: note: 'builtInSpeaker' has been explicitly marked unavailable here
17 | public static let builtInReceiver: AVAudioSession.Port
18 | @available(macOS, unavailable)
19 | public static let builtInSpeaker: AVAudioSession.Port
| `- note: 'builtInSpeaker' has been explicitly marked unavailable here
20 | @available(macOS, unavailable)
21 | public static let HDMI: AVAudioSession.Port
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:644:57: error: 'AVAudioSession' is unavailable in macOS
642 | // Remove audio route change observer
643 | NotificationCenter.default.removeObserver(self,
644 | name: AVAudioSession.routeChangeNotification,
| `- error: 'AVAudioSession' is unavailable in macOS
645 | object: nil)
646 | socket?.disconnect(reconnect: false)
AVFAudio.AVAudioSession:2:12: note: 'AVAudioSession' has been explicitly marked unavailable here
1 | @available(macOS, unavailable)
2 | open class AVAudioSession : NSObject, @unchecked Sendable {
| `- note: 'AVAudioSession' has been explicitly marked unavailable here
3 | @available(macOS, unavailable)
4 | open class func sharedInstance() -> AVAudioSession
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:644:72: error: 'routeChangeNotification' is unavailable in macOS
642 | // Remove audio route change observer
643 | NotificationCenter.default.removeObserver(self,
644 | name: AVAudioSession.routeChangeNotification,
| `- error: 'routeChangeNotification' is unavailable in macOS
645 | object: nil)
646 | socket?.disconnect(reconnect: false)
AVFAudio.AVAudioSession:5:22: note: 'routeChangeNotification' has been explicitly marked unavailable here
3 | public class let interruptionNotification: NSNotification.Name
4 | @available(macOS, unavailable)
5 | public class let routeChangeNotification: NSNotification.Name
| `- note: 'routeChangeNotification' has been explicitly marked unavailable here
6 | @available(macOS, unavailable)
7 | public class let mediaServicesWereLostNotification: NSNotification.Name
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1426:32: error: 'AVAudioSession' is unavailable in macOS
1424 | Logger.log.i(message: "[ACM_RESET] TxClient:: setEarpiece() called")
1425 | do {
1426 | let audioSession = AVAudioSession.sharedInstance()
| `- error: 'AVAudioSession' is unavailable in macOS
1427 | try audioSession.overrideOutputAudioPort(.none)
1428 | _isSpeakerEnabled = false
AVFAudio.AVAudioSession:2:12: note: 'AVAudioSession' has been explicitly marked unavailable here
1 | @available(macOS, unavailable)
2 | open class AVAudioSession : NSObject, @unchecked Sendable {
| `- note: 'AVAudioSession' has been explicitly marked unavailable here
3 | @available(macOS, unavailable)
4 | open class func sharedInstance() -> AVAudioSession
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1426:47: error: 'sharedInstance()' is unavailable in macOS
1424 | Logger.log.i(message: "[ACM_RESET] TxClient:: setEarpiece() called")
1425 | do {
1426 | let audioSession = AVAudioSession.sharedInstance()
| `- error: 'sharedInstance()' is unavailable in macOS
1427 | try audioSession.overrideOutputAudioPort(.none)
1428 | _isSpeakerEnabled = false
AVFAudio.AVAudioSession:4:21: note: 'sharedInstance()' has been explicitly marked unavailable here
2 | open class AVAudioSession : NSObject, @unchecked Sendable {
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/TelnyxRTC/Telnyx/TxClient.swift:1427:30: error: 'overrideOutputAudioPort' is unavailable in macOS
1425 | do {
1426 | let audioSession = AVAudioSession.sharedInstance()
1427 | try audioSession.overrideOutputAudioPort(.none)
| `- error: 'overrideOutputAudioPort' is unavailable in macOS
1428 | _isSpeakerEnabled = false
1429 | Logger.log.i(message: "[ACM_RESET] TxClient:: Earpiece set successfully, _isSpeakerEnabled: \(_isSpeakerEnabled)")
AVFAudio.AVAudioSession:45:15: note: 'overrideOutputAudioPort' has been explicitly marked unavailable here
43 | open func requestRecordPermission(_ response: @escaping (Bool) -> Void)
44 | @available(macOS, unavailable)
45 | open func overrideOutputAudioPort(_ portOverride: AVAudioSession.PortOverride) throws
| `- note: 'overrideOutputAudioPort' has been explicitly marked unavailable here
46 | @available(macOS, unavailable)
47 | open func setPreferredInput(_ inPort: AVAudioSessionPortDescription?) throws
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1439:32: error: 'AVAudioSession' is unavailable in macOS
1437 | Logger.log.i(message: "[ACM_RESET] TxClient:: setSpeaker() called")
1438 | do {
1439 | let audioSession = AVAudioSession.sharedInstance()
| `- error: 'AVAudioSession' is unavailable in macOS
1440 | try audioSession.overrideOutputAudioPort(.speaker)
1441 | _isSpeakerEnabled = true
AVFAudio.AVAudioSession:2:12: note: 'AVAudioSession' has been explicitly marked unavailable here
1 | @available(macOS, unavailable)
2 | open class AVAudioSession : NSObject, @unchecked Sendable {
| `- note: 'AVAudioSession' has been explicitly marked unavailable here
3 | @available(macOS, unavailable)
4 | open class func sharedInstance() -> AVAudioSession
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1439:47: error: 'sharedInstance()' is unavailable in macOS
1437 | Logger.log.i(message: "[ACM_RESET] TxClient:: setSpeaker() called")
1438 | do {
1439 | let audioSession = AVAudioSession.sharedInstance()
| `- error: 'sharedInstance()' is unavailable in macOS
1440 | try audioSession.overrideOutputAudioPort(.speaker)
1441 | _isSpeakerEnabled = true
AVFAudio.AVAudioSession:4:21: note: 'sharedInstance()' has been explicitly marked unavailable here
2 | open class AVAudioSession : NSObject, @unchecked Sendable {
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/TelnyxRTC/Telnyx/TxClient.swift:1440:30: error: 'overrideOutputAudioPort' is unavailable in macOS
1438 | do {
1439 | let audioSession = AVAudioSession.sharedInstance()
1440 | try audioSession.overrideOutputAudioPort(.speaker)
| `- error: 'overrideOutputAudioPort' is unavailable in macOS
1441 | _isSpeakerEnabled = true
1442 | Logger.log.i(message: "[ACM_RESET] TxClient:: Speaker set successfully, _isSpeakerEnabled: \(_isSpeakerEnabled)")
AVFAudio.AVAudioSession:45:15: note: 'overrideOutputAudioPort' has been explicitly marked unavailable here
43 | open func requestRecordPermission(_ response: @escaping (Bool) -> Void)
44 | @available(macOS, unavailable)
45 | open func overrideOutputAudioPort(_ portOverride: AVAudioSession.PortOverride) throws
| `- note: 'overrideOutputAudioPort' has been explicitly marked unavailable here
46 | @available(macOS, unavailable)
47 | open func setPreferredInput(_ inPort: AVAudioSessionPortDescription?) throws
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1440:55: error: 'speaker' is unavailable in macOS
1438 | do {
1439 | let audioSession = AVAudioSession.sharedInstance()
1440 | try audioSession.overrideOutputAudioPort(.speaker)
| `- error: 'speaker' is unavailable in macOS
1441 | _isSpeakerEnabled = true
1442 | Logger.log.i(message: "[ACM_RESET] TxClient:: Speaker set successfully, _isSpeakerEnabled: \(_isSpeakerEnabled)")
AVFAudio.AVAudioSession:28:14: note: 'speaker' has been explicitly marked unavailable here
26 | public static var None: AVAudioSession.PortOverride { get }
27 | @available(macOS, unavailable)
28 | case speaker
| `- note: 'speaker' has been explicitly marked unavailable here
29 | }
30 | public enum RouteChangeReason : UInt, @unchecked Sendable {
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1963:28: error: 'AVAudioSession' is unavailable in macOS
1961 | extension TxClient {
1962 | internal func resetAudioConfiguration() {
1963 | let audioSession = AVAudioSession.sharedInstance()
| `- error: 'AVAudioSession' is unavailable in macOS
1964 | do {
1965 | try audioSession.setCategory(
AVFAudio.AVAudioSession:2:12: note: 'AVAudioSession' has been explicitly marked unavailable here
1 | @available(macOS, unavailable)
2 | open class AVAudioSession : NSObject, @unchecked Sendable {
| `- note: 'AVAudioSession' has been explicitly marked unavailable here
3 | @available(macOS, unavailable)
4 | open class func sharedInstance() -> AVAudioSession
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1963:43: error: 'sharedInstance()' is unavailable in macOS
1961 | extension TxClient {
1962 | internal func resetAudioConfiguration() {
1963 | let audioSession = AVAudioSession.sharedInstance()
| `- error: 'sharedInstance()' is unavailable in macOS
1964 | do {
1965 | try audioSession.setCategory(
AVFAudio.AVAudioSession:4:21: note: 'sharedInstance()' has been explicitly marked unavailable here
2 | open class AVAudioSession : NSObject, @unchecked Sendable {
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/TelnyxRTC/Telnyx/TxClient.swift:1965:30: error: 'setCategory(_:mode:options:)' is unavailable in macOS
1963 | let audioSession = AVAudioSession.sharedInstance()
1964 | do {
1965 | try audioSession.setCategory(
| `- error: 'setCategory(_:mode:options:)' is unavailable in macOS
1966 | .playback,
1967 | mode: .default,
AVFAudio.AVAudioSession:18:15: note: 'setCategory(_:mode:options:)' has been explicitly marked unavailable here
16 | open func setCategory(_ category: AVAudioSession.Category, withOptions options: AVAudioSession.CategoryOptions = []) throws
17 | @available(macOS, unavailable)
18 | open func setCategory(_ category: AVAudioSession.Category, mode: AVAudioSession.Mode, options: AVAudioSession.CategoryOptions = []) throws
| `- note: 'setCategory(_:mode:options:)' has been explicitly marked unavailable here
19 | @available(macOS, unavailable)
20 | open func setCategory(_ category: AVAudioSession.Category, mode: AVAudioSession.Mode, policy: AVAudioSession.RouteSharingPolicy, options: AVAudioSession.CategoryOptions = []) throws
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1966:18: error: 'playback' is unavailable in macOS
1964 | do {
1965 | try audioSession.setCategory(
1966 | .playback,
| `- error: 'playback' is unavailable in macOS
1967 | mode: .default,
1968 | options: [.mixWithOthers]
AVFAudio.AVAudioSession.Category:7:23: note: 'playback' has been explicitly marked unavailable here
5 | public static let soloAmbient: AVAudioSession.Category
6 | @available(macOS, unavailable)
7 | public static let playback: AVAudioSession.Category
| `- note: 'playback' has been explicitly marked unavailable here
8 | @available(macOS, unavailable)
9 | public static let record: AVAudioSession.Category
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1967:24: error: 'default' is unavailable in macOS
1965 | try audioSession.setCategory(
1966 | .playback,
1967 | mode: .default,
| `- error: 'default' is unavailable in macOS
1968 | options: [.mixWithOthers]
1969 | )
AVFAudio.AVAudioSession.Mode:3:23: note: 'default' has been explicitly marked unavailable here
1 | extension AVAudioSession.Mode {
2 | @available(macOS, unavailable)
3 | public static let `default`: AVAudioSession.Mode
| `- note: 'default' has been explicitly marked unavailable here
4 | @available(macOS, unavailable)
5 | public static let voiceChat: AVAudioSession.Mode
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1976:31: error: cannot find 'RTCAudioSession' in scope
1974 |
1975 | internal func setupCorrectAudioConfiguration() {
1976 | let rtcAudioSession = RTCAudioSession.sharedInstance()
| `- error: cannot find 'RTCAudioSession' in scope
1977 | rtcAudioSession.lockForConfiguration()
1978 |
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1979:29: error: cannot find 'RTCAudioSessionConfiguration' in scope
1977 | rtcAudioSession.lockForConfiguration()
1978 |
1979 | let configuration = RTCAudioSessionConfiguration.webRTC()
| `- error: cannot find 'RTCAudioSessionConfiguration' in scope
1980 | configuration.categoryOptions = [
1981 | .duckOthers,
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1981:14: error: reference to member 'duckOthers' cannot be resolved without a contextual type
1979 | let configuration = RTCAudioSessionConfiguration.webRTC()
1980 | configuration.categoryOptions = [
1981 | .duckOthers,
| `- error: reference to member 'duckOthers' cannot be resolved without a contextual type
1982 | .allowBluetooth,
1983 | ]
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1982:14: error: reference to member 'allowBluetooth' cannot be resolved without a contextual type
1980 | configuration.categoryOptions = [
1981 | .duckOthers,
1982 | .allowBluetooth,
| `- error: reference to member 'allowBluetooth' cannot be resolved without a contextual type
1983 | ]
1984 |
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1995:31: error: cannot find 'RTCAudioSession' in scope
1993 |
1994 | internal func setAudioSessionActive(_ active: Bool) {
1995 | let rtcAudioSession = RTCAudioSession.sharedInstance()
| `- error: cannot find 'RTCAudioSession' in scope
1996 |
1997 | rtcAudioSession.lockForConfiguration()
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/Utils/FileLoger.swift:96:19: warning: value 'logData' was defined but never used; consider replacing with boolean test
94 |
95 | let logFileURL = FileLogger.shared.logFileURL
96 | guard let logData = try? Data(contentsOf: logFileURL) else {
| `- warning: value 'logData' was defined but never used; consider replacing with boolean test
97 | Logger.log.e(message: "Failed to read log file")
98 | return
[97/103] Compiling TelnyxRTC RTCMediaStreamTrack+Extension.swift
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/WebRTC/Peer.swift:89:36: error: cannot find 'RTCAudioSession' in scope
87 | //Audio
88 | private var localAudioTrack: RTCAudioTrack?
89 | private let rtcAudioSession = RTCAudioSession.sharedInstance()
| `- error: cannot find 'RTCAudioSession' in scope
90 |
91 | //Video
[98/103] Compiling TelnyxRTC RTCPeerConnectionState+Extension.swift
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/WebRTC/Peer.swift:89:36: error: cannot find 'RTCAudioSession' in scope
87 | //Audio
88 | private var localAudioTrack: RTCAudioTrack?
89 | private let rtcAudioSession = RTCAudioSession.sharedInstance()
| `- error: cannot find 'RTCAudioSession' in scope
90 |
91 | //Video
[99/103] Compiling TelnyxRTC RTCRtcpMuxPolicy+Extension.swift
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/WebRTC/Peer.swift:89:36: error: cannot find 'RTCAudioSession' in scope
87 | //Audio
88 | private var localAudioTrack: RTCAudioTrack?
89 | private let rtcAudioSession = RTCAudioSession.sharedInstance()
| `- error: cannot find 'RTCAudioSession' in scope
90 |
91 | //Video
[100/103] Compiling TelnyxRTC RTCSdpSemantics+Extension.swift
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/WebRTC/Peer.swift:89:36: error: cannot find 'RTCAudioSession' in scope
87 | //Audio
88 | private var localAudioTrack: RTCAudioTrack?
89 | private let rtcAudioSession = RTCAudioSession.sharedInstance()
| `- error: cannot find 'RTCAudioSession' in scope
90 |
91 | //Video
[101/103] Compiling TelnyxRTC RTCSignalingState+Extension.swift
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/WebRTC/Peer.swift:89:36: error: cannot find 'RTCAudioSession' in scope
87 | //Audio
88 | private var localAudioTrack: RTCAudioTrack?
89 | private let rtcAudioSession = RTCAudioSession.sharedInstance()
| `- error: cannot find 'RTCAudioSession' in scope
90 |
91 | //Video
[102/103] Compiling TelnyxRTC RTClsCertPolicy+Extension.swift
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/WebRTC/Peer.swift:89:36: error: cannot find 'RTCAudioSession' in scope
87 | //Audio
88 | private var localAudioTrack: RTCAudioTrack?
89 | private let rtcAudioSession = RTCAudioSession.sharedInstance()
| `- error: cannot find 'RTCAudioSession' in scope
90 |
91 | //Video
[103/103] Compiling TelnyxRTC Peer+IceRestart.swift
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/WebRTC/Peer.swift:89:36: error: cannot find 'RTCAudioSession' in scope
87 | //Audio
88 | private var localAudioTrack: RTCAudioTrack?
89 | private let rtcAudioSession = RTCAudioSession.sharedInstance()
| `- error: cannot find 'RTCAudioSession' in scope
90 |
91 | //Video
Fetching https://github.com/stasel/WebRTC.git
Fetching https://github.com/daltoniam/Starscream.git
[1/807] Fetching webrtc
[800/5915] Fetching webrtc, starscream
Fetched https://github.com/daltoniam/Starscream.git from cache (1.15s)
Fetched https://github.com/stasel/WebRTC.git from cache (1.15s)
Computing version for https://github.com/stasel/WebRTC.git
Computed https://github.com/stasel/WebRTC.git at 139.0.0 (0.56s)
Computing version for https://github.com/daltoniam/Starscream.git
Computed https://github.com/daltoniam/Starscream.git at 4.0.8 (0.56s)
Creating working copy for https://github.com/daltoniam/Starscream.git
Working copy of https://github.com/daltoniam/Starscream.git resolved at 4.0.8
Creating working copy for https://github.com/stasel/WebRTC.git
Working copy of https://github.com/stasel/WebRTC.git resolved at 139.0.0
[7723/41417101] Downloading https://github.com/stasel/WebRTC/releases/download/139.0.0/WebRTC-M139.xcframework.zip
Downloading binary artifact https://github.com/stasel/WebRTC/releases/download/139.0.0/WebRTC-M139.xcframework.zip
Downloaded https://github.com/stasel/WebRTC/releases/download/139.0.0/WebRTC-M139.xcframework.zip (2.48s)
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Info.plist
warning: 'starscream': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Starscream/Sources/Info.plist
BUILD FAILURE 6.0 macosSpm