The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build telnyx-webrtc-ios, reference 2.4.0 (bb237c), with Swift 6.0 for macOS (SPM) on 17 Nov 2025 21:23:54 UTC.

Build Command

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

Build Log

 540 |         NotificationCenter.default.removeObserver(self,
 541 |                                                   name: AVAudioSession.routeChangeNotification,
     |                                                         `- error: 'AVAudioSession' is unavailable in macOS
 542 |                                                   object: nil)
 543 |         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:541:72: error: 'routeChangeNotification' is unavailable in macOS
 539 |         // Remove audio route change observer
 540 |         NotificationCenter.default.removeObserver(self,
 541 |                                                   name: AVAudioSession.routeChangeNotification,
     |                                                                        `- error: 'routeChangeNotification' is unavailable in macOS
 542 |                                                   object: nil)
 543 |         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:1165:32: error: 'AVAudioSession' is unavailable in macOS
1163 |         Logger.log.i(message: "[ACM_RESET] TxClient:: setEarpiece() called")
1164 |         do {
1165 |             let audioSession = AVAudioSession.sharedInstance()
     |                                `- error: 'AVAudioSession' is unavailable in macOS
1166 |             try audioSession.overrideOutputAudioPort(.none)
1167 |             _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:1165:47: error: 'sharedInstance()' is unavailable in macOS
1163 |         Logger.log.i(message: "[ACM_RESET] TxClient:: setEarpiece() called")
1164 |         do {
1165 |             let audioSession = AVAudioSession.sharedInstance()
     |                                               `- error: 'sharedInstance()' is unavailable in macOS
1166 |             try audioSession.overrideOutputAudioPort(.none)
1167 |             _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:1166:30: error: 'overrideOutputAudioPort' is unavailable in macOS
1164 |         do {
1165 |             let audioSession = AVAudioSession.sharedInstance()
1166 |             try audioSession.overrideOutputAudioPort(.none)
     |                              `- error: 'overrideOutputAudioPort' is unavailable in macOS
1167 |             _isSpeakerEnabled = false
1168 |             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:1178:32: error: 'AVAudioSession' is unavailable in macOS
1176 |         Logger.log.i(message: "[ACM_RESET] TxClient:: setSpeaker() called")
1177 |         do {
1178 |             let audioSession = AVAudioSession.sharedInstance()
     |                                `- error: 'AVAudioSession' is unavailable in macOS
1179 |             try audioSession.overrideOutputAudioPort(.speaker)
1180 |             _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:1178:47: error: 'sharedInstance()' is unavailable in macOS
1176 |         Logger.log.i(message: "[ACM_RESET] TxClient:: setSpeaker() called")
1177 |         do {
1178 |             let audioSession = AVAudioSession.sharedInstance()
     |                                               `- error: 'sharedInstance()' is unavailable in macOS
1179 |             try audioSession.overrideOutputAudioPort(.speaker)
1180 |             _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:1179:30: error: 'overrideOutputAudioPort' is unavailable in macOS
1177 |         do {
1178 |             let audioSession = AVAudioSession.sharedInstance()
1179 |             try audioSession.overrideOutputAudioPort(.speaker)
     |                              `- error: 'overrideOutputAudioPort' is unavailable in macOS
1180 |             _isSpeakerEnabled = true
1181 |             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:1179:55: error: 'speaker' is unavailable in macOS
1177 |         do {
1178 |             let audioSession = AVAudioSession.sharedInstance()
1179 |             try audioSession.overrideOutputAudioPort(.speaker)
     |                                                       `- error: 'speaker' is unavailable in macOS
1180 |             _isSpeakerEnabled = true
1181 |             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:1644:28: error: 'AVAudioSession' is unavailable in macOS
1642 | extension TxClient {
1643 |     internal func resetAudioConfiguration() {
1644 |         let audioSession = AVAudioSession.sharedInstance()
     |                            `- error: 'AVAudioSession' is unavailable in macOS
1645 |         do {
1646 |             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:1644:43: error: 'sharedInstance()' is unavailable in macOS
1642 | extension TxClient {
1643 |     internal func resetAudioConfiguration() {
1644 |         let audioSession = AVAudioSession.sharedInstance()
     |                                           `- error: 'sharedInstance()' is unavailable in macOS
1645 |         do {
1646 |             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:1646:30: error: 'setCategory(_:mode:options:)' is unavailable in macOS
1644 |         let audioSession = AVAudioSession.sharedInstance()
1645 |         do {
1646 |             try audioSession.setCategory(
     |                              `- error: 'setCategory(_:mode:options:)' is unavailable in macOS
1647 |                 .playback,
1648 |                 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:1647:18: error: 'playback' is unavailable in macOS
1645 |         do {
1646 |             try audioSession.setCategory(
1647 |                 .playback,
     |                  `- error: 'playback' is unavailable in macOS
1648 |                 mode: .default,
1649 |                 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:1648:24: error: 'default' is unavailable in macOS
1646 |             try audioSession.setCategory(
1647 |                 .playback,
1648 |                 mode: .default,
     |                        `- error: 'default' is unavailable in macOS
1649 |                 options: [.mixWithOthers]
1650 |             )
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:1657:31: error: cannot find 'RTCAudioSession' in scope
1655 |
1656 |     internal func setupCorrectAudioConfiguration() {
1657 |         let rtcAudioSession = RTCAudioSession.sharedInstance()
     |                               `- error: cannot find 'RTCAudioSession' in scope
1658 |         rtcAudioSession.lockForConfiguration()
1659 |
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1660:29: error: cannot find 'RTCAudioSessionConfiguration' in scope
1658 |         rtcAudioSession.lockForConfiguration()
1659 |
1660 |         let configuration = RTCAudioSessionConfiguration.webRTC()
     |                             `- error: cannot find 'RTCAudioSessionConfiguration' in scope
1661 |         configuration.categoryOptions = [
1662 |             .duckOthers,
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1662:14: error: reference to member 'duckOthers' cannot be resolved without a contextual type
1660 |         let configuration = RTCAudioSessionConfiguration.webRTC()
1661 |         configuration.categoryOptions = [
1662 |             .duckOthers,
     |              `- error: reference to member 'duckOthers' cannot be resolved without a contextual type
1663 |             .allowBluetooth,
1664 |         ]
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1663:14: error: reference to member 'allowBluetooth' cannot be resolved without a contextual type
1661 |         configuration.categoryOptions = [
1662 |             .duckOthers,
1663 |             .allowBluetooth,
     |              `- error: reference to member 'allowBluetooth' cannot be resolved without a contextual type
1664 |         ]
1665 |
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1676:31: error: cannot find 'RTCAudioSession' in scope
1674 |
1675 |     internal func setAudioSessionActive(_ active: Bool) {
1676 |         let rtcAudioSession = RTCAudioSession.sharedInstance()
     |                               `- error: cannot find 'RTCAudioSession' in scope
1677 |
1678 |         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
[92/95] Compiling TelnyxRTC TxClientDelegate.swift
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/Services/Socket.swift:143:26: warning: immutable value 'data' was never used; consider replacing with '_' or removing it
141 |             break;
142 |
143 |         case .binary(let data):
    |                          `- warning: immutable value 'data' was never used; consider replacing with '_' or removing it
144 |             break
145 |         case .ping(_):
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:135:34: error: 'CXAnswerCallAction' is unavailable in macOS
 133 |     private var socket : Socket?
 134 |
 135 |     private var answerCallAction:CXAnswerCallAction? = nil
     |                                  `- error: 'CXAnswerCallAction' is unavailable in macOS
 136 |     private var endCallAction:CXEndCallAction? = nil
 137 |     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:136:31: error: 'CXEndCallAction' is unavailable in macOS
 134 |
 135 |     private var answerCallAction:CXAnswerCallAction? = nil
 136 |     private var endCallAction:CXEndCallAction? = nil
     |                               `- error: 'CXEndCallAction' is unavailable in macOS
 137 |     private var sessionId : String?
 138 |     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:219:50: error: 'AVAudioSession' is unavailable in macOS
 217 |     /// }
 218 |     /// ```
 219 |     public func enableAudioSession(audioSession: AVAudioSession) {
     |                                                  `- error: 'AVAudioSession' is unavailable in macOS
 220 |         setupCorrectAudioConfiguration()
 221 |         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:238:51: error: 'AVAudioSession' is unavailable in macOS
 236 |     /// }
 237 |     /// ```
 238 |     public func disableAudioSession(audioSession: AVAudioSession) {
     |                                                   `- error: 'AVAudioSession' is unavailable in macOS
 239 |         resetAudioConfiguration()
 240 |         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:245:24: error: 'AVAudioSession' is unavailable in macOS
 243 |     /// The current audio route configuration.
 244 |     /// This provides information about the active input and output ports.
 245 |     let currentRoute = AVAudioSession.sharedInstance().currentRoute
     |                        `- error: 'AVAudioSession' is unavailable in macOS
 246 |
 247 |     /// 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:245:39: error: 'sharedInstance()' is unavailable in macOS
 243 |     /// The current audio route configuration.
 244 |     /// This provides information about the active input and output ports.
 245 |     let currentRoute = AVAudioSession.sharedInstance().currentRoute
     |                                       `- error: 'sharedInstance()' is unavailable in macOS
 246 |
 247 |     /// 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:245:56: error: 'currentRoute' is unavailable in macOS
 243 |     /// The current audio route configuration.
 244 |     /// This provides information about the active input and output ports.
 245 |     let currentRoute = AVAudioSession.sharedInstance().currentRoute
     |                                                        `- error: 'currentRoute' is unavailable in macOS
 246 |
 247 |     /// 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:594:48: error: 'CXAnswerCallAction' is unavailable in macOS
 592 |     ///   - debug: (optional) Enable debug mode for call quality metrics and WebRTC statistics.
 593 |     ///     When enabled, real-time call quality metrics will be available through the call's `onCallQualityChange` callback.
 594 |     public func answerFromCallkit(answerAction:CXAnswerCallAction,customHeaders:[String:String] = [:], debug:Bool = false) {
     |                                                `- error: 'CXAnswerCallAction' is unavailable in macOS
 595 |         self.answerCallAction = answerAction
 596 |         ///answer call if currentPushCall is not nil
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:617:46: error: 'CXEndCallAction' is unavailable in macOS
 615 |
 616 |     /// To end and control callKit active and conn
 617 |     public func endCallFromCallkit(endAction:CXEndCallAction,callId:UUID? = nil) {
     |                                              `- error: 'CXEndCallAction' is unavailable in macOS
 618 |         self.endCallAction = endAction
 619 |         // Place the code you want to delay here
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:193:20: error: cannot find 'RTCAudioSession' in scope
 191 |     public var isAudioDeviceEnabled : Bool {
 192 |         get {
 193 |             return RTCAudioSession.sharedInstance().isAudioEnabled
     |                    `- error: cannot find 'RTCAudioSession' in scope
 194 |         }
 195 |         set {
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:197:17: error: cannot find 'RTCAudioSession' in scope
 195 |         set {
 196 |             if newValue {
 197 |                 RTCAudioSession.sharedInstance().audioSessionDidActivate(AVAudioSession.sharedInstance())
     |                 `- error: cannot find 'RTCAudioSession' in scope
 198 |             } else {
 199 |                 RTCAudioSession.sharedInstance().audioSessionDidDeactivate(AVAudioSession.sharedInstance())
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:199:17: error: cannot find 'RTCAudioSession' in scope
 197 |                 RTCAudioSession.sharedInstance().audioSessionDidActivate(AVAudioSession.sharedInstance())
 198 |             } else {
 199 |                 RTCAudioSession.sharedInstance().audioSessionDidDeactivate(AVAudioSession.sharedInstance())
     |                 `- error: cannot find 'RTCAudioSession' in scope
 200 |             }
 201 |             RTCAudioSession.sharedInstance().isAudioEnabled = newValue
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:201:13: error: cannot find 'RTCAudioSession' in scope
 199 |                 RTCAudioSession.sharedInstance().audioSessionDidDeactivate(AVAudioSession.sharedInstance())
 200 |             }
 201 |             RTCAudioSession.sharedInstance().isAudioEnabled = newValue
     |             `- error: cannot find 'RTCAudioSession' in scope
 202 |         }
 203 |     }
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:303:63: error: 'AVAudioSession' is unavailable in macOS
 301 |
 302 |         // Remove audio route change observer
 303 |         NotificationCenter.default.removeObserver(self, name: AVAudioSession.routeChangeNotification, object: nil)
     |                                                               `- error: 'AVAudioSession' is unavailable in macOS
 304 |
 305 |         // 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:303:78: error: 'routeChangeNotification' is unavailable in macOS
 301 |
 302 |         // Remove audio route change observer
 303 |         NotificationCenter.default.removeObserver(self, name: AVAudioSession.routeChangeNotification, object: nil)
     |                                                                              `- error: 'routeChangeNotification' is unavailable in macOS
 304 |
 305 |         // 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:323:19: error: 'AVAudioSession' is unavailable in macOS
 321 |             self,
 322 |             selector: #selector(handleAudioRouteChange),
 323 |             name: AVAudioSession.routeChangeNotification,
     |                   `- error: 'AVAudioSession' is unavailable in macOS
 324 |             object: nil)
 325 |
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:323:34: error: 'routeChangeNotification' is unavailable in macOS
 321 |             self,
 322 |             selector: #selector(handleAudioRouteChange),
 323 |             name: AVAudioSession.routeChangeNotification,
     |                                  `- error: 'routeChangeNotification' is unavailable in macOS
 324 |             object: nil)
 325 |
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:360:42: error: 'AVAudioSessionRouteChangeReasonKey' is unavailable in macOS
 358 |     @objc private func handleAudioRouteChange(notification: Notification) {
 359 |         guard let userInfo = notification.userInfo,
 360 |               let reasonValue = userInfo[AVAudioSessionRouteChangeReasonKey] as? UInt,
     |                                          `- error: 'AVAudioSessionRouteChangeReasonKey' is unavailable in macOS
 361 |               let reason = AVAudioSession.RouteChangeReason(rawValue: reasonValue) else {
 362 |             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:361:28: error: 'AVAudioSession' is unavailable in macOS
 359 |         guard let userInfo = notification.userInfo,
 360 |               let reasonValue = userInfo[AVAudioSessionRouteChangeReasonKey] as? UInt,
 361 |               let reason = AVAudioSession.RouteChangeReason(rawValue: reasonValue) else {
     |                            `- error: 'AVAudioSession' is unavailable in macOS
 362 |             return
 363 |         }
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:365:23: error: 'AVAudioSession' is unavailable in macOS
 363 |         }
 364 |
 365 |         let session = AVAudioSession.sharedInstance()
     |                       `- error: 'AVAudioSession' is unavailable in macOS
 366 |         let currentRoute = session.currentRoute
 367 |
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:365:38: error: 'sharedInstance()' is unavailable in macOS
 363 |         }
 364 |
 365 |         let session = AVAudioSession.sharedInstance()
     |                                      `- error: 'sharedInstance()' is unavailable in macOS
 366 |         let currentRoute = session.currentRoute
 367 |
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:366:36: error: 'currentRoute' is unavailable in macOS
 364 |
 365 |         let session = AVAudioSession.sharedInstance()
 366 |         let currentRoute = session.currentRoute
     |                                    `- error: 'currentRoute' is unavailable in macOS
 367 |
 368 |         // 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:369:41: error: 'outputs' is unavailable in macOS
 367 |
 368 |         // Ensure we have at least one output port
 369 |         guard let output = currentRoute.outputs.first else {
     |                                         `- error: 'outputs' is unavailable in macOS
 370 |             return
 371 |         }
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:373:85: error: 'portType' is unavailable in macOS
 371 |         }
 372 |
 373 |         Logger.log.i(message: "[ACM_RESET] TxClient:: Audio route changed: \(output.portType), reason: \(reason), isACMResetInProgress: \(isACMResetInProgress)")
     |                                                                                     `- error: 'portType' is unavailable in macOS
 374 |
 375 |         // 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:384:40: error: 'portType' is unavailable in macOS
 382 |             case .categoryChange, .override, .routeConfigurationChange:
 383 |                 // Update internal speaker state based on current output
 384 |                 let isSpeaker = output.portType == .builtInSpeaker
     |                                        `- error: 'portType' is unavailable in macOS
 385 |                 _isSpeakerEnabled = isSpeaker
 386 |
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:384:53: error: 'builtInSpeaker' is unavailable in macOS
 382 |             case .categoryChange, .override, .routeConfigurationChange:
 383 |                 // Update internal speaker state based on current output
 384 |                 let isSpeaker = output.portType == .builtInSpeaker
     |                                                     `- error: 'builtInSpeaker' is unavailable in macOS
 385 |                 _isSpeakerEnabled = isSpeaker
 386 |
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:393:50: error: 'portType' is unavailable in macOS
 391 |                     userInfo: [
 392 |                         "isSpeakerEnabled": isSpeaker,
 393 |                         "outputPortType": output.portType
     |                                                  `- error: 'portType' is unavailable in macOS
 394 |                     ]
 395 |                 )
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:459:32: error: 'AVAudioSession' is unavailable in macOS
 457 |
 458 |             // Verify if speaker is actually active
 459 |             let currentRoute = AVAudioSession.sharedInstance().currentRoute
     |                                `- error: 'AVAudioSession' is unavailable in macOS
 460 |             let isSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
 461 |
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:459:47: error: 'sharedInstance()' is unavailable in macOS
 457 |
 458 |             // Verify if speaker is actually active
 459 |             let currentRoute = AVAudioSession.sharedInstance().currentRoute
     |                                               `- error: 'sharedInstance()' is unavailable in macOS
 460 |             let isSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
 461 |
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:459:64: error: 'currentRoute' is unavailable in macOS
 457 |
 458 |             // Verify if speaker is actually active
 459 |             let currentRoute = AVAudioSession.sharedInstance().currentRoute
     |                                                                `- error: 'currentRoute' is unavailable in macOS
 460 |             let isSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
 461 |
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:460:48: error: 'outputs' is unavailable in macOS
 458 |             // Verify if speaker is actually active
 459 |             let currentRoute = AVAudioSession.sharedInstance().currentRoute
 460 |             let isSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
     |                                                `- error: 'outputs' is unavailable in macOS
 461 |
 462 |             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:460:70: error: 'portType' is unavailable in macOS
 458 |             // Verify if speaker is actually active
 459 |             let currentRoute = AVAudioSession.sharedInstance().currentRoute
 460 |             let isSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
     |                                                                      `- error: 'portType' is unavailable in macOS
 461 |
 462 |             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:460:83: error: 'builtInSpeaker' is unavailable in macOS
 458 |             // Verify if speaker is actually active
 459 |             let currentRoute = AVAudioSession.sharedInstance().currentRoute
 460 |             let isSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
     |                                                                                   `- error: 'builtInSpeaker' is unavailable in macOS
 461 |
 462 |             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:541:57: error: 'AVAudioSession' is unavailable in macOS
 539 |         // Remove audio route change observer
 540 |         NotificationCenter.default.removeObserver(self,
 541 |                                                   name: AVAudioSession.routeChangeNotification,
     |                                                         `- error: 'AVAudioSession' is unavailable in macOS
 542 |                                                   object: nil)
 543 |         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:541:72: error: 'routeChangeNotification' is unavailable in macOS
 539 |         // Remove audio route change observer
 540 |         NotificationCenter.default.removeObserver(self,
 541 |                                                   name: AVAudioSession.routeChangeNotification,
     |                                                                        `- error: 'routeChangeNotification' is unavailable in macOS
 542 |                                                   object: nil)
 543 |         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:1165:32: error: 'AVAudioSession' is unavailable in macOS
1163 |         Logger.log.i(message: "[ACM_RESET] TxClient:: setEarpiece() called")
1164 |         do {
1165 |             let audioSession = AVAudioSession.sharedInstance()
     |                                `- error: 'AVAudioSession' is unavailable in macOS
1166 |             try audioSession.overrideOutputAudioPort(.none)
1167 |             _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:1165:47: error: 'sharedInstance()' is unavailable in macOS
1163 |         Logger.log.i(message: "[ACM_RESET] TxClient:: setEarpiece() called")
1164 |         do {
1165 |             let audioSession = AVAudioSession.sharedInstance()
     |                                               `- error: 'sharedInstance()' is unavailable in macOS
1166 |             try audioSession.overrideOutputAudioPort(.none)
1167 |             _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:1166:30: error: 'overrideOutputAudioPort' is unavailable in macOS
1164 |         do {
1165 |             let audioSession = AVAudioSession.sharedInstance()
1166 |             try audioSession.overrideOutputAudioPort(.none)
     |                              `- error: 'overrideOutputAudioPort' is unavailable in macOS
1167 |             _isSpeakerEnabled = false
1168 |             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:1178:32: error: 'AVAudioSession' is unavailable in macOS
1176 |         Logger.log.i(message: "[ACM_RESET] TxClient:: setSpeaker() called")
1177 |         do {
1178 |             let audioSession = AVAudioSession.sharedInstance()
     |                                `- error: 'AVAudioSession' is unavailable in macOS
1179 |             try audioSession.overrideOutputAudioPort(.speaker)
1180 |             _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:1178:47: error: 'sharedInstance()' is unavailable in macOS
1176 |         Logger.log.i(message: "[ACM_RESET] TxClient:: setSpeaker() called")
1177 |         do {
1178 |             let audioSession = AVAudioSession.sharedInstance()
     |                                               `- error: 'sharedInstance()' is unavailable in macOS
1179 |             try audioSession.overrideOutputAudioPort(.speaker)
1180 |             _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:1179:30: error: 'overrideOutputAudioPort' is unavailable in macOS
1177 |         do {
1178 |             let audioSession = AVAudioSession.sharedInstance()
1179 |             try audioSession.overrideOutputAudioPort(.speaker)
     |                              `- error: 'overrideOutputAudioPort' is unavailable in macOS
1180 |             _isSpeakerEnabled = true
1181 |             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:1179:55: error: 'speaker' is unavailable in macOS
1177 |         do {
1178 |             let audioSession = AVAudioSession.sharedInstance()
1179 |             try audioSession.overrideOutputAudioPort(.speaker)
     |                                                       `- error: 'speaker' is unavailable in macOS
1180 |             _isSpeakerEnabled = true
1181 |             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:1644:28: error: 'AVAudioSession' is unavailable in macOS
1642 | extension TxClient {
1643 |     internal func resetAudioConfiguration() {
1644 |         let audioSession = AVAudioSession.sharedInstance()
     |                            `- error: 'AVAudioSession' is unavailable in macOS
1645 |         do {
1646 |             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:1644:43: error: 'sharedInstance()' is unavailable in macOS
1642 | extension TxClient {
1643 |     internal func resetAudioConfiguration() {
1644 |         let audioSession = AVAudioSession.sharedInstance()
     |                                           `- error: 'sharedInstance()' is unavailable in macOS
1645 |         do {
1646 |             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:1646:30: error: 'setCategory(_:mode:options:)' is unavailable in macOS
1644 |         let audioSession = AVAudioSession.sharedInstance()
1645 |         do {
1646 |             try audioSession.setCategory(
     |                              `- error: 'setCategory(_:mode:options:)' is unavailable in macOS
1647 |                 .playback,
1648 |                 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:1647:18: error: 'playback' is unavailable in macOS
1645 |         do {
1646 |             try audioSession.setCategory(
1647 |                 .playback,
     |                  `- error: 'playback' is unavailable in macOS
1648 |                 mode: .default,
1649 |                 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:1648:24: error: 'default' is unavailable in macOS
1646 |             try audioSession.setCategory(
1647 |                 .playback,
1648 |                 mode: .default,
     |                        `- error: 'default' is unavailable in macOS
1649 |                 options: [.mixWithOthers]
1650 |             )
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:1657:31: error: cannot find 'RTCAudioSession' in scope
1655 |
1656 |     internal func setupCorrectAudioConfiguration() {
1657 |         let rtcAudioSession = RTCAudioSession.sharedInstance()
     |                               `- error: cannot find 'RTCAudioSession' in scope
1658 |         rtcAudioSession.lockForConfiguration()
1659 |
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1660:29: error: cannot find 'RTCAudioSessionConfiguration' in scope
1658 |         rtcAudioSession.lockForConfiguration()
1659 |
1660 |         let configuration = RTCAudioSessionConfiguration.webRTC()
     |                             `- error: cannot find 'RTCAudioSessionConfiguration' in scope
1661 |         configuration.categoryOptions = [
1662 |             .duckOthers,
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1662:14: error: reference to member 'duckOthers' cannot be resolved without a contextual type
1660 |         let configuration = RTCAudioSessionConfiguration.webRTC()
1661 |         configuration.categoryOptions = [
1662 |             .duckOthers,
     |              `- error: reference to member 'duckOthers' cannot be resolved without a contextual type
1663 |             .allowBluetooth,
1664 |         ]
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1663:14: error: reference to member 'allowBluetooth' cannot be resolved without a contextual type
1661 |         configuration.categoryOptions = [
1662 |             .duckOthers,
1663 |             .allowBluetooth,
     |              `- error: reference to member 'allowBluetooth' cannot be resolved without a contextual type
1664 |         ]
1665 |
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1676:31: error: cannot find 'RTCAudioSession' in scope
1674 |
1675 |     internal func setAudioSessionActive(_ active: Bool) {
1676 |         let rtcAudioSession = RTCAudioSession.sharedInstance()
     |                               `- error: cannot find 'RTCAudioSession' in scope
1677 |
1678 |         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/95] Compiling TelnyxRTC TxClientSocketDelegate.swift
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/Services/Socket.swift:143:26: warning: immutable value 'data' was never used; consider replacing with '_' or removing it
141 |             break;
142 |
143 |         case .binary(let data):
    |                          `- warning: immutable value 'data' was never used; consider replacing with '_' or removing it
144 |             break
145 |         case .ping(_):
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:135:34: error: 'CXAnswerCallAction' is unavailable in macOS
 133 |     private var socket : Socket?
 134 |
 135 |     private var answerCallAction:CXAnswerCallAction? = nil
     |                                  `- error: 'CXAnswerCallAction' is unavailable in macOS
 136 |     private var endCallAction:CXEndCallAction? = nil
 137 |     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:136:31: error: 'CXEndCallAction' is unavailable in macOS
 134 |
 135 |     private var answerCallAction:CXAnswerCallAction? = nil
 136 |     private var endCallAction:CXEndCallAction? = nil
     |                               `- error: 'CXEndCallAction' is unavailable in macOS
 137 |     private var sessionId : String?
 138 |     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:219:50: error: 'AVAudioSession' is unavailable in macOS
 217 |     /// }
 218 |     /// ```
 219 |     public func enableAudioSession(audioSession: AVAudioSession) {
     |                                                  `- error: 'AVAudioSession' is unavailable in macOS
 220 |         setupCorrectAudioConfiguration()
 221 |         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:238:51: error: 'AVAudioSession' is unavailable in macOS
 236 |     /// }
 237 |     /// ```
 238 |     public func disableAudioSession(audioSession: AVAudioSession) {
     |                                                   `- error: 'AVAudioSession' is unavailable in macOS
 239 |         resetAudioConfiguration()
 240 |         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:245:24: error: 'AVAudioSession' is unavailable in macOS
 243 |     /// The current audio route configuration.
 244 |     /// This provides information about the active input and output ports.
 245 |     let currentRoute = AVAudioSession.sharedInstance().currentRoute
     |                        `- error: 'AVAudioSession' is unavailable in macOS
 246 |
 247 |     /// 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:245:39: error: 'sharedInstance()' is unavailable in macOS
 243 |     /// The current audio route configuration.
 244 |     /// This provides information about the active input and output ports.
 245 |     let currentRoute = AVAudioSession.sharedInstance().currentRoute
     |                                       `- error: 'sharedInstance()' is unavailable in macOS
 246 |
 247 |     /// 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:245:56: error: 'currentRoute' is unavailable in macOS
 243 |     /// The current audio route configuration.
 244 |     /// This provides information about the active input and output ports.
 245 |     let currentRoute = AVAudioSession.sharedInstance().currentRoute
     |                                                        `- error: 'currentRoute' is unavailable in macOS
 246 |
 247 |     /// 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:594:48: error: 'CXAnswerCallAction' is unavailable in macOS
 592 |     ///   - debug: (optional) Enable debug mode for call quality metrics and WebRTC statistics.
 593 |     ///     When enabled, real-time call quality metrics will be available through the call's `onCallQualityChange` callback.
 594 |     public func answerFromCallkit(answerAction:CXAnswerCallAction,customHeaders:[String:String] = [:], debug:Bool = false) {
     |                                                `- error: 'CXAnswerCallAction' is unavailable in macOS
 595 |         self.answerCallAction = answerAction
 596 |         ///answer call if currentPushCall is not nil
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:617:46: error: 'CXEndCallAction' is unavailable in macOS
 615 |
 616 |     /// To end and control callKit active and conn
 617 |     public func endCallFromCallkit(endAction:CXEndCallAction,callId:UUID? = nil) {
     |                                              `- error: 'CXEndCallAction' is unavailable in macOS
 618 |         self.endCallAction = endAction
 619 |         // Place the code you want to delay here
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:193:20: error: cannot find 'RTCAudioSession' in scope
 191 |     public var isAudioDeviceEnabled : Bool {
 192 |         get {
 193 |             return RTCAudioSession.sharedInstance().isAudioEnabled
     |                    `- error: cannot find 'RTCAudioSession' in scope
 194 |         }
 195 |         set {
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:197:17: error: cannot find 'RTCAudioSession' in scope
 195 |         set {
 196 |             if newValue {
 197 |                 RTCAudioSession.sharedInstance().audioSessionDidActivate(AVAudioSession.sharedInstance())
     |                 `- error: cannot find 'RTCAudioSession' in scope
 198 |             } else {
 199 |                 RTCAudioSession.sharedInstance().audioSessionDidDeactivate(AVAudioSession.sharedInstance())
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:199:17: error: cannot find 'RTCAudioSession' in scope
 197 |                 RTCAudioSession.sharedInstance().audioSessionDidActivate(AVAudioSession.sharedInstance())
 198 |             } else {
 199 |                 RTCAudioSession.sharedInstance().audioSessionDidDeactivate(AVAudioSession.sharedInstance())
     |                 `- error: cannot find 'RTCAudioSession' in scope
 200 |             }
 201 |             RTCAudioSession.sharedInstance().isAudioEnabled = newValue
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:201:13: error: cannot find 'RTCAudioSession' in scope
 199 |                 RTCAudioSession.sharedInstance().audioSessionDidDeactivate(AVAudioSession.sharedInstance())
 200 |             }
 201 |             RTCAudioSession.sharedInstance().isAudioEnabled = newValue
     |             `- error: cannot find 'RTCAudioSession' in scope
 202 |         }
 203 |     }
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:303:63: error: 'AVAudioSession' is unavailable in macOS
 301 |
 302 |         // Remove audio route change observer
 303 |         NotificationCenter.default.removeObserver(self, name: AVAudioSession.routeChangeNotification, object: nil)
     |                                                               `- error: 'AVAudioSession' is unavailable in macOS
 304 |
 305 |         // 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:303:78: error: 'routeChangeNotification' is unavailable in macOS
 301 |
 302 |         // Remove audio route change observer
 303 |         NotificationCenter.default.removeObserver(self, name: AVAudioSession.routeChangeNotification, object: nil)
     |                                                                              `- error: 'routeChangeNotification' is unavailable in macOS
 304 |
 305 |         // 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:323:19: error: 'AVAudioSession' is unavailable in macOS
 321 |             self,
 322 |             selector: #selector(handleAudioRouteChange),
 323 |             name: AVAudioSession.routeChangeNotification,
     |                   `- error: 'AVAudioSession' is unavailable in macOS
 324 |             object: nil)
 325 |
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:323:34: error: 'routeChangeNotification' is unavailable in macOS
 321 |             self,
 322 |             selector: #selector(handleAudioRouteChange),
 323 |             name: AVAudioSession.routeChangeNotification,
     |                                  `- error: 'routeChangeNotification' is unavailable in macOS
 324 |             object: nil)
 325 |
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:360:42: error: 'AVAudioSessionRouteChangeReasonKey' is unavailable in macOS
 358 |     @objc private func handleAudioRouteChange(notification: Notification) {
 359 |         guard let userInfo = notification.userInfo,
 360 |               let reasonValue = userInfo[AVAudioSessionRouteChangeReasonKey] as? UInt,
     |                                          `- error: 'AVAudioSessionRouteChangeReasonKey' is unavailable in macOS
 361 |               let reason = AVAudioSession.RouteChangeReason(rawValue: reasonValue) else {
 362 |             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:361:28: error: 'AVAudioSession' is unavailable in macOS
 359 |         guard let userInfo = notification.userInfo,
 360 |               let reasonValue = userInfo[AVAudioSessionRouteChangeReasonKey] as? UInt,
 361 |               let reason = AVAudioSession.RouteChangeReason(rawValue: reasonValue) else {
     |                            `- error: 'AVAudioSession' is unavailable in macOS
 362 |             return
 363 |         }
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:365:23: error: 'AVAudioSession' is unavailable in macOS
 363 |         }
 364 |
 365 |         let session = AVAudioSession.sharedInstance()
     |                       `- error: 'AVAudioSession' is unavailable in macOS
 366 |         let currentRoute = session.currentRoute
 367 |
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:365:38: error: 'sharedInstance()' is unavailable in macOS
 363 |         }
 364 |
 365 |         let session = AVAudioSession.sharedInstance()
     |                                      `- error: 'sharedInstance()' is unavailable in macOS
 366 |         let currentRoute = session.currentRoute
 367 |
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:366:36: error: 'currentRoute' is unavailable in macOS
 364 |
 365 |         let session = AVAudioSession.sharedInstance()
 366 |         let currentRoute = session.currentRoute
     |                                    `- error: 'currentRoute' is unavailable in macOS
 367 |
 368 |         // 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:369:41: error: 'outputs' is unavailable in macOS
 367 |
 368 |         // Ensure we have at least one output port
 369 |         guard let output = currentRoute.outputs.first else {
     |                                         `- error: 'outputs' is unavailable in macOS
 370 |             return
 371 |         }
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:373:85: error: 'portType' is unavailable in macOS
 371 |         }
 372 |
 373 |         Logger.log.i(message: "[ACM_RESET] TxClient:: Audio route changed: \(output.portType), reason: \(reason), isACMResetInProgress: \(isACMResetInProgress)")
     |                                                                                     `- error: 'portType' is unavailable in macOS
 374 |
 375 |         // 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:384:40: error: 'portType' is unavailable in macOS
 382 |             case .categoryChange, .override, .routeConfigurationChange:
 383 |                 // Update internal speaker state based on current output
 384 |                 let isSpeaker = output.portType == .builtInSpeaker
     |                                        `- error: 'portType' is unavailable in macOS
 385 |                 _isSpeakerEnabled = isSpeaker
 386 |
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:384:53: error: 'builtInSpeaker' is unavailable in macOS
 382 |             case .categoryChange, .override, .routeConfigurationChange:
 383 |                 // Update internal speaker state based on current output
 384 |                 let isSpeaker = output.portType == .builtInSpeaker
     |                                                     `- error: 'builtInSpeaker' is unavailable in macOS
 385 |                 _isSpeakerEnabled = isSpeaker
 386 |
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:393:50: error: 'portType' is unavailable in macOS
 391 |                     userInfo: [
 392 |                         "isSpeakerEnabled": isSpeaker,
 393 |                         "outputPortType": output.portType
     |                                                  `- error: 'portType' is unavailable in macOS
 394 |                     ]
 395 |                 )
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:459:32: error: 'AVAudioSession' is unavailable in macOS
 457 |
 458 |             // Verify if speaker is actually active
 459 |             let currentRoute = AVAudioSession.sharedInstance().currentRoute
     |                                `- error: 'AVAudioSession' is unavailable in macOS
 460 |             let isSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
 461 |
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:459:47: error: 'sharedInstance()' is unavailable in macOS
 457 |
 458 |             // Verify if speaker is actually active
 459 |             let currentRoute = AVAudioSession.sharedInstance().currentRoute
     |                                               `- error: 'sharedInstance()' is unavailable in macOS
 460 |             let isSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
 461 |
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:459:64: error: 'currentRoute' is unavailable in macOS
 457 |
 458 |             // Verify if speaker is actually active
 459 |             let currentRoute = AVAudioSession.sharedInstance().currentRoute
     |                                                                `- error: 'currentRoute' is unavailable in macOS
 460 |             let isSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
 461 |
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:460:48: error: 'outputs' is unavailable in macOS
 458 |             // Verify if speaker is actually active
 459 |             let currentRoute = AVAudioSession.sharedInstance().currentRoute
 460 |             let isSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
     |                                                `- error: 'outputs' is unavailable in macOS
 461 |
 462 |             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:460:70: error: 'portType' is unavailable in macOS
 458 |             // Verify if speaker is actually active
 459 |             let currentRoute = AVAudioSession.sharedInstance().currentRoute
 460 |             let isSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
     |                                                                      `- error: 'portType' is unavailable in macOS
 461 |
 462 |             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:460:83: error: 'builtInSpeaker' is unavailable in macOS
 458 |             // Verify if speaker is actually active
 459 |             let currentRoute = AVAudioSession.sharedInstance().currentRoute
 460 |             let isSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
     |                                                                                   `- error: 'builtInSpeaker' is unavailable in macOS
 461 |
 462 |             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:541:57: error: 'AVAudioSession' is unavailable in macOS
 539 |         // Remove audio route change observer
 540 |         NotificationCenter.default.removeObserver(self,
 541 |                                                   name: AVAudioSession.routeChangeNotification,
     |                                                         `- error: 'AVAudioSession' is unavailable in macOS
 542 |                                                   object: nil)
 543 |         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:541:72: error: 'routeChangeNotification' is unavailable in macOS
 539 |         // Remove audio route change observer
 540 |         NotificationCenter.default.removeObserver(self,
 541 |                                                   name: AVAudioSession.routeChangeNotification,
     |                                                                        `- error: 'routeChangeNotification' is unavailable in macOS
 542 |                                                   object: nil)
 543 |         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:1165:32: error: 'AVAudioSession' is unavailable in macOS
1163 |         Logger.log.i(message: "[ACM_RESET] TxClient:: setEarpiece() called")
1164 |         do {
1165 |             let audioSession = AVAudioSession.sharedInstance()
     |                                `- error: 'AVAudioSession' is unavailable in macOS
1166 |             try audioSession.overrideOutputAudioPort(.none)
1167 |             _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:1165:47: error: 'sharedInstance()' is unavailable in macOS
1163 |         Logger.log.i(message: "[ACM_RESET] TxClient:: setEarpiece() called")
1164 |         do {
1165 |             let audioSession = AVAudioSession.sharedInstance()
     |                                               `- error: 'sharedInstance()' is unavailable in macOS
1166 |             try audioSession.overrideOutputAudioPort(.none)
1167 |             _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:1166:30: error: 'overrideOutputAudioPort' is unavailable in macOS
1164 |         do {
1165 |             let audioSession = AVAudioSession.sharedInstance()
1166 |             try audioSession.overrideOutputAudioPort(.none)
     |                              `- error: 'overrideOutputAudioPort' is unavailable in macOS
1167 |             _isSpeakerEnabled = false
1168 |             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:1178:32: error: 'AVAudioSession' is unavailable in macOS
1176 |         Logger.log.i(message: "[ACM_RESET] TxClient:: setSpeaker() called")
1177 |         do {
1178 |             let audioSession = AVAudioSession.sharedInstance()
     |                                `- error: 'AVAudioSession' is unavailable in macOS
1179 |             try audioSession.overrideOutputAudioPort(.speaker)
1180 |             _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:1178:47: error: 'sharedInstance()' is unavailable in macOS
1176 |         Logger.log.i(message: "[ACM_RESET] TxClient:: setSpeaker() called")
1177 |         do {
1178 |             let audioSession = AVAudioSession.sharedInstance()
     |                                               `- error: 'sharedInstance()' is unavailable in macOS
1179 |             try audioSession.overrideOutputAudioPort(.speaker)
1180 |             _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:1179:30: error: 'overrideOutputAudioPort' is unavailable in macOS
1177 |         do {
1178 |             let audioSession = AVAudioSession.sharedInstance()
1179 |             try audioSession.overrideOutputAudioPort(.speaker)
     |                              `- error: 'overrideOutputAudioPort' is unavailable in macOS
1180 |             _isSpeakerEnabled = true
1181 |             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:1179:55: error: 'speaker' is unavailable in macOS
1177 |         do {
1178 |             let audioSession = AVAudioSession.sharedInstance()
1179 |             try audioSession.overrideOutputAudioPort(.speaker)
     |                                                       `- error: 'speaker' is unavailable in macOS
1180 |             _isSpeakerEnabled = true
1181 |             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:1644:28: error: 'AVAudioSession' is unavailable in macOS
1642 | extension TxClient {
1643 |     internal func resetAudioConfiguration() {
1644 |         let audioSession = AVAudioSession.sharedInstance()
     |                            `- error: 'AVAudioSession' is unavailable in macOS
1645 |         do {
1646 |             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:1644:43: error: 'sharedInstance()' is unavailable in macOS
1642 | extension TxClient {
1643 |     internal func resetAudioConfiguration() {
1644 |         let audioSession = AVAudioSession.sharedInstance()
     |                                           `- error: 'sharedInstance()' is unavailable in macOS
1645 |         do {
1646 |             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:1646:30: error: 'setCategory(_:mode:options:)' is unavailable in macOS
1644 |         let audioSession = AVAudioSession.sharedInstance()
1645 |         do {
1646 |             try audioSession.setCategory(
     |                              `- error: 'setCategory(_:mode:options:)' is unavailable in macOS
1647 |                 .playback,
1648 |                 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:1647:18: error: 'playback' is unavailable in macOS
1645 |         do {
1646 |             try audioSession.setCategory(
1647 |                 .playback,
     |                  `- error: 'playback' is unavailable in macOS
1648 |                 mode: .default,
1649 |                 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:1648:24: error: 'default' is unavailable in macOS
1646 |             try audioSession.setCategory(
1647 |                 .playback,
1648 |                 mode: .default,
     |                        `- error: 'default' is unavailable in macOS
1649 |                 options: [.mixWithOthers]
1650 |             )
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:1657:31: error: cannot find 'RTCAudioSession' in scope
1655 |
1656 |     internal func setupCorrectAudioConfiguration() {
1657 |         let rtcAudioSession = RTCAudioSession.sharedInstance()
     |                               `- error: cannot find 'RTCAudioSession' in scope
1658 |         rtcAudioSession.lockForConfiguration()
1659 |
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1660:29: error: cannot find 'RTCAudioSessionConfiguration' in scope
1658 |         rtcAudioSession.lockForConfiguration()
1659 |
1660 |         let configuration = RTCAudioSessionConfiguration.webRTC()
     |                             `- error: cannot find 'RTCAudioSessionConfiguration' in scope
1661 |         configuration.categoryOptions = [
1662 |             .duckOthers,
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1662:14: error: reference to member 'duckOthers' cannot be resolved without a contextual type
1660 |         let configuration = RTCAudioSessionConfiguration.webRTC()
1661 |         configuration.categoryOptions = [
1662 |             .duckOthers,
     |              `- error: reference to member 'duckOthers' cannot be resolved without a contextual type
1663 |             .allowBluetooth,
1664 |         ]
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1663:14: error: reference to member 'allowBluetooth' cannot be resolved without a contextual type
1661 |         configuration.categoryOptions = [
1662 |             .duckOthers,
1663 |             .allowBluetooth,
     |              `- error: reference to member 'allowBluetooth' cannot be resolved without a contextual type
1664 |         ]
1665 |
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1676:31: error: cannot find 'RTCAudioSession' in scope
1674 |
1675 |     internal func setAudioSessionActive(_ active: Bool) {
1676 |         let rtcAudioSession = RTCAudioSession.sharedInstance()
     |                               `- error: cannot find 'RTCAudioSession' in scope
1677 |
1678 |         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/95] Compiling TelnyxRTC FileLoger.swift
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/Services/Socket.swift:143:26: warning: immutable value 'data' was never used; consider replacing with '_' or removing it
141 |             break;
142 |
143 |         case .binary(let data):
    |                          `- warning: immutable value 'data' was never used; consider replacing with '_' or removing it
144 |             break
145 |         case .ping(_):
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:135:34: error: 'CXAnswerCallAction' is unavailable in macOS
 133 |     private var socket : Socket?
 134 |
 135 |     private var answerCallAction:CXAnswerCallAction? = nil
     |                                  `- error: 'CXAnswerCallAction' is unavailable in macOS
 136 |     private var endCallAction:CXEndCallAction? = nil
 137 |     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:136:31: error: 'CXEndCallAction' is unavailable in macOS
 134 |
 135 |     private var answerCallAction:CXAnswerCallAction? = nil
 136 |     private var endCallAction:CXEndCallAction? = nil
     |                               `- error: 'CXEndCallAction' is unavailable in macOS
 137 |     private var sessionId : String?
 138 |     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:219:50: error: 'AVAudioSession' is unavailable in macOS
 217 |     /// }
 218 |     /// ```
 219 |     public func enableAudioSession(audioSession: AVAudioSession) {
     |                                                  `- error: 'AVAudioSession' is unavailable in macOS
 220 |         setupCorrectAudioConfiguration()
 221 |         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:238:51: error: 'AVAudioSession' is unavailable in macOS
 236 |     /// }
 237 |     /// ```
 238 |     public func disableAudioSession(audioSession: AVAudioSession) {
     |                                                   `- error: 'AVAudioSession' is unavailable in macOS
 239 |         resetAudioConfiguration()
 240 |         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:245:24: error: 'AVAudioSession' is unavailable in macOS
 243 |     /// The current audio route configuration.
 244 |     /// This provides information about the active input and output ports.
 245 |     let currentRoute = AVAudioSession.sharedInstance().currentRoute
     |                        `- error: 'AVAudioSession' is unavailable in macOS
 246 |
 247 |     /// 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:245:39: error: 'sharedInstance()' is unavailable in macOS
 243 |     /// The current audio route configuration.
 244 |     /// This provides information about the active input and output ports.
 245 |     let currentRoute = AVAudioSession.sharedInstance().currentRoute
     |                                       `- error: 'sharedInstance()' is unavailable in macOS
 246 |
 247 |     /// 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:245:56: error: 'currentRoute' is unavailable in macOS
 243 |     /// The current audio route configuration.
 244 |     /// This provides information about the active input and output ports.
 245 |     let currentRoute = AVAudioSession.sharedInstance().currentRoute
     |                                                        `- error: 'currentRoute' is unavailable in macOS
 246 |
 247 |     /// 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:594:48: error: 'CXAnswerCallAction' is unavailable in macOS
 592 |     ///   - debug: (optional) Enable debug mode for call quality metrics and WebRTC statistics.
 593 |     ///     When enabled, real-time call quality metrics will be available through the call's `onCallQualityChange` callback.
 594 |     public func answerFromCallkit(answerAction:CXAnswerCallAction,customHeaders:[String:String] = [:], debug:Bool = false) {
     |                                                `- error: 'CXAnswerCallAction' is unavailable in macOS
 595 |         self.answerCallAction = answerAction
 596 |         ///answer call if currentPushCall is not nil
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:617:46: error: 'CXEndCallAction' is unavailable in macOS
 615 |
 616 |     /// To end and control callKit active and conn
 617 |     public func endCallFromCallkit(endAction:CXEndCallAction,callId:UUID? = nil) {
     |                                              `- error: 'CXEndCallAction' is unavailable in macOS
 618 |         self.endCallAction = endAction
 619 |         // Place the code you want to delay here
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:193:20: error: cannot find 'RTCAudioSession' in scope
 191 |     public var isAudioDeviceEnabled : Bool {
 192 |         get {
 193 |             return RTCAudioSession.sharedInstance().isAudioEnabled
     |                    `- error: cannot find 'RTCAudioSession' in scope
 194 |         }
 195 |         set {
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:197:17: error: cannot find 'RTCAudioSession' in scope
 195 |         set {
 196 |             if newValue {
 197 |                 RTCAudioSession.sharedInstance().audioSessionDidActivate(AVAudioSession.sharedInstance())
     |                 `- error: cannot find 'RTCAudioSession' in scope
 198 |             } else {
 199 |                 RTCAudioSession.sharedInstance().audioSessionDidDeactivate(AVAudioSession.sharedInstance())
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:199:17: error: cannot find 'RTCAudioSession' in scope
 197 |                 RTCAudioSession.sharedInstance().audioSessionDidActivate(AVAudioSession.sharedInstance())
 198 |             } else {
 199 |                 RTCAudioSession.sharedInstance().audioSessionDidDeactivate(AVAudioSession.sharedInstance())
     |                 `- error: cannot find 'RTCAudioSession' in scope
 200 |             }
 201 |             RTCAudioSession.sharedInstance().isAudioEnabled = newValue
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:201:13: error: cannot find 'RTCAudioSession' in scope
 199 |                 RTCAudioSession.sharedInstance().audioSessionDidDeactivate(AVAudioSession.sharedInstance())
 200 |             }
 201 |             RTCAudioSession.sharedInstance().isAudioEnabled = newValue
     |             `- error: cannot find 'RTCAudioSession' in scope
 202 |         }
 203 |     }
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:303:63: error: 'AVAudioSession' is unavailable in macOS
 301 |
 302 |         // Remove audio route change observer
 303 |         NotificationCenter.default.removeObserver(self, name: AVAudioSession.routeChangeNotification, object: nil)
     |                                                               `- error: 'AVAudioSession' is unavailable in macOS
 304 |
 305 |         // 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:303:78: error: 'routeChangeNotification' is unavailable in macOS
 301 |
 302 |         // Remove audio route change observer
 303 |         NotificationCenter.default.removeObserver(self, name: AVAudioSession.routeChangeNotification, object: nil)
     |                                                                              `- error: 'routeChangeNotification' is unavailable in macOS
 304 |
 305 |         // 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:323:19: error: 'AVAudioSession' is unavailable in macOS
 321 |             self,
 322 |             selector: #selector(handleAudioRouteChange),
 323 |             name: AVAudioSession.routeChangeNotification,
     |                   `- error: 'AVAudioSession' is unavailable in macOS
 324 |             object: nil)
 325 |
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:323:34: error: 'routeChangeNotification' is unavailable in macOS
 321 |             self,
 322 |             selector: #selector(handleAudioRouteChange),
 323 |             name: AVAudioSession.routeChangeNotification,
     |                                  `- error: 'routeChangeNotification' is unavailable in macOS
 324 |             object: nil)
 325 |
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:360:42: error: 'AVAudioSessionRouteChangeReasonKey' is unavailable in macOS
 358 |     @objc private func handleAudioRouteChange(notification: Notification) {
 359 |         guard let userInfo = notification.userInfo,
 360 |               let reasonValue = userInfo[AVAudioSessionRouteChangeReasonKey] as? UInt,
     |                                          `- error: 'AVAudioSessionRouteChangeReasonKey' is unavailable in macOS
 361 |               let reason = AVAudioSession.RouteChangeReason(rawValue: reasonValue) else {
 362 |             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:361:28: error: 'AVAudioSession' is unavailable in macOS
 359 |         guard let userInfo = notification.userInfo,
 360 |               let reasonValue = userInfo[AVAudioSessionRouteChangeReasonKey] as? UInt,
 361 |               let reason = AVAudioSession.RouteChangeReason(rawValue: reasonValue) else {
     |                            `- error: 'AVAudioSession' is unavailable in macOS
 362 |             return
 363 |         }
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:365:23: error: 'AVAudioSession' is unavailable in macOS
 363 |         }
 364 |
 365 |         let session = AVAudioSession.sharedInstance()
     |                       `- error: 'AVAudioSession' is unavailable in macOS
 366 |         let currentRoute = session.currentRoute
 367 |
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:365:38: error: 'sharedInstance()' is unavailable in macOS
 363 |         }
 364 |
 365 |         let session = AVAudioSession.sharedInstance()
     |                                      `- error: 'sharedInstance()' is unavailable in macOS
 366 |         let currentRoute = session.currentRoute
 367 |
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:366:36: error: 'currentRoute' is unavailable in macOS
 364 |
 365 |         let session = AVAudioSession.sharedInstance()
 366 |         let currentRoute = session.currentRoute
     |                                    `- error: 'currentRoute' is unavailable in macOS
 367 |
 368 |         // 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:369:41: error: 'outputs' is unavailable in macOS
 367 |
 368 |         // Ensure we have at least one output port
 369 |         guard let output = currentRoute.outputs.first else {
     |                                         `- error: 'outputs' is unavailable in macOS
 370 |             return
 371 |         }
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:373:85: error: 'portType' is unavailable in macOS
 371 |         }
 372 |
 373 |         Logger.log.i(message: "[ACM_RESET] TxClient:: Audio route changed: \(output.portType), reason: \(reason), isACMResetInProgress: \(isACMResetInProgress)")
     |                                                                                     `- error: 'portType' is unavailable in macOS
 374 |
 375 |         // 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:384:40: error: 'portType' is unavailable in macOS
 382 |             case .categoryChange, .override, .routeConfigurationChange:
 383 |                 // Update internal speaker state based on current output
 384 |                 let isSpeaker = output.portType == .builtInSpeaker
     |                                        `- error: 'portType' is unavailable in macOS
 385 |                 _isSpeakerEnabled = isSpeaker
 386 |
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:384:53: error: 'builtInSpeaker' is unavailable in macOS
 382 |             case .categoryChange, .override, .routeConfigurationChange:
 383 |                 // Update internal speaker state based on current output
 384 |                 let isSpeaker = output.portType == .builtInSpeaker
     |                                                     `- error: 'builtInSpeaker' is unavailable in macOS
 385 |                 _isSpeakerEnabled = isSpeaker
 386 |
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:393:50: error: 'portType' is unavailable in macOS
 391 |                     userInfo: [
 392 |                         "isSpeakerEnabled": isSpeaker,
 393 |                         "outputPortType": output.portType
     |                                                  `- error: 'portType' is unavailable in macOS
 394 |                     ]
 395 |                 )
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:459:32: error: 'AVAudioSession' is unavailable in macOS
 457 |
 458 |             // Verify if speaker is actually active
 459 |             let currentRoute = AVAudioSession.sharedInstance().currentRoute
     |                                `- error: 'AVAudioSession' is unavailable in macOS
 460 |             let isSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
 461 |
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:459:47: error: 'sharedInstance()' is unavailable in macOS
 457 |
 458 |             // Verify if speaker is actually active
 459 |             let currentRoute = AVAudioSession.sharedInstance().currentRoute
     |                                               `- error: 'sharedInstance()' is unavailable in macOS
 460 |             let isSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
 461 |
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:459:64: error: 'currentRoute' is unavailable in macOS
 457 |
 458 |             // Verify if speaker is actually active
 459 |             let currentRoute = AVAudioSession.sharedInstance().currentRoute
     |                                                                `- error: 'currentRoute' is unavailable in macOS
 460 |             let isSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
 461 |
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:460:48: error: 'outputs' is unavailable in macOS
 458 |             // Verify if speaker is actually active
 459 |             let currentRoute = AVAudioSession.sharedInstance().currentRoute
 460 |             let isSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
     |                                                `- error: 'outputs' is unavailable in macOS
 461 |
 462 |             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:460:70: error: 'portType' is unavailable in macOS
 458 |             // Verify if speaker is actually active
 459 |             let currentRoute = AVAudioSession.sharedInstance().currentRoute
 460 |             let isSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
     |                                                                      `- error: 'portType' is unavailable in macOS
 461 |
 462 |             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:460:83: error: 'builtInSpeaker' is unavailable in macOS
 458 |             // Verify if speaker is actually active
 459 |             let currentRoute = AVAudioSession.sharedInstance().currentRoute
 460 |             let isSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
     |                                                                                   `- error: 'builtInSpeaker' is unavailable in macOS
 461 |
 462 |             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:541:57: error: 'AVAudioSession' is unavailable in macOS
 539 |         // Remove audio route change observer
 540 |         NotificationCenter.default.removeObserver(self,
 541 |                                                   name: AVAudioSession.routeChangeNotification,
     |                                                         `- error: 'AVAudioSession' is unavailable in macOS
 542 |                                                   object: nil)
 543 |         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:541:72: error: 'routeChangeNotification' is unavailable in macOS
 539 |         // Remove audio route change observer
 540 |         NotificationCenter.default.removeObserver(self,
 541 |                                                   name: AVAudioSession.routeChangeNotification,
     |                                                                        `- error: 'routeChangeNotification' is unavailable in macOS
 542 |                                                   object: nil)
 543 |         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:1165:32: error: 'AVAudioSession' is unavailable in macOS
1163 |         Logger.log.i(message: "[ACM_RESET] TxClient:: setEarpiece() called")
1164 |         do {
1165 |             let audioSession = AVAudioSession.sharedInstance()
     |                                `- error: 'AVAudioSession' is unavailable in macOS
1166 |             try audioSession.overrideOutputAudioPort(.none)
1167 |             _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:1165:47: error: 'sharedInstance()' is unavailable in macOS
1163 |         Logger.log.i(message: "[ACM_RESET] TxClient:: setEarpiece() called")
1164 |         do {
1165 |             let audioSession = AVAudioSession.sharedInstance()
     |                                               `- error: 'sharedInstance()' is unavailable in macOS
1166 |             try audioSession.overrideOutputAudioPort(.none)
1167 |             _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:1166:30: error: 'overrideOutputAudioPort' is unavailable in macOS
1164 |         do {
1165 |             let audioSession = AVAudioSession.sharedInstance()
1166 |             try audioSession.overrideOutputAudioPort(.none)
     |                              `- error: 'overrideOutputAudioPort' is unavailable in macOS
1167 |             _isSpeakerEnabled = false
1168 |             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:1178:32: error: 'AVAudioSession' is unavailable in macOS
1176 |         Logger.log.i(message: "[ACM_RESET] TxClient:: setSpeaker() called")
1177 |         do {
1178 |             let audioSession = AVAudioSession.sharedInstance()
     |                                `- error: 'AVAudioSession' is unavailable in macOS
1179 |             try audioSession.overrideOutputAudioPort(.speaker)
1180 |             _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:1178:47: error: 'sharedInstance()' is unavailable in macOS
1176 |         Logger.log.i(message: "[ACM_RESET] TxClient:: setSpeaker() called")
1177 |         do {
1178 |             let audioSession = AVAudioSession.sharedInstance()
     |                                               `- error: 'sharedInstance()' is unavailable in macOS
1179 |             try audioSession.overrideOutputAudioPort(.speaker)
1180 |             _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:1179:30: error: 'overrideOutputAudioPort' is unavailable in macOS
1177 |         do {
1178 |             let audioSession = AVAudioSession.sharedInstance()
1179 |             try audioSession.overrideOutputAudioPort(.speaker)
     |                              `- error: 'overrideOutputAudioPort' is unavailable in macOS
1180 |             _isSpeakerEnabled = true
1181 |             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:1179:55: error: 'speaker' is unavailable in macOS
1177 |         do {
1178 |             let audioSession = AVAudioSession.sharedInstance()
1179 |             try audioSession.overrideOutputAudioPort(.speaker)
     |                                                       `- error: 'speaker' is unavailable in macOS
1180 |             _isSpeakerEnabled = true
1181 |             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:1644:28: error: 'AVAudioSession' is unavailable in macOS
1642 | extension TxClient {
1643 |     internal func resetAudioConfiguration() {
1644 |         let audioSession = AVAudioSession.sharedInstance()
     |                            `- error: 'AVAudioSession' is unavailable in macOS
1645 |         do {
1646 |             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:1644:43: error: 'sharedInstance()' is unavailable in macOS
1642 | extension TxClient {
1643 |     internal func resetAudioConfiguration() {
1644 |         let audioSession = AVAudioSession.sharedInstance()
     |                                           `- error: 'sharedInstance()' is unavailable in macOS
1645 |         do {
1646 |             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:1646:30: error: 'setCategory(_:mode:options:)' is unavailable in macOS
1644 |         let audioSession = AVAudioSession.sharedInstance()
1645 |         do {
1646 |             try audioSession.setCategory(
     |                              `- error: 'setCategory(_:mode:options:)' is unavailable in macOS
1647 |                 .playback,
1648 |                 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:1647:18: error: 'playback' is unavailable in macOS
1645 |         do {
1646 |             try audioSession.setCategory(
1647 |                 .playback,
     |                  `- error: 'playback' is unavailable in macOS
1648 |                 mode: .default,
1649 |                 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:1648:24: error: 'default' is unavailable in macOS
1646 |             try audioSession.setCategory(
1647 |                 .playback,
1648 |                 mode: .default,
     |                        `- error: 'default' is unavailable in macOS
1649 |                 options: [.mixWithOthers]
1650 |             )
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:1657:31: error: cannot find 'RTCAudioSession' in scope
1655 |
1656 |     internal func setupCorrectAudioConfiguration() {
1657 |         let rtcAudioSession = RTCAudioSession.sharedInstance()
     |                               `- error: cannot find 'RTCAudioSession' in scope
1658 |         rtcAudioSession.lockForConfiguration()
1659 |
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1660:29: error: cannot find 'RTCAudioSessionConfiguration' in scope
1658 |         rtcAudioSession.lockForConfiguration()
1659 |
1660 |         let configuration = RTCAudioSessionConfiguration.webRTC()
     |                             `- error: cannot find 'RTCAudioSessionConfiguration' in scope
1661 |         configuration.categoryOptions = [
1662 |             .duckOthers,
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1662:14: error: reference to member 'duckOthers' cannot be resolved without a contextual type
1660 |         let configuration = RTCAudioSessionConfiguration.webRTC()
1661 |         configuration.categoryOptions = [
1662 |             .duckOthers,
     |              `- error: reference to member 'duckOthers' cannot be resolved without a contextual type
1663 |             .allowBluetooth,
1664 |         ]
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1663:14: error: reference to member 'allowBluetooth' cannot be resolved without a contextual type
1661 |         configuration.categoryOptions = [
1662 |             .duckOthers,
1663 |             .allowBluetooth,
     |              `- error: reference to member 'allowBluetooth' cannot be resolved without a contextual type
1664 |         ]
1665 |
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1676:31: error: cannot find 'RTCAudioSession' in scope
1674 |
1675 |     internal func setAudioSessionActive(_ active: Bool) {
1676 |         let rtcAudioSession = RTCAudioSession.sharedInstance()
     |                               `- error: cannot find 'RTCAudioSession' in scope
1677 |
1678 |         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/95] Compiling TelnyxRTC Logger.swift
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/Services/Socket.swift:143:26: warning: immutable value 'data' was never used; consider replacing with '_' or removing it
141 |             break;
142 |
143 |         case .binary(let data):
    |                          `- warning: immutable value 'data' was never used; consider replacing with '_' or removing it
144 |             break
145 |         case .ping(_):
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:135:34: error: 'CXAnswerCallAction' is unavailable in macOS
 133 |     private var socket : Socket?
 134 |
 135 |     private var answerCallAction:CXAnswerCallAction? = nil
     |                                  `- error: 'CXAnswerCallAction' is unavailable in macOS
 136 |     private var endCallAction:CXEndCallAction? = nil
 137 |     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:136:31: error: 'CXEndCallAction' is unavailable in macOS
 134 |
 135 |     private var answerCallAction:CXAnswerCallAction? = nil
 136 |     private var endCallAction:CXEndCallAction? = nil
     |                               `- error: 'CXEndCallAction' is unavailable in macOS
 137 |     private var sessionId : String?
 138 |     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:219:50: error: 'AVAudioSession' is unavailable in macOS
 217 |     /// }
 218 |     /// ```
 219 |     public func enableAudioSession(audioSession: AVAudioSession) {
     |                                                  `- error: 'AVAudioSession' is unavailable in macOS
 220 |         setupCorrectAudioConfiguration()
 221 |         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:238:51: error: 'AVAudioSession' is unavailable in macOS
 236 |     /// }
 237 |     /// ```
 238 |     public func disableAudioSession(audioSession: AVAudioSession) {
     |                                                   `- error: 'AVAudioSession' is unavailable in macOS
 239 |         resetAudioConfiguration()
 240 |         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:245:24: error: 'AVAudioSession' is unavailable in macOS
 243 |     /// The current audio route configuration.
 244 |     /// This provides information about the active input and output ports.
 245 |     let currentRoute = AVAudioSession.sharedInstance().currentRoute
     |                        `- error: 'AVAudioSession' is unavailable in macOS
 246 |
 247 |     /// 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:245:39: error: 'sharedInstance()' is unavailable in macOS
 243 |     /// The current audio route configuration.
 244 |     /// This provides information about the active input and output ports.
 245 |     let currentRoute = AVAudioSession.sharedInstance().currentRoute
     |                                       `- error: 'sharedInstance()' is unavailable in macOS
 246 |
 247 |     /// 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:245:56: error: 'currentRoute' is unavailable in macOS
 243 |     /// The current audio route configuration.
 244 |     /// This provides information about the active input and output ports.
 245 |     let currentRoute = AVAudioSession.sharedInstance().currentRoute
     |                                                        `- error: 'currentRoute' is unavailable in macOS
 246 |
 247 |     /// 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:594:48: error: 'CXAnswerCallAction' is unavailable in macOS
 592 |     ///   - debug: (optional) Enable debug mode for call quality metrics and WebRTC statistics.
 593 |     ///     When enabled, real-time call quality metrics will be available through the call's `onCallQualityChange` callback.
 594 |     public func answerFromCallkit(answerAction:CXAnswerCallAction,customHeaders:[String:String] = [:], debug:Bool = false) {
     |                                                `- error: 'CXAnswerCallAction' is unavailable in macOS
 595 |         self.answerCallAction = answerAction
 596 |         ///answer call if currentPushCall is not nil
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:617:46: error: 'CXEndCallAction' is unavailable in macOS
 615 |
 616 |     /// To end and control callKit active and conn
 617 |     public func endCallFromCallkit(endAction:CXEndCallAction,callId:UUID? = nil) {
     |                                              `- error: 'CXEndCallAction' is unavailable in macOS
 618 |         self.endCallAction = endAction
 619 |         // Place the code you want to delay here
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:193:20: error: cannot find 'RTCAudioSession' in scope
 191 |     public var isAudioDeviceEnabled : Bool {
 192 |         get {
 193 |             return RTCAudioSession.sharedInstance().isAudioEnabled
     |                    `- error: cannot find 'RTCAudioSession' in scope
 194 |         }
 195 |         set {
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:197:17: error: cannot find 'RTCAudioSession' in scope
 195 |         set {
 196 |             if newValue {
 197 |                 RTCAudioSession.sharedInstance().audioSessionDidActivate(AVAudioSession.sharedInstance())
     |                 `- error: cannot find 'RTCAudioSession' in scope
 198 |             } else {
 199 |                 RTCAudioSession.sharedInstance().audioSessionDidDeactivate(AVAudioSession.sharedInstance())
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:199:17: error: cannot find 'RTCAudioSession' in scope
 197 |                 RTCAudioSession.sharedInstance().audioSessionDidActivate(AVAudioSession.sharedInstance())
 198 |             } else {
 199 |                 RTCAudioSession.sharedInstance().audioSessionDidDeactivate(AVAudioSession.sharedInstance())
     |                 `- error: cannot find 'RTCAudioSession' in scope
 200 |             }
 201 |             RTCAudioSession.sharedInstance().isAudioEnabled = newValue
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:201:13: error: cannot find 'RTCAudioSession' in scope
 199 |                 RTCAudioSession.sharedInstance().audioSessionDidDeactivate(AVAudioSession.sharedInstance())
 200 |             }
 201 |             RTCAudioSession.sharedInstance().isAudioEnabled = newValue
     |             `- error: cannot find 'RTCAudioSession' in scope
 202 |         }
 203 |     }
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:303:63: error: 'AVAudioSession' is unavailable in macOS
 301 |
 302 |         // Remove audio route change observer
 303 |         NotificationCenter.default.removeObserver(self, name: AVAudioSession.routeChangeNotification, object: nil)
     |                                                               `- error: 'AVAudioSession' is unavailable in macOS
 304 |
 305 |         // 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:303:78: error: 'routeChangeNotification' is unavailable in macOS
 301 |
 302 |         // Remove audio route change observer
 303 |         NotificationCenter.default.removeObserver(self, name: AVAudioSession.routeChangeNotification, object: nil)
     |                                                                              `- error: 'routeChangeNotification' is unavailable in macOS
 304 |
 305 |         // 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:323:19: error: 'AVAudioSession' is unavailable in macOS
 321 |             self,
 322 |             selector: #selector(handleAudioRouteChange),
 323 |             name: AVAudioSession.routeChangeNotification,
     |                   `- error: 'AVAudioSession' is unavailable in macOS
 324 |             object: nil)
 325 |
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:323:34: error: 'routeChangeNotification' is unavailable in macOS
 321 |             self,
 322 |             selector: #selector(handleAudioRouteChange),
 323 |             name: AVAudioSession.routeChangeNotification,
     |                                  `- error: 'routeChangeNotification' is unavailable in macOS
 324 |             object: nil)
 325 |
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:360:42: error: 'AVAudioSessionRouteChangeReasonKey' is unavailable in macOS
 358 |     @objc private func handleAudioRouteChange(notification: Notification) {
 359 |         guard let userInfo = notification.userInfo,
 360 |               let reasonValue = userInfo[AVAudioSessionRouteChangeReasonKey] as? UInt,
     |                                          `- error: 'AVAudioSessionRouteChangeReasonKey' is unavailable in macOS
 361 |               let reason = AVAudioSession.RouteChangeReason(rawValue: reasonValue) else {
 362 |             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:361:28: error: 'AVAudioSession' is unavailable in macOS
 359 |         guard let userInfo = notification.userInfo,
 360 |               let reasonValue = userInfo[AVAudioSessionRouteChangeReasonKey] as? UInt,
 361 |               let reason = AVAudioSession.RouteChangeReason(rawValue: reasonValue) else {
     |                            `- error: 'AVAudioSession' is unavailable in macOS
 362 |             return
 363 |         }
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:365:23: error: 'AVAudioSession' is unavailable in macOS
 363 |         }
 364 |
 365 |         let session = AVAudioSession.sharedInstance()
     |                       `- error: 'AVAudioSession' is unavailable in macOS
 366 |         let currentRoute = session.currentRoute
 367 |
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:365:38: error: 'sharedInstance()' is unavailable in macOS
 363 |         }
 364 |
 365 |         let session = AVAudioSession.sharedInstance()
     |                                      `- error: 'sharedInstance()' is unavailable in macOS
 366 |         let currentRoute = session.currentRoute
 367 |
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:366:36: error: 'currentRoute' is unavailable in macOS
 364 |
 365 |         let session = AVAudioSession.sharedInstance()
 366 |         let currentRoute = session.currentRoute
     |                                    `- error: 'currentRoute' is unavailable in macOS
 367 |
 368 |         // 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:369:41: error: 'outputs' is unavailable in macOS
 367 |
 368 |         // Ensure we have at least one output port
 369 |         guard let output = currentRoute.outputs.first else {
     |                                         `- error: 'outputs' is unavailable in macOS
 370 |             return
 371 |         }
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:373:85: error: 'portType' is unavailable in macOS
 371 |         }
 372 |
 373 |         Logger.log.i(message: "[ACM_RESET] TxClient:: Audio route changed: \(output.portType), reason: \(reason), isACMResetInProgress: \(isACMResetInProgress)")
     |                                                                                     `- error: 'portType' is unavailable in macOS
 374 |
 375 |         // 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:384:40: error: 'portType' is unavailable in macOS
 382 |             case .categoryChange, .override, .routeConfigurationChange:
 383 |                 // Update internal speaker state based on current output
 384 |                 let isSpeaker = output.portType == .builtInSpeaker
     |                                        `- error: 'portType' is unavailable in macOS
 385 |                 _isSpeakerEnabled = isSpeaker
 386 |
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:384:53: error: 'builtInSpeaker' is unavailable in macOS
 382 |             case .categoryChange, .override, .routeConfigurationChange:
 383 |                 // Update internal speaker state based on current output
 384 |                 let isSpeaker = output.portType == .builtInSpeaker
     |                                                     `- error: 'builtInSpeaker' is unavailable in macOS
 385 |                 _isSpeakerEnabled = isSpeaker
 386 |
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:393:50: error: 'portType' is unavailable in macOS
 391 |                     userInfo: [
 392 |                         "isSpeakerEnabled": isSpeaker,
 393 |                         "outputPortType": output.portType
     |                                                  `- error: 'portType' is unavailable in macOS
 394 |                     ]
 395 |                 )
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:459:32: error: 'AVAudioSession' is unavailable in macOS
 457 |
 458 |             // Verify if speaker is actually active
 459 |             let currentRoute = AVAudioSession.sharedInstance().currentRoute
     |                                `- error: 'AVAudioSession' is unavailable in macOS
 460 |             let isSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
 461 |
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:459:47: error: 'sharedInstance()' is unavailable in macOS
 457 |
 458 |             // Verify if speaker is actually active
 459 |             let currentRoute = AVAudioSession.sharedInstance().currentRoute
     |                                               `- error: 'sharedInstance()' is unavailable in macOS
 460 |             let isSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
 461 |
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:459:64: error: 'currentRoute' is unavailable in macOS
 457 |
 458 |             // Verify if speaker is actually active
 459 |             let currentRoute = AVAudioSession.sharedInstance().currentRoute
     |                                                                `- error: 'currentRoute' is unavailable in macOS
 460 |             let isSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
 461 |
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:460:48: error: 'outputs' is unavailable in macOS
 458 |             // Verify if speaker is actually active
 459 |             let currentRoute = AVAudioSession.sharedInstance().currentRoute
 460 |             let isSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
     |                                                `- error: 'outputs' is unavailable in macOS
 461 |
 462 |             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:460:70: error: 'portType' is unavailable in macOS
 458 |             // Verify if speaker is actually active
 459 |             let currentRoute = AVAudioSession.sharedInstance().currentRoute
 460 |             let isSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
     |                                                                      `- error: 'portType' is unavailable in macOS
 461 |
 462 |             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:460:83: error: 'builtInSpeaker' is unavailable in macOS
 458 |             // Verify if speaker is actually active
 459 |             let currentRoute = AVAudioSession.sharedInstance().currentRoute
 460 |             let isSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
     |                                                                                   `- error: 'builtInSpeaker' is unavailable in macOS
 461 |
 462 |             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:541:57: error: 'AVAudioSession' is unavailable in macOS
 539 |         // Remove audio route change observer
 540 |         NotificationCenter.default.removeObserver(self,
 541 |                                                   name: AVAudioSession.routeChangeNotification,
     |                                                         `- error: 'AVAudioSession' is unavailable in macOS
 542 |                                                   object: nil)
 543 |         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:541:72: error: 'routeChangeNotification' is unavailable in macOS
 539 |         // Remove audio route change observer
 540 |         NotificationCenter.default.removeObserver(self,
 541 |                                                   name: AVAudioSession.routeChangeNotification,
     |                                                                        `- error: 'routeChangeNotification' is unavailable in macOS
 542 |                                                   object: nil)
 543 |         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:1165:32: error: 'AVAudioSession' is unavailable in macOS
1163 |         Logger.log.i(message: "[ACM_RESET] TxClient:: setEarpiece() called")
1164 |         do {
1165 |             let audioSession = AVAudioSession.sharedInstance()
     |                                `- error: 'AVAudioSession' is unavailable in macOS
1166 |             try audioSession.overrideOutputAudioPort(.none)
1167 |             _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:1165:47: error: 'sharedInstance()' is unavailable in macOS
1163 |         Logger.log.i(message: "[ACM_RESET] TxClient:: setEarpiece() called")
1164 |         do {
1165 |             let audioSession = AVAudioSession.sharedInstance()
     |                                               `- error: 'sharedInstance()' is unavailable in macOS
1166 |             try audioSession.overrideOutputAudioPort(.none)
1167 |             _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:1166:30: error: 'overrideOutputAudioPort' is unavailable in macOS
1164 |         do {
1165 |             let audioSession = AVAudioSession.sharedInstance()
1166 |             try audioSession.overrideOutputAudioPort(.none)
     |                              `- error: 'overrideOutputAudioPort' is unavailable in macOS
1167 |             _isSpeakerEnabled = false
1168 |             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:1178:32: error: 'AVAudioSession' is unavailable in macOS
1176 |         Logger.log.i(message: "[ACM_RESET] TxClient:: setSpeaker() called")
1177 |         do {
1178 |             let audioSession = AVAudioSession.sharedInstance()
     |                                `- error: 'AVAudioSession' is unavailable in macOS
1179 |             try audioSession.overrideOutputAudioPort(.speaker)
1180 |             _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:1178:47: error: 'sharedInstance()' is unavailable in macOS
1176 |         Logger.log.i(message: "[ACM_RESET] TxClient:: setSpeaker() called")
1177 |         do {
1178 |             let audioSession = AVAudioSession.sharedInstance()
     |                                               `- error: 'sharedInstance()' is unavailable in macOS
1179 |             try audioSession.overrideOutputAudioPort(.speaker)
1180 |             _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:1179:30: error: 'overrideOutputAudioPort' is unavailable in macOS
1177 |         do {
1178 |             let audioSession = AVAudioSession.sharedInstance()
1179 |             try audioSession.overrideOutputAudioPort(.speaker)
     |                              `- error: 'overrideOutputAudioPort' is unavailable in macOS
1180 |             _isSpeakerEnabled = true
1181 |             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:1179:55: error: 'speaker' is unavailable in macOS
1177 |         do {
1178 |             let audioSession = AVAudioSession.sharedInstance()
1179 |             try audioSession.overrideOutputAudioPort(.speaker)
     |                                                       `- error: 'speaker' is unavailable in macOS
1180 |             _isSpeakerEnabled = true
1181 |             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:1644:28: error: 'AVAudioSession' is unavailable in macOS
1642 | extension TxClient {
1643 |     internal func resetAudioConfiguration() {
1644 |         let audioSession = AVAudioSession.sharedInstance()
     |                            `- error: 'AVAudioSession' is unavailable in macOS
1645 |         do {
1646 |             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:1644:43: error: 'sharedInstance()' is unavailable in macOS
1642 | extension TxClient {
1643 |     internal func resetAudioConfiguration() {
1644 |         let audioSession = AVAudioSession.sharedInstance()
     |                                           `- error: 'sharedInstance()' is unavailable in macOS
1645 |         do {
1646 |             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:1646:30: error: 'setCategory(_:mode:options:)' is unavailable in macOS
1644 |         let audioSession = AVAudioSession.sharedInstance()
1645 |         do {
1646 |             try audioSession.setCategory(
     |                              `- error: 'setCategory(_:mode:options:)' is unavailable in macOS
1647 |                 .playback,
1648 |                 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:1647:18: error: 'playback' is unavailable in macOS
1645 |         do {
1646 |             try audioSession.setCategory(
1647 |                 .playback,
     |                  `- error: 'playback' is unavailable in macOS
1648 |                 mode: .default,
1649 |                 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:1648:24: error: 'default' is unavailable in macOS
1646 |             try audioSession.setCategory(
1647 |                 .playback,
1648 |                 mode: .default,
     |                        `- error: 'default' is unavailable in macOS
1649 |                 options: [.mixWithOthers]
1650 |             )
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:1657:31: error: cannot find 'RTCAudioSession' in scope
1655 |
1656 |     internal func setupCorrectAudioConfiguration() {
1657 |         let rtcAudioSession = RTCAudioSession.sharedInstance()
     |                               `- error: cannot find 'RTCAudioSession' in scope
1658 |         rtcAudioSession.lockForConfiguration()
1659 |
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1660:29: error: cannot find 'RTCAudioSessionConfiguration' in scope
1658 |         rtcAudioSession.lockForConfiguration()
1659 |
1660 |         let configuration = RTCAudioSessionConfiguration.webRTC()
     |                             `- error: cannot find 'RTCAudioSessionConfiguration' in scope
1661 |         configuration.categoryOptions = [
1662 |             .duckOthers,
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1662:14: error: reference to member 'duckOthers' cannot be resolved without a contextual type
1660 |         let configuration = RTCAudioSessionConfiguration.webRTC()
1661 |         configuration.categoryOptions = [
1662 |             .duckOthers,
     |              `- error: reference to member 'duckOthers' cannot be resolved without a contextual type
1663 |             .allowBluetooth,
1664 |         ]
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1663:14: error: reference to member 'allowBluetooth' cannot be resolved without a contextual type
1661 |         configuration.categoryOptions = [
1662 |             .duckOthers,
1663 |             .allowBluetooth,
     |              `- error: reference to member 'allowBluetooth' cannot be resolved without a contextual type
1664 |         ]
1665 |
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1676:31: error: cannot find 'RTCAudioSession' in scope
1674 |
1675 |     internal func setAudioSessionActive(_ active: Bool) {
1676 |         let rtcAudioSession = RTCAudioSession.sharedInstance()
     |                               `- error: cannot find 'RTCAudioSession' in scope
1677 |
1678 |         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
Fetching https://github.com/daltoniam/Starscream.git
Fetching https://github.com/stasel/WebRTC.git
[1/704] Fetching webrtc
[311/5770] Fetching webrtc, starscream
Fetched https://github.com/daltoniam/Starscream.git from cache (1.22s)
Fetched https://github.com/stasel/WebRTC.git from cache (1.22s)
Computing version for https://github.com/stasel/WebRTC.git
Computed https://github.com/stasel/WebRTC.git at 139.0.0 (0.55s)
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
[16375/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.17s)
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