The Swift Package Index logo.Swift Package Index

Build Information

Failed to build telnyx-webrtc-ios, reference 4.2.3 (13a2f0), with Swift 6.3 for macOS (SPM) on 4 Nov 2026 10:59:51 UTC.

Build Command

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

Build Log

/Applications/Xcode-26.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.5.sdk/System/Library/Frameworks/CallKit.framework/Headers/CXEndCallAction.h:13:12: note: 'CXEndCallAction' has been explicitly marked unavailable here
11 |
12 | CX_EXTERN API_AVAILABLE(ios(10.0), macCatalyst(13.0), watchos(9.0))  API_UNAVAILABLE(macos, tvos)
13 | @interface CXEndCallAction : CXCallAction
   |            `- note: 'CXEndCallAction' has been explicitly marked unavailable here
14 |
15 | /// Normally, providers can just call -[CXAction fulfill] to indicate action fulfillment. Use this method to note a specific date that the call ended.
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:324:50: error: 'AVAudioSession' is unavailable in macOS
 322 |     /// }
 323 |     /// ```
 324 |     public func enableAudioSession(audioSession: AVAudioSession) {
     |                                                  `- error: 'AVAudioSession' is unavailable in macOS
 325 |         let rtcAudioSession = RTCAudioSession.sharedInstance()
 326 |         let wasAudioEnabled = rtcAudioSession.isAudioEnabled
/Applications/Xcode-26.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.5.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:29:12: note: 'AVAudioSession' has been explicitly marked unavailable here
 27 | NS_SWIFT_SENDABLE
 28 | API_AVAILABLE(ios(3.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos)
 29 | @interface AVAudioSession : NSObject {
    |            `- note: 'AVAudioSession' has been explicitly marked unavailable here
 30 | @private
 31 | 	void *_impl;
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:350:51: error: 'AVAudioSession' is unavailable in macOS
 348 |     /// }
 349 |     /// ```
 350 |     public func disableAudioSession(audioSession: AVAudioSession) {
     |                                                   `- error: 'AVAudioSession' is unavailable in macOS
 351 |         let rtcAudioSession = RTCAudioSession.sharedInstance()
 352 |         let wasAudioEnabled = rtcAudioSession.isAudioEnabled
/Applications/Xcode-26.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.5.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:29:12: note: 'AVAudioSession' has been explicitly marked unavailable here
 27 | NS_SWIFT_SENDABLE
 28 | API_AVAILABLE(ios(3.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos)
 29 | @interface AVAudioSession : NSObject {
    |            `- note: 'AVAudioSession' has been explicitly marked unavailable here
 30 | @private
 31 | 	void *_impl;
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:364:24: error: 'AVAudioSession' is unavailable in macOS
 362 |     /// The current audio route configuration.
 363 |     /// This provides information about the active input and output ports.
 364 |     let currentRoute = AVAudioSession.sharedInstance().currentRoute
     |                        `- error: 'AVAudioSession' is unavailable in macOS
 365 |
 366 |     /// Client must be registered in order to receive or place calls.
/Applications/Xcode-26.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.5.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:29:12: note: 'AVAudioSession' has been explicitly marked unavailable here
 27 | NS_SWIFT_SENDABLE
 28 | API_AVAILABLE(ios(3.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos)
 29 | @interface AVAudioSession : NSObject {
    |            `- note: 'AVAudioSession' has been explicitly marked unavailable here
 30 | @private
 31 | 	void *_impl;
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:364:39: error: 'sharedInstance()' is unavailable in macOS
 362 |     /// The current audio route configuration.
 363 |     /// This provides information about the active input and output ports.
 364 |     let currentRoute = AVAudioSession.sharedInstance().currentRoute
     |                                       `- error: 'sharedInstance()' is unavailable in macOS
 365 |
 366 |     /// Client must be registered in order to receive or place calls.
AVFAudio.AVAudioSession.sharedInstance:3:19: note: 'sharedInstance()' has been explicitly marked unavailable here
1 | class AVAudioSession {
2 | @available(macOS, unavailable)
3 |   open class func sharedInstance() -> AVAudioSession}
  |                   `- note: 'sharedInstance()' has been explicitly marked unavailable here
4 |
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:364:56: error: 'currentRoute' is unavailable in macOS
 362 |     /// The current audio route configuration.
 363 |     /// This provides information about the active input and output ports.
 364 |     let currentRoute = AVAudioSession.sharedInstance().currentRoute
     |                                                        `- error: 'currentRoute' is unavailable in macOS
 365 |
 366 |     /// Client must be registered in order to receive or place calls.
/Applications/Xcode-26.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.5.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:469:54: note: 'currentRoute' has been explicitly marked unavailable here
467 | /// A description of the current route, consisting of zero or more input ports and zero or more
468 | /// output ports
469 | @property (readonly) AVAudioSessionRouteDescription *currentRoute
    |                                                      `- note: 'currentRoute' has been explicitly marked unavailable here
470 | 	API_AVAILABLE(ios(6.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
471 |
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:847:49: error: 'CXAnswerCallAction' is unavailable in macOS
 845 |     ///   - debug: (optional) Enable debug mode for call quality metrics and WebRTC statistics.
 846 |     ///     When enabled, real-time call quality metrics will be available through the call's `onCallQualityChange` callback.
 847 |     public func answerFromCallkit(answerAction: CXAnswerCallAction,
     |                                                 `- error: 'CXAnswerCallAction' is unavailable in macOS
 848 |                                   customHeaders: [String:String] = [:],
 849 |                                   debug: Bool = false) {
/Applications/Xcode-26.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.5.sdk/System/Library/Frameworks/CallKit.framework/Headers/CXAnswerCallAction.h:13:12: note: 'CXAnswerCallAction' has been explicitly marked unavailable here
11 |
12 | CX_EXTERN API_AVAILABLE(ios(10.0), macCatalyst(13.0), watchos(9.0))  API_UNAVAILABLE(macos, tvos)
13 | @interface CXAnswerCallAction : CXCallAction
   |            `- note: 'CXAnswerCallAction' has been explicitly marked unavailable here
14 |
15 | /// Normally, providers can just call -[CXAction fulfill] to indicate action fulfillment. Use this method to note a specific date that the call connected. A call is considered connected when both caller and callee can start communicating.
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1036:49: error: 'CXEndCallAction' is unavailable in macOS
1034 |     }
1035 |
1036 |     private func failEndCallAction(_ endAction: CXEndCallAction) {
     |                                                 `- error: 'CXEndCallAction' is unavailable in macOS
1037 |         resetPushVariables()
1038 |         endAction.fail()
/Applications/Xcode-26.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.5.sdk/System/Library/Frameworks/CallKit.framework/Headers/CXEndCallAction.h:13:12: note: 'CXEndCallAction' has been explicitly marked unavailable here
11 |
12 | CX_EXTERN API_AVAILABLE(ios(10.0), macCatalyst(13.0), watchos(9.0))  API_UNAVAILABLE(macos, tvos)
13 | @interface CXEndCallAction : CXCallAction
   |            `- note: 'CXEndCallAction' has been explicitly marked unavailable here
14 |
15 | /// Normally, providers can just call -[CXAction fulfill] to indicate action fulfillment. Use this method to note a specific date that the call ended.
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1107:47: error: 'CXEndCallAction' is unavailable in macOS
1105 |
1106 |     /// To end and control callKit active and conn
1107 |     public func endCallFromCallkit(endAction: CXEndCallAction,
     |                                               `- error: 'CXEndCallAction' is unavailable in macOS
1108 |                                    callId: UUID? = nil) {
1109 |         Logger.log.i(message: "TxClient:: endCallFromCallkit - started for callID \(String(describing: endAction.callUUID))")
/Applications/Xcode-26.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.5.sdk/System/Library/Frameworks/CallKit.framework/Headers/CXEndCallAction.h:13:12: note: 'CXEndCallAction' has been explicitly marked unavailable here
11 |
12 | CX_EXTERN API_AVAILABLE(ios(10.0), macCatalyst(13.0), watchos(9.0))  API_UNAVAILABLE(macos, tvos)
13 | @interface CXEndCallAction : CXCallAction
   |            `- note: 'CXEndCallAction' has been explicitly marked unavailable here
14 |
15 | /// Normally, providers can just call -[CXAction fulfill] to indicate action fulfillment. Use this method to note a specific date that the call ended.
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:298:20: error: cannot find 'RTCAudioSession' in scope
 296 |     public var isAudioDeviceEnabled : Bool {
 297 |         get {
 298 |             return RTCAudioSession.sharedInstance().isAudioEnabled
     |                    `- error: cannot find 'RTCAudioSession' in scope
 299 |         }
 300 |         set {
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:302:17: error: cannot find 'RTCAudioSession' in scope
 300 |         set {
 301 |             if newValue {
 302 |                 RTCAudioSession.sharedInstance().audioSessionDidActivate(AVAudioSession.sharedInstance())
     |                 `- error: cannot find 'RTCAudioSession' in scope
 303 |             } else {
 304 |                 RTCAudioSession.sharedInstance().audioSessionDidDeactivate(AVAudioSession.sharedInstance())
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:304:17: error: cannot find 'RTCAudioSession' in scope
 302 |                 RTCAudioSession.sharedInstance().audioSessionDidActivate(AVAudioSession.sharedInstance())
 303 |             } else {
 304 |                 RTCAudioSession.sharedInstance().audioSessionDidDeactivate(AVAudioSession.sharedInstance())
     |                 `- error: cannot find 'RTCAudioSession' in scope
 305 |             }
 306 |             RTCAudioSession.sharedInstance().isAudioEnabled = newValue
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:306:13: error: cannot find 'RTCAudioSession' in scope
 304 |                 RTCAudioSession.sharedInstance().audioSessionDidDeactivate(AVAudioSession.sharedInstance())
 305 |             }
 306 |             RTCAudioSession.sharedInstance().isAudioEnabled = newValue
     |             `- error: cannot find 'RTCAudioSession' in scope
 307 |         }
 308 |     }
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:325:31: error: cannot find 'RTCAudioSession' in scope
 323 |     /// ```
 324 |     public func enableAudioSession(audioSession: AVAudioSession) {
 325 |         let rtcAudioSession = RTCAudioSession.sharedInstance()
     |                               `- error: cannot find 'RTCAudioSession' in scope
 326 |         let wasAudioEnabled = rtcAudioSession.isAudioEnabled
 327 |         Logger.log.i(message: "TxClient:: enabling CallKit audio session; currentlyEnabled=\(rtcAudioSession.isAudioEnabled)")
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:351:31: error: cannot find 'RTCAudioSession' in scope
 349 |     /// ```
 350 |     public func disableAudioSession(audioSession: AVAudioSession) {
 351 |         let rtcAudioSession = RTCAudioSession.sharedInstance()
     |                               `- error: cannot find 'RTCAudioSession' in scope
 352 |         let wasAudioEnabled = rtcAudioSession.isAudioEnabled
 353 |         Logger.log.i(message: "TxClient:: disabling CallKit audio session; currentlyEnabled=\(rtcAudioSession.isAudioEnabled)")
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:430:63: error: 'AVAudioSession' is unavailable in macOS
 428 |
 429 |         // Remove audio route change observer
 430 |         NotificationCenter.default.removeObserver(self, name: AVAudioSession.routeChangeNotification, object: nil)
     |                                                               `- error: 'AVAudioSession' is unavailable in macOS
 431 |
 432 |         // Remove ACM reset observers
/Applications/Xcode-26.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.5.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:29:12: note: 'AVAudioSession' has been explicitly marked unavailable here
 27 | NS_SWIFT_SENDABLE
 28 | API_AVAILABLE(ios(3.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos)
 29 | @interface AVAudioSession : NSObject {
    |            `- note: 'AVAudioSession' has been explicitly marked unavailable here
 30 | @private
 31 | 	void *_impl;
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:430:78: error: 'routeChangeNotification' is unavailable in macOS
 428 |
 429 |         // Remove audio route change observer
 430 |         NotificationCenter.default.removeObserver(self, name: AVAudioSession.routeChangeNotification, object: nil)
     |                                                                              `- error: 'routeChangeNotification' is unavailable in macOS
 431 |
 432 |         // Remove ACM reset observers
/Applications/Xcode-26.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.5.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionTypes.h:235:37: note: 'routeChangeNotification' has been explicitly marked unavailable here
233 | 	of the previous audio route.
234 | */
235 | OS_EXPORT NSNotificationName const  AVAudioSessionRouteChangeNotification API_AVAILABLE(ios(6.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
    |                                     `- note: 'routeChangeNotification' has been explicitly marked unavailable here
236 |
237 | /*!
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:450:19: error: 'AVAudioSession' is unavailable in macOS
 448 |             self,
 449 |             selector: #selector(handleAudioRouteChange),
 450 |             name: AVAudioSession.routeChangeNotification,
     |                   `- error: 'AVAudioSession' is unavailable in macOS
 451 |             object: nil)
 452 |
/Applications/Xcode-26.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.5.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:29:12: note: 'AVAudioSession' has been explicitly marked unavailable here
 27 | NS_SWIFT_SENDABLE
 28 | API_AVAILABLE(ios(3.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos)
 29 | @interface AVAudioSession : NSObject {
    |            `- note: 'AVAudioSession' has been explicitly marked unavailable here
 30 | @private
 31 | 	void *_impl;
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:450:34: error: 'routeChangeNotification' is unavailable in macOS
 448 |             self,
 449 |             selector: #selector(handleAudioRouteChange),
 450 |             name: AVAudioSession.routeChangeNotification,
     |                                  `- error: 'routeChangeNotification' is unavailable in macOS
 451 |             object: nil)
 452 |
/Applications/Xcode-26.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.5.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionTypes.h:235:37: note: 'routeChangeNotification' has been explicitly marked unavailable here
233 | 	of the previous audio route.
234 | */
235 | OS_EXPORT NSNotificationName const  AVAudioSessionRouteChangeNotification API_AVAILABLE(ios(6.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
    |                                     `- note: 'routeChangeNotification' has been explicitly marked unavailable here
236 |
237 | /*!
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:487:42: error: 'AVAudioSessionRouteChangeReasonKey' is unavailable in macOS
 485 |     @objc private func handleAudioRouteChange(notification: Notification) {
 486 |         guard let userInfo = notification.userInfo,
 487 |               let reasonValue = userInfo[AVAudioSessionRouteChangeReasonKey] as? UInt,
     |                                          `- error: 'AVAudioSessionRouteChangeReasonKey' is unavailable in macOS
 488 |               let reason = AVAudioSession.RouteChangeReason(rawValue: reasonValue) else {
 489 |             return
/Applications/Xcode-26.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.5.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionTypes.h:339:27: note: 'AVAudioSessionRouteChangeReasonKey' has been explicitly marked unavailable here
337 | /// keys for AVAudioSessionRouteChangeNotification
338 | /// value is an NSNumber representing an AVAudioSessionRouteChangeReason
339 | OS_EXPORT NSString *const AVAudioSessionRouteChangeReasonKey API_AVAILABLE(ios(6.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
    |                           `- note: 'AVAudioSessionRouteChangeReasonKey' has been explicitly marked unavailable here
340 | /// value is AVAudioSessionRouteDescription *
341 | OS_EXPORT NSString *const AVAudioSessionRouteChangePreviousRouteKey API_AVAILABLE(ios(6.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:488:28: error: 'AVAudioSession' is unavailable in macOS
 486 |         guard let userInfo = notification.userInfo,
 487 |               let reasonValue = userInfo[AVAudioSessionRouteChangeReasonKey] as? UInt,
 488 |               let reason = AVAudioSession.RouteChangeReason(rawValue: reasonValue) else {
     |                            `- error: 'AVAudioSession' is unavailable in macOS
 489 |             return
 490 |         }
/Applications/Xcode-26.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.5.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:29:12: note: 'AVAudioSession' has been explicitly marked unavailable here
 27 | NS_SWIFT_SENDABLE
 28 | API_AVAILABLE(ios(3.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos)
 29 | @interface AVAudioSession : NSObject {
    |            `- note: 'AVAudioSession' has been explicitly marked unavailable here
 30 | @private
 31 | 	void *_impl;
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:492:23: error: 'AVAudioSession' is unavailable in macOS
 490 |         }
 491 |
 492 |         let session = AVAudioSession.sharedInstance()
     |                       `- error: 'AVAudioSession' is unavailable in macOS
 493 |         let currentRoute = session.currentRoute
 494 |
/Applications/Xcode-26.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.5.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:29:12: note: 'AVAudioSession' has been explicitly marked unavailable here
 27 | NS_SWIFT_SENDABLE
 28 | API_AVAILABLE(ios(3.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos)
 29 | @interface AVAudioSession : NSObject {
    |            `- note: 'AVAudioSession' has been explicitly marked unavailable here
 30 | @private
 31 | 	void *_impl;
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:492:38: error: 'sharedInstance()' is unavailable in macOS
 490 |         }
 491 |
 492 |         let session = AVAudioSession.sharedInstance()
     |                                      `- error: 'sharedInstance()' is unavailable in macOS
 493 |         let currentRoute = session.currentRoute
 494 |
AVFAudio.AVAudioSession.sharedInstance:3:19: note: 'sharedInstance()' has been explicitly marked unavailable here
1 | class AVAudioSession {
2 | @available(macOS, unavailable)
3 |   open class func sharedInstance() -> AVAudioSession}
  |                   `- note: 'sharedInstance()' has been explicitly marked unavailable here
4 |
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:493:36: error: 'currentRoute' is unavailable in macOS
 491 |
 492 |         let session = AVAudioSession.sharedInstance()
 493 |         let currentRoute = session.currentRoute
     |                                    `- error: 'currentRoute' is unavailable in macOS
 494 |
 495 |         // Ensure we have at least one output port
/Applications/Xcode-26.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.5.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:469:54: note: 'currentRoute' has been explicitly marked unavailable here
467 | /// A description of the current route, consisting of zero or more input ports and zero or more
468 | /// output ports
469 | @property (readonly) AVAudioSessionRouteDescription *currentRoute
    |                                                      `- note: 'currentRoute' has been explicitly marked unavailable here
470 | 	API_AVAILABLE(ios(6.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
471 |
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:496:41: error: 'outputs' is unavailable in macOS
 494 |
 495 |         // Ensure we have at least one output port
 496 |         guard let output = currentRoute.outputs.first else {
     |                                         `- error: 'outputs' is unavailable in macOS
 497 |             return
 498 |         }
/Applications/Xcode-26.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.5.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionRoute.h:246:75: note: 'outputs' has been explicitly marked unavailable here
244 |
245 | /// Flattened list of all output port descriptions associated with all the streams as part of the route.
246 | @property (readonly, nonatomic) NSArray<AVAudioSessionPortDescription *> *outputs API_AVAILABLE(ios(6.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
    |                                                                           `- note: 'outputs' has been explicitly marked unavailable here
247 |
248 | @end // AVAudioSessionRouteDescription
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:500:85: error: 'portType' is unavailable in macOS
 498 |         }
 499 |
 500 |         Logger.log.i(message: "[ACM_RESET] TxClient:: Audio route changed: \(output.portType), reason: \(reason), isACMResetInProgress: \(isACMResetInProgress)")
     |                                                                                     `- error: 'portType' is unavailable in macOS
 501 |
 502 |         // Ignore audio route changes during ACM reset to prevent state desynchronization
/Applications/Xcode-26.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.5.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionRoute.h:161:52: note: 'portType' has been explicitly marked unavailable here
159 | }
160 |
161 | @property (readonly, nonatomic) AVAudioSessionPort portType API_AVAILABLE(ios(6.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
    |                                                    `- note: 'portType' has been explicitly marked unavailable here
162 |
163 | /// A descriptive name for the associated hardware port
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:511:40: error: 'portType' is unavailable in macOS
 509 |             case .categoryChange, .override, .routeConfigurationChange:
 510 |                 // Update internal speaker state based on current output
 511 |                 let isSpeaker = output.portType == .builtInSpeaker
     |                                        `- error: 'portType' is unavailable in macOS
 512 |                 _isSpeakerEnabled = isSpeaker
 513 |
/Applications/Xcode-26.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.5.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionRoute.h:161:52: note: 'portType' has been explicitly marked unavailable here
159 | }
160 |
161 | @property (readonly, nonatomic) AVAudioSessionPort portType API_AVAILABLE(ios(6.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
    |                                                    `- note: 'portType' has been explicitly marked unavailable here
162 |
163 | /// A descriptive name for the associated hardware port
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:511:53: error: 'builtInSpeaker' is unavailable in macOS
 509 |             case .categoryChange, .override, .routeConfigurationChange:
 510 |                 // Update internal speaker state based on current output
 511 |                 let isSpeaker = output.portType == .builtInSpeaker
     |                                                     `- error: 'builtInSpeaker' is unavailable in macOS
 512 |                 _isSpeakerEnabled = isSpeaker
 513 |
/Applications/Xcode-26.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.5.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionTypes.h:47:36: note: 'builtInSpeaker' has been explicitly marked unavailable here
 45 |
 46 | /// Built-in speaker on an iOS device
 47 | OS_EXPORT AVAudioSessionPort const AVAudioSessionPortBuiltInSpeaker   	API_AVAILABLE(ios(6.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
    |                                    `- note: 'builtInSpeaker' has been explicitly marked unavailable here
 48 |
 49 | /// Output via High-Definition Multimedia Interface
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:520:50: error: 'portType' is unavailable in macOS
 518 |                     userInfo: [
 519 |                         "isSpeakerEnabled": isSpeaker,
 520 |                         "outputPortType": output.portType
     |                                                  `- error: 'portType' is unavailable in macOS
 521 |                     ]
 522 |                 )
/Applications/Xcode-26.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.5.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionRoute.h:161:52: note: 'portType' has been explicitly marked unavailable here
159 | }
160 |
161 | @property (readonly, nonatomic) AVAudioSessionPort portType API_AVAILABLE(ios(6.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
    |                                                    `- note: 'portType' has been explicitly marked unavailable here
162 |
163 | /// A descriptive name for the associated hardware port
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:586:32: error: 'AVAudioSession' is unavailable in macOS
 584 |
 585 |             // Verify if speaker is actually active
 586 |             let currentRoute = AVAudioSession.sharedInstance().currentRoute
     |                                `- error: 'AVAudioSession' is unavailable in macOS
 587 |             let isSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
 588 |
/Applications/Xcode-26.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.5.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:29:12: note: 'AVAudioSession' has been explicitly marked unavailable here
 27 | NS_SWIFT_SENDABLE
 28 | API_AVAILABLE(ios(3.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos)
 29 | @interface AVAudioSession : NSObject {
    |            `- note: 'AVAudioSession' has been explicitly marked unavailable here
 30 | @private
 31 | 	void *_impl;
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:586:47: error: 'sharedInstance()' is unavailable in macOS
 584 |
 585 |             // Verify if speaker is actually active
 586 |             let currentRoute = AVAudioSession.sharedInstance().currentRoute
     |                                               `- error: 'sharedInstance()' is unavailable in macOS
 587 |             let isSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
 588 |
AVFAudio.AVAudioSession.sharedInstance:3:19: note: 'sharedInstance()' has been explicitly marked unavailable here
1 | class AVAudioSession {
2 | @available(macOS, unavailable)
3 |   open class func sharedInstance() -> AVAudioSession}
  |                   `- note: 'sharedInstance()' has been explicitly marked unavailable here
4 |
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:586:64: error: 'currentRoute' is unavailable in macOS
 584 |
 585 |             // Verify if speaker is actually active
 586 |             let currentRoute = AVAudioSession.sharedInstance().currentRoute
     |                                                                `- error: 'currentRoute' is unavailable in macOS
 587 |             let isSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
 588 |
/Applications/Xcode-26.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.5.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:469:54: note: 'currentRoute' has been explicitly marked unavailable here
467 | /// A description of the current route, consisting of zero or more input ports and zero or more
468 | /// output ports
469 | @property (readonly) AVAudioSessionRouteDescription *currentRoute
    |                                                      `- note: 'currentRoute' has been explicitly marked unavailable here
470 | 	API_AVAILABLE(ios(6.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
471 |
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:587:48: error: 'outputs' is unavailable in macOS
 585 |             // Verify if speaker is actually active
 586 |             let currentRoute = AVAudioSession.sharedInstance().currentRoute
 587 |             let isSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
     |                                                `- error: 'outputs' is unavailable in macOS
 588 |
 589 |             if isSpeakerActive {
/Applications/Xcode-26.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.5.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionRoute.h:246:75: note: 'outputs' has been explicitly marked unavailable here
244 |
245 | /// Flattened list of all output port descriptions associated with all the streams as part of the route.
246 | @property (readonly, nonatomic) NSArray<AVAudioSessionPortDescription *> *outputs API_AVAILABLE(ios(6.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
    |                                                                           `- note: 'outputs' has been explicitly marked unavailable here
247 |
248 | @end // AVAudioSessionRouteDescription
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:587:70: error: 'portType' is unavailable in macOS
 585 |             // Verify if speaker is actually active
 586 |             let currentRoute = AVAudioSession.sharedInstance().currentRoute
 587 |             let isSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
     |                                                                      `- error: 'portType' is unavailable in macOS
 588 |
 589 |             if isSpeakerActive {
/Applications/Xcode-26.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.5.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionRoute.h:161:52: note: 'portType' has been explicitly marked unavailable here
159 | }
160 |
161 | @property (readonly, nonatomic) AVAudioSessionPort portType API_AVAILABLE(ios(6.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
    |                                                    `- note: 'portType' has been explicitly marked unavailable here
162 |
163 | /// A descriptive name for the associated hardware port
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:587:83: error: 'builtInSpeaker' is unavailable in macOS
 585 |             // Verify if speaker is actually active
 586 |             let currentRoute = AVAudioSession.sharedInstance().currentRoute
 587 |             let isSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
     |                                                                                   `- error: 'builtInSpeaker' is unavailable in macOS
 588 |
 589 |             if isSpeakerActive {
/Applications/Xcode-26.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.5.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionTypes.h:47:36: note: 'builtInSpeaker' has been explicitly marked unavailable here
 45 |
 46 | /// Built-in speaker on an iOS device
 47 | OS_EXPORT AVAudioSessionPort const AVAudioSessionPortBuiltInSpeaker   	API_AVAILABLE(ios(6.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
    |                                    `- note: 'builtInSpeaker' has been explicitly marked unavailable here
 48 |
 49 | /// Output via High-Definition Multimedia Interface
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1848:32: error: 'AVAudioSession' is unavailable in macOS
1846 |         Logger.log.i(message: "[ACM_RESET] TxClient:: setEarpiece() called")
1847 |         do {
1848 |             let audioSession = AVAudioSession.sharedInstance()
     |                                `- error: 'AVAudioSession' is unavailable in macOS
1849 |             try audioSession.overrideOutputAudioPort(.none)
1850 |             _isSpeakerEnabled = false
/Applications/Xcode-26.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.5.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:29:12: note: 'AVAudioSession' has been explicitly marked unavailable here
 27 | NS_SWIFT_SENDABLE
 28 | API_AVAILABLE(ios(3.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos)
 29 | @interface AVAudioSession : NSObject {
    |            `- note: 'AVAudioSession' has been explicitly marked unavailable here
 30 | @private
 31 | 	void *_impl;
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1848:47: error: 'sharedInstance()' is unavailable in macOS
1846 |         Logger.log.i(message: "[ACM_RESET] TxClient:: setEarpiece() called")
1847 |         do {
1848 |             let audioSession = AVAudioSession.sharedInstance()
     |                                               `- error: 'sharedInstance()' is unavailable in macOS
1849 |             try audioSession.overrideOutputAudioPort(.none)
1850 |             _isSpeakerEnabled = false
AVFAudio.AVAudioSession.sharedInstance:3:19: note: 'sharedInstance()' has been explicitly marked unavailable here
1 | class AVAudioSession {
2 | @available(macOS, unavailable)
3 |   open class func sharedInstance() -> AVAudioSession}
  |                   `- note: 'sharedInstance()' has been explicitly marked unavailable here
4 |
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1849:30: error: 'overrideOutputAudioPort' is unavailable in macOS
1847 |         do {
1848 |             let audioSession = AVAudioSession.sharedInstance()
1849 |             try audioSession.overrideOutputAudioPort(.none)
     |                              `- error: 'overrideOutputAudioPort' is unavailable in macOS
1850 |             _isSpeakerEnabled = false
1851 |             Logger.log.i(message: "[ACM_RESET] TxClient:: Earpiece set successfully, _isSpeakerEnabled: \(_isSpeakerEnabled)")
AVFAudio.AVAudioSession.overrideOutputAudioPort:3:13: note: 'overrideOutputAudioPort' has been explicitly marked unavailable here
1 | class AVAudioSession {
2 | @available(macOS, unavailable)
3 |   open func overrideOutputAudioPort(_ portOverride: AVAudioSession.PortOverride) throws}
  |             `- note: 'overrideOutputAudioPort' has been explicitly marked unavailable here
4 |
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1861:32: error: 'AVAudioSession' is unavailable in macOS
1859 |         Logger.log.i(message: "[ACM_RESET] TxClient:: setSpeaker() called")
1860 |         do {
1861 |             let audioSession = AVAudioSession.sharedInstance()
     |                                `- error: 'AVAudioSession' is unavailable in macOS
1862 |             try audioSession.overrideOutputAudioPort(.speaker)
1863 |             _isSpeakerEnabled = true
/Applications/Xcode-26.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.5.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:29:12: note: 'AVAudioSession' has been explicitly marked unavailable here
 27 | NS_SWIFT_SENDABLE
 28 | API_AVAILABLE(ios(3.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos)
 29 | @interface AVAudioSession : NSObject {
    |            `- note: 'AVAudioSession' has been explicitly marked unavailable here
 30 | @private
 31 | 	void *_impl;
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1861:47: error: 'sharedInstance()' is unavailable in macOS
1859 |         Logger.log.i(message: "[ACM_RESET] TxClient:: setSpeaker() called")
1860 |         do {
1861 |             let audioSession = AVAudioSession.sharedInstance()
     |                                               `- error: 'sharedInstance()' is unavailable in macOS
1862 |             try audioSession.overrideOutputAudioPort(.speaker)
1863 |             _isSpeakerEnabled = true
AVFAudio.AVAudioSession.sharedInstance:3:19: note: 'sharedInstance()' has been explicitly marked unavailable here
1 | class AVAudioSession {
2 | @available(macOS, unavailable)
3 |   open class func sharedInstance() -> AVAudioSession}
  |                   `- note: 'sharedInstance()' has been explicitly marked unavailable here
4 |
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1862:30: error: 'overrideOutputAudioPort' is unavailable in macOS
1860 |         do {
1861 |             let audioSession = AVAudioSession.sharedInstance()
1862 |             try audioSession.overrideOutputAudioPort(.speaker)
     |                              `- error: 'overrideOutputAudioPort' is unavailable in macOS
1863 |             _isSpeakerEnabled = true
1864 |             Logger.log.i(message: "[ACM_RESET] TxClient:: Speaker set successfully, _isSpeakerEnabled: \(_isSpeakerEnabled)")
AVFAudio.AVAudioSession.overrideOutputAudioPort:3:13: note: 'overrideOutputAudioPort' has been explicitly marked unavailable here
1 | class AVAudioSession {
2 | @available(macOS, unavailable)
3 |   open func overrideOutputAudioPort(_ portOverride: AVAudioSession.PortOverride) throws}
  |             `- note: 'overrideOutputAudioPort' has been explicitly marked unavailable here
4 |
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1862:55: error: 'speaker' is unavailable in macOS
1860 |         do {
1861 |             let audioSession = AVAudioSession.sharedInstance()
1862 |             try audioSession.overrideOutputAudioPort(.speaker)
     |                                                       `- error: 'speaker' is unavailable in macOS
1863 |             _isSpeakerEnabled = true
1864 |             Logger.log.i(message: "[ACM_RESET] TxClient:: Speaker set successfully, _isSpeakerEnabled: \(_isSpeakerEnabled)")
AVFAudio.AVAudioSession.PortOverride.speaker:4:10: note: 'speaker' has been explicitly marked unavailable here
2 |   enum PortOverride {
3 | @available(macOS, unavailable)
4 |     case speaker  }
  |          `- note: 'speaker' has been explicitly marked unavailable here
5 | }
6 |
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:2512:28: error: 'AVAudioSession' is unavailable in macOS
2510 | extension TxClient {
2511 |     internal func resetAudioConfiguration() {
2512 |         let audioSession = AVAudioSession.sharedInstance()
     |                            `- error: 'AVAudioSession' is unavailable in macOS
2513 |         do {
2514 |             try audioSession.setCategory(
/Applications/Xcode-26.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.5.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:29:12: note: 'AVAudioSession' has been explicitly marked unavailable here
 27 | NS_SWIFT_SENDABLE
 28 | API_AVAILABLE(ios(3.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos)
 29 | @interface AVAudioSession : NSObject {
    |            `- note: 'AVAudioSession' has been explicitly marked unavailable here
 30 | @private
 31 | 	void *_impl;
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:2512:43: error: 'sharedInstance()' is unavailable in macOS
2510 | extension TxClient {
2511 |     internal func resetAudioConfiguration() {
2512 |         let audioSession = AVAudioSession.sharedInstance()
     |                                           `- error: 'sharedInstance()' is unavailable in macOS
2513 |         do {
2514 |             try audioSession.setCategory(
AVFAudio.AVAudioSession.sharedInstance:3:19: note: 'sharedInstance()' has been explicitly marked unavailable here
1 | class AVAudioSession {
2 | @available(macOS, unavailable)
3 |   open class func sharedInstance() -> AVAudioSession}
  |                   `- note: 'sharedInstance()' has been explicitly marked unavailable here
4 |
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:2514:30: error: 'setCategory(_:mode:options:)' is unavailable in macOS
2512 |         let audioSession = AVAudioSession.sharedInstance()
2513 |         do {
2514 |             try audioSession.setCategory(
     |                              `- error: 'setCategory(_:mode:options:)' is unavailable in macOS
2515 |                 .playback,
2516 |                 mode: .default,
AVFAudio.AVAudioSession.setCategory:3:13: note: 'setCategory(_:mode:options:)' has been explicitly marked unavailable here
1 | class AVAudioSession {
2 | @available(macOS, unavailable)
3 |   open func setCategory(_ category: AVAudioSession.Category, mode: AVAudioSession.Mode, options: AVAudioSession.CategoryOptions = []) throws}
  |             `- note: 'setCategory(_:mode:options:)' has been explicitly marked unavailable here
4 |
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:2515:18: error: 'playback' is unavailable in macOS
2513 |         do {
2514 |             try audioSession.setCategory(
2515 |                 .playback,
     |                  `- error: 'playback' is unavailable in macOS
2516 |                 mode: .default,
2517 |                 options: [.mixWithOthers]
/Applications/Xcode-26.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.5.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionTypes.h:100:40: note: 'playback' has been explicitly marked unavailable here
 98 |
 99 | /*! Use this category for music tracks.*/
100 | OS_EXPORT AVAudioSessionCategory const AVAudioSessionCategoryPlayback			API_AVAILABLE(ios(3.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
    |                                        `- note: 'playback' has been explicitly marked unavailable here
101 |
102 | /*! Use this category when recording audio. */
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:2516:24: error: 'default' is unavailable in macOS
2514 |             try audioSession.setCategory(
2515 |                 .playback,
2516 |                 mode: .default,
     |                        `- error: 'default' is unavailable in macOS
2517 |                 options: [.mixWithOthers]
2518 |             )
/Applications/Xcode-26.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.5.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionTypes.h:136:36: note: 'default' has been explicitly marked unavailable here
134 |
135 | /*! The default mode */
136 | OS_EXPORT AVAudioSessionMode const AVAudioSessionModeDefault API_AVAILABLE(ios(5.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
    |                                    `- note: 'default' has been explicitly marked unavailable here
137 |
138 | /*! Only valid with AVAudioSessionCategoryPlayAndRecord.  Appropriate for Voice over IP
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:2525:31: error: cannot find 'RTCAudioSession' in scope
2523 |
2524 |     internal func setupCorrectAudioConfiguration() {
2525 |         let rtcAudioSession = RTCAudioSession.sharedInstance()
     |                               `- error: cannot find 'RTCAudioSession' in scope
2526 |         rtcAudioSession.lockForConfiguration()
2527 |
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:2528:29: error: cannot find 'RTCAudioSessionConfiguration' in scope
2526 |         rtcAudioSession.lockForConfiguration()
2527 |
2528 |         let configuration = RTCAudioSessionConfiguration.webRTC()
     |                             `- error: cannot find 'RTCAudioSessionConfiguration' in scope
2529 |         configuration.categoryOptions = [
2530 |             .duckOthers,
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:2530:14: error: reference to member 'duckOthers' cannot be resolved without a contextual type
2528 |         let configuration = RTCAudioSessionConfiguration.webRTC()
2529 |         configuration.categoryOptions = [
2530 |             .duckOthers,
     |              `- error: reference to member 'duckOthers' cannot be resolved without a contextual type
2531 |             .allowBluetooth,
2532 |         ]
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:2531:14: error: reference to member 'allowBluetooth' cannot be resolved without a contextual type
2529 |         configuration.categoryOptions = [
2530 |             .duckOthers,
2531 |             .allowBluetooth,
     |              `- error: reference to member 'allowBluetooth' cannot be resolved without a contextual type
2532 |         ]
2533 |
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:2545:31: error: cannot find 'RTCAudioSession' in scope
2543 |     @discardableResult
2544 |     internal func setAudioSessionActive(_ active: Bool) -> Bool {
2545 |         let rtcAudioSession = RTCAudioSession.sharedInstance()
     |                               `- error: cannot find 'RTCAudioSession' in scope
2546 |         var succeeded = false
2547 |         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 [#no-usage]
 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 [#no-usage]
 97 |             Logger.log.e(message: "Failed to read log file")
 98 |             return
[104/106] Compiling TelnyxRTC TxClientSocketDelegate.swift
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/Services/Socket.swift:190:26: warning: immutable value 'data' was never used; consider replacing with '_' or removing it [#no-usage]
188 |             break;
189 |
190 |         case .binary(let data):
    |                          `- warning: immutable value 'data' was never used; consider replacing with '_' or removing it [#no-usage]
191 |             break
192 |         case .ping(_):
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:146:21: error: 'CXAnswerCallAction' is unavailable in macOS
 144 |     /// call while signaling catches up.
 145 |     private struct PendingCallKitAnswer {
 146 |         let action: CXAnswerCallAction
     |                     `- error: 'CXAnswerCallAction' is unavailable in macOS
 147 |         let headers: [String: String]
 148 |         let debug: Bool
/Applications/Xcode-26.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.5.sdk/System/Library/Frameworks/CallKit.framework/Headers/CXAnswerCallAction.h:13:12: note: 'CXAnswerCallAction' has been explicitly marked unavailable here
11 |
12 | CX_EXTERN API_AVAILABLE(ios(10.0), macCatalyst(13.0), watchos(9.0))  API_UNAVAILABLE(macos, tvos)
13 | @interface CXAnswerCallAction : CXCallAction
   |            `- note: 'CXAnswerCallAction' has been explicitly marked unavailable here
14 |
15 | /// Normally, providers can just call -[CXAction fulfill] to indicate action fulfillment. Use this method to note a specific date that the call connected. A call is considered connected when both caller and callee can start communicating.
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:170:32: error: 'CXEndCallAction' is unavailable in macOS
 168 |     private var pendingCallKitAnswers: [UUID: PendingCallKitAnswer] = [:]
 169 |     private let pendingCallKitAnswersLock = NSLock()
 170 |     private var endCallAction: CXEndCallAction? = nil
     |                                `- error: 'CXEndCallAction' is unavailable in macOS
 171 |     private var sessionId : String?
 172 |     internal var txConfig: TxConfig?
/Applications/Xcode-26.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.5.sdk/System/Library/Frameworks/CallKit.framework/Headers/CXEndCallAction.h:13:12: note: 'CXEndCallAction' has been explicitly marked unavailable here
11 |
12 | CX_EXTERN API_AVAILABLE(ios(10.0), macCatalyst(13.0), watchos(9.0))  API_UNAVAILABLE(macos, tvos)
13 | @interface CXEndCallAction : CXCallAction
   |            `- note: 'CXEndCallAction' has been explicitly marked unavailable here
14 |
15 | /// Normally, providers can just call -[CXAction fulfill] to indicate action fulfillment. Use this method to note a specific date that the call ended.
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:324:50: error: 'AVAudioSession' is unavailable in macOS
 322 |     /// }
 323 |     /// ```
 324 |     public func enableAudioSession(audioSession: AVAudioSession) {
     |                                                  `- error: 'AVAudioSession' is unavailable in macOS
 325 |         let rtcAudioSession = RTCAudioSession.sharedInstance()
 326 |         let wasAudioEnabled = rtcAudioSession.isAudioEnabled
/Applications/Xcode-26.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.5.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:29:12: note: 'AVAudioSession' has been explicitly marked unavailable here
 27 | NS_SWIFT_SENDABLE
 28 | API_AVAILABLE(ios(3.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos)
 29 | @interface AVAudioSession : NSObject {
    |            `- note: 'AVAudioSession' has been explicitly marked unavailable here
 30 | @private
 31 | 	void *_impl;
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:350:51: error: 'AVAudioSession' is unavailable in macOS
 348 |     /// }
 349 |     /// ```
 350 |     public func disableAudioSession(audioSession: AVAudioSession) {
     |                                                   `- error: 'AVAudioSession' is unavailable in macOS
 351 |         let rtcAudioSession = RTCAudioSession.sharedInstance()
 352 |         let wasAudioEnabled = rtcAudioSession.isAudioEnabled
/Applications/Xcode-26.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.5.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:29:12: note: 'AVAudioSession' has been explicitly marked unavailable here
 27 | NS_SWIFT_SENDABLE
 28 | API_AVAILABLE(ios(3.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos)
 29 | @interface AVAudioSession : NSObject {
    |            `- note: 'AVAudioSession' has been explicitly marked unavailable here
 30 | @private
 31 | 	void *_impl;
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:364:24: error: 'AVAudioSession' is unavailable in macOS
 362 |     /// The current audio route configuration.
 363 |     /// This provides information about the active input and output ports.
 364 |     let currentRoute = AVAudioSession.sharedInstance().currentRoute
     |                        `- error: 'AVAudioSession' is unavailable in macOS
 365 |
 366 |     /// Client must be registered in order to receive or place calls.
/Applications/Xcode-26.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.5.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:29:12: note: 'AVAudioSession' has been explicitly marked unavailable here
 27 | NS_SWIFT_SENDABLE
 28 | API_AVAILABLE(ios(3.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos)
 29 | @interface AVAudioSession : NSObject {
    |            `- note: 'AVAudioSession' has been explicitly marked unavailable here
 30 | @private
 31 | 	void *_impl;
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:364:39: error: 'sharedInstance()' is unavailable in macOS
 362 |     /// The current audio route configuration.
 363 |     /// This provides information about the active input and output ports.
 364 |     let currentRoute = AVAudioSession.sharedInstance().currentRoute
     |                                       `- error: 'sharedInstance()' is unavailable in macOS
 365 |
 366 |     /// Client must be registered in order to receive or place calls.
AVFAudio.AVAudioSession.sharedInstance:3:19: note: 'sharedInstance()' has been explicitly marked unavailable here
1 | class AVAudioSession {
2 | @available(macOS, unavailable)
3 |   open class func sharedInstance() -> AVAudioSession}
  |                   `- note: 'sharedInstance()' has been explicitly marked unavailable here
4 |
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:364:56: error: 'currentRoute' is unavailable in macOS
 362 |     /// The current audio route configuration.
 363 |     /// This provides information about the active input and output ports.
 364 |     let currentRoute = AVAudioSession.sharedInstance().currentRoute
     |                                                        `- error: 'currentRoute' is unavailable in macOS
 365 |
 366 |     /// Client must be registered in order to receive or place calls.
/Applications/Xcode-26.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.5.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:469:54: note: 'currentRoute' has been explicitly marked unavailable here
467 | /// A description of the current route, consisting of zero or more input ports and zero or more
468 | /// output ports
469 | @property (readonly) AVAudioSessionRouteDescription *currentRoute
    |                                                      `- note: 'currentRoute' has been explicitly marked unavailable here
470 | 	API_AVAILABLE(ios(6.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
471 |
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:847:49: error: 'CXAnswerCallAction' is unavailable in macOS
 845 |     ///   - debug: (optional) Enable debug mode for call quality metrics and WebRTC statistics.
 846 |     ///     When enabled, real-time call quality metrics will be available through the call's `onCallQualityChange` callback.
 847 |     public func answerFromCallkit(answerAction: CXAnswerCallAction,
     |                                                 `- error: 'CXAnswerCallAction' is unavailable in macOS
 848 |                                   customHeaders: [String:String] = [:],
 849 |                                   debug: Bool = false) {
/Applications/Xcode-26.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.5.sdk/System/Library/Frameworks/CallKit.framework/Headers/CXAnswerCallAction.h:13:12: note: 'CXAnswerCallAction' has been explicitly marked unavailable here
11 |
12 | CX_EXTERN API_AVAILABLE(ios(10.0), macCatalyst(13.0), watchos(9.0))  API_UNAVAILABLE(macos, tvos)
13 | @interface CXAnswerCallAction : CXCallAction
   |            `- note: 'CXAnswerCallAction' has been explicitly marked unavailable here
14 |
15 | /// Normally, providers can just call -[CXAction fulfill] to indicate action fulfillment. Use this method to note a specific date that the call connected. A call is considered connected when both caller and callee can start communicating.
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1036:49: error: 'CXEndCallAction' is unavailable in macOS
1034 |     }
1035 |
1036 |     private func failEndCallAction(_ endAction: CXEndCallAction) {
     |                                                 `- error: 'CXEndCallAction' is unavailable in macOS
1037 |         resetPushVariables()
1038 |         endAction.fail()
/Applications/Xcode-26.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.5.sdk/System/Library/Frameworks/CallKit.framework/Headers/CXEndCallAction.h:13:12: note: 'CXEndCallAction' has been explicitly marked unavailable here
11 |
12 | CX_EXTERN API_AVAILABLE(ios(10.0), macCatalyst(13.0), watchos(9.0))  API_UNAVAILABLE(macos, tvos)
13 | @interface CXEndCallAction : CXCallAction
   |            `- note: 'CXEndCallAction' has been explicitly marked unavailable here
14 |
15 | /// Normally, providers can just call -[CXAction fulfill] to indicate action fulfillment. Use this method to note a specific date that the call ended.
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1107:47: error: 'CXEndCallAction' is unavailable in macOS
1105 |
1106 |     /// To end and control callKit active and conn
1107 |     public func endCallFromCallkit(endAction: CXEndCallAction,
     |                                               `- error: 'CXEndCallAction' is unavailable in macOS
1108 |                                    callId: UUID? = nil) {
1109 |         Logger.log.i(message: "TxClient:: endCallFromCallkit - started for callID \(String(describing: endAction.callUUID))")
/Applications/Xcode-26.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.5.sdk/System/Library/Frameworks/CallKit.framework/Headers/CXEndCallAction.h:13:12: note: 'CXEndCallAction' has been explicitly marked unavailable here
11 |
12 | CX_EXTERN API_AVAILABLE(ios(10.0), macCatalyst(13.0), watchos(9.0))  API_UNAVAILABLE(macos, tvos)
13 | @interface CXEndCallAction : CXCallAction
   |            `- note: 'CXEndCallAction' has been explicitly marked unavailable here
14 |
15 | /// Normally, providers can just call -[CXAction fulfill] to indicate action fulfillment. Use this method to note a specific date that the call ended.
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:298:20: error: cannot find 'RTCAudioSession' in scope
 296 |     public var isAudioDeviceEnabled : Bool {
 297 |         get {
 298 |             return RTCAudioSession.sharedInstance().isAudioEnabled
     |                    `- error: cannot find 'RTCAudioSession' in scope
 299 |         }
 300 |         set {
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:302:17: error: cannot find 'RTCAudioSession' in scope
 300 |         set {
 301 |             if newValue {
 302 |                 RTCAudioSession.sharedInstance().audioSessionDidActivate(AVAudioSession.sharedInstance())
     |                 `- error: cannot find 'RTCAudioSession' in scope
 303 |             } else {
 304 |                 RTCAudioSession.sharedInstance().audioSessionDidDeactivate(AVAudioSession.sharedInstance())
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:304:17: error: cannot find 'RTCAudioSession' in scope
 302 |                 RTCAudioSession.sharedInstance().audioSessionDidActivate(AVAudioSession.sharedInstance())
 303 |             } else {
 304 |                 RTCAudioSession.sharedInstance().audioSessionDidDeactivate(AVAudioSession.sharedInstance())
     |                 `- error: cannot find 'RTCAudioSession' in scope
 305 |             }
 306 |             RTCAudioSession.sharedInstance().isAudioEnabled = newValue
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:306:13: error: cannot find 'RTCAudioSession' in scope
 304 |                 RTCAudioSession.sharedInstance().audioSessionDidDeactivate(AVAudioSession.sharedInstance())
 305 |             }
 306 |             RTCAudioSession.sharedInstance().isAudioEnabled = newValue
     |             `- error: cannot find 'RTCAudioSession' in scope
 307 |         }
 308 |     }
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:325:31: error: cannot find 'RTCAudioSession' in scope
 323 |     /// ```
 324 |     public func enableAudioSession(audioSession: AVAudioSession) {
 325 |         let rtcAudioSession = RTCAudioSession.sharedInstance()
     |                               `- error: cannot find 'RTCAudioSession' in scope
 326 |         let wasAudioEnabled = rtcAudioSession.isAudioEnabled
 327 |         Logger.log.i(message: "TxClient:: enabling CallKit audio session; currentlyEnabled=\(rtcAudioSession.isAudioEnabled)")
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:351:31: error: cannot find 'RTCAudioSession' in scope
 349 |     /// ```
 350 |     public func disableAudioSession(audioSession: AVAudioSession) {
 351 |         let rtcAudioSession = RTCAudioSession.sharedInstance()
     |                               `- error: cannot find 'RTCAudioSession' in scope
 352 |         let wasAudioEnabled = rtcAudioSession.isAudioEnabled
 353 |         Logger.log.i(message: "TxClient:: disabling CallKit audio session; currentlyEnabled=\(rtcAudioSession.isAudioEnabled)")
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:430:63: error: 'AVAudioSession' is unavailable in macOS
 428 |
 429 |         // Remove audio route change observer
 430 |         NotificationCenter.default.removeObserver(self, name: AVAudioSession.routeChangeNotification, object: nil)
     |                                                               `- error: 'AVAudioSession' is unavailable in macOS
 431 |
 432 |         // Remove ACM reset observers
/Applications/Xcode-26.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.5.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:29:12: note: 'AVAudioSession' has been explicitly marked unavailable here
 27 | NS_SWIFT_SENDABLE
 28 | API_AVAILABLE(ios(3.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos)
 29 | @interface AVAudioSession : NSObject {
    |            `- note: 'AVAudioSession' has been explicitly marked unavailable here
 30 | @private
 31 | 	void *_impl;
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:430:78: error: 'routeChangeNotification' is unavailable in macOS
 428 |
 429 |         // Remove audio route change observer
 430 |         NotificationCenter.default.removeObserver(self, name: AVAudioSession.routeChangeNotification, object: nil)
     |                                                                              `- error: 'routeChangeNotification' is unavailable in macOS
 431 |
 432 |         // Remove ACM reset observers
/Applications/Xcode-26.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.5.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionTypes.h:235:37: note: 'routeChangeNotification' has been explicitly marked unavailable here
233 | 	of the previous audio route.
234 | */
235 | OS_EXPORT NSNotificationName const  AVAudioSessionRouteChangeNotification API_AVAILABLE(ios(6.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
    |                                     `- note: 'routeChangeNotification' has been explicitly marked unavailable here
236 |
237 | /*!
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:450:19: error: 'AVAudioSession' is unavailable in macOS
 448 |             self,
 449 |             selector: #selector(handleAudioRouteChange),
 450 |             name: AVAudioSession.routeChangeNotification,
     |                   `- error: 'AVAudioSession' is unavailable in macOS
 451 |             object: nil)
 452 |
/Applications/Xcode-26.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.5.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:29:12: note: 'AVAudioSession' has been explicitly marked unavailable here
 27 | NS_SWIFT_SENDABLE
 28 | API_AVAILABLE(ios(3.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos)
 29 | @interface AVAudioSession : NSObject {
    |            `- note: 'AVAudioSession' has been explicitly marked unavailable here
 30 | @private
 31 | 	void *_impl;
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:450:34: error: 'routeChangeNotification' is unavailable in macOS
 448 |             self,
 449 |             selector: #selector(handleAudioRouteChange),
 450 |             name: AVAudioSession.routeChangeNotification,
     |                                  `- error: 'routeChangeNotification' is unavailable in macOS
 451 |             object: nil)
 452 |
/Applications/Xcode-26.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.5.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionTypes.h:235:37: note: 'routeChangeNotification' has been explicitly marked unavailable here
233 | 	of the previous audio route.
234 | */
235 | OS_EXPORT NSNotificationName const  AVAudioSessionRouteChangeNotification API_AVAILABLE(ios(6.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
    |                                     `- note: 'routeChangeNotification' has been explicitly marked unavailable here
236 |
237 | /*!
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:487:42: error: 'AVAudioSessionRouteChangeReasonKey' is unavailable in macOS
 485 |     @objc private func handleAudioRouteChange(notification: Notification) {
 486 |         guard let userInfo = notification.userInfo,
 487 |               let reasonValue = userInfo[AVAudioSessionRouteChangeReasonKey] as? UInt,
     |                                          `- error: 'AVAudioSessionRouteChangeReasonKey' is unavailable in macOS
 488 |               let reason = AVAudioSession.RouteChangeReason(rawValue: reasonValue) else {
 489 |             return
/Applications/Xcode-26.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.5.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionTypes.h:339:27: note: 'AVAudioSessionRouteChangeReasonKey' has been explicitly marked unavailable here
337 | /// keys for AVAudioSessionRouteChangeNotification
338 | /// value is an NSNumber representing an AVAudioSessionRouteChangeReason
339 | OS_EXPORT NSString *const AVAudioSessionRouteChangeReasonKey API_AVAILABLE(ios(6.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
    |                           `- note: 'AVAudioSessionRouteChangeReasonKey' has been explicitly marked unavailable here
340 | /// value is AVAudioSessionRouteDescription *
341 | OS_EXPORT NSString *const AVAudioSessionRouteChangePreviousRouteKey API_AVAILABLE(ios(6.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:488:28: error: 'AVAudioSession' is unavailable in macOS
 486 |         guard let userInfo = notification.userInfo,
 487 |               let reasonValue = userInfo[AVAudioSessionRouteChangeReasonKey] as? UInt,
 488 |               let reason = AVAudioSession.RouteChangeReason(rawValue: reasonValue) else {
     |                            `- error: 'AVAudioSession' is unavailable in macOS
 489 |             return
 490 |         }
/Applications/Xcode-26.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.5.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:29:12: note: 'AVAudioSession' has been explicitly marked unavailable here
 27 | NS_SWIFT_SENDABLE
 28 | API_AVAILABLE(ios(3.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos)
 29 | @interface AVAudioSession : NSObject {
    |            `- note: 'AVAudioSession' has been explicitly marked unavailable here
 30 | @private
 31 | 	void *_impl;
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:492:23: error: 'AVAudioSession' is unavailable in macOS
 490 |         }
 491 |
 492 |         let session = AVAudioSession.sharedInstance()
     |                       `- error: 'AVAudioSession' is unavailable in macOS
 493 |         let currentRoute = session.currentRoute
 494 |
/Applications/Xcode-26.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.5.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:29:12: note: 'AVAudioSession' has been explicitly marked unavailable here
 27 | NS_SWIFT_SENDABLE
 28 | API_AVAILABLE(ios(3.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos)
 29 | @interface AVAudioSession : NSObject {
    |            `- note: 'AVAudioSession' has been explicitly marked unavailable here
 30 | @private
 31 | 	void *_impl;
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:492:38: error: 'sharedInstance()' is unavailable in macOS
 490 |         }
 491 |
 492 |         let session = AVAudioSession.sharedInstance()
     |                                      `- error: 'sharedInstance()' is unavailable in macOS
 493 |         let currentRoute = session.currentRoute
 494 |
AVFAudio.AVAudioSession.sharedInstance:3:19: note: 'sharedInstance()' has been explicitly marked unavailable here
1 | class AVAudioSession {
2 | @available(macOS, unavailable)
3 |   open class func sharedInstance() -> AVAudioSession}
  |                   `- note: 'sharedInstance()' has been explicitly marked unavailable here
4 |
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:493:36: error: 'currentRoute' is unavailable in macOS
 491 |
 492 |         let session = AVAudioSession.sharedInstance()
 493 |         let currentRoute = session.currentRoute
     |                                    `- error: 'currentRoute' is unavailable in macOS
 494 |
 495 |         // Ensure we have at least one output port
/Applications/Xcode-26.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.5.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:469:54: note: 'currentRoute' has been explicitly marked unavailable here
467 | /// A description of the current route, consisting of zero or more input ports and zero or more
468 | /// output ports
469 | @property (readonly) AVAudioSessionRouteDescription *currentRoute
    |                                                      `- note: 'currentRoute' has been explicitly marked unavailable here
470 | 	API_AVAILABLE(ios(6.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
471 |
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:496:41: error: 'outputs' is unavailable in macOS
 494 |
 495 |         // Ensure we have at least one output port
 496 |         guard let output = currentRoute.outputs.first else {
     |                                         `- error: 'outputs' is unavailable in macOS
 497 |             return
 498 |         }
/Applications/Xcode-26.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.5.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionRoute.h:246:75: note: 'outputs' has been explicitly marked unavailable here
244 |
245 | /// Flattened list of all output port descriptions associated with all the streams as part of the route.
246 | @property (readonly, nonatomic) NSArray<AVAudioSessionPortDescription *> *outputs API_AVAILABLE(ios(6.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
    |                                                                           `- note: 'outputs' has been explicitly marked unavailable here
247 |
248 | @end // AVAudioSessionRouteDescription
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:500:85: error: 'portType' is unavailable in macOS
 498 |         }
 499 |
 500 |         Logger.log.i(message: "[ACM_RESET] TxClient:: Audio route changed: \(output.portType), reason: \(reason), isACMResetInProgress: \(isACMResetInProgress)")
     |                                                                                     `- error: 'portType' is unavailable in macOS
 501 |
 502 |         // Ignore audio route changes during ACM reset to prevent state desynchronization
/Applications/Xcode-26.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.5.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionRoute.h:161:52: note: 'portType' has been explicitly marked unavailable here
159 | }
160 |
161 | @property (readonly, nonatomic) AVAudioSessionPort portType API_AVAILABLE(ios(6.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
    |                                                    `- note: 'portType' has been explicitly marked unavailable here
162 |
163 | /// A descriptive name for the associated hardware port
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:511:40: error: 'portType' is unavailable in macOS
 509 |             case .categoryChange, .override, .routeConfigurationChange:
 510 |                 // Update internal speaker state based on current output
 511 |                 let isSpeaker = output.portType == .builtInSpeaker
     |                                        `- error: 'portType' is unavailable in macOS
 512 |                 _isSpeakerEnabled = isSpeaker
 513 |
/Applications/Xcode-26.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.5.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionRoute.h:161:52: note: 'portType' has been explicitly marked unavailable here
159 | }
160 |
161 | @property (readonly, nonatomic) AVAudioSessionPort portType API_AVAILABLE(ios(6.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
    |                                                    `- note: 'portType' has been explicitly marked unavailable here
162 |
163 | /// A descriptive name for the associated hardware port
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:511:53: error: 'builtInSpeaker' is unavailable in macOS
 509 |             case .categoryChange, .override, .routeConfigurationChange:
 510 |                 // Update internal speaker state based on current output
 511 |                 let isSpeaker = output.portType == .builtInSpeaker
     |                                                     `- error: 'builtInSpeaker' is unavailable in macOS
 512 |                 _isSpeakerEnabled = isSpeaker
 513 |
/Applications/Xcode-26.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.5.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionTypes.h:47:36: note: 'builtInSpeaker' has been explicitly marked unavailable here
 45 |
 46 | /// Built-in speaker on an iOS device
 47 | OS_EXPORT AVAudioSessionPort const AVAudioSessionPortBuiltInSpeaker   	API_AVAILABLE(ios(6.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
    |                                    `- note: 'builtInSpeaker' has been explicitly marked unavailable here
 48 |
 49 | /// Output via High-Definition Multimedia Interface
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:520:50: error: 'portType' is unavailable in macOS
 518 |                     userInfo: [
 519 |                         "isSpeakerEnabled": isSpeaker,
 520 |                         "outputPortType": output.portType
     |                                                  `- error: 'portType' is unavailable in macOS
 521 |                     ]
 522 |                 )
/Applications/Xcode-26.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.5.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionRoute.h:161:52: note: 'portType' has been explicitly marked unavailable here
159 | }
160 |
161 | @property (readonly, nonatomic) AVAudioSessionPort portType API_AVAILABLE(ios(6.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
    |                                                    `- note: 'portType' has been explicitly marked unavailable here
162 |
163 | /// A descriptive name for the associated hardware port
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:586:32: error: 'AVAudioSession' is unavailable in macOS
 584 |
 585 |             // Verify if speaker is actually active
 586 |             let currentRoute = AVAudioSession.sharedInstance().currentRoute
     |                                `- error: 'AVAudioSession' is unavailable in macOS
 587 |             let isSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
 588 |
/Applications/Xcode-26.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.5.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:29:12: note: 'AVAudioSession' has been explicitly marked unavailable here
 27 | NS_SWIFT_SENDABLE
 28 | API_AVAILABLE(ios(3.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos)
 29 | @interface AVAudioSession : NSObject {
    |            `- note: 'AVAudioSession' has been explicitly marked unavailable here
 30 | @private
 31 | 	void *_impl;
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:586:47: error: 'sharedInstance()' is unavailable in macOS
 584 |
 585 |             // Verify if speaker is actually active
 586 |             let currentRoute = AVAudioSession.sharedInstance().currentRoute
     |                                               `- error: 'sharedInstance()' is unavailable in macOS
 587 |             let isSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
 588 |
AVFAudio.AVAudioSession.sharedInstance:3:19: note: 'sharedInstance()' has been explicitly marked unavailable here
1 | class AVAudioSession {
2 | @available(macOS, unavailable)
3 |   open class func sharedInstance() -> AVAudioSession}
  |                   `- note: 'sharedInstance()' has been explicitly marked unavailable here
4 |
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:586:64: error: 'currentRoute' is unavailable in macOS
 584 |
 585 |             // Verify if speaker is actually active
 586 |             let currentRoute = AVAudioSession.sharedInstance().currentRoute
     |                                                                `- error: 'currentRoute' is unavailable in macOS
 587 |             let isSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
 588 |
/Applications/Xcode-26.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.5.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:469:54: note: 'currentRoute' has been explicitly marked unavailable here
467 | /// A description of the current route, consisting of zero or more input ports and zero or more
468 | /// output ports
469 | @property (readonly) AVAudioSessionRouteDescription *currentRoute
    |                                                      `- note: 'currentRoute' has been explicitly marked unavailable here
470 | 	API_AVAILABLE(ios(6.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
471 |
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:587:48: error: 'outputs' is unavailable in macOS
 585 |             // Verify if speaker is actually active
 586 |             let currentRoute = AVAudioSession.sharedInstance().currentRoute
 587 |             let isSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
     |                                                `- error: 'outputs' is unavailable in macOS
 588 |
 589 |             if isSpeakerActive {
/Applications/Xcode-26.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.5.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionRoute.h:246:75: note: 'outputs' has been explicitly marked unavailable here
244 |
245 | /// Flattened list of all output port descriptions associated with all the streams as part of the route.
246 | @property (readonly, nonatomic) NSArray<AVAudioSessionPortDescription *> *outputs API_AVAILABLE(ios(6.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
    |                                                                           `- note: 'outputs' has been explicitly marked unavailable here
247 |
248 | @end // AVAudioSessionRouteDescription
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:587:70: error: 'portType' is unavailable in macOS
 585 |             // Verify if speaker is actually active
 586 |             let currentRoute = AVAudioSession.sharedInstance().currentRoute
 587 |             let isSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
     |                                                                      `- error: 'portType' is unavailable in macOS
 588 |
 589 |             if isSpeakerActive {
/Applications/Xcode-26.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.5.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionRoute.h:161:52: note: 'portType' has been explicitly marked unavailable here
159 | }
160 |
161 | @property (readonly, nonatomic) AVAudioSessionPort portType API_AVAILABLE(ios(6.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
    |                                                    `- note: 'portType' has been explicitly marked unavailable here
162 |
163 | /// A descriptive name for the associated hardware port
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:587:83: error: 'builtInSpeaker' is unavailable in macOS
 585 |             // Verify if speaker is actually active
 586 |             let currentRoute = AVAudioSession.sharedInstance().currentRoute
 587 |             let isSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
     |                                                                                   `- error: 'builtInSpeaker' is unavailable in macOS
 588 |
 589 |             if isSpeakerActive {
/Applications/Xcode-26.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.5.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionTypes.h:47:36: note: 'builtInSpeaker' has been explicitly marked unavailable here
 45 |
 46 | /// Built-in speaker on an iOS device
 47 | OS_EXPORT AVAudioSessionPort const AVAudioSessionPortBuiltInSpeaker   	API_AVAILABLE(ios(6.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
    |                                    `- note: 'builtInSpeaker' has been explicitly marked unavailable here
 48 |
 49 | /// Output via High-Definition Multimedia Interface
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1848:32: error: 'AVAudioSession' is unavailable in macOS
1846 |         Logger.log.i(message: "[ACM_RESET] TxClient:: setEarpiece() called")
1847 |         do {
1848 |             let audioSession = AVAudioSession.sharedInstance()
     |                                `- error: 'AVAudioSession' is unavailable in macOS
1849 |             try audioSession.overrideOutputAudioPort(.none)
1850 |             _isSpeakerEnabled = false
/Applications/Xcode-26.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.5.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:29:12: note: 'AVAudioSession' has been explicitly marked unavailable here
 27 | NS_SWIFT_SENDABLE
 28 | API_AVAILABLE(ios(3.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos)
 29 | @interface AVAudioSession : NSObject {
    |            `- note: 'AVAudioSession' has been explicitly marked unavailable here
 30 | @private
 31 | 	void *_impl;
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1848:47: error: 'sharedInstance()' is unavailable in macOS
1846 |         Logger.log.i(message: "[ACM_RESET] TxClient:: setEarpiece() called")
1847 |         do {
1848 |             let audioSession = AVAudioSession.sharedInstance()
     |                                               `- error: 'sharedInstance()' is unavailable in macOS
1849 |             try audioSession.overrideOutputAudioPort(.none)
1850 |             _isSpeakerEnabled = false
AVFAudio.AVAudioSession.sharedInstance:3:19: note: 'sharedInstance()' has been explicitly marked unavailable here
1 | class AVAudioSession {
2 | @available(macOS, unavailable)
3 |   open class func sharedInstance() -> AVAudioSession}
  |                   `- note: 'sharedInstance()' has been explicitly marked unavailable here
4 |
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1849:30: error: 'overrideOutputAudioPort' is unavailable in macOS
1847 |         do {
1848 |             let audioSession = AVAudioSession.sharedInstance()
1849 |             try audioSession.overrideOutputAudioPort(.none)
     |                              `- error: 'overrideOutputAudioPort' is unavailable in macOS
1850 |             _isSpeakerEnabled = false
1851 |             Logger.log.i(message: "[ACM_RESET] TxClient:: Earpiece set successfully, _isSpeakerEnabled: \(_isSpeakerEnabled)")
AVFAudio.AVAudioSession.overrideOutputAudioPort:3:13: note: 'overrideOutputAudioPort' has been explicitly marked unavailable here
1 | class AVAudioSession {
2 | @available(macOS, unavailable)
3 |   open func overrideOutputAudioPort(_ portOverride: AVAudioSession.PortOverride) throws}
  |             `- note: 'overrideOutputAudioPort' has been explicitly marked unavailable here
4 |
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1861:32: error: 'AVAudioSession' is unavailable in macOS
1859 |         Logger.log.i(message: "[ACM_RESET] TxClient:: setSpeaker() called")
1860 |         do {
1861 |             let audioSession = AVAudioSession.sharedInstance()
     |                                `- error: 'AVAudioSession' is unavailable in macOS
1862 |             try audioSession.overrideOutputAudioPort(.speaker)
1863 |             _isSpeakerEnabled = true
/Applications/Xcode-26.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.5.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:29:12: note: 'AVAudioSession' has been explicitly marked unavailable here
 27 | NS_SWIFT_SENDABLE
 28 | API_AVAILABLE(ios(3.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos)
 29 | @interface AVAudioSession : NSObject {
    |            `- note: 'AVAudioSession' has been explicitly marked unavailable here
 30 | @private
 31 | 	void *_impl;
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1861:47: error: 'sharedInstance()' is unavailable in macOS
1859 |         Logger.log.i(message: "[ACM_RESET] TxClient:: setSpeaker() called")
1860 |         do {
1861 |             let audioSession = AVAudioSession.sharedInstance()
     |                                               `- error: 'sharedInstance()' is unavailable in macOS
1862 |             try audioSession.overrideOutputAudioPort(.speaker)
1863 |             _isSpeakerEnabled = true
AVFAudio.AVAudioSession.sharedInstance:3:19: note: 'sharedInstance()' has been explicitly marked unavailable here
1 | class AVAudioSession {
2 | @available(macOS, unavailable)
3 |   open class func sharedInstance() -> AVAudioSession}
  |                   `- note: 'sharedInstance()' has been explicitly marked unavailable here
4 |
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1862:30: error: 'overrideOutputAudioPort' is unavailable in macOS
1860 |         do {
1861 |             let audioSession = AVAudioSession.sharedInstance()
1862 |             try audioSession.overrideOutputAudioPort(.speaker)
     |                              `- error: 'overrideOutputAudioPort' is unavailable in macOS
1863 |             _isSpeakerEnabled = true
1864 |             Logger.log.i(message: "[ACM_RESET] TxClient:: Speaker set successfully, _isSpeakerEnabled: \(_isSpeakerEnabled)")
AVFAudio.AVAudioSession.overrideOutputAudioPort:3:13: note: 'overrideOutputAudioPort' has been explicitly marked unavailable here
1 | class AVAudioSession {
2 | @available(macOS, unavailable)
3 |   open func overrideOutputAudioPort(_ portOverride: AVAudioSession.PortOverride) throws}
  |             `- note: 'overrideOutputAudioPort' has been explicitly marked unavailable here
4 |
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1862:55: error: 'speaker' is unavailable in macOS
1860 |         do {
1861 |             let audioSession = AVAudioSession.sharedInstance()
1862 |             try audioSession.overrideOutputAudioPort(.speaker)
     |                                                       `- error: 'speaker' is unavailable in macOS
1863 |             _isSpeakerEnabled = true
1864 |             Logger.log.i(message: "[ACM_RESET] TxClient:: Speaker set successfully, _isSpeakerEnabled: \(_isSpeakerEnabled)")
AVFAudio.AVAudioSession.PortOverride.speaker:4:10: note: 'speaker' has been explicitly marked unavailable here
2 |   enum PortOverride {
3 | @available(macOS, unavailable)
4 |     case speaker  }
  |          `- note: 'speaker' has been explicitly marked unavailable here
5 | }
6 |
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:2512:28: error: 'AVAudioSession' is unavailable in macOS
2510 | extension TxClient {
2511 |     internal func resetAudioConfiguration() {
2512 |         let audioSession = AVAudioSession.sharedInstance()
     |                            `- error: 'AVAudioSession' is unavailable in macOS
2513 |         do {
2514 |             try audioSession.setCategory(
/Applications/Xcode-26.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.5.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:29:12: note: 'AVAudioSession' has been explicitly marked unavailable here
 27 | NS_SWIFT_SENDABLE
 28 | API_AVAILABLE(ios(3.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos)
 29 | @interface AVAudioSession : NSObject {
    |            `- note: 'AVAudioSession' has been explicitly marked unavailable here
 30 | @private
 31 | 	void *_impl;
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:2512:43: error: 'sharedInstance()' is unavailable in macOS
2510 | extension TxClient {
2511 |     internal func resetAudioConfiguration() {
2512 |         let audioSession = AVAudioSession.sharedInstance()
     |                                           `- error: 'sharedInstance()' is unavailable in macOS
2513 |         do {
2514 |             try audioSession.setCategory(
AVFAudio.AVAudioSession.sharedInstance:3:19: note: 'sharedInstance()' has been explicitly marked unavailable here
1 | class AVAudioSession {
2 | @available(macOS, unavailable)
3 |   open class func sharedInstance() -> AVAudioSession}
  |                   `- note: 'sharedInstance()' has been explicitly marked unavailable here
4 |
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:2514:30: error: 'setCategory(_:mode:options:)' is unavailable in macOS
2512 |         let audioSession = AVAudioSession.sharedInstance()
2513 |         do {
2514 |             try audioSession.setCategory(
     |                              `- error: 'setCategory(_:mode:options:)' is unavailable in macOS
2515 |                 .playback,
2516 |                 mode: .default,
AVFAudio.AVAudioSession.setCategory:3:13: note: 'setCategory(_:mode:options:)' has been explicitly marked unavailable here
1 | class AVAudioSession {
2 | @available(macOS, unavailable)
3 |   open func setCategory(_ category: AVAudioSession.Category, mode: AVAudioSession.Mode, options: AVAudioSession.CategoryOptions = []) throws}
  |             `- note: 'setCategory(_:mode:options:)' has been explicitly marked unavailable here
4 |
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:2515:18: error: 'playback' is unavailable in macOS
2513 |         do {
2514 |             try audioSession.setCategory(
2515 |                 .playback,
     |                  `- error: 'playback' is unavailable in macOS
2516 |                 mode: .default,
2517 |                 options: [.mixWithOthers]
/Applications/Xcode-26.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.5.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionTypes.h:100:40: note: 'playback' has been explicitly marked unavailable here
 98 |
 99 | /*! Use this category for music tracks.*/
100 | OS_EXPORT AVAudioSessionCategory const AVAudioSessionCategoryPlayback			API_AVAILABLE(ios(3.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
    |                                        `- note: 'playback' has been explicitly marked unavailable here
101 |
102 | /*! Use this category when recording audio. */
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:2516:24: error: 'default' is unavailable in macOS
2514 |             try audioSession.setCategory(
2515 |                 .playback,
2516 |                 mode: .default,
     |                        `- error: 'default' is unavailable in macOS
2517 |                 options: [.mixWithOthers]
2518 |             )
/Applications/Xcode-26.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.5.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionTypes.h:136:36: note: 'default' has been explicitly marked unavailable here
134 |
135 | /*! The default mode */
136 | OS_EXPORT AVAudioSessionMode const AVAudioSessionModeDefault API_AVAILABLE(ios(5.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
    |                                    `- note: 'default' has been explicitly marked unavailable here
137 |
138 | /*! Only valid with AVAudioSessionCategoryPlayAndRecord.  Appropriate for Voice over IP
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:2525:31: error: cannot find 'RTCAudioSession' in scope
2523 |
2524 |     internal func setupCorrectAudioConfiguration() {
2525 |         let rtcAudioSession = RTCAudioSession.sharedInstance()
     |                               `- error: cannot find 'RTCAudioSession' in scope
2526 |         rtcAudioSession.lockForConfiguration()
2527 |
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:2528:29: error: cannot find 'RTCAudioSessionConfiguration' in scope
2526 |         rtcAudioSession.lockForConfiguration()
2527 |
2528 |         let configuration = RTCAudioSessionConfiguration.webRTC()
     |                             `- error: cannot find 'RTCAudioSessionConfiguration' in scope
2529 |         configuration.categoryOptions = [
2530 |             .duckOthers,
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:2530:14: error: reference to member 'duckOthers' cannot be resolved without a contextual type
2528 |         let configuration = RTCAudioSessionConfiguration.webRTC()
2529 |         configuration.categoryOptions = [
2530 |             .duckOthers,
     |              `- error: reference to member 'duckOthers' cannot be resolved without a contextual type
2531 |             .allowBluetooth,
2532 |         ]
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:2531:14: error: reference to member 'allowBluetooth' cannot be resolved without a contextual type
2529 |         configuration.categoryOptions = [
2530 |             .duckOthers,
2531 |             .allowBluetooth,
     |              `- error: reference to member 'allowBluetooth' cannot be resolved without a contextual type
2532 |         ]
2533 |
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:2545:31: error: cannot find 'RTCAudioSession' in scope
2543 |     @discardableResult
2544 |     internal func setAudioSessionActive(_ active: Bool) -> Bool {
2545 |         let rtcAudioSession = RTCAudioSession.sharedInstance()
     |                               `- error: cannot find 'RTCAudioSession' in scope
2546 |         var succeeded = false
2547 |         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 [#no-usage]
 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 [#no-usage]
 97 |             Logger.log.e(message: "Failed to read log file")
 98 |             return
[105/106] Compiling TelnyxRTC CallTimingBenchmark.swift
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/Services/Socket.swift:190:26: warning: immutable value 'data' was never used; consider replacing with '_' or removing it [#no-usage]
188 |             break;
189 |
190 |         case .binary(let data):
    |                          `- warning: immutable value 'data' was never used; consider replacing with '_' or removing it [#no-usage]
191 |             break
192 |         case .ping(_):
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:146:21: error: 'CXAnswerCallAction' is unavailable in macOS
 144 |     /// call while signaling catches up.
 145 |     private struct PendingCallKitAnswer {
 146 |         let action: CXAnswerCallAction
     |                     `- error: 'CXAnswerCallAction' is unavailable in macOS
 147 |         let headers: [String: String]
 148 |         let debug: Bool
/Applications/Xcode-26.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.5.sdk/System/Library/Frameworks/CallKit.framework/Headers/CXAnswerCallAction.h:13:12: note: 'CXAnswerCallAction' has been explicitly marked unavailable here
11 |
12 | CX_EXTERN API_AVAILABLE(ios(10.0), macCatalyst(13.0), watchos(9.0))  API_UNAVAILABLE(macos, tvos)
13 | @interface CXAnswerCallAction : CXCallAction
   |            `- note: 'CXAnswerCallAction' has been explicitly marked unavailable here
14 |
15 | /// Normally, providers can just call -[CXAction fulfill] to indicate action fulfillment. Use this method to note a specific date that the call connected. A call is considered connected when both caller and callee can start communicating.
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:170:32: error: 'CXEndCallAction' is unavailable in macOS
 168 |     private var pendingCallKitAnswers: [UUID: PendingCallKitAnswer] = [:]
 169 |     private let pendingCallKitAnswersLock = NSLock()
 170 |     private var endCallAction: CXEndCallAction? = nil
     |                                `- error: 'CXEndCallAction' is unavailable in macOS
 171 |     private var sessionId : String?
 172 |     internal var txConfig: TxConfig?
/Applications/Xcode-26.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.5.sdk/System/Library/Frameworks/CallKit.framework/Headers/CXEndCallAction.h:13:12: note: 'CXEndCallAction' has been explicitly marked unavailable here
11 |
12 | CX_EXTERN API_AVAILABLE(ios(10.0), macCatalyst(13.0), watchos(9.0))  API_UNAVAILABLE(macos, tvos)
13 | @interface CXEndCallAction : CXCallAction
   |            `- note: 'CXEndCallAction' has been explicitly marked unavailable here
14 |
15 | /// Normally, providers can just call -[CXAction fulfill] to indicate action fulfillment. Use this method to note a specific date that the call ended.
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:324:50: error: 'AVAudioSession' is unavailable in macOS
 322 |     /// }
 323 |     /// ```
 324 |     public func enableAudioSession(audioSession: AVAudioSession) {
     |                                                  `- error: 'AVAudioSession' is unavailable in macOS
 325 |         let rtcAudioSession = RTCAudioSession.sharedInstance()
 326 |         let wasAudioEnabled = rtcAudioSession.isAudioEnabled
/Applications/Xcode-26.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.5.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:29:12: note: 'AVAudioSession' has been explicitly marked unavailable here
 27 | NS_SWIFT_SENDABLE
 28 | API_AVAILABLE(ios(3.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos)
 29 | @interface AVAudioSession : NSObject {
    |            `- note: 'AVAudioSession' has been explicitly marked unavailable here
 30 | @private
 31 | 	void *_impl;
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:350:51: error: 'AVAudioSession' is unavailable in macOS
 348 |     /// }
 349 |     /// ```
 350 |     public func disableAudioSession(audioSession: AVAudioSession) {
     |                                                   `- error: 'AVAudioSession' is unavailable in macOS
 351 |         let rtcAudioSession = RTCAudioSession.sharedInstance()
 352 |         let wasAudioEnabled = rtcAudioSession.isAudioEnabled
/Applications/Xcode-26.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.5.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:29:12: note: 'AVAudioSession' has been explicitly marked unavailable here
 27 | NS_SWIFT_SENDABLE
 28 | API_AVAILABLE(ios(3.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos)
 29 | @interface AVAudioSession : NSObject {
    |            `- note: 'AVAudioSession' has been explicitly marked unavailable here
 30 | @private
 31 | 	void *_impl;
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:364:24: error: 'AVAudioSession' is unavailable in macOS
 362 |     /// The current audio route configuration.
 363 |     /// This provides information about the active input and output ports.
 364 |     let currentRoute = AVAudioSession.sharedInstance().currentRoute
     |                        `- error: 'AVAudioSession' is unavailable in macOS
 365 |
 366 |     /// Client must be registered in order to receive or place calls.
/Applications/Xcode-26.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.5.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:29:12: note: 'AVAudioSession' has been explicitly marked unavailable here
 27 | NS_SWIFT_SENDABLE
 28 | API_AVAILABLE(ios(3.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos)
 29 | @interface AVAudioSession : NSObject {
    |            `- note: 'AVAudioSession' has been explicitly marked unavailable here
 30 | @private
 31 | 	void *_impl;
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:364:39: error: 'sharedInstance()' is unavailable in macOS
 362 |     /// The current audio route configuration.
 363 |     /// This provides information about the active input and output ports.
 364 |     let currentRoute = AVAudioSession.sharedInstance().currentRoute
     |                                       `- error: 'sharedInstance()' is unavailable in macOS
 365 |
 366 |     /// Client must be registered in order to receive or place calls.
AVFAudio.AVAudioSession.sharedInstance:3:19: note: 'sharedInstance()' has been explicitly marked unavailable here
1 | class AVAudioSession {
2 | @available(macOS, unavailable)
3 |   open class func sharedInstance() -> AVAudioSession}
  |                   `- note: 'sharedInstance()' has been explicitly marked unavailable here
4 |
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:364:56: error: 'currentRoute' is unavailable in macOS
 362 |     /// The current audio route configuration.
 363 |     /// This provides information about the active input and output ports.
 364 |     let currentRoute = AVAudioSession.sharedInstance().currentRoute
     |                                                        `- error: 'currentRoute' is unavailable in macOS
 365 |
 366 |     /// Client must be registered in order to receive or place calls.
/Applications/Xcode-26.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.5.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:469:54: note: 'currentRoute' has been explicitly marked unavailable here
467 | /// A description of the current route, consisting of zero or more input ports and zero or more
468 | /// output ports
469 | @property (readonly) AVAudioSessionRouteDescription *currentRoute
    |                                                      `- note: 'currentRoute' has been explicitly marked unavailable here
470 | 	API_AVAILABLE(ios(6.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
471 |
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:847:49: error: 'CXAnswerCallAction' is unavailable in macOS
 845 |     ///   - debug: (optional) Enable debug mode for call quality metrics and WebRTC statistics.
 846 |     ///     When enabled, real-time call quality metrics will be available through the call's `onCallQualityChange` callback.
 847 |     public func answerFromCallkit(answerAction: CXAnswerCallAction,
     |                                                 `- error: 'CXAnswerCallAction' is unavailable in macOS
 848 |                                   customHeaders: [String:String] = [:],
 849 |                                   debug: Bool = false) {
/Applications/Xcode-26.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.5.sdk/System/Library/Frameworks/CallKit.framework/Headers/CXAnswerCallAction.h:13:12: note: 'CXAnswerCallAction' has been explicitly marked unavailable here
11 |
12 | CX_EXTERN API_AVAILABLE(ios(10.0), macCatalyst(13.0), watchos(9.0))  API_UNAVAILABLE(macos, tvos)
13 | @interface CXAnswerCallAction : CXCallAction
   |            `- note: 'CXAnswerCallAction' has been explicitly marked unavailable here
14 |
15 | /// Normally, providers can just call -[CXAction fulfill] to indicate action fulfillment. Use this method to note a specific date that the call connected. A call is considered connected when both caller and callee can start communicating.
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1036:49: error: 'CXEndCallAction' is unavailable in macOS
1034 |     }
1035 |
1036 |     private func failEndCallAction(_ endAction: CXEndCallAction) {
     |                                                 `- error: 'CXEndCallAction' is unavailable in macOS
1037 |         resetPushVariables()
1038 |         endAction.fail()
/Applications/Xcode-26.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.5.sdk/System/Library/Frameworks/CallKit.framework/Headers/CXEndCallAction.h:13:12: note: 'CXEndCallAction' has been explicitly marked unavailable here
11 |
12 | CX_EXTERN API_AVAILABLE(ios(10.0), macCatalyst(13.0), watchos(9.0))  API_UNAVAILABLE(macos, tvos)
13 | @interface CXEndCallAction : CXCallAction
   |            `- note: 'CXEndCallAction' has been explicitly marked unavailable here
14 |
15 | /// Normally, providers can just call -[CXAction fulfill] to indicate action fulfillment. Use this method to note a specific date that the call ended.
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1107:47: error: 'CXEndCallAction' is unavailable in macOS
1105 |
1106 |     /// To end and control callKit active and conn
1107 |     public func endCallFromCallkit(endAction: CXEndCallAction,
     |                                               `- error: 'CXEndCallAction' is unavailable in macOS
1108 |                                    callId: UUID? = nil) {
1109 |         Logger.log.i(message: "TxClient:: endCallFromCallkit - started for callID \(String(describing: endAction.callUUID))")
/Applications/Xcode-26.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.5.sdk/System/Library/Frameworks/CallKit.framework/Headers/CXEndCallAction.h:13:12: note: 'CXEndCallAction' has been explicitly marked unavailable here
11 |
12 | CX_EXTERN API_AVAILABLE(ios(10.0), macCatalyst(13.0), watchos(9.0))  API_UNAVAILABLE(macos, tvos)
13 | @interface CXEndCallAction : CXCallAction
   |            `- note: 'CXEndCallAction' has been explicitly marked unavailable here
14 |
15 | /// Normally, providers can just call -[CXAction fulfill] to indicate action fulfillment. Use this method to note a specific date that the call ended.
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:298:20: error: cannot find 'RTCAudioSession' in scope
 296 |     public var isAudioDeviceEnabled : Bool {
 297 |         get {
 298 |             return RTCAudioSession.sharedInstance().isAudioEnabled
     |                    `- error: cannot find 'RTCAudioSession' in scope
 299 |         }
 300 |         set {
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:302:17: error: cannot find 'RTCAudioSession' in scope
 300 |         set {
 301 |             if newValue {
 302 |                 RTCAudioSession.sharedInstance().audioSessionDidActivate(AVAudioSession.sharedInstance())
     |                 `- error: cannot find 'RTCAudioSession' in scope
 303 |             } else {
 304 |                 RTCAudioSession.sharedInstance().audioSessionDidDeactivate(AVAudioSession.sharedInstance())
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:304:17: error: cannot find 'RTCAudioSession' in scope
 302 |                 RTCAudioSession.sharedInstance().audioSessionDidActivate(AVAudioSession.sharedInstance())
 303 |             } else {
 304 |                 RTCAudioSession.sharedInstance().audioSessionDidDeactivate(AVAudioSession.sharedInstance())
     |                 `- error: cannot find 'RTCAudioSession' in scope
 305 |             }
 306 |             RTCAudioSession.sharedInstance().isAudioEnabled = newValue
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:306:13: error: cannot find 'RTCAudioSession' in scope
 304 |                 RTCAudioSession.sharedInstance().audioSessionDidDeactivate(AVAudioSession.sharedInstance())
 305 |             }
 306 |             RTCAudioSession.sharedInstance().isAudioEnabled = newValue
     |             `- error: cannot find 'RTCAudioSession' in scope
 307 |         }
 308 |     }
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:325:31: error: cannot find 'RTCAudioSession' in scope
 323 |     /// ```
 324 |     public func enableAudioSession(audioSession: AVAudioSession) {
 325 |         let rtcAudioSession = RTCAudioSession.sharedInstance()
     |                               `- error: cannot find 'RTCAudioSession' in scope
 326 |         let wasAudioEnabled = rtcAudioSession.isAudioEnabled
 327 |         Logger.log.i(message: "TxClient:: enabling CallKit audio session; currentlyEnabled=\(rtcAudioSession.isAudioEnabled)")
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:351:31: error: cannot find 'RTCAudioSession' in scope
 349 |     /// ```
 350 |     public func disableAudioSession(audioSession: AVAudioSession) {
 351 |         let rtcAudioSession = RTCAudioSession.sharedInstance()
     |                               `- error: cannot find 'RTCAudioSession' in scope
 352 |         let wasAudioEnabled = rtcAudioSession.isAudioEnabled
 353 |         Logger.log.i(message: "TxClient:: disabling CallKit audio session; currentlyEnabled=\(rtcAudioSession.isAudioEnabled)")
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:430:63: error: 'AVAudioSession' is unavailable in macOS
 428 |
 429 |         // Remove audio route change observer
 430 |         NotificationCenter.default.removeObserver(self, name: AVAudioSession.routeChangeNotification, object: nil)
     |                                                               `- error: 'AVAudioSession' is unavailable in macOS
 431 |
 432 |         // Remove ACM reset observers
/Applications/Xcode-26.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.5.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:29:12: note: 'AVAudioSession' has been explicitly marked unavailable here
 27 | NS_SWIFT_SENDABLE
 28 | API_AVAILABLE(ios(3.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos)
 29 | @interface AVAudioSession : NSObject {
    |            `- note: 'AVAudioSession' has been explicitly marked unavailable here
 30 | @private
 31 | 	void *_impl;
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:430:78: error: 'routeChangeNotification' is unavailable in macOS
 428 |
 429 |         // Remove audio route change observer
 430 |         NotificationCenter.default.removeObserver(self, name: AVAudioSession.routeChangeNotification, object: nil)
     |                                                                              `- error: 'routeChangeNotification' is unavailable in macOS
 431 |
 432 |         // Remove ACM reset observers
/Applications/Xcode-26.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.5.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionTypes.h:235:37: note: 'routeChangeNotification' has been explicitly marked unavailable here
233 | 	of the previous audio route.
234 | */
235 | OS_EXPORT NSNotificationName const  AVAudioSessionRouteChangeNotification API_AVAILABLE(ios(6.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
    |                                     `- note: 'routeChangeNotification' has been explicitly marked unavailable here
236 |
237 | /*!
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:450:19: error: 'AVAudioSession' is unavailable in macOS
 448 |             self,
 449 |             selector: #selector(handleAudioRouteChange),
 450 |             name: AVAudioSession.routeChangeNotification,
     |                   `- error: 'AVAudioSession' is unavailable in macOS
 451 |             object: nil)
 452 |
/Applications/Xcode-26.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.5.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:29:12: note: 'AVAudioSession' has been explicitly marked unavailable here
 27 | NS_SWIFT_SENDABLE
 28 | API_AVAILABLE(ios(3.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos)
 29 | @interface AVAudioSession : NSObject {
    |            `- note: 'AVAudioSession' has been explicitly marked unavailable here
 30 | @private
 31 | 	void *_impl;
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:450:34: error: 'routeChangeNotification' is unavailable in macOS
 448 |             self,
 449 |             selector: #selector(handleAudioRouteChange),
 450 |             name: AVAudioSession.routeChangeNotification,
     |                                  `- error: 'routeChangeNotification' is unavailable in macOS
 451 |             object: nil)
 452 |
/Applications/Xcode-26.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.5.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionTypes.h:235:37: note: 'routeChangeNotification' has been explicitly marked unavailable here
233 | 	of the previous audio route.
234 | */
235 | OS_EXPORT NSNotificationName const  AVAudioSessionRouteChangeNotification API_AVAILABLE(ios(6.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
    |                                     `- note: 'routeChangeNotification' has been explicitly marked unavailable here
236 |
237 | /*!
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:487:42: error: 'AVAudioSessionRouteChangeReasonKey' is unavailable in macOS
 485 |     @objc private func handleAudioRouteChange(notification: Notification) {
 486 |         guard let userInfo = notification.userInfo,
 487 |               let reasonValue = userInfo[AVAudioSessionRouteChangeReasonKey] as? UInt,
     |                                          `- error: 'AVAudioSessionRouteChangeReasonKey' is unavailable in macOS
 488 |               let reason = AVAudioSession.RouteChangeReason(rawValue: reasonValue) else {
 489 |             return
/Applications/Xcode-26.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.5.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionTypes.h:339:27: note: 'AVAudioSessionRouteChangeReasonKey' has been explicitly marked unavailable here
337 | /// keys for AVAudioSessionRouteChangeNotification
338 | /// value is an NSNumber representing an AVAudioSessionRouteChangeReason
339 | OS_EXPORT NSString *const AVAudioSessionRouteChangeReasonKey API_AVAILABLE(ios(6.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
    |                           `- note: 'AVAudioSessionRouteChangeReasonKey' has been explicitly marked unavailable here
340 | /// value is AVAudioSessionRouteDescription *
341 | OS_EXPORT NSString *const AVAudioSessionRouteChangePreviousRouteKey API_AVAILABLE(ios(6.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:488:28: error: 'AVAudioSession' is unavailable in macOS
 486 |         guard let userInfo = notification.userInfo,
 487 |               let reasonValue = userInfo[AVAudioSessionRouteChangeReasonKey] as? UInt,
 488 |               let reason = AVAudioSession.RouteChangeReason(rawValue: reasonValue) else {
     |                            `- error: 'AVAudioSession' is unavailable in macOS
 489 |             return
 490 |         }
/Applications/Xcode-26.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.5.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:29:12: note: 'AVAudioSession' has been explicitly marked unavailable here
 27 | NS_SWIFT_SENDABLE
 28 | API_AVAILABLE(ios(3.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos)
 29 | @interface AVAudioSession : NSObject {
    |            `- note: 'AVAudioSession' has been explicitly marked unavailable here
 30 | @private
 31 | 	void *_impl;
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:492:23: error: 'AVAudioSession' is unavailable in macOS
 490 |         }
 491 |
 492 |         let session = AVAudioSession.sharedInstance()
     |                       `- error: 'AVAudioSession' is unavailable in macOS
 493 |         let currentRoute = session.currentRoute
 494 |
/Applications/Xcode-26.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.5.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:29:12: note: 'AVAudioSession' has been explicitly marked unavailable here
 27 | NS_SWIFT_SENDABLE
 28 | API_AVAILABLE(ios(3.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos)
 29 | @interface AVAudioSession : NSObject {
    |            `- note: 'AVAudioSession' has been explicitly marked unavailable here
 30 | @private
 31 | 	void *_impl;
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:492:38: error: 'sharedInstance()' is unavailable in macOS
 490 |         }
 491 |
 492 |         let session = AVAudioSession.sharedInstance()
     |                                      `- error: 'sharedInstance()' is unavailable in macOS
 493 |         let currentRoute = session.currentRoute
 494 |
AVFAudio.AVAudioSession.sharedInstance:3:19: note: 'sharedInstance()' has been explicitly marked unavailable here
1 | class AVAudioSession {
2 | @available(macOS, unavailable)
3 |   open class func sharedInstance() -> AVAudioSession}
  |                   `- note: 'sharedInstance()' has been explicitly marked unavailable here
4 |
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:493:36: error: 'currentRoute' is unavailable in macOS
 491 |
 492 |         let session = AVAudioSession.sharedInstance()
 493 |         let currentRoute = session.currentRoute
     |                                    `- error: 'currentRoute' is unavailable in macOS
 494 |
 495 |         // Ensure we have at least one output port
/Applications/Xcode-26.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.5.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:469:54: note: 'currentRoute' has been explicitly marked unavailable here
467 | /// A description of the current route, consisting of zero or more input ports and zero or more
468 | /// output ports
469 | @property (readonly) AVAudioSessionRouteDescription *currentRoute
    |                                                      `- note: 'currentRoute' has been explicitly marked unavailable here
470 | 	API_AVAILABLE(ios(6.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
471 |
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:496:41: error: 'outputs' is unavailable in macOS
 494 |
 495 |         // Ensure we have at least one output port
 496 |         guard let output = currentRoute.outputs.first else {
     |                                         `- error: 'outputs' is unavailable in macOS
 497 |             return
 498 |         }
/Applications/Xcode-26.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.5.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionRoute.h:246:75: note: 'outputs' has been explicitly marked unavailable here
244 |
245 | /// Flattened list of all output port descriptions associated with all the streams as part of the route.
246 | @property (readonly, nonatomic) NSArray<AVAudioSessionPortDescription *> *outputs API_AVAILABLE(ios(6.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
    |                                                                           `- note: 'outputs' has been explicitly marked unavailable here
247 |
248 | @end // AVAudioSessionRouteDescription
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:500:85: error: 'portType' is unavailable in macOS
 498 |         }
 499 |
 500 |         Logger.log.i(message: "[ACM_RESET] TxClient:: Audio route changed: \(output.portType), reason: \(reason), isACMResetInProgress: \(isACMResetInProgress)")
     |                                                                                     `- error: 'portType' is unavailable in macOS
 501 |
 502 |         // Ignore audio route changes during ACM reset to prevent state desynchronization
/Applications/Xcode-26.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.5.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionRoute.h:161:52: note: 'portType' has been explicitly marked unavailable here
159 | }
160 |
161 | @property (readonly, nonatomic) AVAudioSessionPort portType API_AVAILABLE(ios(6.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
    |                                                    `- note: 'portType' has been explicitly marked unavailable here
162 |
163 | /// A descriptive name for the associated hardware port
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:511:40: error: 'portType' is unavailable in macOS
 509 |             case .categoryChange, .override, .routeConfigurationChange:
 510 |                 // Update internal speaker state based on current output
 511 |                 let isSpeaker = output.portType == .builtInSpeaker
     |                                        `- error: 'portType' is unavailable in macOS
 512 |                 _isSpeakerEnabled = isSpeaker
 513 |
/Applications/Xcode-26.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.5.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionRoute.h:161:52: note: 'portType' has been explicitly marked unavailable here
159 | }
160 |
161 | @property (readonly, nonatomic) AVAudioSessionPort portType API_AVAILABLE(ios(6.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
    |                                                    `- note: 'portType' has been explicitly marked unavailable here
162 |
163 | /// A descriptive name for the associated hardware port
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:511:53: error: 'builtInSpeaker' is unavailable in macOS
 509 |             case .categoryChange, .override, .routeConfigurationChange:
 510 |                 // Update internal speaker state based on current output
 511 |                 let isSpeaker = output.portType == .builtInSpeaker
     |                                                     `- error: 'builtInSpeaker' is unavailable in macOS
 512 |                 _isSpeakerEnabled = isSpeaker
 513 |
/Applications/Xcode-26.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.5.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionTypes.h:47:36: note: 'builtInSpeaker' has been explicitly marked unavailable here
 45 |
 46 | /// Built-in speaker on an iOS device
 47 | OS_EXPORT AVAudioSessionPort const AVAudioSessionPortBuiltInSpeaker   	API_AVAILABLE(ios(6.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
    |                                    `- note: 'builtInSpeaker' has been explicitly marked unavailable here
 48 |
 49 | /// Output via High-Definition Multimedia Interface
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:520:50: error: 'portType' is unavailable in macOS
 518 |                     userInfo: [
 519 |                         "isSpeakerEnabled": isSpeaker,
 520 |                         "outputPortType": output.portType
     |                                                  `- error: 'portType' is unavailable in macOS
 521 |                     ]
 522 |                 )
/Applications/Xcode-26.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.5.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionRoute.h:161:52: note: 'portType' has been explicitly marked unavailable here
159 | }
160 |
161 | @property (readonly, nonatomic) AVAudioSessionPort portType API_AVAILABLE(ios(6.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
    |                                                    `- note: 'portType' has been explicitly marked unavailable here
162 |
163 | /// A descriptive name for the associated hardware port
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:586:32: error: 'AVAudioSession' is unavailable in macOS
 584 |
 585 |             // Verify if speaker is actually active
 586 |             let currentRoute = AVAudioSession.sharedInstance().currentRoute
     |                                `- error: 'AVAudioSession' is unavailable in macOS
 587 |             let isSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
 588 |
/Applications/Xcode-26.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.5.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:29:12: note: 'AVAudioSession' has been explicitly marked unavailable here
 27 | NS_SWIFT_SENDABLE
 28 | API_AVAILABLE(ios(3.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos)
 29 | @interface AVAudioSession : NSObject {
    |            `- note: 'AVAudioSession' has been explicitly marked unavailable here
 30 | @private
 31 | 	void *_impl;
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:586:47: error: 'sharedInstance()' is unavailable in macOS
 584 |
 585 |             // Verify if speaker is actually active
 586 |             let currentRoute = AVAudioSession.sharedInstance().currentRoute
     |                                               `- error: 'sharedInstance()' is unavailable in macOS
 587 |             let isSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
 588 |
AVFAudio.AVAudioSession.sharedInstance:3:19: note: 'sharedInstance()' has been explicitly marked unavailable here
1 | class AVAudioSession {
2 | @available(macOS, unavailable)
3 |   open class func sharedInstance() -> AVAudioSession}
  |                   `- note: 'sharedInstance()' has been explicitly marked unavailable here
4 |
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:586:64: error: 'currentRoute' is unavailable in macOS
 584 |
 585 |             // Verify if speaker is actually active
 586 |             let currentRoute = AVAudioSession.sharedInstance().currentRoute
     |                                                                `- error: 'currentRoute' is unavailable in macOS
 587 |             let isSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
 588 |
/Applications/Xcode-26.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.5.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:469:54: note: 'currentRoute' has been explicitly marked unavailable here
467 | /// A description of the current route, consisting of zero or more input ports and zero or more
468 | /// output ports
469 | @property (readonly) AVAudioSessionRouteDescription *currentRoute
    |                                                      `- note: 'currentRoute' has been explicitly marked unavailable here
470 | 	API_AVAILABLE(ios(6.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
471 |
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:587:48: error: 'outputs' is unavailable in macOS
 585 |             // Verify if speaker is actually active
 586 |             let currentRoute = AVAudioSession.sharedInstance().currentRoute
 587 |             let isSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
     |                                                `- error: 'outputs' is unavailable in macOS
 588 |
 589 |             if isSpeakerActive {
/Applications/Xcode-26.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.5.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionRoute.h:246:75: note: 'outputs' has been explicitly marked unavailable here
244 |
245 | /// Flattened list of all output port descriptions associated with all the streams as part of the route.
246 | @property (readonly, nonatomic) NSArray<AVAudioSessionPortDescription *> *outputs API_AVAILABLE(ios(6.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
    |                                                                           `- note: 'outputs' has been explicitly marked unavailable here
247 |
248 | @end // AVAudioSessionRouteDescription
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:587:70: error: 'portType' is unavailable in macOS
 585 |             // Verify if speaker is actually active
 586 |             let currentRoute = AVAudioSession.sharedInstance().currentRoute
 587 |             let isSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
     |                                                                      `- error: 'portType' is unavailable in macOS
 588 |
 589 |             if isSpeakerActive {
/Applications/Xcode-26.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.5.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionRoute.h:161:52: note: 'portType' has been explicitly marked unavailable here
159 | }
160 |
161 | @property (readonly, nonatomic) AVAudioSessionPort portType API_AVAILABLE(ios(6.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
    |                                                    `- note: 'portType' has been explicitly marked unavailable here
162 |
163 | /// A descriptive name for the associated hardware port
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:587:83: error: 'builtInSpeaker' is unavailable in macOS
 585 |             // Verify if speaker is actually active
 586 |             let currentRoute = AVAudioSession.sharedInstance().currentRoute
 587 |             let isSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
     |                                                                                   `- error: 'builtInSpeaker' is unavailable in macOS
 588 |
 589 |             if isSpeakerActive {
/Applications/Xcode-26.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.5.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionTypes.h:47:36: note: 'builtInSpeaker' has been explicitly marked unavailable here
 45 |
 46 | /// Built-in speaker on an iOS device
 47 | OS_EXPORT AVAudioSessionPort const AVAudioSessionPortBuiltInSpeaker   	API_AVAILABLE(ios(6.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
    |                                    `- note: 'builtInSpeaker' has been explicitly marked unavailable here
 48 |
 49 | /// Output via High-Definition Multimedia Interface
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1848:32: error: 'AVAudioSession' is unavailable in macOS
1846 |         Logger.log.i(message: "[ACM_RESET] TxClient:: setEarpiece() called")
1847 |         do {
1848 |             let audioSession = AVAudioSession.sharedInstance()
     |                                `- error: 'AVAudioSession' is unavailable in macOS
1849 |             try audioSession.overrideOutputAudioPort(.none)
1850 |             _isSpeakerEnabled = false
/Applications/Xcode-26.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.5.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:29:12: note: 'AVAudioSession' has been explicitly marked unavailable here
 27 | NS_SWIFT_SENDABLE
 28 | API_AVAILABLE(ios(3.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos)
 29 | @interface AVAudioSession : NSObject {
    |            `- note: 'AVAudioSession' has been explicitly marked unavailable here
 30 | @private
 31 | 	void *_impl;
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1848:47: error: 'sharedInstance()' is unavailable in macOS
1846 |         Logger.log.i(message: "[ACM_RESET] TxClient:: setEarpiece() called")
1847 |         do {
1848 |             let audioSession = AVAudioSession.sharedInstance()
     |                                               `- error: 'sharedInstance()' is unavailable in macOS
1849 |             try audioSession.overrideOutputAudioPort(.none)
1850 |             _isSpeakerEnabled = false
AVFAudio.AVAudioSession.sharedInstance:3:19: note: 'sharedInstance()' has been explicitly marked unavailable here
1 | class AVAudioSession {
2 | @available(macOS, unavailable)
3 |   open class func sharedInstance() -> AVAudioSession}
  |                   `- note: 'sharedInstance()' has been explicitly marked unavailable here
4 |
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1849:30: error: 'overrideOutputAudioPort' is unavailable in macOS
1847 |         do {
1848 |             let audioSession = AVAudioSession.sharedInstance()
1849 |             try audioSession.overrideOutputAudioPort(.none)
     |                              `- error: 'overrideOutputAudioPort' is unavailable in macOS
1850 |             _isSpeakerEnabled = false
1851 |             Logger.log.i(message: "[ACM_RESET] TxClient:: Earpiece set successfully, _isSpeakerEnabled: \(_isSpeakerEnabled)")
AVFAudio.AVAudioSession.overrideOutputAudioPort:3:13: note: 'overrideOutputAudioPort' has been explicitly marked unavailable here
1 | class AVAudioSession {
2 | @available(macOS, unavailable)
3 |   open func overrideOutputAudioPort(_ portOverride: AVAudioSession.PortOverride) throws}
  |             `- note: 'overrideOutputAudioPort' has been explicitly marked unavailable here
4 |
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1861:32: error: 'AVAudioSession' is unavailable in macOS
1859 |         Logger.log.i(message: "[ACM_RESET] TxClient:: setSpeaker() called")
1860 |         do {
1861 |             let audioSession = AVAudioSession.sharedInstance()
     |                                `- error: 'AVAudioSession' is unavailable in macOS
1862 |             try audioSession.overrideOutputAudioPort(.speaker)
1863 |             _isSpeakerEnabled = true
/Applications/Xcode-26.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.5.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:29:12: note: 'AVAudioSession' has been explicitly marked unavailable here
 27 | NS_SWIFT_SENDABLE
 28 | API_AVAILABLE(ios(3.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos)
 29 | @interface AVAudioSession : NSObject {
    |            `- note: 'AVAudioSession' has been explicitly marked unavailable here
 30 | @private
 31 | 	void *_impl;
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1861:47: error: 'sharedInstance()' is unavailable in macOS
1859 |         Logger.log.i(message: "[ACM_RESET] TxClient:: setSpeaker() called")
1860 |         do {
1861 |             let audioSession = AVAudioSession.sharedInstance()
     |                                               `- error: 'sharedInstance()' is unavailable in macOS
1862 |             try audioSession.overrideOutputAudioPort(.speaker)
1863 |             _isSpeakerEnabled = true
AVFAudio.AVAudioSession.sharedInstance:3:19: note: 'sharedInstance()' has been explicitly marked unavailable here
1 | class AVAudioSession {
2 | @available(macOS, unavailable)
3 |   open class func sharedInstance() -> AVAudioSession}
  |                   `- note: 'sharedInstance()' has been explicitly marked unavailable here
4 |
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1862:30: error: 'overrideOutputAudioPort' is unavailable in macOS
1860 |         do {
1861 |             let audioSession = AVAudioSession.sharedInstance()
1862 |             try audioSession.overrideOutputAudioPort(.speaker)
     |                              `- error: 'overrideOutputAudioPort' is unavailable in macOS
1863 |             _isSpeakerEnabled = true
1864 |             Logger.log.i(message: "[ACM_RESET] TxClient:: Speaker set successfully, _isSpeakerEnabled: \(_isSpeakerEnabled)")
AVFAudio.AVAudioSession.overrideOutputAudioPort:3:13: note: 'overrideOutputAudioPort' has been explicitly marked unavailable here
1 | class AVAudioSession {
2 | @available(macOS, unavailable)
3 |   open func overrideOutputAudioPort(_ portOverride: AVAudioSession.PortOverride) throws}
  |             `- note: 'overrideOutputAudioPort' has been explicitly marked unavailable here
4 |
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1862:55: error: 'speaker' is unavailable in macOS
1860 |         do {
1861 |             let audioSession = AVAudioSession.sharedInstance()
1862 |             try audioSession.overrideOutputAudioPort(.speaker)
     |                                                       `- error: 'speaker' is unavailable in macOS
1863 |             _isSpeakerEnabled = true
1864 |             Logger.log.i(message: "[ACM_RESET] TxClient:: Speaker set successfully, _isSpeakerEnabled: \(_isSpeakerEnabled)")
AVFAudio.AVAudioSession.PortOverride.speaker:4:10: note: 'speaker' has been explicitly marked unavailable here
2 |   enum PortOverride {
3 | @available(macOS, unavailable)
4 |     case speaker  }
  |          `- note: 'speaker' has been explicitly marked unavailable here
5 | }
6 |
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:2512:28: error: 'AVAudioSession' is unavailable in macOS
2510 | extension TxClient {
2511 |     internal func resetAudioConfiguration() {
2512 |         let audioSession = AVAudioSession.sharedInstance()
     |                            `- error: 'AVAudioSession' is unavailable in macOS
2513 |         do {
2514 |             try audioSession.setCategory(
/Applications/Xcode-26.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.5.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:29:12: note: 'AVAudioSession' has been explicitly marked unavailable here
 27 | NS_SWIFT_SENDABLE
 28 | API_AVAILABLE(ios(3.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos)
 29 | @interface AVAudioSession : NSObject {
    |            `- note: 'AVAudioSession' has been explicitly marked unavailable here
 30 | @private
 31 | 	void *_impl;
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:2512:43: error: 'sharedInstance()' is unavailable in macOS
2510 | extension TxClient {
2511 |     internal func resetAudioConfiguration() {
2512 |         let audioSession = AVAudioSession.sharedInstance()
     |                                           `- error: 'sharedInstance()' is unavailable in macOS
2513 |         do {
2514 |             try audioSession.setCategory(
AVFAudio.AVAudioSession.sharedInstance:3:19: note: 'sharedInstance()' has been explicitly marked unavailable here
1 | class AVAudioSession {
2 | @available(macOS, unavailable)
3 |   open class func sharedInstance() -> AVAudioSession}
  |                   `- note: 'sharedInstance()' has been explicitly marked unavailable here
4 |
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:2514:30: error: 'setCategory(_:mode:options:)' is unavailable in macOS
2512 |         let audioSession = AVAudioSession.sharedInstance()
2513 |         do {
2514 |             try audioSession.setCategory(
     |                              `- error: 'setCategory(_:mode:options:)' is unavailable in macOS
2515 |                 .playback,
2516 |                 mode: .default,
AVFAudio.AVAudioSession.setCategory:3:13: note: 'setCategory(_:mode:options:)' has been explicitly marked unavailable here
1 | class AVAudioSession {
2 | @available(macOS, unavailable)
3 |   open func setCategory(_ category: AVAudioSession.Category, mode: AVAudioSession.Mode, options: AVAudioSession.CategoryOptions = []) throws}
  |             `- note: 'setCategory(_:mode:options:)' has been explicitly marked unavailable here
4 |
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:2515:18: error: 'playback' is unavailable in macOS
2513 |         do {
2514 |             try audioSession.setCategory(
2515 |                 .playback,
     |                  `- error: 'playback' is unavailable in macOS
2516 |                 mode: .default,
2517 |                 options: [.mixWithOthers]
/Applications/Xcode-26.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.5.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionTypes.h:100:40: note: 'playback' has been explicitly marked unavailable here
 98 |
 99 | /*! Use this category for music tracks.*/
100 | OS_EXPORT AVAudioSessionCategory const AVAudioSessionCategoryPlayback			API_AVAILABLE(ios(3.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
    |                                        `- note: 'playback' has been explicitly marked unavailable here
101 |
102 | /*! Use this category when recording audio. */
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:2516:24: error: 'default' is unavailable in macOS
2514 |             try audioSession.setCategory(
2515 |                 .playback,
2516 |                 mode: .default,
     |                        `- error: 'default' is unavailable in macOS
2517 |                 options: [.mixWithOthers]
2518 |             )
/Applications/Xcode-26.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.5.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionTypes.h:136:36: note: 'default' has been explicitly marked unavailable here
134 |
135 | /*! The default mode */
136 | OS_EXPORT AVAudioSessionMode const AVAudioSessionModeDefault API_AVAILABLE(ios(5.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
    |                                    `- note: 'default' has been explicitly marked unavailable here
137 |
138 | /*! Only valid with AVAudioSessionCategoryPlayAndRecord.  Appropriate for Voice over IP
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:2525:31: error: cannot find 'RTCAudioSession' in scope
2523 |
2524 |     internal func setupCorrectAudioConfiguration() {
2525 |         let rtcAudioSession = RTCAudioSession.sharedInstance()
     |                               `- error: cannot find 'RTCAudioSession' in scope
2526 |         rtcAudioSession.lockForConfiguration()
2527 |
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:2528:29: error: cannot find 'RTCAudioSessionConfiguration' in scope
2526 |         rtcAudioSession.lockForConfiguration()
2527 |
2528 |         let configuration = RTCAudioSessionConfiguration.webRTC()
     |                             `- error: cannot find 'RTCAudioSessionConfiguration' in scope
2529 |         configuration.categoryOptions = [
2530 |             .duckOthers,
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:2530:14: error: reference to member 'duckOthers' cannot be resolved without a contextual type
2528 |         let configuration = RTCAudioSessionConfiguration.webRTC()
2529 |         configuration.categoryOptions = [
2530 |             .duckOthers,
     |              `- error: reference to member 'duckOthers' cannot be resolved without a contextual type
2531 |             .allowBluetooth,
2532 |         ]
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:2531:14: error: reference to member 'allowBluetooth' cannot be resolved without a contextual type
2529 |         configuration.categoryOptions = [
2530 |             .duckOthers,
2531 |             .allowBluetooth,
     |              `- error: reference to member 'allowBluetooth' cannot be resolved without a contextual type
2532 |         ]
2533 |
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:2545:31: error: cannot find 'RTCAudioSession' in scope
2543 |     @discardableResult
2544 |     internal func setAudioSessionActive(_ active: Bool) -> Bool {
2545 |         let rtcAudioSession = RTCAudioSession.sharedInstance()
     |                               `- error: cannot find 'RTCAudioSession' in scope
2546 |         var succeeded = false
2547 |         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 [#no-usage]
 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 [#no-usage]
 97 |             Logger.log.e(message: "Failed to read log file")
 98 |             return
[106/106] Compiling TelnyxRTC FileLoger.swift
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/Services/Socket.swift:190:26: warning: immutable value 'data' was never used; consider replacing with '_' or removing it [#no-usage]
188 |             break;
189 |
190 |         case .binary(let data):
    |                          `- warning: immutable value 'data' was never used; consider replacing with '_' or removing it [#no-usage]
191 |             break
192 |         case .ping(_):
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:146:21: error: 'CXAnswerCallAction' is unavailable in macOS
 144 |     /// call while signaling catches up.
 145 |     private struct PendingCallKitAnswer {
 146 |         let action: CXAnswerCallAction
     |                     `- error: 'CXAnswerCallAction' is unavailable in macOS
 147 |         let headers: [String: String]
 148 |         let debug: Bool
/Applications/Xcode-26.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.5.sdk/System/Library/Frameworks/CallKit.framework/Headers/CXAnswerCallAction.h:13:12: note: 'CXAnswerCallAction' has been explicitly marked unavailable here
11 |
12 | CX_EXTERN API_AVAILABLE(ios(10.0), macCatalyst(13.0), watchos(9.0))  API_UNAVAILABLE(macos, tvos)
13 | @interface CXAnswerCallAction : CXCallAction
   |            `- note: 'CXAnswerCallAction' has been explicitly marked unavailable here
14 |
15 | /// Normally, providers can just call -[CXAction fulfill] to indicate action fulfillment. Use this method to note a specific date that the call connected. A call is considered connected when both caller and callee can start communicating.
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:170:32: error: 'CXEndCallAction' is unavailable in macOS
 168 |     private var pendingCallKitAnswers: [UUID: PendingCallKitAnswer] = [:]
 169 |     private let pendingCallKitAnswersLock = NSLock()
 170 |     private var endCallAction: CXEndCallAction? = nil
     |                                `- error: 'CXEndCallAction' is unavailable in macOS
 171 |     private var sessionId : String?
 172 |     internal var txConfig: TxConfig?
/Applications/Xcode-26.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.5.sdk/System/Library/Frameworks/CallKit.framework/Headers/CXEndCallAction.h:13:12: note: 'CXEndCallAction' has been explicitly marked unavailable here
11 |
12 | CX_EXTERN API_AVAILABLE(ios(10.0), macCatalyst(13.0), watchos(9.0))  API_UNAVAILABLE(macos, tvos)
13 | @interface CXEndCallAction : CXCallAction
   |            `- note: 'CXEndCallAction' has been explicitly marked unavailable here
14 |
15 | /// Normally, providers can just call -[CXAction fulfill] to indicate action fulfillment. Use this method to note a specific date that the call ended.
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:324:50: error: 'AVAudioSession' is unavailable in macOS
 322 |     /// }
 323 |     /// ```
 324 |     public func enableAudioSession(audioSession: AVAudioSession) {
     |                                                  `- error: 'AVAudioSession' is unavailable in macOS
 325 |         let rtcAudioSession = RTCAudioSession.sharedInstance()
 326 |         let wasAudioEnabled = rtcAudioSession.isAudioEnabled
/Applications/Xcode-26.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.5.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:29:12: note: 'AVAudioSession' has been explicitly marked unavailable here
 27 | NS_SWIFT_SENDABLE
 28 | API_AVAILABLE(ios(3.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos)
 29 | @interface AVAudioSession : NSObject {
    |            `- note: 'AVAudioSession' has been explicitly marked unavailable here
 30 | @private
 31 | 	void *_impl;
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:350:51: error: 'AVAudioSession' is unavailable in macOS
 348 |     /// }
 349 |     /// ```
 350 |     public func disableAudioSession(audioSession: AVAudioSession) {
     |                                                   `- error: 'AVAudioSession' is unavailable in macOS
 351 |         let rtcAudioSession = RTCAudioSession.sharedInstance()
 352 |         let wasAudioEnabled = rtcAudioSession.isAudioEnabled
/Applications/Xcode-26.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.5.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:29:12: note: 'AVAudioSession' has been explicitly marked unavailable here
 27 | NS_SWIFT_SENDABLE
 28 | API_AVAILABLE(ios(3.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos)
 29 | @interface AVAudioSession : NSObject {
    |            `- note: 'AVAudioSession' has been explicitly marked unavailable here
 30 | @private
 31 | 	void *_impl;
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:364:24: error: 'AVAudioSession' is unavailable in macOS
 362 |     /// The current audio route configuration.
 363 |     /// This provides information about the active input and output ports.
 364 |     let currentRoute = AVAudioSession.sharedInstance().currentRoute
     |                        `- error: 'AVAudioSession' is unavailable in macOS
 365 |
 366 |     /// Client must be registered in order to receive or place calls.
/Applications/Xcode-26.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.5.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:29:12: note: 'AVAudioSession' has been explicitly marked unavailable here
 27 | NS_SWIFT_SENDABLE
 28 | API_AVAILABLE(ios(3.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos)
 29 | @interface AVAudioSession : NSObject {
    |            `- note: 'AVAudioSession' has been explicitly marked unavailable here
 30 | @private
 31 | 	void *_impl;
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:364:39: error: 'sharedInstance()' is unavailable in macOS
 362 |     /// The current audio route configuration.
 363 |     /// This provides information about the active input and output ports.
 364 |     let currentRoute = AVAudioSession.sharedInstance().currentRoute
     |                                       `- error: 'sharedInstance()' is unavailable in macOS
 365 |
 366 |     /// Client must be registered in order to receive or place calls.
AVFAudio.AVAudioSession.sharedInstance:3:19: note: 'sharedInstance()' has been explicitly marked unavailable here
1 | class AVAudioSession {
2 | @available(macOS, unavailable)
3 |   open class func sharedInstance() -> AVAudioSession}
  |                   `- note: 'sharedInstance()' has been explicitly marked unavailable here
4 |
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:364:56: error: 'currentRoute' is unavailable in macOS
 362 |     /// The current audio route configuration.
 363 |     /// This provides information about the active input and output ports.
 364 |     let currentRoute = AVAudioSession.sharedInstance().currentRoute
     |                                                        `- error: 'currentRoute' is unavailable in macOS
 365 |
 366 |     /// Client must be registered in order to receive or place calls.
/Applications/Xcode-26.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.5.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:469:54: note: 'currentRoute' has been explicitly marked unavailable here
467 | /// A description of the current route, consisting of zero or more input ports and zero or more
468 | /// output ports
469 | @property (readonly) AVAudioSessionRouteDescription *currentRoute
    |                                                      `- note: 'currentRoute' has been explicitly marked unavailable here
470 | 	API_AVAILABLE(ios(6.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
471 |
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:847:49: error: 'CXAnswerCallAction' is unavailable in macOS
 845 |     ///   - debug: (optional) Enable debug mode for call quality metrics and WebRTC statistics.
 846 |     ///     When enabled, real-time call quality metrics will be available through the call's `onCallQualityChange` callback.
 847 |     public func answerFromCallkit(answerAction: CXAnswerCallAction,
     |                                                 `- error: 'CXAnswerCallAction' is unavailable in macOS
 848 |                                   customHeaders: [String:String] = [:],
 849 |                                   debug: Bool = false) {
/Applications/Xcode-26.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.5.sdk/System/Library/Frameworks/CallKit.framework/Headers/CXAnswerCallAction.h:13:12: note: 'CXAnswerCallAction' has been explicitly marked unavailable here
11 |
12 | CX_EXTERN API_AVAILABLE(ios(10.0), macCatalyst(13.0), watchos(9.0))  API_UNAVAILABLE(macos, tvos)
13 | @interface CXAnswerCallAction : CXCallAction
   |            `- note: 'CXAnswerCallAction' has been explicitly marked unavailable here
14 |
15 | /// Normally, providers can just call -[CXAction fulfill] to indicate action fulfillment. Use this method to note a specific date that the call connected. A call is considered connected when both caller and callee can start communicating.
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1036:49: error: 'CXEndCallAction' is unavailable in macOS
1034 |     }
1035 |
1036 |     private func failEndCallAction(_ endAction: CXEndCallAction) {
     |                                                 `- error: 'CXEndCallAction' is unavailable in macOS
1037 |         resetPushVariables()
1038 |         endAction.fail()
/Applications/Xcode-26.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.5.sdk/System/Library/Frameworks/CallKit.framework/Headers/CXEndCallAction.h:13:12: note: 'CXEndCallAction' has been explicitly marked unavailable here
11 |
12 | CX_EXTERN API_AVAILABLE(ios(10.0), macCatalyst(13.0), watchos(9.0))  API_UNAVAILABLE(macos, tvos)
13 | @interface CXEndCallAction : CXCallAction
   |            `- note: 'CXEndCallAction' has been explicitly marked unavailable here
14 |
15 | /// Normally, providers can just call -[CXAction fulfill] to indicate action fulfillment. Use this method to note a specific date that the call ended.
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1107:47: error: 'CXEndCallAction' is unavailable in macOS
1105 |
1106 |     /// To end and control callKit active and conn
1107 |     public func endCallFromCallkit(endAction: CXEndCallAction,
     |                                               `- error: 'CXEndCallAction' is unavailable in macOS
1108 |                                    callId: UUID? = nil) {
1109 |         Logger.log.i(message: "TxClient:: endCallFromCallkit - started for callID \(String(describing: endAction.callUUID))")
/Applications/Xcode-26.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.5.sdk/System/Library/Frameworks/CallKit.framework/Headers/CXEndCallAction.h:13:12: note: 'CXEndCallAction' has been explicitly marked unavailable here
11 |
12 | CX_EXTERN API_AVAILABLE(ios(10.0), macCatalyst(13.0), watchos(9.0))  API_UNAVAILABLE(macos, tvos)
13 | @interface CXEndCallAction : CXCallAction
   |            `- note: 'CXEndCallAction' has been explicitly marked unavailable here
14 |
15 | /// Normally, providers can just call -[CXAction fulfill] to indicate action fulfillment. Use this method to note a specific date that the call ended.
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:298:20: error: cannot find 'RTCAudioSession' in scope
 296 |     public var isAudioDeviceEnabled : Bool {
 297 |         get {
 298 |             return RTCAudioSession.sharedInstance().isAudioEnabled
     |                    `- error: cannot find 'RTCAudioSession' in scope
 299 |         }
 300 |         set {
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:302:17: error: cannot find 'RTCAudioSession' in scope
 300 |         set {
 301 |             if newValue {
 302 |                 RTCAudioSession.sharedInstance().audioSessionDidActivate(AVAudioSession.sharedInstance())
     |                 `- error: cannot find 'RTCAudioSession' in scope
 303 |             } else {
 304 |                 RTCAudioSession.sharedInstance().audioSessionDidDeactivate(AVAudioSession.sharedInstance())
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:304:17: error: cannot find 'RTCAudioSession' in scope
 302 |                 RTCAudioSession.sharedInstance().audioSessionDidActivate(AVAudioSession.sharedInstance())
 303 |             } else {
 304 |                 RTCAudioSession.sharedInstance().audioSessionDidDeactivate(AVAudioSession.sharedInstance())
     |                 `- error: cannot find 'RTCAudioSession' in scope
 305 |             }
 306 |             RTCAudioSession.sharedInstance().isAudioEnabled = newValue
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:306:13: error: cannot find 'RTCAudioSession' in scope
 304 |                 RTCAudioSession.sharedInstance().audioSessionDidDeactivate(AVAudioSession.sharedInstance())
 305 |             }
 306 |             RTCAudioSession.sharedInstance().isAudioEnabled = newValue
     |             `- error: cannot find 'RTCAudioSession' in scope
 307 |         }
 308 |     }
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:325:31: error: cannot find 'RTCAudioSession' in scope
 323 |     /// ```
 324 |     public func enableAudioSession(audioSession: AVAudioSession) {
 325 |         let rtcAudioSession = RTCAudioSession.sharedInstance()
     |                               `- error: cannot find 'RTCAudioSession' in scope
 326 |         let wasAudioEnabled = rtcAudioSession.isAudioEnabled
 327 |         Logger.log.i(message: "TxClient:: enabling CallKit audio session; currentlyEnabled=\(rtcAudioSession.isAudioEnabled)")
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:351:31: error: cannot find 'RTCAudioSession' in scope
 349 |     /// ```
 350 |     public func disableAudioSession(audioSession: AVAudioSession) {
 351 |         let rtcAudioSession = RTCAudioSession.sharedInstance()
     |                               `- error: cannot find 'RTCAudioSession' in scope
 352 |         let wasAudioEnabled = rtcAudioSession.isAudioEnabled
 353 |         Logger.log.i(message: "TxClient:: disabling CallKit audio session; currentlyEnabled=\(rtcAudioSession.isAudioEnabled)")
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:430:63: error: 'AVAudioSession' is unavailable in macOS
 428 |
 429 |         // Remove audio route change observer
 430 |         NotificationCenter.default.removeObserver(self, name: AVAudioSession.routeChangeNotification, object: nil)
     |                                                               `- error: 'AVAudioSession' is unavailable in macOS
 431 |
 432 |         // Remove ACM reset observers
/Applications/Xcode-26.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.5.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:29:12: note: 'AVAudioSession' has been explicitly marked unavailable here
 27 | NS_SWIFT_SENDABLE
 28 | API_AVAILABLE(ios(3.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos)
 29 | @interface AVAudioSession : NSObject {
    |            `- note: 'AVAudioSession' has been explicitly marked unavailable here
 30 | @private
 31 | 	void *_impl;
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:430:78: error: 'routeChangeNotification' is unavailable in macOS
 428 |
 429 |         // Remove audio route change observer
 430 |         NotificationCenter.default.removeObserver(self, name: AVAudioSession.routeChangeNotification, object: nil)
     |                                                                              `- error: 'routeChangeNotification' is unavailable in macOS
 431 |
 432 |         // Remove ACM reset observers
/Applications/Xcode-26.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.5.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionTypes.h:235:37: note: 'routeChangeNotification' has been explicitly marked unavailable here
233 | 	of the previous audio route.
234 | */
235 | OS_EXPORT NSNotificationName const  AVAudioSessionRouteChangeNotification API_AVAILABLE(ios(6.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
    |                                     `- note: 'routeChangeNotification' has been explicitly marked unavailable here
236 |
237 | /*!
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:450:19: error: 'AVAudioSession' is unavailable in macOS
 448 |             self,
 449 |             selector: #selector(handleAudioRouteChange),
 450 |             name: AVAudioSession.routeChangeNotification,
     |                   `- error: 'AVAudioSession' is unavailable in macOS
 451 |             object: nil)
 452 |
/Applications/Xcode-26.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.5.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:29:12: note: 'AVAudioSession' has been explicitly marked unavailable here
 27 | NS_SWIFT_SENDABLE
 28 | API_AVAILABLE(ios(3.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos)
 29 | @interface AVAudioSession : NSObject {
    |            `- note: 'AVAudioSession' has been explicitly marked unavailable here
 30 | @private
 31 | 	void *_impl;
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:450:34: error: 'routeChangeNotification' is unavailable in macOS
 448 |             self,
 449 |             selector: #selector(handleAudioRouteChange),
 450 |             name: AVAudioSession.routeChangeNotification,
     |                                  `- error: 'routeChangeNotification' is unavailable in macOS
 451 |             object: nil)
 452 |
/Applications/Xcode-26.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.5.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionTypes.h:235:37: note: 'routeChangeNotification' has been explicitly marked unavailable here
233 | 	of the previous audio route.
234 | */
235 | OS_EXPORT NSNotificationName const  AVAudioSessionRouteChangeNotification API_AVAILABLE(ios(6.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
    |                                     `- note: 'routeChangeNotification' has been explicitly marked unavailable here
236 |
237 | /*!
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:487:42: error: 'AVAudioSessionRouteChangeReasonKey' is unavailable in macOS
 485 |     @objc private func handleAudioRouteChange(notification: Notification) {
 486 |         guard let userInfo = notification.userInfo,
 487 |               let reasonValue = userInfo[AVAudioSessionRouteChangeReasonKey] as? UInt,
     |                                          `- error: 'AVAudioSessionRouteChangeReasonKey' is unavailable in macOS
 488 |               let reason = AVAudioSession.RouteChangeReason(rawValue: reasonValue) else {
 489 |             return
/Applications/Xcode-26.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.5.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionTypes.h:339:27: note: 'AVAudioSessionRouteChangeReasonKey' has been explicitly marked unavailable here
337 | /// keys for AVAudioSessionRouteChangeNotification
338 | /// value is an NSNumber representing an AVAudioSessionRouteChangeReason
339 | OS_EXPORT NSString *const AVAudioSessionRouteChangeReasonKey API_AVAILABLE(ios(6.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
    |                           `- note: 'AVAudioSessionRouteChangeReasonKey' has been explicitly marked unavailable here
340 | /// value is AVAudioSessionRouteDescription *
341 | OS_EXPORT NSString *const AVAudioSessionRouteChangePreviousRouteKey API_AVAILABLE(ios(6.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:488:28: error: 'AVAudioSession' is unavailable in macOS
 486 |         guard let userInfo = notification.userInfo,
 487 |               let reasonValue = userInfo[AVAudioSessionRouteChangeReasonKey] as? UInt,
 488 |               let reason = AVAudioSession.RouteChangeReason(rawValue: reasonValue) else {
     |                            `- error: 'AVAudioSession' is unavailable in macOS
 489 |             return
 490 |         }
/Applications/Xcode-26.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.5.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:29:12: note: 'AVAudioSession' has been explicitly marked unavailable here
 27 | NS_SWIFT_SENDABLE
 28 | API_AVAILABLE(ios(3.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos)
 29 | @interface AVAudioSession : NSObject {
    |            `- note: 'AVAudioSession' has been explicitly marked unavailable here
 30 | @private
 31 | 	void *_impl;
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:492:23: error: 'AVAudioSession' is unavailable in macOS
 490 |         }
 491 |
 492 |         let session = AVAudioSession.sharedInstance()
     |                       `- error: 'AVAudioSession' is unavailable in macOS
 493 |         let currentRoute = session.currentRoute
 494 |
/Applications/Xcode-26.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.5.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:29:12: note: 'AVAudioSession' has been explicitly marked unavailable here
 27 | NS_SWIFT_SENDABLE
 28 | API_AVAILABLE(ios(3.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos)
 29 | @interface AVAudioSession : NSObject {
    |            `- note: 'AVAudioSession' has been explicitly marked unavailable here
 30 | @private
 31 | 	void *_impl;
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:492:38: error: 'sharedInstance()' is unavailable in macOS
 490 |         }
 491 |
 492 |         let session = AVAudioSession.sharedInstance()
     |                                      `- error: 'sharedInstance()' is unavailable in macOS
 493 |         let currentRoute = session.currentRoute
 494 |
AVFAudio.AVAudioSession.sharedInstance:3:19: note: 'sharedInstance()' has been explicitly marked unavailable here
1 | class AVAudioSession {
2 | @available(macOS, unavailable)
3 |   open class func sharedInstance() -> AVAudioSession}
  |                   `- note: 'sharedInstance()' has been explicitly marked unavailable here
4 |
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:493:36: error: 'currentRoute' is unavailable in macOS
 491 |
 492 |         let session = AVAudioSession.sharedInstance()
 493 |         let currentRoute = session.currentRoute
     |                                    `- error: 'currentRoute' is unavailable in macOS
 494 |
 495 |         // Ensure we have at least one output port
/Applications/Xcode-26.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.5.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:469:54: note: 'currentRoute' has been explicitly marked unavailable here
467 | /// A description of the current route, consisting of zero or more input ports and zero or more
468 | /// output ports
469 | @property (readonly) AVAudioSessionRouteDescription *currentRoute
    |                                                      `- note: 'currentRoute' has been explicitly marked unavailable here
470 | 	API_AVAILABLE(ios(6.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
471 |
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:496:41: error: 'outputs' is unavailable in macOS
 494 |
 495 |         // Ensure we have at least one output port
 496 |         guard let output = currentRoute.outputs.first else {
     |                                         `- error: 'outputs' is unavailable in macOS
 497 |             return
 498 |         }
/Applications/Xcode-26.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.5.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionRoute.h:246:75: note: 'outputs' has been explicitly marked unavailable here
244 |
245 | /// Flattened list of all output port descriptions associated with all the streams as part of the route.
246 | @property (readonly, nonatomic) NSArray<AVAudioSessionPortDescription *> *outputs API_AVAILABLE(ios(6.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
    |                                                                           `- note: 'outputs' has been explicitly marked unavailable here
247 |
248 | @end // AVAudioSessionRouteDescription
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:500:85: error: 'portType' is unavailable in macOS
 498 |         }
 499 |
 500 |         Logger.log.i(message: "[ACM_RESET] TxClient:: Audio route changed: \(output.portType), reason: \(reason), isACMResetInProgress: \(isACMResetInProgress)")
     |                                                                                     `- error: 'portType' is unavailable in macOS
 501 |
 502 |         // Ignore audio route changes during ACM reset to prevent state desynchronization
/Applications/Xcode-26.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.5.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionRoute.h:161:52: note: 'portType' has been explicitly marked unavailable here
159 | }
160 |
161 | @property (readonly, nonatomic) AVAudioSessionPort portType API_AVAILABLE(ios(6.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
    |                                                    `- note: 'portType' has been explicitly marked unavailable here
162 |
163 | /// A descriptive name for the associated hardware port
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:511:40: error: 'portType' is unavailable in macOS
 509 |             case .categoryChange, .override, .routeConfigurationChange:
 510 |                 // Update internal speaker state based on current output
 511 |                 let isSpeaker = output.portType == .builtInSpeaker
     |                                        `- error: 'portType' is unavailable in macOS
 512 |                 _isSpeakerEnabled = isSpeaker
 513 |
/Applications/Xcode-26.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.5.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionRoute.h:161:52: note: 'portType' has been explicitly marked unavailable here
159 | }
160 |
161 | @property (readonly, nonatomic) AVAudioSessionPort portType API_AVAILABLE(ios(6.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
    |                                                    `- note: 'portType' has been explicitly marked unavailable here
162 |
163 | /// A descriptive name for the associated hardware port
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:511:53: error: 'builtInSpeaker' is unavailable in macOS
 509 |             case .categoryChange, .override, .routeConfigurationChange:
 510 |                 // Update internal speaker state based on current output
 511 |                 let isSpeaker = output.portType == .builtInSpeaker
     |                                                     `- error: 'builtInSpeaker' is unavailable in macOS
 512 |                 _isSpeakerEnabled = isSpeaker
 513 |
/Applications/Xcode-26.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.5.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionTypes.h:47:36: note: 'builtInSpeaker' has been explicitly marked unavailable here
 45 |
 46 | /// Built-in speaker on an iOS device
 47 | OS_EXPORT AVAudioSessionPort const AVAudioSessionPortBuiltInSpeaker   	API_AVAILABLE(ios(6.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
    |                                    `- note: 'builtInSpeaker' has been explicitly marked unavailable here
 48 |
 49 | /// Output via High-Definition Multimedia Interface
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:520:50: error: 'portType' is unavailable in macOS
 518 |                     userInfo: [
 519 |                         "isSpeakerEnabled": isSpeaker,
 520 |                         "outputPortType": output.portType
     |                                                  `- error: 'portType' is unavailable in macOS
 521 |                     ]
 522 |                 )
/Applications/Xcode-26.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.5.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionRoute.h:161:52: note: 'portType' has been explicitly marked unavailable here
159 | }
160 |
161 | @property (readonly, nonatomic) AVAudioSessionPort portType API_AVAILABLE(ios(6.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
    |                                                    `- note: 'portType' has been explicitly marked unavailable here
162 |
163 | /// A descriptive name for the associated hardware port
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:586:32: error: 'AVAudioSession' is unavailable in macOS
 584 |
 585 |             // Verify if speaker is actually active
 586 |             let currentRoute = AVAudioSession.sharedInstance().currentRoute
     |                                `- error: 'AVAudioSession' is unavailable in macOS
 587 |             let isSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
 588 |
/Applications/Xcode-26.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.5.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:29:12: note: 'AVAudioSession' has been explicitly marked unavailable here
 27 | NS_SWIFT_SENDABLE
 28 | API_AVAILABLE(ios(3.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos)
 29 | @interface AVAudioSession : NSObject {
    |            `- note: 'AVAudioSession' has been explicitly marked unavailable here
 30 | @private
 31 | 	void *_impl;
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:586:47: error: 'sharedInstance()' is unavailable in macOS
 584 |
 585 |             // Verify if speaker is actually active
 586 |             let currentRoute = AVAudioSession.sharedInstance().currentRoute
     |                                               `- error: 'sharedInstance()' is unavailable in macOS
 587 |             let isSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
 588 |
AVFAudio.AVAudioSession.sharedInstance:3:19: note: 'sharedInstance()' has been explicitly marked unavailable here
1 | class AVAudioSession {
2 | @available(macOS, unavailable)
3 |   open class func sharedInstance() -> AVAudioSession}
  |                   `- note: 'sharedInstance()' has been explicitly marked unavailable here
4 |
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:586:64: error: 'currentRoute' is unavailable in macOS
 584 |
 585 |             // Verify if speaker is actually active
 586 |             let currentRoute = AVAudioSession.sharedInstance().currentRoute
     |                                                                `- error: 'currentRoute' is unavailable in macOS
 587 |             let isSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
 588 |
/Applications/Xcode-26.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.5.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:469:54: note: 'currentRoute' has been explicitly marked unavailable here
467 | /// A description of the current route, consisting of zero or more input ports and zero or more
468 | /// output ports
469 | @property (readonly) AVAudioSessionRouteDescription *currentRoute
    |                                                      `- note: 'currentRoute' has been explicitly marked unavailable here
470 | 	API_AVAILABLE(ios(6.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
471 |
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:587:48: error: 'outputs' is unavailable in macOS
 585 |             // Verify if speaker is actually active
 586 |             let currentRoute = AVAudioSession.sharedInstance().currentRoute
 587 |             let isSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
     |                                                `- error: 'outputs' is unavailable in macOS
 588 |
 589 |             if isSpeakerActive {
/Applications/Xcode-26.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.5.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionRoute.h:246:75: note: 'outputs' has been explicitly marked unavailable here
244 |
245 | /// Flattened list of all output port descriptions associated with all the streams as part of the route.
246 | @property (readonly, nonatomic) NSArray<AVAudioSessionPortDescription *> *outputs API_AVAILABLE(ios(6.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
    |                                                                           `- note: 'outputs' has been explicitly marked unavailable here
247 |
248 | @end // AVAudioSessionRouteDescription
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:587:70: error: 'portType' is unavailable in macOS
 585 |             // Verify if speaker is actually active
 586 |             let currentRoute = AVAudioSession.sharedInstance().currentRoute
 587 |             let isSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
     |                                                                      `- error: 'portType' is unavailable in macOS
 588 |
 589 |             if isSpeakerActive {
/Applications/Xcode-26.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.5.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionRoute.h:161:52: note: 'portType' has been explicitly marked unavailable here
159 | }
160 |
161 | @property (readonly, nonatomic) AVAudioSessionPort portType API_AVAILABLE(ios(6.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
    |                                                    `- note: 'portType' has been explicitly marked unavailable here
162 |
163 | /// A descriptive name for the associated hardware port
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:587:83: error: 'builtInSpeaker' is unavailable in macOS
 585 |             // Verify if speaker is actually active
 586 |             let currentRoute = AVAudioSession.sharedInstance().currentRoute
 587 |             let isSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
     |                                                                                   `- error: 'builtInSpeaker' is unavailable in macOS
 588 |
 589 |             if isSpeakerActive {
/Applications/Xcode-26.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.5.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionTypes.h:47:36: note: 'builtInSpeaker' has been explicitly marked unavailable here
 45 |
 46 | /// Built-in speaker on an iOS device
 47 | OS_EXPORT AVAudioSessionPort const AVAudioSessionPortBuiltInSpeaker   	API_AVAILABLE(ios(6.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
    |                                    `- note: 'builtInSpeaker' has been explicitly marked unavailable here
 48 |
 49 | /// Output via High-Definition Multimedia Interface
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1848:32: error: 'AVAudioSession' is unavailable in macOS
1846 |         Logger.log.i(message: "[ACM_RESET] TxClient:: setEarpiece() called")
1847 |         do {
1848 |             let audioSession = AVAudioSession.sharedInstance()
     |                                `- error: 'AVAudioSession' is unavailable in macOS
1849 |             try audioSession.overrideOutputAudioPort(.none)
1850 |             _isSpeakerEnabled = false
/Applications/Xcode-26.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.5.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:29:12: note: 'AVAudioSession' has been explicitly marked unavailable here
 27 | NS_SWIFT_SENDABLE
 28 | API_AVAILABLE(ios(3.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos)
 29 | @interface AVAudioSession : NSObject {
    |            `- note: 'AVAudioSession' has been explicitly marked unavailable here
 30 | @private
 31 | 	void *_impl;
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1848:47: error: 'sharedInstance()' is unavailable in macOS
1846 |         Logger.log.i(message: "[ACM_RESET] TxClient:: setEarpiece() called")
1847 |         do {
1848 |             let audioSession = AVAudioSession.sharedInstance()
     |                                               `- error: 'sharedInstance()' is unavailable in macOS
1849 |             try audioSession.overrideOutputAudioPort(.none)
1850 |             _isSpeakerEnabled = false
AVFAudio.AVAudioSession.sharedInstance:3:19: note: 'sharedInstance()' has been explicitly marked unavailable here
1 | class AVAudioSession {
2 | @available(macOS, unavailable)
3 |   open class func sharedInstance() -> AVAudioSession}
  |                   `- note: 'sharedInstance()' has been explicitly marked unavailable here
4 |
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1849:30: error: 'overrideOutputAudioPort' is unavailable in macOS
1847 |         do {
1848 |             let audioSession = AVAudioSession.sharedInstance()
1849 |             try audioSession.overrideOutputAudioPort(.none)
     |                              `- error: 'overrideOutputAudioPort' is unavailable in macOS
1850 |             _isSpeakerEnabled = false
1851 |             Logger.log.i(message: "[ACM_RESET] TxClient:: Earpiece set successfully, _isSpeakerEnabled: \(_isSpeakerEnabled)")
AVFAudio.AVAudioSession.overrideOutputAudioPort:3:13: note: 'overrideOutputAudioPort' has been explicitly marked unavailable here
1 | class AVAudioSession {
2 | @available(macOS, unavailable)
3 |   open func overrideOutputAudioPort(_ portOverride: AVAudioSession.PortOverride) throws}
  |             `- note: 'overrideOutputAudioPort' has been explicitly marked unavailable here
4 |
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1861:32: error: 'AVAudioSession' is unavailable in macOS
1859 |         Logger.log.i(message: "[ACM_RESET] TxClient:: setSpeaker() called")
1860 |         do {
1861 |             let audioSession = AVAudioSession.sharedInstance()
     |                                `- error: 'AVAudioSession' is unavailable in macOS
1862 |             try audioSession.overrideOutputAudioPort(.speaker)
1863 |             _isSpeakerEnabled = true
/Applications/Xcode-26.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.5.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:29:12: note: 'AVAudioSession' has been explicitly marked unavailable here
 27 | NS_SWIFT_SENDABLE
 28 | API_AVAILABLE(ios(3.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos)
 29 | @interface AVAudioSession : NSObject {
    |            `- note: 'AVAudioSession' has been explicitly marked unavailable here
 30 | @private
 31 | 	void *_impl;
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1861:47: error: 'sharedInstance()' is unavailable in macOS
1859 |         Logger.log.i(message: "[ACM_RESET] TxClient:: setSpeaker() called")
1860 |         do {
1861 |             let audioSession = AVAudioSession.sharedInstance()
     |                                               `- error: 'sharedInstance()' is unavailable in macOS
1862 |             try audioSession.overrideOutputAudioPort(.speaker)
1863 |             _isSpeakerEnabled = true
AVFAudio.AVAudioSession.sharedInstance:3:19: note: 'sharedInstance()' has been explicitly marked unavailable here
1 | class AVAudioSession {
2 | @available(macOS, unavailable)
3 |   open class func sharedInstance() -> AVAudioSession}
  |                   `- note: 'sharedInstance()' has been explicitly marked unavailable here
4 |
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1862:30: error: 'overrideOutputAudioPort' is unavailable in macOS
1860 |         do {
1861 |             let audioSession = AVAudioSession.sharedInstance()
1862 |             try audioSession.overrideOutputAudioPort(.speaker)
     |                              `- error: 'overrideOutputAudioPort' is unavailable in macOS
1863 |             _isSpeakerEnabled = true
1864 |             Logger.log.i(message: "[ACM_RESET] TxClient:: Speaker set successfully, _isSpeakerEnabled: \(_isSpeakerEnabled)")
AVFAudio.AVAudioSession.overrideOutputAudioPort:3:13: note: 'overrideOutputAudioPort' has been explicitly marked unavailable here
1 | class AVAudioSession {
2 | @available(macOS, unavailable)
3 |   open func overrideOutputAudioPort(_ portOverride: AVAudioSession.PortOverride) throws}
  |             `- note: 'overrideOutputAudioPort' has been explicitly marked unavailable here
4 |
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1862:55: error: 'speaker' is unavailable in macOS
1860 |         do {
1861 |             let audioSession = AVAudioSession.sharedInstance()
1862 |             try audioSession.overrideOutputAudioPort(.speaker)
     |                                                       `- error: 'speaker' is unavailable in macOS
1863 |             _isSpeakerEnabled = true
1864 |             Logger.log.i(message: "[ACM_RESET] TxClient:: Speaker set successfully, _isSpeakerEnabled: \(_isSpeakerEnabled)")
AVFAudio.AVAudioSession.PortOverride.speaker:4:10: note: 'speaker' has been explicitly marked unavailable here
2 |   enum PortOverride {
3 | @available(macOS, unavailable)
4 |     case speaker  }
  |          `- note: 'speaker' has been explicitly marked unavailable here
5 | }
6 |
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:2512:28: error: 'AVAudioSession' is unavailable in macOS
2510 | extension TxClient {
2511 |     internal func resetAudioConfiguration() {
2512 |         let audioSession = AVAudioSession.sharedInstance()
     |                            `- error: 'AVAudioSession' is unavailable in macOS
2513 |         do {
2514 |             try audioSession.setCategory(
/Applications/Xcode-26.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.5.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:29:12: note: 'AVAudioSession' has been explicitly marked unavailable here
 27 | NS_SWIFT_SENDABLE
 28 | API_AVAILABLE(ios(3.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos)
 29 | @interface AVAudioSession : NSObject {
    |            `- note: 'AVAudioSession' has been explicitly marked unavailable here
 30 | @private
 31 | 	void *_impl;
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:2512:43: error: 'sharedInstance()' is unavailable in macOS
2510 | extension TxClient {
2511 |     internal func resetAudioConfiguration() {
2512 |         let audioSession = AVAudioSession.sharedInstance()
     |                                           `- error: 'sharedInstance()' is unavailable in macOS
2513 |         do {
2514 |             try audioSession.setCategory(
AVFAudio.AVAudioSession.sharedInstance:3:19: note: 'sharedInstance()' has been explicitly marked unavailable here
1 | class AVAudioSession {
2 | @available(macOS, unavailable)
3 |   open class func sharedInstance() -> AVAudioSession}
  |                   `- note: 'sharedInstance()' has been explicitly marked unavailable here
4 |
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:2514:30: error: 'setCategory(_:mode:options:)' is unavailable in macOS
2512 |         let audioSession = AVAudioSession.sharedInstance()
2513 |         do {
2514 |             try audioSession.setCategory(
     |                              `- error: 'setCategory(_:mode:options:)' is unavailable in macOS
2515 |                 .playback,
2516 |                 mode: .default,
AVFAudio.AVAudioSession.setCategory:3:13: note: 'setCategory(_:mode:options:)' has been explicitly marked unavailable here
1 | class AVAudioSession {
2 | @available(macOS, unavailable)
3 |   open func setCategory(_ category: AVAudioSession.Category, mode: AVAudioSession.Mode, options: AVAudioSession.CategoryOptions = []) throws}
  |             `- note: 'setCategory(_:mode:options:)' has been explicitly marked unavailable here
4 |
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:2515:18: error: 'playback' is unavailable in macOS
2513 |         do {
2514 |             try audioSession.setCategory(
2515 |                 .playback,
     |                  `- error: 'playback' is unavailable in macOS
2516 |                 mode: .default,
2517 |                 options: [.mixWithOthers]
/Applications/Xcode-26.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.5.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionTypes.h:100:40: note: 'playback' has been explicitly marked unavailable here
 98 |
 99 | /*! Use this category for music tracks.*/
100 | OS_EXPORT AVAudioSessionCategory const AVAudioSessionCategoryPlayback			API_AVAILABLE(ios(3.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
    |                                        `- note: 'playback' has been explicitly marked unavailable here
101 |
102 | /*! Use this category when recording audio. */
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:2516:24: error: 'default' is unavailable in macOS
2514 |             try audioSession.setCategory(
2515 |                 .playback,
2516 |                 mode: .default,
     |                        `- error: 'default' is unavailable in macOS
2517 |                 options: [.mixWithOthers]
2518 |             )
/Applications/Xcode-26.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.5.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionTypes.h:136:36: note: 'default' has been explicitly marked unavailable here
134 |
135 | /*! The default mode */
136 | OS_EXPORT AVAudioSessionMode const AVAudioSessionModeDefault API_AVAILABLE(ios(5.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
    |                                    `- note: 'default' has been explicitly marked unavailable here
137 |
138 | /*! Only valid with AVAudioSessionCategoryPlayAndRecord.  Appropriate for Voice over IP
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:2525:31: error: cannot find 'RTCAudioSession' in scope
2523 |
2524 |     internal func setupCorrectAudioConfiguration() {
2525 |         let rtcAudioSession = RTCAudioSession.sharedInstance()
     |                               `- error: cannot find 'RTCAudioSession' in scope
2526 |         rtcAudioSession.lockForConfiguration()
2527 |
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:2528:29: error: cannot find 'RTCAudioSessionConfiguration' in scope
2526 |         rtcAudioSession.lockForConfiguration()
2527 |
2528 |         let configuration = RTCAudioSessionConfiguration.webRTC()
     |                             `- error: cannot find 'RTCAudioSessionConfiguration' in scope
2529 |         configuration.categoryOptions = [
2530 |             .duckOthers,
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:2530:14: error: reference to member 'duckOthers' cannot be resolved without a contextual type
2528 |         let configuration = RTCAudioSessionConfiguration.webRTC()
2529 |         configuration.categoryOptions = [
2530 |             .duckOthers,
     |              `- error: reference to member 'duckOthers' cannot be resolved without a contextual type
2531 |             .allowBluetooth,
2532 |         ]
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:2531:14: error: reference to member 'allowBluetooth' cannot be resolved without a contextual type
2529 |         configuration.categoryOptions = [
2530 |             .duckOthers,
2531 |             .allowBluetooth,
     |              `- error: reference to member 'allowBluetooth' cannot be resolved without a contextual type
2532 |         ]
2533 |
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:2545:31: error: cannot find 'RTCAudioSession' in scope
2543 |     @discardableResult
2544 |     internal func setAudioSessionActive(_ active: Bool) -> Bool {
2545 |         let rtcAudioSession = RTCAudioSession.sharedInstance()
     |                               `- error: cannot find 'RTCAudioSession' in scope
2546 |         var succeeded = false
2547 |         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 [#no-usage]
 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 [#no-usage]
 97 |             Logger.log.e(message: "Failed to read log file")
 98 |             return
Fetching https://github.com/stasel/WebRTC.git
Fetching https://github.com/daltoniam/Starscream.git
[1/1197] Fetching webrtc
Fetched https://github.com/stasel/WebRTC.git from cache (0.86s)
[1/5235] Fetching starscream
Fetched https://github.com/daltoniam/Starscream.git from cache (1.55s)
Computing version for https://github.com/stasel/WebRTC.git
Computed https://github.com/stasel/WebRTC.git at 150.0.0 (2.18s)
Computing version for https://github.com/daltoniam/Starscream.git
Computed https://github.com/daltoniam/Starscream.git at 4.0.8 (0.61s)
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 150.0.0
Downloading binary artifact https://github.com/stasel/WebRTC/releases/download/150.0.0/WebRTC-M150.xcframework.zip
[16375/44274643] Downloading https://github.com/stasel/WebRTC/releases/download/150.0.0/WebRTC-M150.xcframework.zip
Downloaded https://github.com/stasel/WebRTC/releases/download/150.0.0/WebRTC-M150.xcframework.zip (2.25s)
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.3 macosSpm