Build Information
Failed to build telnyx-webrtc-ios, reference main (a2fa34), with Swift 6.2 for macOS (SPM) on 11 Dec 2025 15:51:47 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-26.0.0.app xcrun swift build --arch arm64Build Log
| `- warning: immutable value 'data' was never used; consider replacing with '_' or removing it [#no-usage]
144 | break
145 | case .ping(_):
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:140:34: error: 'CXAnswerCallAction' is unavailable in macOS
138 | private var socket : Socket?
139 |
140 | private var answerCallAction:CXAnswerCallAction? = nil
| `- error: 'CXAnswerCallAction' is unavailable in macOS
141 | private var endCallAction:CXEndCallAction? = nil
142 | private var sessionId : String?
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.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:141:31: error: 'CXEndCallAction' is unavailable in macOS
139 |
140 | private var answerCallAction:CXAnswerCallAction? = nil
141 | private var endCallAction:CXEndCallAction? = nil
| `- error: 'CXEndCallAction' is unavailable in macOS
142 | private var sessionId : String?
143 | internal var txConfig: TxConfig?
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.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:224:50: error: 'AVAudioSession' is unavailable in macOS
222 | /// }
223 | /// ```
224 | public func enableAudioSession(audioSession: AVAudioSession) {
| `- error: 'AVAudioSession' is unavailable in macOS
225 | setupCorrectAudioConfiguration()
226 | setAudioSessionActive(true)
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.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:243:51: error: 'AVAudioSession' is unavailable in macOS
241 | /// }
242 | /// ```
243 | public func disableAudioSession(audioSession: AVAudioSession) {
| `- error: 'AVAudioSession' is unavailable in macOS
244 | resetAudioConfiguration()
245 | setAudioSessionActive(false)
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.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:250:24: error: 'AVAudioSession' is unavailable in macOS
248 | /// The current audio route configuration.
249 | /// This provides information about the active input and output ports.
250 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
| `- error: 'AVAudioSession' is unavailable in macOS
251 |
252 | /// Client must be registered in order to receive or place calls.
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.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:250:39: error: 'sharedInstance()' is unavailable in macOS
248 | /// The current audio route configuration.
249 | /// This provides information about the active input and output ports.
250 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
| `- error: 'sharedInstance()' is unavailable in macOS
251 |
252 | /// 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:250:56: error: 'currentRoute' is unavailable in macOS
248 | /// The current audio route configuration.
249 | /// This provides information about the active input and output ports.
250 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
| `- error: 'currentRoute' is unavailable in macOS
251 |
252 | /// Client must be registered in order to receive or place calls.
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:464:54: note: 'currentRoute' has been explicitly marked unavailable here
462 | /// A description of the current route, consisting of zero or more input ports and zero or more
463 | /// output ports
464 | @property (readonly) AVAudioSessionRouteDescription *currentRoute
| `- note: 'currentRoute' has been explicitly marked unavailable here
465 | API_AVAILABLE(ios(6.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
466 |
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:599:48: error: 'CXAnswerCallAction' is unavailable in macOS
597 | /// - debug: (optional) Enable debug mode for call quality metrics and WebRTC statistics.
598 | /// When enabled, real-time call quality metrics will be available through the call's `onCallQualityChange` callback.
599 | public func answerFromCallkit(answerAction:CXAnswerCallAction,customHeaders:[String:String] = [:], debug:Bool = false) {
| `- error: 'CXAnswerCallAction' is unavailable in macOS
600 | self.answerCallAction = answerAction
601 | ///answer call if currentPushCall is not nil
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.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:622:46: error: 'CXEndCallAction' is unavailable in macOS
620 |
621 | /// To end and control callKit active and conn
622 | public func endCallFromCallkit(endAction:CXEndCallAction,callId:UUID? = nil) {
| `- error: 'CXEndCallAction' is unavailable in macOS
623 | self.endCallAction = endAction
624 | // Place the code you want to delay here
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.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:198:20: error: cannot find 'RTCAudioSession' in scope
196 | public var isAudioDeviceEnabled : Bool {
197 | get {
198 | return RTCAudioSession.sharedInstance().isAudioEnabled
| `- error: cannot find 'RTCAudioSession' in scope
199 | }
200 | set {
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:202:17: error: cannot find 'RTCAudioSession' in scope
200 | set {
201 | if newValue {
202 | RTCAudioSession.sharedInstance().audioSessionDidActivate(AVAudioSession.sharedInstance())
| `- error: cannot find 'RTCAudioSession' in scope
203 | } else {
204 | RTCAudioSession.sharedInstance().audioSessionDidDeactivate(AVAudioSession.sharedInstance())
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:204:17: error: cannot find 'RTCAudioSession' in scope
202 | RTCAudioSession.sharedInstance().audioSessionDidActivate(AVAudioSession.sharedInstance())
203 | } else {
204 | RTCAudioSession.sharedInstance().audioSessionDidDeactivate(AVAudioSession.sharedInstance())
| `- error: cannot find 'RTCAudioSession' in scope
205 | }
206 | RTCAudioSession.sharedInstance().isAudioEnabled = newValue
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:206:13: error: cannot find 'RTCAudioSession' in scope
204 | RTCAudioSession.sharedInstance().audioSessionDidDeactivate(AVAudioSession.sharedInstance())
205 | }
206 | RTCAudioSession.sharedInstance().isAudioEnabled = newValue
| `- error: cannot find 'RTCAudioSession' in scope
207 | }
208 | }
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:308:63: error: 'AVAudioSession' is unavailable in macOS
306 |
307 | // Remove audio route change observer
308 | NotificationCenter.default.removeObserver(self, name: AVAudioSession.routeChangeNotification, object: nil)
| `- error: 'AVAudioSession' is unavailable in macOS
309 |
310 | // Remove ACM reset observers
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.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:308:78: error: 'routeChangeNotification' is unavailable in macOS
306 |
307 | // Remove audio route change observer
308 | NotificationCenter.default.removeObserver(self, name: AVAudioSession.routeChangeNotification, object: nil)
| `- error: 'routeChangeNotification' is unavailable in macOS
309 |
310 | // Remove ACM reset observers
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionTypes.h:221:37: note: 'routeChangeNotification' has been explicitly marked unavailable here
219 | of the previous audio route.
220 | */
221 | 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
222 |
223 | /*!
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:328:19: error: 'AVAudioSession' is unavailable in macOS
326 | self,
327 | selector: #selector(handleAudioRouteChange),
328 | name: AVAudioSession.routeChangeNotification,
| `- error: 'AVAudioSession' is unavailable in macOS
329 | object: nil)
330 |
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.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:328:34: error: 'routeChangeNotification' is unavailable in macOS
326 | self,
327 | selector: #selector(handleAudioRouteChange),
328 | name: AVAudioSession.routeChangeNotification,
| `- error: 'routeChangeNotification' is unavailable in macOS
329 | object: nil)
330 |
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionTypes.h:221:37: note: 'routeChangeNotification' has been explicitly marked unavailable here
219 | of the previous audio route.
220 | */
221 | 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
222 |
223 | /*!
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:365:42: error: 'AVAudioSessionRouteChangeReasonKey' is unavailable in macOS
363 | @objc private func handleAudioRouteChange(notification: Notification) {
364 | guard let userInfo = notification.userInfo,
365 | let reasonValue = userInfo[AVAudioSessionRouteChangeReasonKey] as? UInt,
| `- error: 'AVAudioSessionRouteChangeReasonKey' is unavailable in macOS
366 | let reason = AVAudioSession.RouteChangeReason(rawValue: reasonValue) else {
367 | return
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionTypes.h:325:27: note: 'AVAudioSessionRouteChangeReasonKey' has been explicitly marked unavailable here
323 | /// keys for AVAudioSessionRouteChangeNotification
324 | /// value is an NSNumber representing an AVAudioSessionRouteChangeReason
325 | 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
326 | /// value is AVAudioSessionRouteDescription *
327 | 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:366:28: error: 'AVAudioSession' is unavailable in macOS
364 | guard let userInfo = notification.userInfo,
365 | let reasonValue = userInfo[AVAudioSessionRouteChangeReasonKey] as? UInt,
366 | let reason = AVAudioSession.RouteChangeReason(rawValue: reasonValue) else {
| `- error: 'AVAudioSession' is unavailable in macOS
367 | return
368 | }
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.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:370:23: error: 'AVAudioSession' is unavailable in macOS
368 | }
369 |
370 | let session = AVAudioSession.sharedInstance()
| `- error: 'AVAudioSession' is unavailable in macOS
371 | let currentRoute = session.currentRoute
372 |
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.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:370:38: error: 'sharedInstance()' is unavailable in macOS
368 | }
369 |
370 | let session = AVAudioSession.sharedInstance()
| `- error: 'sharedInstance()' is unavailable in macOS
371 | let currentRoute = session.currentRoute
372 |
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:371:36: error: 'currentRoute' is unavailable in macOS
369 |
370 | let session = AVAudioSession.sharedInstance()
371 | let currentRoute = session.currentRoute
| `- error: 'currentRoute' is unavailable in macOS
372 |
373 | // Ensure we have at least one output port
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:464:54: note: 'currentRoute' has been explicitly marked unavailable here
462 | /// A description of the current route, consisting of zero or more input ports and zero or more
463 | /// output ports
464 | @property (readonly) AVAudioSessionRouteDescription *currentRoute
| `- note: 'currentRoute' has been explicitly marked unavailable here
465 | API_AVAILABLE(ios(6.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
466 |
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:374:41: error: 'outputs' is unavailable in macOS
372 |
373 | // Ensure we have at least one output port
374 | guard let output = currentRoute.outputs.first else {
| `- error: 'outputs' is unavailable in macOS
375 | return
376 | }
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.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:378:85: error: 'portType' is unavailable in macOS
376 | }
377 |
378 | Logger.log.i(message: "[ACM_RESET] TxClient:: Audio route changed: \(output.portType), reason: \(reason), isACMResetInProgress: \(isACMResetInProgress)")
| `- error: 'portType' is unavailable in macOS
379 |
380 | // Ignore audio route changes during ACM reset to prevent state desynchronization
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.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:389:40: error: 'portType' is unavailable in macOS
387 | case .categoryChange, .override, .routeConfigurationChange:
388 | // Update internal speaker state based on current output
389 | let isSpeaker = output.portType == .builtInSpeaker
| `- error: 'portType' is unavailable in macOS
390 | _isSpeakerEnabled = isSpeaker
391 |
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.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:389:53: error: 'builtInSpeaker' is unavailable in macOS
387 | case .categoryChange, .override, .routeConfigurationChange:
388 | // Update internal speaker state based on current output
389 | let isSpeaker = output.portType == .builtInSpeaker
| `- error: 'builtInSpeaker' is unavailable in macOS
390 | _isSpeakerEnabled = isSpeaker
391 |
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.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:398:50: error: 'portType' is unavailable in macOS
396 | userInfo: [
397 | "isSpeakerEnabled": isSpeaker,
398 | "outputPortType": output.portType
| `- error: 'portType' is unavailable in macOS
399 | ]
400 | )
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.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:464:32: error: 'AVAudioSession' is unavailable in macOS
462 |
463 | // Verify if speaker is actually active
464 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
| `- error: 'AVAudioSession' is unavailable in macOS
465 | let isSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
466 |
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.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:464:47: error: 'sharedInstance()' is unavailable in macOS
462 |
463 | // Verify if speaker is actually active
464 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
| `- error: 'sharedInstance()' is unavailable in macOS
465 | let isSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
466 |
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:464:64: error: 'currentRoute' is unavailable in macOS
462 |
463 | // Verify if speaker is actually active
464 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
| `- error: 'currentRoute' is unavailable in macOS
465 | let isSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
466 |
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:464:54: note: 'currentRoute' has been explicitly marked unavailable here
462 | /// A description of the current route, consisting of zero or more input ports and zero or more
463 | /// output ports
464 | @property (readonly) AVAudioSessionRouteDescription *currentRoute
| `- note: 'currentRoute' has been explicitly marked unavailable here
465 | API_AVAILABLE(ios(6.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
466 |
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:465:48: error: 'outputs' is unavailable in macOS
463 | // Verify if speaker is actually active
464 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
465 | let isSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
| `- error: 'outputs' is unavailable in macOS
466 |
467 | if isSpeakerActive {
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.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:465:70: error: 'portType' is unavailable in macOS
463 | // Verify if speaker is actually active
464 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
465 | let isSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
| `- error: 'portType' is unavailable in macOS
466 |
467 | if isSpeakerActive {
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.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:465:83: error: 'builtInSpeaker' is unavailable in macOS
463 | // Verify if speaker is actually active
464 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
465 | let isSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
| `- error: 'builtInSpeaker' is unavailable in macOS
466 |
467 | if isSpeakerActive {
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.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:546:57: error: 'AVAudioSession' is unavailable in macOS
544 | // Remove audio route change observer
545 | NotificationCenter.default.removeObserver(self,
546 | name: AVAudioSession.routeChangeNotification,
| `- error: 'AVAudioSession' is unavailable in macOS
547 | object: nil)
548 | socket?.disconnect(reconnect: false)
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.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:546:72: error: 'routeChangeNotification' is unavailable in macOS
544 | // Remove audio route change observer
545 | NotificationCenter.default.removeObserver(self,
546 | name: AVAudioSession.routeChangeNotification,
| `- error: 'routeChangeNotification' is unavailable in macOS
547 | object: nil)
548 | socket?.disconnect(reconnect: false)
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionTypes.h:221:37: note: 'routeChangeNotification' has been explicitly marked unavailable here
219 | of the previous audio route.
220 | */
221 | 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
222 |
223 | /*!
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1170:32: error: 'AVAudioSession' is unavailable in macOS
1168 | Logger.log.i(message: "[ACM_RESET] TxClient:: setEarpiece() called")
1169 | do {
1170 | let audioSession = AVAudioSession.sharedInstance()
| `- error: 'AVAudioSession' is unavailable in macOS
1171 | try audioSession.overrideOutputAudioPort(.none)
1172 | _isSpeakerEnabled = false
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.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:1170:47: error: 'sharedInstance()' is unavailable in macOS
1168 | Logger.log.i(message: "[ACM_RESET] TxClient:: setEarpiece() called")
1169 | do {
1170 | let audioSession = AVAudioSession.sharedInstance()
| `- error: 'sharedInstance()' is unavailable in macOS
1171 | try audioSession.overrideOutputAudioPort(.none)
1172 | _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:1171:30: error: 'overrideOutputAudioPort' is unavailable in macOS
1169 | do {
1170 | let audioSession = AVAudioSession.sharedInstance()
1171 | try audioSession.overrideOutputAudioPort(.none)
| `- error: 'overrideOutputAudioPort' is unavailable in macOS
1172 | _isSpeakerEnabled = false
1173 | 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:1183:32: error: 'AVAudioSession' is unavailable in macOS
1181 | Logger.log.i(message: "[ACM_RESET] TxClient:: setSpeaker() called")
1182 | do {
1183 | let audioSession = AVAudioSession.sharedInstance()
| `- error: 'AVAudioSession' is unavailable in macOS
1184 | try audioSession.overrideOutputAudioPort(.speaker)
1185 | _isSpeakerEnabled = true
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.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:1183:47: error: 'sharedInstance()' is unavailable in macOS
1181 | Logger.log.i(message: "[ACM_RESET] TxClient:: setSpeaker() called")
1182 | do {
1183 | let audioSession = AVAudioSession.sharedInstance()
| `- error: 'sharedInstance()' is unavailable in macOS
1184 | try audioSession.overrideOutputAudioPort(.speaker)
1185 | _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:1184:30: error: 'overrideOutputAudioPort' is unavailable in macOS
1182 | do {
1183 | let audioSession = AVAudioSession.sharedInstance()
1184 | try audioSession.overrideOutputAudioPort(.speaker)
| `- error: 'overrideOutputAudioPort' is unavailable in macOS
1185 | _isSpeakerEnabled = true
1186 | 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:1184:55: error: 'speaker' is unavailable in macOS
1182 | do {
1183 | let audioSession = AVAudioSession.sharedInstance()
1184 | try audioSession.overrideOutputAudioPort(.speaker)
| `- error: 'speaker' is unavailable in macOS
1185 | _isSpeakerEnabled = true
1186 | 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:1653:28: error: 'AVAudioSession' is unavailable in macOS
1651 | extension TxClient {
1652 | internal func resetAudioConfiguration() {
1653 | let audioSession = AVAudioSession.sharedInstance()
| `- error: 'AVAudioSession' is unavailable in macOS
1654 | do {
1655 | try audioSession.setCategory(
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.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:1653:43: error: 'sharedInstance()' is unavailable in macOS
1651 | extension TxClient {
1652 | internal func resetAudioConfiguration() {
1653 | let audioSession = AVAudioSession.sharedInstance()
| `- error: 'sharedInstance()' is unavailable in macOS
1654 | do {
1655 | 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:1655:30: error: 'setCategory(_:mode:options:)' is unavailable in macOS
1653 | let audioSession = AVAudioSession.sharedInstance()
1654 | do {
1655 | try audioSession.setCategory(
| `- error: 'setCategory(_:mode:options:)' is unavailable in macOS
1656 | .playback,
1657 | 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:1656:18: error: 'playback' is unavailable in macOS
1654 | do {
1655 | try audioSession.setCategory(
1656 | .playback,
| `- error: 'playback' is unavailable in macOS
1657 | mode: .default,
1658 | options: [.mixWithOthers]
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.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:1657:24: error: 'default' is unavailable in macOS
1655 | try audioSession.setCategory(
1656 | .playback,
1657 | mode: .default,
| `- error: 'default' is unavailable in macOS
1658 | options: [.mixWithOthers]
1659 | )
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.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:1666:31: error: cannot find 'RTCAudioSession' in scope
1664 |
1665 | internal func setupCorrectAudioConfiguration() {
1666 | let rtcAudioSession = RTCAudioSession.sharedInstance()
| `- error: cannot find 'RTCAudioSession' in scope
1667 | rtcAudioSession.lockForConfiguration()
1668 |
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1669:29: error: cannot find 'RTCAudioSessionConfiguration' in scope
1667 | rtcAudioSession.lockForConfiguration()
1668 |
1669 | let configuration = RTCAudioSessionConfiguration.webRTC()
| `- error: cannot find 'RTCAudioSessionConfiguration' in scope
1670 | configuration.categoryOptions = [
1671 | .duckOthers,
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1671:14: error: reference to member 'duckOthers' cannot be resolved without a contextual type
1669 | let configuration = RTCAudioSessionConfiguration.webRTC()
1670 | configuration.categoryOptions = [
1671 | .duckOthers,
| `- error: reference to member 'duckOthers' cannot be resolved without a contextual type
1672 | .allowBluetooth,
1673 | ]
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1672:14: error: reference to member 'allowBluetooth' cannot be resolved without a contextual type
1670 | configuration.categoryOptions = [
1671 | .duckOthers,
1672 | .allowBluetooth,
| `- error: reference to member 'allowBluetooth' cannot be resolved without a contextual type
1673 | ]
1674 |
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1685:31: error: cannot find 'RTCAudioSession' in scope
1683 |
1684 | internal func setAudioSessionActive(_ active: Bool) {
1685 | let rtcAudioSession = RTCAudioSession.sharedInstance()
| `- error: cannot find 'RTCAudioSession' in scope
1686 |
1687 | 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
[93/95] Compiling TelnyxRTC TxClientSocketDelegate.swift
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/Services/Socket.swift:143:26: warning: immutable value 'data' was never used; consider replacing with '_' or removing it [#no-usage]
141 | break;
142 |
143 | case .binary(let data):
| `- warning: immutable value 'data' was never used; consider replacing with '_' or removing it [#no-usage]
144 | break
145 | case .ping(_):
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:140:34: error: 'CXAnswerCallAction' is unavailable in macOS
138 | private var socket : Socket?
139 |
140 | private var answerCallAction:CXAnswerCallAction? = nil
| `- error: 'CXAnswerCallAction' is unavailable in macOS
141 | private var endCallAction:CXEndCallAction? = nil
142 | private var sessionId : String?
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.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:141:31: error: 'CXEndCallAction' is unavailable in macOS
139 |
140 | private var answerCallAction:CXAnswerCallAction? = nil
141 | private var endCallAction:CXEndCallAction? = nil
| `- error: 'CXEndCallAction' is unavailable in macOS
142 | private var sessionId : String?
143 | internal var txConfig: TxConfig?
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.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:224:50: error: 'AVAudioSession' is unavailable in macOS
222 | /// }
223 | /// ```
224 | public func enableAudioSession(audioSession: AVAudioSession) {
| `- error: 'AVAudioSession' is unavailable in macOS
225 | setupCorrectAudioConfiguration()
226 | setAudioSessionActive(true)
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.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:243:51: error: 'AVAudioSession' is unavailable in macOS
241 | /// }
242 | /// ```
243 | public func disableAudioSession(audioSession: AVAudioSession) {
| `- error: 'AVAudioSession' is unavailable in macOS
244 | resetAudioConfiguration()
245 | setAudioSessionActive(false)
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.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:250:24: error: 'AVAudioSession' is unavailable in macOS
248 | /// The current audio route configuration.
249 | /// This provides information about the active input and output ports.
250 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
| `- error: 'AVAudioSession' is unavailable in macOS
251 |
252 | /// Client must be registered in order to receive or place calls.
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.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:250:39: error: 'sharedInstance()' is unavailable in macOS
248 | /// The current audio route configuration.
249 | /// This provides information about the active input and output ports.
250 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
| `- error: 'sharedInstance()' is unavailable in macOS
251 |
252 | /// 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:250:56: error: 'currentRoute' is unavailable in macOS
248 | /// The current audio route configuration.
249 | /// This provides information about the active input and output ports.
250 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
| `- error: 'currentRoute' is unavailable in macOS
251 |
252 | /// Client must be registered in order to receive or place calls.
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:464:54: note: 'currentRoute' has been explicitly marked unavailable here
462 | /// A description of the current route, consisting of zero or more input ports and zero or more
463 | /// output ports
464 | @property (readonly) AVAudioSessionRouteDescription *currentRoute
| `- note: 'currentRoute' has been explicitly marked unavailable here
465 | API_AVAILABLE(ios(6.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
466 |
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:599:48: error: 'CXAnswerCallAction' is unavailable in macOS
597 | /// - debug: (optional) Enable debug mode for call quality metrics and WebRTC statistics.
598 | /// When enabled, real-time call quality metrics will be available through the call's `onCallQualityChange` callback.
599 | public func answerFromCallkit(answerAction:CXAnswerCallAction,customHeaders:[String:String] = [:], debug:Bool = false) {
| `- error: 'CXAnswerCallAction' is unavailable in macOS
600 | self.answerCallAction = answerAction
601 | ///answer call if currentPushCall is not nil
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.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:622:46: error: 'CXEndCallAction' is unavailable in macOS
620 |
621 | /// To end and control callKit active and conn
622 | public func endCallFromCallkit(endAction:CXEndCallAction,callId:UUID? = nil) {
| `- error: 'CXEndCallAction' is unavailable in macOS
623 | self.endCallAction = endAction
624 | // Place the code you want to delay here
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.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:198:20: error: cannot find 'RTCAudioSession' in scope
196 | public var isAudioDeviceEnabled : Bool {
197 | get {
198 | return RTCAudioSession.sharedInstance().isAudioEnabled
| `- error: cannot find 'RTCAudioSession' in scope
199 | }
200 | set {
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:202:17: error: cannot find 'RTCAudioSession' in scope
200 | set {
201 | if newValue {
202 | RTCAudioSession.sharedInstance().audioSessionDidActivate(AVAudioSession.sharedInstance())
| `- error: cannot find 'RTCAudioSession' in scope
203 | } else {
204 | RTCAudioSession.sharedInstance().audioSessionDidDeactivate(AVAudioSession.sharedInstance())
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:204:17: error: cannot find 'RTCAudioSession' in scope
202 | RTCAudioSession.sharedInstance().audioSessionDidActivate(AVAudioSession.sharedInstance())
203 | } else {
204 | RTCAudioSession.sharedInstance().audioSessionDidDeactivate(AVAudioSession.sharedInstance())
| `- error: cannot find 'RTCAudioSession' in scope
205 | }
206 | RTCAudioSession.sharedInstance().isAudioEnabled = newValue
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:206:13: error: cannot find 'RTCAudioSession' in scope
204 | RTCAudioSession.sharedInstance().audioSessionDidDeactivate(AVAudioSession.sharedInstance())
205 | }
206 | RTCAudioSession.sharedInstance().isAudioEnabled = newValue
| `- error: cannot find 'RTCAudioSession' in scope
207 | }
208 | }
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:308:63: error: 'AVAudioSession' is unavailable in macOS
306 |
307 | // Remove audio route change observer
308 | NotificationCenter.default.removeObserver(self, name: AVAudioSession.routeChangeNotification, object: nil)
| `- error: 'AVAudioSession' is unavailable in macOS
309 |
310 | // Remove ACM reset observers
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.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:308:78: error: 'routeChangeNotification' is unavailable in macOS
306 |
307 | // Remove audio route change observer
308 | NotificationCenter.default.removeObserver(self, name: AVAudioSession.routeChangeNotification, object: nil)
| `- error: 'routeChangeNotification' is unavailable in macOS
309 |
310 | // Remove ACM reset observers
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionTypes.h:221:37: note: 'routeChangeNotification' has been explicitly marked unavailable here
219 | of the previous audio route.
220 | */
221 | 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
222 |
223 | /*!
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:328:19: error: 'AVAudioSession' is unavailable in macOS
326 | self,
327 | selector: #selector(handleAudioRouteChange),
328 | name: AVAudioSession.routeChangeNotification,
| `- error: 'AVAudioSession' is unavailable in macOS
329 | object: nil)
330 |
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.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:328:34: error: 'routeChangeNotification' is unavailable in macOS
326 | self,
327 | selector: #selector(handleAudioRouteChange),
328 | name: AVAudioSession.routeChangeNotification,
| `- error: 'routeChangeNotification' is unavailable in macOS
329 | object: nil)
330 |
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionTypes.h:221:37: note: 'routeChangeNotification' has been explicitly marked unavailable here
219 | of the previous audio route.
220 | */
221 | 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
222 |
223 | /*!
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:365:42: error: 'AVAudioSessionRouteChangeReasonKey' is unavailable in macOS
363 | @objc private func handleAudioRouteChange(notification: Notification) {
364 | guard let userInfo = notification.userInfo,
365 | let reasonValue = userInfo[AVAudioSessionRouteChangeReasonKey] as? UInt,
| `- error: 'AVAudioSessionRouteChangeReasonKey' is unavailable in macOS
366 | let reason = AVAudioSession.RouteChangeReason(rawValue: reasonValue) else {
367 | return
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionTypes.h:325:27: note: 'AVAudioSessionRouteChangeReasonKey' has been explicitly marked unavailable here
323 | /// keys for AVAudioSessionRouteChangeNotification
324 | /// value is an NSNumber representing an AVAudioSessionRouteChangeReason
325 | 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
326 | /// value is AVAudioSessionRouteDescription *
327 | 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:366:28: error: 'AVAudioSession' is unavailable in macOS
364 | guard let userInfo = notification.userInfo,
365 | let reasonValue = userInfo[AVAudioSessionRouteChangeReasonKey] as? UInt,
366 | let reason = AVAudioSession.RouteChangeReason(rawValue: reasonValue) else {
| `- error: 'AVAudioSession' is unavailable in macOS
367 | return
368 | }
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.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:370:23: error: 'AVAudioSession' is unavailable in macOS
368 | }
369 |
370 | let session = AVAudioSession.sharedInstance()
| `- error: 'AVAudioSession' is unavailable in macOS
371 | let currentRoute = session.currentRoute
372 |
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.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:370:38: error: 'sharedInstance()' is unavailable in macOS
368 | }
369 |
370 | let session = AVAudioSession.sharedInstance()
| `- error: 'sharedInstance()' is unavailable in macOS
371 | let currentRoute = session.currentRoute
372 |
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:371:36: error: 'currentRoute' is unavailable in macOS
369 |
370 | let session = AVAudioSession.sharedInstance()
371 | let currentRoute = session.currentRoute
| `- error: 'currentRoute' is unavailable in macOS
372 |
373 | // Ensure we have at least one output port
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:464:54: note: 'currentRoute' has been explicitly marked unavailable here
462 | /// A description of the current route, consisting of zero or more input ports and zero or more
463 | /// output ports
464 | @property (readonly) AVAudioSessionRouteDescription *currentRoute
| `- note: 'currentRoute' has been explicitly marked unavailable here
465 | API_AVAILABLE(ios(6.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
466 |
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:374:41: error: 'outputs' is unavailable in macOS
372 |
373 | // Ensure we have at least one output port
374 | guard let output = currentRoute.outputs.first else {
| `- error: 'outputs' is unavailable in macOS
375 | return
376 | }
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.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:378:85: error: 'portType' is unavailable in macOS
376 | }
377 |
378 | Logger.log.i(message: "[ACM_RESET] TxClient:: Audio route changed: \(output.portType), reason: \(reason), isACMResetInProgress: \(isACMResetInProgress)")
| `- error: 'portType' is unavailable in macOS
379 |
380 | // Ignore audio route changes during ACM reset to prevent state desynchronization
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.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:389:40: error: 'portType' is unavailable in macOS
387 | case .categoryChange, .override, .routeConfigurationChange:
388 | // Update internal speaker state based on current output
389 | let isSpeaker = output.portType == .builtInSpeaker
| `- error: 'portType' is unavailable in macOS
390 | _isSpeakerEnabled = isSpeaker
391 |
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.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:389:53: error: 'builtInSpeaker' is unavailable in macOS
387 | case .categoryChange, .override, .routeConfigurationChange:
388 | // Update internal speaker state based on current output
389 | let isSpeaker = output.portType == .builtInSpeaker
| `- error: 'builtInSpeaker' is unavailable in macOS
390 | _isSpeakerEnabled = isSpeaker
391 |
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.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:398:50: error: 'portType' is unavailable in macOS
396 | userInfo: [
397 | "isSpeakerEnabled": isSpeaker,
398 | "outputPortType": output.portType
| `- error: 'portType' is unavailable in macOS
399 | ]
400 | )
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.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:464:32: error: 'AVAudioSession' is unavailable in macOS
462 |
463 | // Verify if speaker is actually active
464 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
| `- error: 'AVAudioSession' is unavailable in macOS
465 | let isSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
466 |
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.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:464:47: error: 'sharedInstance()' is unavailable in macOS
462 |
463 | // Verify if speaker is actually active
464 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
| `- error: 'sharedInstance()' is unavailable in macOS
465 | let isSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
466 |
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:464:64: error: 'currentRoute' is unavailable in macOS
462 |
463 | // Verify if speaker is actually active
464 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
| `- error: 'currentRoute' is unavailable in macOS
465 | let isSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
466 |
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:464:54: note: 'currentRoute' has been explicitly marked unavailable here
462 | /// A description of the current route, consisting of zero or more input ports and zero or more
463 | /// output ports
464 | @property (readonly) AVAudioSessionRouteDescription *currentRoute
| `- note: 'currentRoute' has been explicitly marked unavailable here
465 | API_AVAILABLE(ios(6.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
466 |
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:465:48: error: 'outputs' is unavailable in macOS
463 | // Verify if speaker is actually active
464 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
465 | let isSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
| `- error: 'outputs' is unavailable in macOS
466 |
467 | if isSpeakerActive {
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.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:465:70: error: 'portType' is unavailable in macOS
463 | // Verify if speaker is actually active
464 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
465 | let isSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
| `- error: 'portType' is unavailable in macOS
466 |
467 | if isSpeakerActive {
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.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:465:83: error: 'builtInSpeaker' is unavailable in macOS
463 | // Verify if speaker is actually active
464 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
465 | let isSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
| `- error: 'builtInSpeaker' is unavailable in macOS
466 |
467 | if isSpeakerActive {
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.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:546:57: error: 'AVAudioSession' is unavailable in macOS
544 | // Remove audio route change observer
545 | NotificationCenter.default.removeObserver(self,
546 | name: AVAudioSession.routeChangeNotification,
| `- error: 'AVAudioSession' is unavailable in macOS
547 | object: nil)
548 | socket?.disconnect(reconnect: false)
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.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:546:72: error: 'routeChangeNotification' is unavailable in macOS
544 | // Remove audio route change observer
545 | NotificationCenter.default.removeObserver(self,
546 | name: AVAudioSession.routeChangeNotification,
| `- error: 'routeChangeNotification' is unavailable in macOS
547 | object: nil)
548 | socket?.disconnect(reconnect: false)
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionTypes.h:221:37: note: 'routeChangeNotification' has been explicitly marked unavailable here
219 | of the previous audio route.
220 | */
221 | 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
222 |
223 | /*!
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1170:32: error: 'AVAudioSession' is unavailable in macOS
1168 | Logger.log.i(message: "[ACM_RESET] TxClient:: setEarpiece() called")
1169 | do {
1170 | let audioSession = AVAudioSession.sharedInstance()
| `- error: 'AVAudioSession' is unavailable in macOS
1171 | try audioSession.overrideOutputAudioPort(.none)
1172 | _isSpeakerEnabled = false
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.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:1170:47: error: 'sharedInstance()' is unavailable in macOS
1168 | Logger.log.i(message: "[ACM_RESET] TxClient:: setEarpiece() called")
1169 | do {
1170 | let audioSession = AVAudioSession.sharedInstance()
| `- error: 'sharedInstance()' is unavailable in macOS
1171 | try audioSession.overrideOutputAudioPort(.none)
1172 | _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:1171:30: error: 'overrideOutputAudioPort' is unavailable in macOS
1169 | do {
1170 | let audioSession = AVAudioSession.sharedInstance()
1171 | try audioSession.overrideOutputAudioPort(.none)
| `- error: 'overrideOutputAudioPort' is unavailable in macOS
1172 | _isSpeakerEnabled = false
1173 | 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:1183:32: error: 'AVAudioSession' is unavailable in macOS
1181 | Logger.log.i(message: "[ACM_RESET] TxClient:: setSpeaker() called")
1182 | do {
1183 | let audioSession = AVAudioSession.sharedInstance()
| `- error: 'AVAudioSession' is unavailable in macOS
1184 | try audioSession.overrideOutputAudioPort(.speaker)
1185 | _isSpeakerEnabled = true
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.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:1183:47: error: 'sharedInstance()' is unavailable in macOS
1181 | Logger.log.i(message: "[ACM_RESET] TxClient:: setSpeaker() called")
1182 | do {
1183 | let audioSession = AVAudioSession.sharedInstance()
| `- error: 'sharedInstance()' is unavailable in macOS
1184 | try audioSession.overrideOutputAudioPort(.speaker)
1185 | _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:1184:30: error: 'overrideOutputAudioPort' is unavailable in macOS
1182 | do {
1183 | let audioSession = AVAudioSession.sharedInstance()
1184 | try audioSession.overrideOutputAudioPort(.speaker)
| `- error: 'overrideOutputAudioPort' is unavailable in macOS
1185 | _isSpeakerEnabled = true
1186 | 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:1184:55: error: 'speaker' is unavailable in macOS
1182 | do {
1183 | let audioSession = AVAudioSession.sharedInstance()
1184 | try audioSession.overrideOutputAudioPort(.speaker)
| `- error: 'speaker' is unavailable in macOS
1185 | _isSpeakerEnabled = true
1186 | 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:1653:28: error: 'AVAudioSession' is unavailable in macOS
1651 | extension TxClient {
1652 | internal func resetAudioConfiguration() {
1653 | let audioSession = AVAudioSession.sharedInstance()
| `- error: 'AVAudioSession' is unavailable in macOS
1654 | do {
1655 | try audioSession.setCategory(
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.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:1653:43: error: 'sharedInstance()' is unavailable in macOS
1651 | extension TxClient {
1652 | internal func resetAudioConfiguration() {
1653 | let audioSession = AVAudioSession.sharedInstance()
| `- error: 'sharedInstance()' is unavailable in macOS
1654 | do {
1655 | 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:1655:30: error: 'setCategory(_:mode:options:)' is unavailable in macOS
1653 | let audioSession = AVAudioSession.sharedInstance()
1654 | do {
1655 | try audioSession.setCategory(
| `- error: 'setCategory(_:mode:options:)' is unavailable in macOS
1656 | .playback,
1657 | 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:1656:18: error: 'playback' is unavailable in macOS
1654 | do {
1655 | try audioSession.setCategory(
1656 | .playback,
| `- error: 'playback' is unavailable in macOS
1657 | mode: .default,
1658 | options: [.mixWithOthers]
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.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:1657:24: error: 'default' is unavailable in macOS
1655 | try audioSession.setCategory(
1656 | .playback,
1657 | mode: .default,
| `- error: 'default' is unavailable in macOS
1658 | options: [.mixWithOthers]
1659 | )
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.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:1666:31: error: cannot find 'RTCAudioSession' in scope
1664 |
1665 | internal func setupCorrectAudioConfiguration() {
1666 | let rtcAudioSession = RTCAudioSession.sharedInstance()
| `- error: cannot find 'RTCAudioSession' in scope
1667 | rtcAudioSession.lockForConfiguration()
1668 |
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1669:29: error: cannot find 'RTCAudioSessionConfiguration' in scope
1667 | rtcAudioSession.lockForConfiguration()
1668 |
1669 | let configuration = RTCAudioSessionConfiguration.webRTC()
| `- error: cannot find 'RTCAudioSessionConfiguration' in scope
1670 | configuration.categoryOptions = [
1671 | .duckOthers,
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1671:14: error: reference to member 'duckOthers' cannot be resolved without a contextual type
1669 | let configuration = RTCAudioSessionConfiguration.webRTC()
1670 | configuration.categoryOptions = [
1671 | .duckOthers,
| `- error: reference to member 'duckOthers' cannot be resolved without a contextual type
1672 | .allowBluetooth,
1673 | ]
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1672:14: error: reference to member 'allowBluetooth' cannot be resolved without a contextual type
1670 | configuration.categoryOptions = [
1671 | .duckOthers,
1672 | .allowBluetooth,
| `- error: reference to member 'allowBluetooth' cannot be resolved without a contextual type
1673 | ]
1674 |
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1685:31: error: cannot find 'RTCAudioSession' in scope
1683 |
1684 | internal func setAudioSessionActive(_ active: Bool) {
1685 | let rtcAudioSession = RTCAudioSession.sharedInstance()
| `- error: cannot find 'RTCAudioSession' in scope
1686 |
1687 | 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
[94/95] Compiling TelnyxRTC FileLoger.swift
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/Services/Socket.swift:143:26: warning: immutable value 'data' was never used; consider replacing with '_' or removing it [#no-usage]
141 | break;
142 |
143 | case .binary(let data):
| `- warning: immutable value 'data' was never used; consider replacing with '_' or removing it [#no-usage]
144 | break
145 | case .ping(_):
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:140:34: error: 'CXAnswerCallAction' is unavailable in macOS
138 | private var socket : Socket?
139 |
140 | private var answerCallAction:CXAnswerCallAction? = nil
| `- error: 'CXAnswerCallAction' is unavailable in macOS
141 | private var endCallAction:CXEndCallAction? = nil
142 | private var sessionId : String?
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.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:141:31: error: 'CXEndCallAction' is unavailable in macOS
139 |
140 | private var answerCallAction:CXAnswerCallAction? = nil
141 | private var endCallAction:CXEndCallAction? = nil
| `- error: 'CXEndCallAction' is unavailable in macOS
142 | private var sessionId : String?
143 | internal var txConfig: TxConfig?
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.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:224:50: error: 'AVAudioSession' is unavailable in macOS
222 | /// }
223 | /// ```
224 | public func enableAudioSession(audioSession: AVAudioSession) {
| `- error: 'AVAudioSession' is unavailable in macOS
225 | setupCorrectAudioConfiguration()
226 | setAudioSessionActive(true)
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.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:243:51: error: 'AVAudioSession' is unavailable in macOS
241 | /// }
242 | /// ```
243 | public func disableAudioSession(audioSession: AVAudioSession) {
| `- error: 'AVAudioSession' is unavailable in macOS
244 | resetAudioConfiguration()
245 | setAudioSessionActive(false)
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.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:250:24: error: 'AVAudioSession' is unavailable in macOS
248 | /// The current audio route configuration.
249 | /// This provides information about the active input and output ports.
250 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
| `- error: 'AVAudioSession' is unavailable in macOS
251 |
252 | /// Client must be registered in order to receive or place calls.
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.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:250:39: error: 'sharedInstance()' is unavailable in macOS
248 | /// The current audio route configuration.
249 | /// This provides information about the active input and output ports.
250 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
| `- error: 'sharedInstance()' is unavailable in macOS
251 |
252 | /// 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:250:56: error: 'currentRoute' is unavailable in macOS
248 | /// The current audio route configuration.
249 | /// This provides information about the active input and output ports.
250 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
| `- error: 'currentRoute' is unavailable in macOS
251 |
252 | /// Client must be registered in order to receive or place calls.
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:464:54: note: 'currentRoute' has been explicitly marked unavailable here
462 | /// A description of the current route, consisting of zero or more input ports and zero or more
463 | /// output ports
464 | @property (readonly) AVAudioSessionRouteDescription *currentRoute
| `- note: 'currentRoute' has been explicitly marked unavailable here
465 | API_AVAILABLE(ios(6.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
466 |
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:599:48: error: 'CXAnswerCallAction' is unavailable in macOS
597 | /// - debug: (optional) Enable debug mode for call quality metrics and WebRTC statistics.
598 | /// When enabled, real-time call quality metrics will be available through the call's `onCallQualityChange` callback.
599 | public func answerFromCallkit(answerAction:CXAnswerCallAction,customHeaders:[String:String] = [:], debug:Bool = false) {
| `- error: 'CXAnswerCallAction' is unavailable in macOS
600 | self.answerCallAction = answerAction
601 | ///answer call if currentPushCall is not nil
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.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:622:46: error: 'CXEndCallAction' is unavailable in macOS
620 |
621 | /// To end and control callKit active and conn
622 | public func endCallFromCallkit(endAction:CXEndCallAction,callId:UUID? = nil) {
| `- error: 'CXEndCallAction' is unavailable in macOS
623 | self.endCallAction = endAction
624 | // Place the code you want to delay here
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.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:198:20: error: cannot find 'RTCAudioSession' in scope
196 | public var isAudioDeviceEnabled : Bool {
197 | get {
198 | return RTCAudioSession.sharedInstance().isAudioEnabled
| `- error: cannot find 'RTCAudioSession' in scope
199 | }
200 | set {
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:202:17: error: cannot find 'RTCAudioSession' in scope
200 | set {
201 | if newValue {
202 | RTCAudioSession.sharedInstance().audioSessionDidActivate(AVAudioSession.sharedInstance())
| `- error: cannot find 'RTCAudioSession' in scope
203 | } else {
204 | RTCAudioSession.sharedInstance().audioSessionDidDeactivate(AVAudioSession.sharedInstance())
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:204:17: error: cannot find 'RTCAudioSession' in scope
202 | RTCAudioSession.sharedInstance().audioSessionDidActivate(AVAudioSession.sharedInstance())
203 | } else {
204 | RTCAudioSession.sharedInstance().audioSessionDidDeactivate(AVAudioSession.sharedInstance())
| `- error: cannot find 'RTCAudioSession' in scope
205 | }
206 | RTCAudioSession.sharedInstance().isAudioEnabled = newValue
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:206:13: error: cannot find 'RTCAudioSession' in scope
204 | RTCAudioSession.sharedInstance().audioSessionDidDeactivate(AVAudioSession.sharedInstance())
205 | }
206 | RTCAudioSession.sharedInstance().isAudioEnabled = newValue
| `- error: cannot find 'RTCAudioSession' in scope
207 | }
208 | }
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:308:63: error: 'AVAudioSession' is unavailable in macOS
306 |
307 | // Remove audio route change observer
308 | NotificationCenter.default.removeObserver(self, name: AVAudioSession.routeChangeNotification, object: nil)
| `- error: 'AVAudioSession' is unavailable in macOS
309 |
310 | // Remove ACM reset observers
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.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:308:78: error: 'routeChangeNotification' is unavailable in macOS
306 |
307 | // Remove audio route change observer
308 | NotificationCenter.default.removeObserver(self, name: AVAudioSession.routeChangeNotification, object: nil)
| `- error: 'routeChangeNotification' is unavailable in macOS
309 |
310 | // Remove ACM reset observers
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionTypes.h:221:37: note: 'routeChangeNotification' has been explicitly marked unavailable here
219 | of the previous audio route.
220 | */
221 | 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
222 |
223 | /*!
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:328:19: error: 'AVAudioSession' is unavailable in macOS
326 | self,
327 | selector: #selector(handleAudioRouteChange),
328 | name: AVAudioSession.routeChangeNotification,
| `- error: 'AVAudioSession' is unavailable in macOS
329 | object: nil)
330 |
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.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:328:34: error: 'routeChangeNotification' is unavailable in macOS
326 | self,
327 | selector: #selector(handleAudioRouteChange),
328 | name: AVAudioSession.routeChangeNotification,
| `- error: 'routeChangeNotification' is unavailable in macOS
329 | object: nil)
330 |
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionTypes.h:221:37: note: 'routeChangeNotification' has been explicitly marked unavailable here
219 | of the previous audio route.
220 | */
221 | 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
222 |
223 | /*!
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:365:42: error: 'AVAudioSessionRouteChangeReasonKey' is unavailable in macOS
363 | @objc private func handleAudioRouteChange(notification: Notification) {
364 | guard let userInfo = notification.userInfo,
365 | let reasonValue = userInfo[AVAudioSessionRouteChangeReasonKey] as? UInt,
| `- error: 'AVAudioSessionRouteChangeReasonKey' is unavailable in macOS
366 | let reason = AVAudioSession.RouteChangeReason(rawValue: reasonValue) else {
367 | return
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionTypes.h:325:27: note: 'AVAudioSessionRouteChangeReasonKey' has been explicitly marked unavailable here
323 | /// keys for AVAudioSessionRouteChangeNotification
324 | /// value is an NSNumber representing an AVAudioSessionRouteChangeReason
325 | 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
326 | /// value is AVAudioSessionRouteDescription *
327 | 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:366:28: error: 'AVAudioSession' is unavailable in macOS
364 | guard let userInfo = notification.userInfo,
365 | let reasonValue = userInfo[AVAudioSessionRouteChangeReasonKey] as? UInt,
366 | let reason = AVAudioSession.RouteChangeReason(rawValue: reasonValue) else {
| `- error: 'AVAudioSession' is unavailable in macOS
367 | return
368 | }
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.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:370:23: error: 'AVAudioSession' is unavailable in macOS
368 | }
369 |
370 | let session = AVAudioSession.sharedInstance()
| `- error: 'AVAudioSession' is unavailable in macOS
371 | let currentRoute = session.currentRoute
372 |
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.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:370:38: error: 'sharedInstance()' is unavailable in macOS
368 | }
369 |
370 | let session = AVAudioSession.sharedInstance()
| `- error: 'sharedInstance()' is unavailable in macOS
371 | let currentRoute = session.currentRoute
372 |
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:371:36: error: 'currentRoute' is unavailable in macOS
369 |
370 | let session = AVAudioSession.sharedInstance()
371 | let currentRoute = session.currentRoute
| `- error: 'currentRoute' is unavailable in macOS
372 |
373 | // Ensure we have at least one output port
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:464:54: note: 'currentRoute' has been explicitly marked unavailable here
462 | /// A description of the current route, consisting of zero or more input ports and zero or more
463 | /// output ports
464 | @property (readonly) AVAudioSessionRouteDescription *currentRoute
| `- note: 'currentRoute' has been explicitly marked unavailable here
465 | API_AVAILABLE(ios(6.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
466 |
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:374:41: error: 'outputs' is unavailable in macOS
372 |
373 | // Ensure we have at least one output port
374 | guard let output = currentRoute.outputs.first else {
| `- error: 'outputs' is unavailable in macOS
375 | return
376 | }
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.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:378:85: error: 'portType' is unavailable in macOS
376 | }
377 |
378 | Logger.log.i(message: "[ACM_RESET] TxClient:: Audio route changed: \(output.portType), reason: \(reason), isACMResetInProgress: \(isACMResetInProgress)")
| `- error: 'portType' is unavailable in macOS
379 |
380 | // Ignore audio route changes during ACM reset to prevent state desynchronization
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.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:389:40: error: 'portType' is unavailable in macOS
387 | case .categoryChange, .override, .routeConfigurationChange:
388 | // Update internal speaker state based on current output
389 | let isSpeaker = output.portType == .builtInSpeaker
| `- error: 'portType' is unavailable in macOS
390 | _isSpeakerEnabled = isSpeaker
391 |
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.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:389:53: error: 'builtInSpeaker' is unavailable in macOS
387 | case .categoryChange, .override, .routeConfigurationChange:
388 | // Update internal speaker state based on current output
389 | let isSpeaker = output.portType == .builtInSpeaker
| `- error: 'builtInSpeaker' is unavailable in macOS
390 | _isSpeakerEnabled = isSpeaker
391 |
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.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:398:50: error: 'portType' is unavailable in macOS
396 | userInfo: [
397 | "isSpeakerEnabled": isSpeaker,
398 | "outputPortType": output.portType
| `- error: 'portType' is unavailable in macOS
399 | ]
400 | )
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.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:464:32: error: 'AVAudioSession' is unavailable in macOS
462 |
463 | // Verify if speaker is actually active
464 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
| `- error: 'AVAudioSession' is unavailable in macOS
465 | let isSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
466 |
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.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:464:47: error: 'sharedInstance()' is unavailable in macOS
462 |
463 | // Verify if speaker is actually active
464 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
| `- error: 'sharedInstance()' is unavailable in macOS
465 | let isSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
466 |
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:464:64: error: 'currentRoute' is unavailable in macOS
462 |
463 | // Verify if speaker is actually active
464 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
| `- error: 'currentRoute' is unavailable in macOS
465 | let isSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
466 |
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:464:54: note: 'currentRoute' has been explicitly marked unavailable here
462 | /// A description of the current route, consisting of zero or more input ports and zero or more
463 | /// output ports
464 | @property (readonly) AVAudioSessionRouteDescription *currentRoute
| `- note: 'currentRoute' has been explicitly marked unavailable here
465 | API_AVAILABLE(ios(6.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
466 |
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:465:48: error: 'outputs' is unavailable in macOS
463 | // Verify if speaker is actually active
464 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
465 | let isSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
| `- error: 'outputs' is unavailable in macOS
466 |
467 | if isSpeakerActive {
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.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:465:70: error: 'portType' is unavailable in macOS
463 | // Verify if speaker is actually active
464 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
465 | let isSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
| `- error: 'portType' is unavailable in macOS
466 |
467 | if isSpeakerActive {
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.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:465:83: error: 'builtInSpeaker' is unavailable in macOS
463 | // Verify if speaker is actually active
464 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
465 | let isSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
| `- error: 'builtInSpeaker' is unavailable in macOS
466 |
467 | if isSpeakerActive {
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.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:546:57: error: 'AVAudioSession' is unavailable in macOS
544 | // Remove audio route change observer
545 | NotificationCenter.default.removeObserver(self,
546 | name: AVAudioSession.routeChangeNotification,
| `- error: 'AVAudioSession' is unavailable in macOS
547 | object: nil)
548 | socket?.disconnect(reconnect: false)
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.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:546:72: error: 'routeChangeNotification' is unavailable in macOS
544 | // Remove audio route change observer
545 | NotificationCenter.default.removeObserver(self,
546 | name: AVAudioSession.routeChangeNotification,
| `- error: 'routeChangeNotification' is unavailable in macOS
547 | object: nil)
548 | socket?.disconnect(reconnect: false)
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionTypes.h:221:37: note: 'routeChangeNotification' has been explicitly marked unavailable here
219 | of the previous audio route.
220 | */
221 | 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
222 |
223 | /*!
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1170:32: error: 'AVAudioSession' is unavailable in macOS
1168 | Logger.log.i(message: "[ACM_RESET] TxClient:: setEarpiece() called")
1169 | do {
1170 | let audioSession = AVAudioSession.sharedInstance()
| `- error: 'AVAudioSession' is unavailable in macOS
1171 | try audioSession.overrideOutputAudioPort(.none)
1172 | _isSpeakerEnabled = false
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.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:1170:47: error: 'sharedInstance()' is unavailable in macOS
1168 | Logger.log.i(message: "[ACM_RESET] TxClient:: setEarpiece() called")
1169 | do {
1170 | let audioSession = AVAudioSession.sharedInstance()
| `- error: 'sharedInstance()' is unavailable in macOS
1171 | try audioSession.overrideOutputAudioPort(.none)
1172 | _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:1171:30: error: 'overrideOutputAudioPort' is unavailable in macOS
1169 | do {
1170 | let audioSession = AVAudioSession.sharedInstance()
1171 | try audioSession.overrideOutputAudioPort(.none)
| `- error: 'overrideOutputAudioPort' is unavailable in macOS
1172 | _isSpeakerEnabled = false
1173 | 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:1183:32: error: 'AVAudioSession' is unavailable in macOS
1181 | Logger.log.i(message: "[ACM_RESET] TxClient:: setSpeaker() called")
1182 | do {
1183 | let audioSession = AVAudioSession.sharedInstance()
| `- error: 'AVAudioSession' is unavailable in macOS
1184 | try audioSession.overrideOutputAudioPort(.speaker)
1185 | _isSpeakerEnabled = true
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.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:1183:47: error: 'sharedInstance()' is unavailable in macOS
1181 | Logger.log.i(message: "[ACM_RESET] TxClient:: setSpeaker() called")
1182 | do {
1183 | let audioSession = AVAudioSession.sharedInstance()
| `- error: 'sharedInstance()' is unavailable in macOS
1184 | try audioSession.overrideOutputAudioPort(.speaker)
1185 | _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:1184:30: error: 'overrideOutputAudioPort' is unavailable in macOS
1182 | do {
1183 | let audioSession = AVAudioSession.sharedInstance()
1184 | try audioSession.overrideOutputAudioPort(.speaker)
| `- error: 'overrideOutputAudioPort' is unavailable in macOS
1185 | _isSpeakerEnabled = true
1186 | 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:1184:55: error: 'speaker' is unavailable in macOS
1182 | do {
1183 | let audioSession = AVAudioSession.sharedInstance()
1184 | try audioSession.overrideOutputAudioPort(.speaker)
| `- error: 'speaker' is unavailable in macOS
1185 | _isSpeakerEnabled = true
1186 | 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:1653:28: error: 'AVAudioSession' is unavailable in macOS
1651 | extension TxClient {
1652 | internal func resetAudioConfiguration() {
1653 | let audioSession = AVAudioSession.sharedInstance()
| `- error: 'AVAudioSession' is unavailable in macOS
1654 | do {
1655 | try audioSession.setCategory(
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.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:1653:43: error: 'sharedInstance()' is unavailable in macOS
1651 | extension TxClient {
1652 | internal func resetAudioConfiguration() {
1653 | let audioSession = AVAudioSession.sharedInstance()
| `- error: 'sharedInstance()' is unavailable in macOS
1654 | do {
1655 | 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:1655:30: error: 'setCategory(_:mode:options:)' is unavailable in macOS
1653 | let audioSession = AVAudioSession.sharedInstance()
1654 | do {
1655 | try audioSession.setCategory(
| `- error: 'setCategory(_:mode:options:)' is unavailable in macOS
1656 | .playback,
1657 | 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:1656:18: error: 'playback' is unavailable in macOS
1654 | do {
1655 | try audioSession.setCategory(
1656 | .playback,
| `- error: 'playback' is unavailable in macOS
1657 | mode: .default,
1658 | options: [.mixWithOthers]
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.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:1657:24: error: 'default' is unavailable in macOS
1655 | try audioSession.setCategory(
1656 | .playback,
1657 | mode: .default,
| `- error: 'default' is unavailable in macOS
1658 | options: [.mixWithOthers]
1659 | )
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.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:1666:31: error: cannot find 'RTCAudioSession' in scope
1664 |
1665 | internal func setupCorrectAudioConfiguration() {
1666 | let rtcAudioSession = RTCAudioSession.sharedInstance()
| `- error: cannot find 'RTCAudioSession' in scope
1667 | rtcAudioSession.lockForConfiguration()
1668 |
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1669:29: error: cannot find 'RTCAudioSessionConfiguration' in scope
1667 | rtcAudioSession.lockForConfiguration()
1668 |
1669 | let configuration = RTCAudioSessionConfiguration.webRTC()
| `- error: cannot find 'RTCAudioSessionConfiguration' in scope
1670 | configuration.categoryOptions = [
1671 | .duckOthers,
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1671:14: error: reference to member 'duckOthers' cannot be resolved without a contextual type
1669 | let configuration = RTCAudioSessionConfiguration.webRTC()
1670 | configuration.categoryOptions = [
1671 | .duckOthers,
| `- error: reference to member 'duckOthers' cannot be resolved without a contextual type
1672 | .allowBluetooth,
1673 | ]
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1672:14: error: reference to member 'allowBluetooth' cannot be resolved without a contextual type
1670 | configuration.categoryOptions = [
1671 | .duckOthers,
1672 | .allowBluetooth,
| `- error: reference to member 'allowBluetooth' cannot be resolved without a contextual type
1673 | ]
1674 |
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1685:31: error: cannot find 'RTCAudioSession' in scope
1683 |
1684 | internal func setAudioSessionActive(_ active: Bool) {
1685 | let rtcAudioSession = RTCAudioSession.sharedInstance()
| `- error: cannot find 'RTCAudioSession' in scope
1686 |
1687 | 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
[95/95] Compiling TelnyxRTC Logger.swift
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/Services/Socket.swift:143:26: warning: immutable value 'data' was never used; consider replacing with '_' or removing it [#no-usage]
141 | break;
142 |
143 | case .binary(let data):
| `- warning: immutable value 'data' was never used; consider replacing with '_' or removing it [#no-usage]
144 | break
145 | case .ping(_):
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:140:34: error: 'CXAnswerCallAction' is unavailable in macOS
138 | private var socket : Socket?
139 |
140 | private var answerCallAction:CXAnswerCallAction? = nil
| `- error: 'CXAnswerCallAction' is unavailable in macOS
141 | private var endCallAction:CXEndCallAction? = nil
142 | private var sessionId : String?
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.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:141:31: error: 'CXEndCallAction' is unavailable in macOS
139 |
140 | private var answerCallAction:CXAnswerCallAction? = nil
141 | private var endCallAction:CXEndCallAction? = nil
| `- error: 'CXEndCallAction' is unavailable in macOS
142 | private var sessionId : String?
143 | internal var txConfig: TxConfig?
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.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:224:50: error: 'AVAudioSession' is unavailable in macOS
222 | /// }
223 | /// ```
224 | public func enableAudioSession(audioSession: AVAudioSession) {
| `- error: 'AVAudioSession' is unavailable in macOS
225 | setupCorrectAudioConfiguration()
226 | setAudioSessionActive(true)
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.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:243:51: error: 'AVAudioSession' is unavailable in macOS
241 | /// }
242 | /// ```
243 | public func disableAudioSession(audioSession: AVAudioSession) {
| `- error: 'AVAudioSession' is unavailable in macOS
244 | resetAudioConfiguration()
245 | setAudioSessionActive(false)
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.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:250:24: error: 'AVAudioSession' is unavailable in macOS
248 | /// The current audio route configuration.
249 | /// This provides information about the active input and output ports.
250 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
| `- error: 'AVAudioSession' is unavailable in macOS
251 |
252 | /// Client must be registered in order to receive or place calls.
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.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:250:39: error: 'sharedInstance()' is unavailable in macOS
248 | /// The current audio route configuration.
249 | /// This provides information about the active input and output ports.
250 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
| `- error: 'sharedInstance()' is unavailable in macOS
251 |
252 | /// 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:250:56: error: 'currentRoute' is unavailable in macOS
248 | /// The current audio route configuration.
249 | /// This provides information about the active input and output ports.
250 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
| `- error: 'currentRoute' is unavailable in macOS
251 |
252 | /// Client must be registered in order to receive or place calls.
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:464:54: note: 'currentRoute' has been explicitly marked unavailable here
462 | /// A description of the current route, consisting of zero or more input ports and zero or more
463 | /// output ports
464 | @property (readonly) AVAudioSessionRouteDescription *currentRoute
| `- note: 'currentRoute' has been explicitly marked unavailable here
465 | API_AVAILABLE(ios(6.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
466 |
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:599:48: error: 'CXAnswerCallAction' is unavailable in macOS
597 | /// - debug: (optional) Enable debug mode for call quality metrics and WebRTC statistics.
598 | /// When enabled, real-time call quality metrics will be available through the call's `onCallQualityChange` callback.
599 | public func answerFromCallkit(answerAction:CXAnswerCallAction,customHeaders:[String:String] = [:], debug:Bool = false) {
| `- error: 'CXAnswerCallAction' is unavailable in macOS
600 | self.answerCallAction = answerAction
601 | ///answer call if currentPushCall is not nil
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.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:622:46: error: 'CXEndCallAction' is unavailable in macOS
620 |
621 | /// To end and control callKit active and conn
622 | public func endCallFromCallkit(endAction:CXEndCallAction,callId:UUID? = nil) {
| `- error: 'CXEndCallAction' is unavailable in macOS
623 | self.endCallAction = endAction
624 | // Place the code you want to delay here
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.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:198:20: error: cannot find 'RTCAudioSession' in scope
196 | public var isAudioDeviceEnabled : Bool {
197 | get {
198 | return RTCAudioSession.sharedInstance().isAudioEnabled
| `- error: cannot find 'RTCAudioSession' in scope
199 | }
200 | set {
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:202:17: error: cannot find 'RTCAudioSession' in scope
200 | set {
201 | if newValue {
202 | RTCAudioSession.sharedInstance().audioSessionDidActivate(AVAudioSession.sharedInstance())
| `- error: cannot find 'RTCAudioSession' in scope
203 | } else {
204 | RTCAudioSession.sharedInstance().audioSessionDidDeactivate(AVAudioSession.sharedInstance())
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:204:17: error: cannot find 'RTCAudioSession' in scope
202 | RTCAudioSession.sharedInstance().audioSessionDidActivate(AVAudioSession.sharedInstance())
203 | } else {
204 | RTCAudioSession.sharedInstance().audioSessionDidDeactivate(AVAudioSession.sharedInstance())
| `- error: cannot find 'RTCAudioSession' in scope
205 | }
206 | RTCAudioSession.sharedInstance().isAudioEnabled = newValue
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:206:13: error: cannot find 'RTCAudioSession' in scope
204 | RTCAudioSession.sharedInstance().audioSessionDidDeactivate(AVAudioSession.sharedInstance())
205 | }
206 | RTCAudioSession.sharedInstance().isAudioEnabled = newValue
| `- error: cannot find 'RTCAudioSession' in scope
207 | }
208 | }
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:308:63: error: 'AVAudioSession' is unavailable in macOS
306 |
307 | // Remove audio route change observer
308 | NotificationCenter.default.removeObserver(self, name: AVAudioSession.routeChangeNotification, object: nil)
| `- error: 'AVAudioSession' is unavailable in macOS
309 |
310 | // Remove ACM reset observers
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.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:308:78: error: 'routeChangeNotification' is unavailable in macOS
306 |
307 | // Remove audio route change observer
308 | NotificationCenter.default.removeObserver(self, name: AVAudioSession.routeChangeNotification, object: nil)
| `- error: 'routeChangeNotification' is unavailable in macOS
309 |
310 | // Remove ACM reset observers
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionTypes.h:221:37: note: 'routeChangeNotification' has been explicitly marked unavailable here
219 | of the previous audio route.
220 | */
221 | 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
222 |
223 | /*!
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:328:19: error: 'AVAudioSession' is unavailable in macOS
326 | self,
327 | selector: #selector(handleAudioRouteChange),
328 | name: AVAudioSession.routeChangeNotification,
| `- error: 'AVAudioSession' is unavailable in macOS
329 | object: nil)
330 |
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.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:328:34: error: 'routeChangeNotification' is unavailable in macOS
326 | self,
327 | selector: #selector(handleAudioRouteChange),
328 | name: AVAudioSession.routeChangeNotification,
| `- error: 'routeChangeNotification' is unavailable in macOS
329 | object: nil)
330 |
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionTypes.h:221:37: note: 'routeChangeNotification' has been explicitly marked unavailable here
219 | of the previous audio route.
220 | */
221 | 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
222 |
223 | /*!
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:365:42: error: 'AVAudioSessionRouteChangeReasonKey' is unavailable in macOS
363 | @objc private func handleAudioRouteChange(notification: Notification) {
364 | guard let userInfo = notification.userInfo,
365 | let reasonValue = userInfo[AVAudioSessionRouteChangeReasonKey] as? UInt,
| `- error: 'AVAudioSessionRouteChangeReasonKey' is unavailable in macOS
366 | let reason = AVAudioSession.RouteChangeReason(rawValue: reasonValue) else {
367 | return
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionTypes.h:325:27: note: 'AVAudioSessionRouteChangeReasonKey' has been explicitly marked unavailable here
323 | /// keys for AVAudioSessionRouteChangeNotification
324 | /// value is an NSNumber representing an AVAudioSessionRouteChangeReason
325 | 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
326 | /// value is AVAudioSessionRouteDescription *
327 | 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:366:28: error: 'AVAudioSession' is unavailable in macOS
364 | guard let userInfo = notification.userInfo,
365 | let reasonValue = userInfo[AVAudioSessionRouteChangeReasonKey] as? UInt,
366 | let reason = AVAudioSession.RouteChangeReason(rawValue: reasonValue) else {
| `- error: 'AVAudioSession' is unavailable in macOS
367 | return
368 | }
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.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:370:23: error: 'AVAudioSession' is unavailable in macOS
368 | }
369 |
370 | let session = AVAudioSession.sharedInstance()
| `- error: 'AVAudioSession' is unavailable in macOS
371 | let currentRoute = session.currentRoute
372 |
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.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:370:38: error: 'sharedInstance()' is unavailable in macOS
368 | }
369 |
370 | let session = AVAudioSession.sharedInstance()
| `- error: 'sharedInstance()' is unavailable in macOS
371 | let currentRoute = session.currentRoute
372 |
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:371:36: error: 'currentRoute' is unavailable in macOS
369 |
370 | let session = AVAudioSession.sharedInstance()
371 | let currentRoute = session.currentRoute
| `- error: 'currentRoute' is unavailable in macOS
372 |
373 | // Ensure we have at least one output port
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:464:54: note: 'currentRoute' has been explicitly marked unavailable here
462 | /// A description of the current route, consisting of zero or more input ports and zero or more
463 | /// output ports
464 | @property (readonly) AVAudioSessionRouteDescription *currentRoute
| `- note: 'currentRoute' has been explicitly marked unavailable here
465 | API_AVAILABLE(ios(6.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
466 |
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:374:41: error: 'outputs' is unavailable in macOS
372 |
373 | // Ensure we have at least one output port
374 | guard let output = currentRoute.outputs.first else {
| `- error: 'outputs' is unavailable in macOS
375 | return
376 | }
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.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:378:85: error: 'portType' is unavailable in macOS
376 | }
377 |
378 | Logger.log.i(message: "[ACM_RESET] TxClient:: Audio route changed: \(output.portType), reason: \(reason), isACMResetInProgress: \(isACMResetInProgress)")
| `- error: 'portType' is unavailable in macOS
379 |
380 | // Ignore audio route changes during ACM reset to prevent state desynchronization
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.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:389:40: error: 'portType' is unavailable in macOS
387 | case .categoryChange, .override, .routeConfigurationChange:
388 | // Update internal speaker state based on current output
389 | let isSpeaker = output.portType == .builtInSpeaker
| `- error: 'portType' is unavailable in macOS
390 | _isSpeakerEnabled = isSpeaker
391 |
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.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:389:53: error: 'builtInSpeaker' is unavailable in macOS
387 | case .categoryChange, .override, .routeConfigurationChange:
388 | // Update internal speaker state based on current output
389 | let isSpeaker = output.portType == .builtInSpeaker
| `- error: 'builtInSpeaker' is unavailable in macOS
390 | _isSpeakerEnabled = isSpeaker
391 |
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.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:398:50: error: 'portType' is unavailable in macOS
396 | userInfo: [
397 | "isSpeakerEnabled": isSpeaker,
398 | "outputPortType": output.portType
| `- error: 'portType' is unavailable in macOS
399 | ]
400 | )
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.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:464:32: error: 'AVAudioSession' is unavailable in macOS
462 |
463 | // Verify if speaker is actually active
464 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
| `- error: 'AVAudioSession' is unavailable in macOS
465 | let isSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
466 |
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.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:464:47: error: 'sharedInstance()' is unavailable in macOS
462 |
463 | // Verify if speaker is actually active
464 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
| `- error: 'sharedInstance()' is unavailable in macOS
465 | let isSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
466 |
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:464:64: error: 'currentRoute' is unavailable in macOS
462 |
463 | // Verify if speaker is actually active
464 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
| `- error: 'currentRoute' is unavailable in macOS
465 | let isSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
466 |
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:464:54: note: 'currentRoute' has been explicitly marked unavailable here
462 | /// A description of the current route, consisting of zero or more input ports and zero or more
463 | /// output ports
464 | @property (readonly) AVAudioSessionRouteDescription *currentRoute
| `- note: 'currentRoute' has been explicitly marked unavailable here
465 | API_AVAILABLE(ios(6.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
466 |
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:465:48: error: 'outputs' is unavailable in macOS
463 | // Verify if speaker is actually active
464 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
465 | let isSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
| `- error: 'outputs' is unavailable in macOS
466 |
467 | if isSpeakerActive {
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.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:465:70: error: 'portType' is unavailable in macOS
463 | // Verify if speaker is actually active
464 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
465 | let isSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
| `- error: 'portType' is unavailable in macOS
466 |
467 | if isSpeakerActive {
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.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:465:83: error: 'builtInSpeaker' is unavailable in macOS
463 | // Verify if speaker is actually active
464 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
465 | let isSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
| `- error: 'builtInSpeaker' is unavailable in macOS
466 |
467 | if isSpeakerActive {
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.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:546:57: error: 'AVAudioSession' is unavailable in macOS
544 | // Remove audio route change observer
545 | NotificationCenter.default.removeObserver(self,
546 | name: AVAudioSession.routeChangeNotification,
| `- error: 'AVAudioSession' is unavailable in macOS
547 | object: nil)
548 | socket?.disconnect(reconnect: false)
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.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:546:72: error: 'routeChangeNotification' is unavailable in macOS
544 | // Remove audio route change observer
545 | NotificationCenter.default.removeObserver(self,
546 | name: AVAudioSession.routeChangeNotification,
| `- error: 'routeChangeNotification' is unavailable in macOS
547 | object: nil)
548 | socket?.disconnect(reconnect: false)
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionTypes.h:221:37: note: 'routeChangeNotification' has been explicitly marked unavailable here
219 | of the previous audio route.
220 | */
221 | 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
222 |
223 | /*!
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1170:32: error: 'AVAudioSession' is unavailable in macOS
1168 | Logger.log.i(message: "[ACM_RESET] TxClient:: setEarpiece() called")
1169 | do {
1170 | let audioSession = AVAudioSession.sharedInstance()
| `- error: 'AVAudioSession' is unavailable in macOS
1171 | try audioSession.overrideOutputAudioPort(.none)
1172 | _isSpeakerEnabled = false
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.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:1170:47: error: 'sharedInstance()' is unavailable in macOS
1168 | Logger.log.i(message: "[ACM_RESET] TxClient:: setEarpiece() called")
1169 | do {
1170 | let audioSession = AVAudioSession.sharedInstance()
| `- error: 'sharedInstance()' is unavailable in macOS
1171 | try audioSession.overrideOutputAudioPort(.none)
1172 | _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:1171:30: error: 'overrideOutputAudioPort' is unavailable in macOS
1169 | do {
1170 | let audioSession = AVAudioSession.sharedInstance()
1171 | try audioSession.overrideOutputAudioPort(.none)
| `- error: 'overrideOutputAudioPort' is unavailable in macOS
1172 | _isSpeakerEnabled = false
1173 | 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:1183:32: error: 'AVAudioSession' is unavailable in macOS
1181 | Logger.log.i(message: "[ACM_RESET] TxClient:: setSpeaker() called")
1182 | do {
1183 | let audioSession = AVAudioSession.sharedInstance()
| `- error: 'AVAudioSession' is unavailable in macOS
1184 | try audioSession.overrideOutputAudioPort(.speaker)
1185 | _isSpeakerEnabled = true
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.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:1183:47: error: 'sharedInstance()' is unavailable in macOS
1181 | Logger.log.i(message: "[ACM_RESET] TxClient:: setSpeaker() called")
1182 | do {
1183 | let audioSession = AVAudioSession.sharedInstance()
| `- error: 'sharedInstance()' is unavailable in macOS
1184 | try audioSession.overrideOutputAudioPort(.speaker)
1185 | _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:1184:30: error: 'overrideOutputAudioPort' is unavailable in macOS
1182 | do {
1183 | let audioSession = AVAudioSession.sharedInstance()
1184 | try audioSession.overrideOutputAudioPort(.speaker)
| `- error: 'overrideOutputAudioPort' is unavailable in macOS
1185 | _isSpeakerEnabled = true
1186 | 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:1184:55: error: 'speaker' is unavailable in macOS
1182 | do {
1183 | let audioSession = AVAudioSession.sharedInstance()
1184 | try audioSession.overrideOutputAudioPort(.speaker)
| `- error: 'speaker' is unavailable in macOS
1185 | _isSpeakerEnabled = true
1186 | 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:1653:28: error: 'AVAudioSession' is unavailable in macOS
1651 | extension TxClient {
1652 | internal func resetAudioConfiguration() {
1653 | let audioSession = AVAudioSession.sharedInstance()
| `- error: 'AVAudioSession' is unavailable in macOS
1654 | do {
1655 | try audioSession.setCategory(
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.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:1653:43: error: 'sharedInstance()' is unavailable in macOS
1651 | extension TxClient {
1652 | internal func resetAudioConfiguration() {
1653 | let audioSession = AVAudioSession.sharedInstance()
| `- error: 'sharedInstance()' is unavailable in macOS
1654 | do {
1655 | 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:1655:30: error: 'setCategory(_:mode:options:)' is unavailable in macOS
1653 | let audioSession = AVAudioSession.sharedInstance()
1654 | do {
1655 | try audioSession.setCategory(
| `- error: 'setCategory(_:mode:options:)' is unavailable in macOS
1656 | .playback,
1657 | 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:1656:18: error: 'playback' is unavailable in macOS
1654 | do {
1655 | try audioSession.setCategory(
1656 | .playback,
| `- error: 'playback' is unavailable in macOS
1657 | mode: .default,
1658 | options: [.mixWithOthers]
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.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:1657:24: error: 'default' is unavailable in macOS
1655 | try audioSession.setCategory(
1656 | .playback,
1657 | mode: .default,
| `- error: 'default' is unavailable in macOS
1658 | options: [.mixWithOthers]
1659 | )
/Applications/Xcode-26.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.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:1666:31: error: cannot find 'RTCAudioSession' in scope
1664 |
1665 | internal func setupCorrectAudioConfiguration() {
1666 | let rtcAudioSession = RTCAudioSession.sharedInstance()
| `- error: cannot find 'RTCAudioSession' in scope
1667 | rtcAudioSession.lockForConfiguration()
1668 |
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1669:29: error: cannot find 'RTCAudioSessionConfiguration' in scope
1667 | rtcAudioSession.lockForConfiguration()
1668 |
1669 | let configuration = RTCAudioSessionConfiguration.webRTC()
| `- error: cannot find 'RTCAudioSessionConfiguration' in scope
1670 | configuration.categoryOptions = [
1671 | .duckOthers,
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1671:14: error: reference to member 'duckOthers' cannot be resolved without a contextual type
1669 | let configuration = RTCAudioSessionConfiguration.webRTC()
1670 | configuration.categoryOptions = [
1671 | .duckOthers,
| `- error: reference to member 'duckOthers' cannot be resolved without a contextual type
1672 | .allowBluetooth,
1673 | ]
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1672:14: error: reference to member 'allowBluetooth' cannot be resolved without a contextual type
1670 | configuration.categoryOptions = [
1671 | .duckOthers,
1672 | .allowBluetooth,
| `- error: reference to member 'allowBluetooth' cannot be resolved without a contextual type
1673 | ]
1674 |
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1685:31: error: cannot find 'RTCAudioSession' in scope
1683 |
1684 | internal func setAudioSessionActive(_ active: Bool) {
1685 | let rtcAudioSession = RTCAudioSession.sharedInstance()
| `- error: cannot find 'RTCAudioSession' in scope
1686 |
1687 | 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
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.2 macosSpm