Build Information
Failed to build telnyx-webrtc-ios, reference main (74ff9e), with Swift 6.1 for macOS (SPM) on 9 Oct 2026 04:08:45 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64Build Log
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:405:78: error: 'routeChangeNotification' is unavailable in macOS
403 |
404 | // Remove audio route change observer
405 | NotificationCenter.default.removeObserver(self, name: AVAudioSession.routeChangeNotification, object: nil)
| `- error: 'routeChangeNotification' is unavailable in macOS
406 |
407 | // Remove ACM reset observers
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:617:37: note: 'routeChangeNotification' has been explicitly marked unavailable here
615 | of the previous audio route.
616 | */
617 | 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
618 |
619 | /*!
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:425:19: error: 'AVAudioSession' is unavailable in macOS
423 | self,
424 | selector: #selector(handleAudioRouteChange),
425 | name: AVAudioSession.routeChangeNotification,
| `- error: 'AVAudioSession' is unavailable in macOS
426 | object: nil)
427 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:29:12: note: 'AVAudioSession' has been explicitly marked unavailable here
27 | NS_SWIFT_SENDABLE
28 | API_AVAILABLE(ios(3.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos)
29 | @interface AVAudioSession : NSObject {
| `- note: 'AVAudioSession' has been explicitly marked unavailable here
30 | @private
31 | void *_impl;
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:425:34: error: 'routeChangeNotification' is unavailable in macOS
423 | self,
424 | selector: #selector(handleAudioRouteChange),
425 | name: AVAudioSession.routeChangeNotification,
| `- error: 'routeChangeNotification' is unavailable in macOS
426 | object: nil)
427 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:617:37: note: 'routeChangeNotification' has been explicitly marked unavailable here
615 | of the previous audio route.
616 | */
617 | 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
618 |
619 | /*!
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:462:42: error: 'AVAudioSessionRouteChangeReasonKey' is unavailable in macOS
460 | @objc private func handleAudioRouteChange(notification: Notification) {
461 | guard let userInfo = notification.userInfo,
462 | let reasonValue = userInfo[AVAudioSessionRouteChangeReasonKey] as? UInt,
| `- error: 'AVAudioSessionRouteChangeReasonKey' is unavailable in macOS
463 | let reason = AVAudioSession.RouteChangeReason(rawValue: reasonValue) else {
464 | return
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:709:27: note: 'AVAudioSessionRouteChangeReasonKey' has been explicitly marked unavailable here
707 | /// keys for AVAudioSessionRouteChangeNotification
708 | /// value is an NSNumber representing an AVAudioSessionRouteChangeReason
709 | 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
710 | /// value is AVAudioSessionRouteDescription *
711 | 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:463:28: error: 'AVAudioSession' is unavailable in macOS
461 | guard let userInfo = notification.userInfo,
462 | let reasonValue = userInfo[AVAudioSessionRouteChangeReasonKey] as? UInt,
463 | let reason = AVAudioSession.RouteChangeReason(rawValue: reasonValue) else {
| `- error: 'AVAudioSession' is unavailable in macOS
464 | return
465 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:29:12: note: 'AVAudioSession' has been explicitly marked unavailable here
27 | NS_SWIFT_SENDABLE
28 | API_AVAILABLE(ios(3.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos)
29 | @interface AVAudioSession : NSObject {
| `- note: 'AVAudioSession' has been explicitly marked unavailable here
30 | @private
31 | void *_impl;
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:467:23: error: 'AVAudioSession' is unavailable in macOS
465 | }
466 |
467 | let session = AVAudioSession.sharedInstance()
| `- error: 'AVAudioSession' is unavailable in macOS
468 | let currentRoute = session.currentRoute
469 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:29:12: note: 'AVAudioSession' has been explicitly marked unavailable here
27 | NS_SWIFT_SENDABLE
28 | API_AVAILABLE(ios(3.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos)
29 | @interface AVAudioSession : NSObject {
| `- note: 'AVAudioSession' has been explicitly marked unavailable here
30 | @private
31 | void *_impl;
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:467:38: error: 'sharedInstance()' is unavailable in macOS
465 | }
466 |
467 | let session = AVAudioSession.sharedInstance()
| `- error: 'sharedInstance()' is unavailable in macOS
468 | let currentRoute = session.currentRoute
469 |
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:468:36: error: 'currentRoute' is unavailable in macOS
466 |
467 | let session = AVAudioSession.sharedInstance()
468 | let currentRoute = session.currentRoute
| `- error: 'currentRoute' is unavailable in macOS
469 |
470 | // Ensure we have at least one output port
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:440:54: note: 'currentRoute' has been explicitly marked unavailable here
438 | /// A description of the current route, consisting of zero or more input ports and zero or more
439 | /// output ports
440 | @property (readonly) AVAudioSessionRouteDescription *currentRoute
| `- note: 'currentRoute' has been explicitly marked unavailable here
441 | API_AVAILABLE(ios(6.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
442 |
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:471:41: error: 'outputs' is unavailable in macOS
469 |
470 | // Ensure we have at least one output port
471 | guard let output = currentRoute.outputs.first else {
| `- error: 'outputs' is unavailable in macOS
472 | return
473 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionRoute.h:212:75: note: 'outputs' has been explicitly marked unavailable here
210 |
211 | /// Flattened list of all output port descriptions associated with all the streams as part of the route.
212 | @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
213 |
214 | @end // AVAudioSessionRouteDescription
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:475:85: error: 'portType' is unavailable in macOS
473 | }
474 |
475 | Logger.log.i(message: "[ACM_RESET] TxClient:: Audio route changed: \(output.portType), reason: \(reason), isACMResetInProgress: \(isACMResetInProgress)")
| `- error: 'portType' is unavailable in macOS
476 |
477 | // Ignore audio route changes during ACM reset to prevent state desynchronization
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionRoute.h:136:52: note: 'portType' has been explicitly marked unavailable here
134 | }
135 |
136 | @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
137 |
138 | /// A descriptive name for the associated hardware port
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:486:40: error: 'portType' is unavailable in macOS
484 | case .categoryChange, .override, .routeConfigurationChange:
485 | // Update internal speaker state based on current output
486 | let isSpeaker = output.portType == .builtInSpeaker
| `- error: 'portType' is unavailable in macOS
487 | _isSpeakerEnabled = isSpeaker
488 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionRoute.h:136:52: note: 'portType' has been explicitly marked unavailable here
134 | }
135 |
136 | @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
137 |
138 | /// A descriptive name for the associated hardware port
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:486:53: error: 'builtInSpeaker' is unavailable in macOS
484 | case .categoryChange, .override, .routeConfigurationChange:
485 | // Update internal speaker state based on current output
486 | let isSpeaker = output.portType == .builtInSpeaker
| `- error: 'builtInSpeaker' is unavailable in macOS
487 | _isSpeakerEnabled = isSpeaker
488 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.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:495:50: error: 'portType' is unavailable in macOS
493 | userInfo: [
494 | "isSpeakerEnabled": isSpeaker,
495 | "outputPortType": output.portType
| `- error: 'portType' is unavailable in macOS
496 | ]
497 | )
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionRoute.h:136:52: note: 'portType' has been explicitly marked unavailable here
134 | }
135 |
136 | @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
137 |
138 | /// A descriptive name for the associated hardware port
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:561:32: error: 'AVAudioSession' is unavailable in macOS
559 |
560 | // Verify if speaker is actually active
561 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
| `- error: 'AVAudioSession' is unavailable in macOS
562 | let isSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
563 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:29:12: note: 'AVAudioSession' has been explicitly marked unavailable here
27 | NS_SWIFT_SENDABLE
28 | API_AVAILABLE(ios(3.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos)
29 | @interface AVAudioSession : NSObject {
| `- note: 'AVAudioSession' has been explicitly marked unavailable here
30 | @private
31 | void *_impl;
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:561:47: error: 'sharedInstance()' is unavailable in macOS
559 |
560 | // Verify if speaker is actually active
561 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
| `- error: 'sharedInstance()' is unavailable in macOS
562 | let isSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
563 |
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:561:64: error: 'currentRoute' is unavailable in macOS
559 |
560 | // Verify if speaker is actually active
561 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
| `- error: 'currentRoute' is unavailable in macOS
562 | let isSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
563 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:440:54: note: 'currentRoute' has been explicitly marked unavailable here
438 | /// A description of the current route, consisting of zero or more input ports and zero or more
439 | /// output ports
440 | @property (readonly) AVAudioSessionRouteDescription *currentRoute
| `- note: 'currentRoute' has been explicitly marked unavailable here
441 | API_AVAILABLE(ios(6.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
442 |
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:562:48: error: 'outputs' is unavailable in macOS
560 | // Verify if speaker is actually active
561 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
562 | let isSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
| `- error: 'outputs' is unavailable in macOS
563 |
564 | if isSpeakerActive {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionRoute.h:212:75: note: 'outputs' has been explicitly marked unavailable here
210 |
211 | /// Flattened list of all output port descriptions associated with all the streams as part of the route.
212 | @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
213 |
214 | @end // AVAudioSessionRouteDescription
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:562:70: error: 'portType' is unavailable in macOS
560 | // Verify if speaker is actually active
561 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
562 | let isSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
| `- error: 'portType' is unavailable in macOS
563 |
564 | if isSpeakerActive {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionRoute.h:136:52: note: 'portType' has been explicitly marked unavailable here
134 | }
135 |
136 | @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
137 |
138 | /// A descriptive name for the associated hardware port
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:562:83: error: 'builtInSpeaker' is unavailable in macOS
560 | // Verify if speaker is actually active
561 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
562 | let isSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
| `- error: 'builtInSpeaker' is unavailable in macOS
563 |
564 | if isSpeakerActive {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.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:1691:32: error: 'AVAudioSession' is unavailable in macOS
1689 | Logger.log.i(message: "[ACM_RESET] TxClient:: setEarpiece() called")
1690 | do {
1691 | let audioSession = AVAudioSession.sharedInstance()
| `- error: 'AVAudioSession' is unavailable in macOS
1692 | try audioSession.overrideOutputAudioPort(.none)
1693 | _isSpeakerEnabled = false
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:29:12: note: 'AVAudioSession' has been explicitly marked unavailable here
27 | NS_SWIFT_SENDABLE
28 | API_AVAILABLE(ios(3.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos)
29 | @interface AVAudioSession : NSObject {
| `- note: 'AVAudioSession' has been explicitly marked unavailable here
30 | @private
31 | void *_impl;
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1691:47: error: 'sharedInstance()' is unavailable in macOS
1689 | Logger.log.i(message: "[ACM_RESET] TxClient:: setEarpiece() called")
1690 | do {
1691 | let audioSession = AVAudioSession.sharedInstance()
| `- error: 'sharedInstance()' is unavailable in macOS
1692 | try audioSession.overrideOutputAudioPort(.none)
1693 | _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:1692:30: error: 'overrideOutputAudioPort' is unavailable in macOS
1690 | do {
1691 | let audioSession = AVAudioSession.sharedInstance()
1692 | try audioSession.overrideOutputAudioPort(.none)
| `- error: 'overrideOutputAudioPort' is unavailable in macOS
1693 | _isSpeakerEnabled = false
1694 | 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:1704:32: error: 'AVAudioSession' is unavailable in macOS
1702 | Logger.log.i(message: "[ACM_RESET] TxClient:: setSpeaker() called")
1703 | do {
1704 | let audioSession = AVAudioSession.sharedInstance()
| `- error: 'AVAudioSession' is unavailable in macOS
1705 | try audioSession.overrideOutputAudioPort(.speaker)
1706 | _isSpeakerEnabled = true
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:29:12: note: 'AVAudioSession' has been explicitly marked unavailable here
27 | NS_SWIFT_SENDABLE
28 | API_AVAILABLE(ios(3.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos)
29 | @interface AVAudioSession : NSObject {
| `- note: 'AVAudioSession' has been explicitly marked unavailable here
30 | @private
31 | void *_impl;
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1704:47: error: 'sharedInstance()' is unavailable in macOS
1702 | Logger.log.i(message: "[ACM_RESET] TxClient:: setSpeaker() called")
1703 | do {
1704 | let audioSession = AVAudioSession.sharedInstance()
| `- error: 'sharedInstance()' is unavailable in macOS
1705 | try audioSession.overrideOutputAudioPort(.speaker)
1706 | _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:1705:30: error: 'overrideOutputAudioPort' is unavailable in macOS
1703 | do {
1704 | let audioSession = AVAudioSession.sharedInstance()
1705 | try audioSession.overrideOutputAudioPort(.speaker)
| `- error: 'overrideOutputAudioPort' is unavailable in macOS
1706 | _isSpeakerEnabled = true
1707 | 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:1705:55: error: 'speaker' is unavailable in macOS
1703 | do {
1704 | let audioSession = AVAudioSession.sharedInstance()
1705 | try audioSession.overrideOutputAudioPort(.speaker)
| `- error: 'speaker' is unavailable in macOS
1706 | _isSpeakerEnabled = true
1707 | 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:2310:28: error: 'AVAudioSession' is unavailable in macOS
2308 | extension TxClient {
2309 | internal func resetAudioConfiguration() {
2310 | let audioSession = AVAudioSession.sharedInstance()
| `- error: 'AVAudioSession' is unavailable in macOS
2311 | do {
2312 | try audioSession.setCategory(
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:29:12: note: 'AVAudioSession' has been explicitly marked unavailable here
27 | NS_SWIFT_SENDABLE
28 | API_AVAILABLE(ios(3.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos)
29 | @interface AVAudioSession : NSObject {
| `- note: 'AVAudioSession' has been explicitly marked unavailable here
30 | @private
31 | void *_impl;
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:2310:43: error: 'sharedInstance()' is unavailable in macOS
2308 | extension TxClient {
2309 | internal func resetAudioConfiguration() {
2310 | let audioSession = AVAudioSession.sharedInstance()
| `- error: 'sharedInstance()' is unavailable in macOS
2311 | do {
2312 | 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:2312:30: error: 'setCategory(_:mode:options:)' is unavailable in macOS
2310 | let audioSession = AVAudioSession.sharedInstance()
2311 | do {
2312 | try audioSession.setCategory(
| `- error: 'setCategory(_:mode:options:)' is unavailable in macOS
2313 | .playback,
2314 | 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:2313:18: error: 'playback' is unavailable in macOS
2311 | do {
2312 | try audioSession.setCategory(
2313 | .playback,
| `- error: 'playback' is unavailable in macOS
2314 | mode: .default,
2315 | options: [.mixWithOthers]
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.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:2314:24: error: 'default' is unavailable in macOS
2312 | try audioSession.setCategory(
2313 | .playback,
2314 | mode: .default,
| `- error: 'default' is unavailable in macOS
2315 | options: [.mixWithOthers]
2316 | )
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.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:2323:31: error: cannot find 'RTCAudioSession' in scope
2321 |
2322 | internal func setupCorrectAudioConfiguration() {
2323 | let rtcAudioSession = RTCAudioSession.sharedInstance()
| `- error: cannot find 'RTCAudioSession' in scope
2324 | rtcAudioSession.lockForConfiguration()
2325 |
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:2326:29: error: cannot find 'RTCAudioSessionConfiguration' in scope
2324 | rtcAudioSession.lockForConfiguration()
2325 |
2326 | let configuration = RTCAudioSessionConfiguration.webRTC()
| `- error: cannot find 'RTCAudioSessionConfiguration' in scope
2327 | configuration.categoryOptions = [
2328 | .duckOthers,
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:2328:14: error: reference to member 'duckOthers' cannot be resolved without a contextual type
2326 | let configuration = RTCAudioSessionConfiguration.webRTC()
2327 | configuration.categoryOptions = [
2328 | .duckOthers,
| `- error: reference to member 'duckOthers' cannot be resolved without a contextual type
2329 | .allowBluetooth,
2330 | ]
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:2329:14: error: reference to member 'allowBluetooth' cannot be resolved without a contextual type
2327 | configuration.categoryOptions = [
2328 | .duckOthers,
2329 | .allowBluetooth,
| `- error: reference to member 'allowBluetooth' cannot be resolved without a contextual type
2330 | ]
2331 |
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:2343:31: error: cannot find 'RTCAudioSession' in scope
2341 | @discardableResult
2342 | internal func setAudioSessionActive(_ active: Bool) -> Bool {
2343 | let rtcAudioSession = RTCAudioSession.sharedInstance()
| `- error: cannot find 'RTCAudioSession' in scope
2344 | var succeeded = false
2345 | rtcAudioSession.lockForConfiguration()
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/Utils/FileLoger.swift:96:19: warning: value 'logData' was defined but never used; consider replacing with boolean test
94 |
95 | let logFileURL = FileLogger.shared.logFileURL
96 | guard let logData = try? Data(contentsOf: logFileURL) else {
| `- warning: value 'logData' was defined but never used; consider replacing with boolean test
97 | Logger.log.e(message: "Failed to read log file")
98 | return
[92/100] Compiling TelnyxRTC CallTimingBenchmark.swift
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/Services/Socket.swift:190:26: warning: immutable value 'data' was never used; consider replacing with '_' or removing it
188 | break;
189 |
190 | case .binary(let data):
| `- warning: immutable value 'data' was never used; consider replacing with '_' or removing it
191 | break
192 | case .ping(_):
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:153:35: error: 'CXAnswerCallAction' is unavailable in macOS
151 | private var socket : Socket?
152 |
153 | private var answerCallAction: CXAnswerCallAction? = nil
| `- error: 'CXAnswerCallAction' is unavailable in macOS
154 | private var endCallAction: CXEndCallAction? = nil
155 | private var sessionId : String?
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.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:154:32: error: 'CXEndCallAction' is unavailable in macOS
152 |
153 | private var answerCallAction: CXAnswerCallAction? = nil
154 | private var endCallAction: CXEndCallAction? = nil
| `- error: 'CXEndCallAction' is unavailable in macOS
155 | private var sessionId : String?
156 | internal var txConfig: TxConfig?
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.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:301:50: error: 'AVAudioSession' is unavailable in macOS
299 | /// }
300 | /// ```
301 | public func enableAudioSession(audioSession: AVAudioSession) {
| `- error: 'AVAudioSession' is unavailable in macOS
302 | let rtcAudioSession = RTCAudioSession.sharedInstance()
303 | let wasAudioEnabled = rtcAudioSession.isAudioEnabled
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:29:12: note: 'AVAudioSession' has been explicitly marked unavailable here
27 | NS_SWIFT_SENDABLE
28 | API_AVAILABLE(ios(3.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos)
29 | @interface AVAudioSession : NSObject {
| `- note: 'AVAudioSession' has been explicitly marked unavailable here
30 | @private
31 | void *_impl;
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:327:51: error: 'AVAudioSession' is unavailable in macOS
325 | /// }
326 | /// ```
327 | public func disableAudioSession(audioSession: AVAudioSession) {
| `- error: 'AVAudioSession' is unavailable in macOS
328 | let rtcAudioSession = RTCAudioSession.sharedInstance()
329 | let wasAudioEnabled = rtcAudioSession.isAudioEnabled
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:29:12: note: 'AVAudioSession' has been explicitly marked unavailable here
27 | NS_SWIFT_SENDABLE
28 | API_AVAILABLE(ios(3.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos)
29 | @interface AVAudioSession : NSObject {
| `- note: 'AVAudioSession' has been explicitly marked unavailable here
30 | @private
31 | void *_impl;
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:341:24: error: 'AVAudioSession' is unavailable in macOS
339 | /// The current audio route configuration.
340 | /// This provides information about the active input and output ports.
341 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
| `- error: 'AVAudioSession' is unavailable in macOS
342 |
343 | /// Client must be registered in order to receive or place calls.
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:29:12: note: 'AVAudioSession' has been explicitly marked unavailable here
27 | NS_SWIFT_SENDABLE
28 | API_AVAILABLE(ios(3.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos)
29 | @interface AVAudioSession : NSObject {
| `- note: 'AVAudioSession' has been explicitly marked unavailable here
30 | @private
31 | void *_impl;
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:341:39: error: 'sharedInstance()' is unavailable in macOS
339 | /// The current audio route configuration.
340 | /// This provides information about the active input and output ports.
341 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
| `- error: 'sharedInstance()' is unavailable in macOS
342 |
343 | /// 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:341:56: error: 'currentRoute' is unavailable in macOS
339 | /// The current audio route configuration.
340 | /// This provides information about the active input and output ports.
341 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
| `- error: 'currentRoute' is unavailable in macOS
342 |
343 | /// Client must be registered in order to receive or place calls.
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:440:54: note: 'currentRoute' has been explicitly marked unavailable here
438 | /// A description of the current route, consisting of zero or more input ports and zero or more
439 | /// output ports
440 | @property (readonly) AVAudioSessionRouteDescription *currentRoute
| `- note: 'currentRoute' has been explicitly marked unavailable here
441 | API_AVAILABLE(ios(6.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
442 |
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:823:49: error: 'CXAnswerCallAction' is unavailable in macOS
821 | /// - debug: (optional) Enable debug mode for call quality metrics and WebRTC statistics.
822 | /// When enabled, real-time call quality metrics will be available through the call's `onCallQualityChange` callback.
823 | public func answerFromCallkit(answerAction: CXAnswerCallAction,
| `- error: 'CXAnswerCallAction' is unavailable in macOS
824 | customHeaders: [String:String] = [:],
825 | debug: Bool = false) {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.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:942:49: error: 'CXEndCallAction' is unavailable in macOS
940 | }
941 |
942 | private func failEndCallAction(_ endAction: CXEndCallAction) {
| `- error: 'CXEndCallAction' is unavailable in macOS
943 | resetPushVariables()
944 | endAction.fail()
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.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:999:47: error: 'CXEndCallAction' is unavailable in macOS
997 |
998 | /// To end and control callKit active and conn
999 | public func endCallFromCallkit(endAction: CXEndCallAction,
| `- error: 'CXEndCallAction' is unavailable in macOS
1000 | callId: UUID? = nil) {
1001 | Logger.log.i(message: "TxClient:: endCallFromCallkit - started for callID \(String(describing: endAction.callUUID))")
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.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:275:20: error: cannot find 'RTCAudioSession' in scope
273 | public var isAudioDeviceEnabled : Bool {
274 | get {
275 | return RTCAudioSession.sharedInstance().isAudioEnabled
| `- error: cannot find 'RTCAudioSession' in scope
276 | }
277 | set {
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:279:17: error: cannot find 'RTCAudioSession' in scope
277 | set {
278 | if newValue {
279 | RTCAudioSession.sharedInstance().audioSessionDidActivate(AVAudioSession.sharedInstance())
| `- error: cannot find 'RTCAudioSession' in scope
280 | } else {
281 | RTCAudioSession.sharedInstance().audioSessionDidDeactivate(AVAudioSession.sharedInstance())
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:281:17: error: cannot find 'RTCAudioSession' in scope
279 | RTCAudioSession.sharedInstance().audioSessionDidActivate(AVAudioSession.sharedInstance())
280 | } else {
281 | RTCAudioSession.sharedInstance().audioSessionDidDeactivate(AVAudioSession.sharedInstance())
| `- error: cannot find 'RTCAudioSession' in scope
282 | }
283 | RTCAudioSession.sharedInstance().isAudioEnabled = newValue
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:283:13: error: cannot find 'RTCAudioSession' in scope
281 | RTCAudioSession.sharedInstance().audioSessionDidDeactivate(AVAudioSession.sharedInstance())
282 | }
283 | RTCAudioSession.sharedInstance().isAudioEnabled = newValue
| `- error: cannot find 'RTCAudioSession' in scope
284 | }
285 | }
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:302:31: error: cannot find 'RTCAudioSession' in scope
300 | /// ```
301 | public func enableAudioSession(audioSession: AVAudioSession) {
302 | let rtcAudioSession = RTCAudioSession.sharedInstance()
| `- error: cannot find 'RTCAudioSession' in scope
303 | let wasAudioEnabled = rtcAudioSession.isAudioEnabled
304 | Logger.log.i(message: "TxClient:: enabling CallKit audio session; currentlyEnabled=\(rtcAudioSession.isAudioEnabled)")
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:328:31: error: cannot find 'RTCAudioSession' in scope
326 | /// ```
327 | public func disableAudioSession(audioSession: AVAudioSession) {
328 | let rtcAudioSession = RTCAudioSession.sharedInstance()
| `- error: cannot find 'RTCAudioSession' in scope
329 | let wasAudioEnabled = rtcAudioSession.isAudioEnabled
330 | Logger.log.i(message: "TxClient:: disabling CallKit audio session; currentlyEnabled=\(rtcAudioSession.isAudioEnabled)")
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:405:63: error: 'AVAudioSession' is unavailable in macOS
403 |
404 | // Remove audio route change observer
405 | NotificationCenter.default.removeObserver(self, name: AVAudioSession.routeChangeNotification, object: nil)
| `- error: 'AVAudioSession' is unavailable in macOS
406 |
407 | // Remove ACM reset observers
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:29:12: note: 'AVAudioSession' has been explicitly marked unavailable here
27 | NS_SWIFT_SENDABLE
28 | API_AVAILABLE(ios(3.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos)
29 | @interface AVAudioSession : NSObject {
| `- note: 'AVAudioSession' has been explicitly marked unavailable here
30 | @private
31 | void *_impl;
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:405:78: error: 'routeChangeNotification' is unavailable in macOS
403 |
404 | // Remove audio route change observer
405 | NotificationCenter.default.removeObserver(self, name: AVAudioSession.routeChangeNotification, object: nil)
| `- error: 'routeChangeNotification' is unavailable in macOS
406 |
407 | // Remove ACM reset observers
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:617:37: note: 'routeChangeNotification' has been explicitly marked unavailable here
615 | of the previous audio route.
616 | */
617 | 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
618 |
619 | /*!
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:425:19: error: 'AVAudioSession' is unavailable in macOS
423 | self,
424 | selector: #selector(handleAudioRouteChange),
425 | name: AVAudioSession.routeChangeNotification,
| `- error: 'AVAudioSession' is unavailable in macOS
426 | object: nil)
427 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:29:12: note: 'AVAudioSession' has been explicitly marked unavailable here
27 | NS_SWIFT_SENDABLE
28 | API_AVAILABLE(ios(3.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos)
29 | @interface AVAudioSession : NSObject {
| `- note: 'AVAudioSession' has been explicitly marked unavailable here
30 | @private
31 | void *_impl;
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:425:34: error: 'routeChangeNotification' is unavailable in macOS
423 | self,
424 | selector: #selector(handleAudioRouteChange),
425 | name: AVAudioSession.routeChangeNotification,
| `- error: 'routeChangeNotification' is unavailable in macOS
426 | object: nil)
427 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:617:37: note: 'routeChangeNotification' has been explicitly marked unavailable here
615 | of the previous audio route.
616 | */
617 | 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
618 |
619 | /*!
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:462:42: error: 'AVAudioSessionRouteChangeReasonKey' is unavailable in macOS
460 | @objc private func handleAudioRouteChange(notification: Notification) {
461 | guard let userInfo = notification.userInfo,
462 | let reasonValue = userInfo[AVAudioSessionRouteChangeReasonKey] as? UInt,
| `- error: 'AVAudioSessionRouteChangeReasonKey' is unavailable in macOS
463 | let reason = AVAudioSession.RouteChangeReason(rawValue: reasonValue) else {
464 | return
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:709:27: note: 'AVAudioSessionRouteChangeReasonKey' has been explicitly marked unavailable here
707 | /// keys for AVAudioSessionRouteChangeNotification
708 | /// value is an NSNumber representing an AVAudioSessionRouteChangeReason
709 | 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
710 | /// value is AVAudioSessionRouteDescription *
711 | 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:463:28: error: 'AVAudioSession' is unavailable in macOS
461 | guard let userInfo = notification.userInfo,
462 | let reasonValue = userInfo[AVAudioSessionRouteChangeReasonKey] as? UInt,
463 | let reason = AVAudioSession.RouteChangeReason(rawValue: reasonValue) else {
| `- error: 'AVAudioSession' is unavailable in macOS
464 | return
465 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:29:12: note: 'AVAudioSession' has been explicitly marked unavailable here
27 | NS_SWIFT_SENDABLE
28 | API_AVAILABLE(ios(3.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos)
29 | @interface AVAudioSession : NSObject {
| `- note: 'AVAudioSession' has been explicitly marked unavailable here
30 | @private
31 | void *_impl;
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:467:23: error: 'AVAudioSession' is unavailable in macOS
465 | }
466 |
467 | let session = AVAudioSession.sharedInstance()
| `- error: 'AVAudioSession' is unavailable in macOS
468 | let currentRoute = session.currentRoute
469 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:29:12: note: 'AVAudioSession' has been explicitly marked unavailable here
27 | NS_SWIFT_SENDABLE
28 | API_AVAILABLE(ios(3.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos)
29 | @interface AVAudioSession : NSObject {
| `- note: 'AVAudioSession' has been explicitly marked unavailable here
30 | @private
31 | void *_impl;
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:467:38: error: 'sharedInstance()' is unavailable in macOS
465 | }
466 |
467 | let session = AVAudioSession.sharedInstance()
| `- error: 'sharedInstance()' is unavailable in macOS
468 | let currentRoute = session.currentRoute
469 |
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:468:36: error: 'currentRoute' is unavailable in macOS
466 |
467 | let session = AVAudioSession.sharedInstance()
468 | let currentRoute = session.currentRoute
| `- error: 'currentRoute' is unavailable in macOS
469 |
470 | // Ensure we have at least one output port
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:440:54: note: 'currentRoute' has been explicitly marked unavailable here
438 | /// A description of the current route, consisting of zero or more input ports and zero or more
439 | /// output ports
440 | @property (readonly) AVAudioSessionRouteDescription *currentRoute
| `- note: 'currentRoute' has been explicitly marked unavailable here
441 | API_AVAILABLE(ios(6.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
442 |
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:471:41: error: 'outputs' is unavailable in macOS
469 |
470 | // Ensure we have at least one output port
471 | guard let output = currentRoute.outputs.first else {
| `- error: 'outputs' is unavailable in macOS
472 | return
473 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionRoute.h:212:75: note: 'outputs' has been explicitly marked unavailable here
210 |
211 | /// Flattened list of all output port descriptions associated with all the streams as part of the route.
212 | @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
213 |
214 | @end // AVAudioSessionRouteDescription
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:475:85: error: 'portType' is unavailable in macOS
473 | }
474 |
475 | Logger.log.i(message: "[ACM_RESET] TxClient:: Audio route changed: \(output.portType), reason: \(reason), isACMResetInProgress: \(isACMResetInProgress)")
| `- error: 'portType' is unavailable in macOS
476 |
477 | // Ignore audio route changes during ACM reset to prevent state desynchronization
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionRoute.h:136:52: note: 'portType' has been explicitly marked unavailable here
134 | }
135 |
136 | @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
137 |
138 | /// A descriptive name for the associated hardware port
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:486:40: error: 'portType' is unavailable in macOS
484 | case .categoryChange, .override, .routeConfigurationChange:
485 | // Update internal speaker state based on current output
486 | let isSpeaker = output.portType == .builtInSpeaker
| `- error: 'portType' is unavailable in macOS
487 | _isSpeakerEnabled = isSpeaker
488 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionRoute.h:136:52: note: 'portType' has been explicitly marked unavailable here
134 | }
135 |
136 | @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
137 |
138 | /// A descriptive name for the associated hardware port
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:486:53: error: 'builtInSpeaker' is unavailable in macOS
484 | case .categoryChange, .override, .routeConfigurationChange:
485 | // Update internal speaker state based on current output
486 | let isSpeaker = output.portType == .builtInSpeaker
| `- error: 'builtInSpeaker' is unavailable in macOS
487 | _isSpeakerEnabled = isSpeaker
488 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.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:495:50: error: 'portType' is unavailable in macOS
493 | userInfo: [
494 | "isSpeakerEnabled": isSpeaker,
495 | "outputPortType": output.portType
| `- error: 'portType' is unavailable in macOS
496 | ]
497 | )
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionRoute.h:136:52: note: 'portType' has been explicitly marked unavailable here
134 | }
135 |
136 | @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
137 |
138 | /// A descriptive name for the associated hardware port
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:561:32: error: 'AVAudioSession' is unavailable in macOS
559 |
560 | // Verify if speaker is actually active
561 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
| `- error: 'AVAudioSession' is unavailable in macOS
562 | let isSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
563 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:29:12: note: 'AVAudioSession' has been explicitly marked unavailable here
27 | NS_SWIFT_SENDABLE
28 | API_AVAILABLE(ios(3.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos)
29 | @interface AVAudioSession : NSObject {
| `- note: 'AVAudioSession' has been explicitly marked unavailable here
30 | @private
31 | void *_impl;
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:561:47: error: 'sharedInstance()' is unavailable in macOS
559 |
560 | // Verify if speaker is actually active
561 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
| `- error: 'sharedInstance()' is unavailable in macOS
562 | let isSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
563 |
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:561:64: error: 'currentRoute' is unavailable in macOS
559 |
560 | // Verify if speaker is actually active
561 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
| `- error: 'currentRoute' is unavailable in macOS
562 | let isSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
563 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:440:54: note: 'currentRoute' has been explicitly marked unavailable here
438 | /// A description of the current route, consisting of zero or more input ports and zero or more
439 | /// output ports
440 | @property (readonly) AVAudioSessionRouteDescription *currentRoute
| `- note: 'currentRoute' has been explicitly marked unavailable here
441 | API_AVAILABLE(ios(6.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
442 |
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:562:48: error: 'outputs' is unavailable in macOS
560 | // Verify if speaker is actually active
561 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
562 | let isSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
| `- error: 'outputs' is unavailable in macOS
563 |
564 | if isSpeakerActive {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionRoute.h:212:75: note: 'outputs' has been explicitly marked unavailable here
210 |
211 | /// Flattened list of all output port descriptions associated with all the streams as part of the route.
212 | @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
213 |
214 | @end // AVAudioSessionRouteDescription
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:562:70: error: 'portType' is unavailable in macOS
560 | // Verify if speaker is actually active
561 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
562 | let isSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
| `- error: 'portType' is unavailable in macOS
563 |
564 | if isSpeakerActive {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionRoute.h:136:52: note: 'portType' has been explicitly marked unavailable here
134 | }
135 |
136 | @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
137 |
138 | /// A descriptive name for the associated hardware port
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:562:83: error: 'builtInSpeaker' is unavailable in macOS
560 | // Verify if speaker is actually active
561 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
562 | let isSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
| `- error: 'builtInSpeaker' is unavailable in macOS
563 |
564 | if isSpeakerActive {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.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:1691:32: error: 'AVAudioSession' is unavailable in macOS
1689 | Logger.log.i(message: "[ACM_RESET] TxClient:: setEarpiece() called")
1690 | do {
1691 | let audioSession = AVAudioSession.sharedInstance()
| `- error: 'AVAudioSession' is unavailable in macOS
1692 | try audioSession.overrideOutputAudioPort(.none)
1693 | _isSpeakerEnabled = false
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:29:12: note: 'AVAudioSession' has been explicitly marked unavailable here
27 | NS_SWIFT_SENDABLE
28 | API_AVAILABLE(ios(3.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos)
29 | @interface AVAudioSession : NSObject {
| `- note: 'AVAudioSession' has been explicitly marked unavailable here
30 | @private
31 | void *_impl;
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1691:47: error: 'sharedInstance()' is unavailable in macOS
1689 | Logger.log.i(message: "[ACM_RESET] TxClient:: setEarpiece() called")
1690 | do {
1691 | let audioSession = AVAudioSession.sharedInstance()
| `- error: 'sharedInstance()' is unavailable in macOS
1692 | try audioSession.overrideOutputAudioPort(.none)
1693 | _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:1692:30: error: 'overrideOutputAudioPort' is unavailable in macOS
1690 | do {
1691 | let audioSession = AVAudioSession.sharedInstance()
1692 | try audioSession.overrideOutputAudioPort(.none)
| `- error: 'overrideOutputAudioPort' is unavailable in macOS
1693 | _isSpeakerEnabled = false
1694 | 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:1704:32: error: 'AVAudioSession' is unavailable in macOS
1702 | Logger.log.i(message: "[ACM_RESET] TxClient:: setSpeaker() called")
1703 | do {
1704 | let audioSession = AVAudioSession.sharedInstance()
| `- error: 'AVAudioSession' is unavailable in macOS
1705 | try audioSession.overrideOutputAudioPort(.speaker)
1706 | _isSpeakerEnabled = true
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:29:12: note: 'AVAudioSession' has been explicitly marked unavailable here
27 | NS_SWIFT_SENDABLE
28 | API_AVAILABLE(ios(3.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos)
29 | @interface AVAudioSession : NSObject {
| `- note: 'AVAudioSession' has been explicitly marked unavailable here
30 | @private
31 | void *_impl;
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1704:47: error: 'sharedInstance()' is unavailable in macOS
1702 | Logger.log.i(message: "[ACM_RESET] TxClient:: setSpeaker() called")
1703 | do {
1704 | let audioSession = AVAudioSession.sharedInstance()
| `- error: 'sharedInstance()' is unavailable in macOS
1705 | try audioSession.overrideOutputAudioPort(.speaker)
1706 | _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:1705:30: error: 'overrideOutputAudioPort' is unavailable in macOS
1703 | do {
1704 | let audioSession = AVAudioSession.sharedInstance()
1705 | try audioSession.overrideOutputAudioPort(.speaker)
| `- error: 'overrideOutputAudioPort' is unavailable in macOS
1706 | _isSpeakerEnabled = true
1707 | 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:1705:55: error: 'speaker' is unavailable in macOS
1703 | do {
1704 | let audioSession = AVAudioSession.sharedInstance()
1705 | try audioSession.overrideOutputAudioPort(.speaker)
| `- error: 'speaker' is unavailable in macOS
1706 | _isSpeakerEnabled = true
1707 | 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:2310:28: error: 'AVAudioSession' is unavailable in macOS
2308 | extension TxClient {
2309 | internal func resetAudioConfiguration() {
2310 | let audioSession = AVAudioSession.sharedInstance()
| `- error: 'AVAudioSession' is unavailable in macOS
2311 | do {
2312 | try audioSession.setCategory(
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:29:12: note: 'AVAudioSession' has been explicitly marked unavailable here
27 | NS_SWIFT_SENDABLE
28 | API_AVAILABLE(ios(3.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos)
29 | @interface AVAudioSession : NSObject {
| `- note: 'AVAudioSession' has been explicitly marked unavailable here
30 | @private
31 | void *_impl;
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:2310:43: error: 'sharedInstance()' is unavailable in macOS
2308 | extension TxClient {
2309 | internal func resetAudioConfiguration() {
2310 | let audioSession = AVAudioSession.sharedInstance()
| `- error: 'sharedInstance()' is unavailable in macOS
2311 | do {
2312 | 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:2312:30: error: 'setCategory(_:mode:options:)' is unavailable in macOS
2310 | let audioSession = AVAudioSession.sharedInstance()
2311 | do {
2312 | try audioSession.setCategory(
| `- error: 'setCategory(_:mode:options:)' is unavailable in macOS
2313 | .playback,
2314 | 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:2313:18: error: 'playback' is unavailable in macOS
2311 | do {
2312 | try audioSession.setCategory(
2313 | .playback,
| `- error: 'playback' is unavailable in macOS
2314 | mode: .default,
2315 | options: [.mixWithOthers]
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.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:2314:24: error: 'default' is unavailable in macOS
2312 | try audioSession.setCategory(
2313 | .playback,
2314 | mode: .default,
| `- error: 'default' is unavailable in macOS
2315 | options: [.mixWithOthers]
2316 | )
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.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:2323:31: error: cannot find 'RTCAudioSession' in scope
2321 |
2322 | internal func setupCorrectAudioConfiguration() {
2323 | let rtcAudioSession = RTCAudioSession.sharedInstance()
| `- error: cannot find 'RTCAudioSession' in scope
2324 | rtcAudioSession.lockForConfiguration()
2325 |
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:2326:29: error: cannot find 'RTCAudioSessionConfiguration' in scope
2324 | rtcAudioSession.lockForConfiguration()
2325 |
2326 | let configuration = RTCAudioSessionConfiguration.webRTC()
| `- error: cannot find 'RTCAudioSessionConfiguration' in scope
2327 | configuration.categoryOptions = [
2328 | .duckOthers,
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:2328:14: error: reference to member 'duckOthers' cannot be resolved without a contextual type
2326 | let configuration = RTCAudioSessionConfiguration.webRTC()
2327 | configuration.categoryOptions = [
2328 | .duckOthers,
| `- error: reference to member 'duckOthers' cannot be resolved without a contextual type
2329 | .allowBluetooth,
2330 | ]
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:2329:14: error: reference to member 'allowBluetooth' cannot be resolved without a contextual type
2327 | configuration.categoryOptions = [
2328 | .duckOthers,
2329 | .allowBluetooth,
| `- error: reference to member 'allowBluetooth' cannot be resolved without a contextual type
2330 | ]
2331 |
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:2343:31: error: cannot find 'RTCAudioSession' in scope
2341 | @discardableResult
2342 | internal func setAudioSessionActive(_ active: Bool) -> Bool {
2343 | let rtcAudioSession = RTCAudioSession.sharedInstance()
| `- error: cannot find 'RTCAudioSession' in scope
2344 | var succeeded = false
2345 | rtcAudioSession.lockForConfiguration()
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/Utils/FileLoger.swift:96:19: warning: value 'logData' was defined but never used; consider replacing with boolean test
94 |
95 | let logFileURL = FileLogger.shared.logFileURL
96 | guard let logData = try? Data(contentsOf: logFileURL) else {
| `- warning: value 'logData' was defined but never used; consider replacing with boolean test
97 | Logger.log.e(message: "Failed to read log file")
98 | return
[93/100] Compiling TelnyxRTC FileLoger.swift
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/Services/Socket.swift:190:26: warning: immutable value 'data' was never used; consider replacing with '_' or removing it
188 | break;
189 |
190 | case .binary(let data):
| `- warning: immutable value 'data' was never used; consider replacing with '_' or removing it
191 | break
192 | case .ping(_):
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:153:35: error: 'CXAnswerCallAction' is unavailable in macOS
151 | private var socket : Socket?
152 |
153 | private var answerCallAction: CXAnswerCallAction? = nil
| `- error: 'CXAnswerCallAction' is unavailable in macOS
154 | private var endCallAction: CXEndCallAction? = nil
155 | private var sessionId : String?
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.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:154:32: error: 'CXEndCallAction' is unavailable in macOS
152 |
153 | private var answerCallAction: CXAnswerCallAction? = nil
154 | private var endCallAction: CXEndCallAction? = nil
| `- error: 'CXEndCallAction' is unavailable in macOS
155 | private var sessionId : String?
156 | internal var txConfig: TxConfig?
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.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:301:50: error: 'AVAudioSession' is unavailable in macOS
299 | /// }
300 | /// ```
301 | public func enableAudioSession(audioSession: AVAudioSession) {
| `- error: 'AVAudioSession' is unavailable in macOS
302 | let rtcAudioSession = RTCAudioSession.sharedInstance()
303 | let wasAudioEnabled = rtcAudioSession.isAudioEnabled
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:29:12: note: 'AVAudioSession' has been explicitly marked unavailable here
27 | NS_SWIFT_SENDABLE
28 | API_AVAILABLE(ios(3.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos)
29 | @interface AVAudioSession : NSObject {
| `- note: 'AVAudioSession' has been explicitly marked unavailable here
30 | @private
31 | void *_impl;
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:327:51: error: 'AVAudioSession' is unavailable in macOS
325 | /// }
326 | /// ```
327 | public func disableAudioSession(audioSession: AVAudioSession) {
| `- error: 'AVAudioSession' is unavailable in macOS
328 | let rtcAudioSession = RTCAudioSession.sharedInstance()
329 | let wasAudioEnabled = rtcAudioSession.isAudioEnabled
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:29:12: note: 'AVAudioSession' has been explicitly marked unavailable here
27 | NS_SWIFT_SENDABLE
28 | API_AVAILABLE(ios(3.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos)
29 | @interface AVAudioSession : NSObject {
| `- note: 'AVAudioSession' has been explicitly marked unavailable here
30 | @private
31 | void *_impl;
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:341:24: error: 'AVAudioSession' is unavailable in macOS
339 | /// The current audio route configuration.
340 | /// This provides information about the active input and output ports.
341 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
| `- error: 'AVAudioSession' is unavailable in macOS
342 |
343 | /// Client must be registered in order to receive or place calls.
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:29:12: note: 'AVAudioSession' has been explicitly marked unavailable here
27 | NS_SWIFT_SENDABLE
28 | API_AVAILABLE(ios(3.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos)
29 | @interface AVAudioSession : NSObject {
| `- note: 'AVAudioSession' has been explicitly marked unavailable here
30 | @private
31 | void *_impl;
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:341:39: error: 'sharedInstance()' is unavailable in macOS
339 | /// The current audio route configuration.
340 | /// This provides information about the active input and output ports.
341 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
| `- error: 'sharedInstance()' is unavailable in macOS
342 |
343 | /// 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:341:56: error: 'currentRoute' is unavailable in macOS
339 | /// The current audio route configuration.
340 | /// This provides information about the active input and output ports.
341 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
| `- error: 'currentRoute' is unavailable in macOS
342 |
343 | /// Client must be registered in order to receive or place calls.
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:440:54: note: 'currentRoute' has been explicitly marked unavailable here
438 | /// A description of the current route, consisting of zero or more input ports and zero or more
439 | /// output ports
440 | @property (readonly) AVAudioSessionRouteDescription *currentRoute
| `- note: 'currentRoute' has been explicitly marked unavailable here
441 | API_AVAILABLE(ios(6.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
442 |
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:823:49: error: 'CXAnswerCallAction' is unavailable in macOS
821 | /// - debug: (optional) Enable debug mode for call quality metrics and WebRTC statistics.
822 | /// When enabled, real-time call quality metrics will be available through the call's `onCallQualityChange` callback.
823 | public func answerFromCallkit(answerAction: CXAnswerCallAction,
| `- error: 'CXAnswerCallAction' is unavailable in macOS
824 | customHeaders: [String:String] = [:],
825 | debug: Bool = false) {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.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:942:49: error: 'CXEndCallAction' is unavailable in macOS
940 | }
941 |
942 | private func failEndCallAction(_ endAction: CXEndCallAction) {
| `- error: 'CXEndCallAction' is unavailable in macOS
943 | resetPushVariables()
944 | endAction.fail()
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.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:999:47: error: 'CXEndCallAction' is unavailable in macOS
997 |
998 | /// To end and control callKit active and conn
999 | public func endCallFromCallkit(endAction: CXEndCallAction,
| `- error: 'CXEndCallAction' is unavailable in macOS
1000 | callId: UUID? = nil) {
1001 | Logger.log.i(message: "TxClient:: endCallFromCallkit - started for callID \(String(describing: endAction.callUUID))")
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.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:275:20: error: cannot find 'RTCAudioSession' in scope
273 | public var isAudioDeviceEnabled : Bool {
274 | get {
275 | return RTCAudioSession.sharedInstance().isAudioEnabled
| `- error: cannot find 'RTCAudioSession' in scope
276 | }
277 | set {
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:279:17: error: cannot find 'RTCAudioSession' in scope
277 | set {
278 | if newValue {
279 | RTCAudioSession.sharedInstance().audioSessionDidActivate(AVAudioSession.sharedInstance())
| `- error: cannot find 'RTCAudioSession' in scope
280 | } else {
281 | RTCAudioSession.sharedInstance().audioSessionDidDeactivate(AVAudioSession.sharedInstance())
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:281:17: error: cannot find 'RTCAudioSession' in scope
279 | RTCAudioSession.sharedInstance().audioSessionDidActivate(AVAudioSession.sharedInstance())
280 | } else {
281 | RTCAudioSession.sharedInstance().audioSessionDidDeactivate(AVAudioSession.sharedInstance())
| `- error: cannot find 'RTCAudioSession' in scope
282 | }
283 | RTCAudioSession.sharedInstance().isAudioEnabled = newValue
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:283:13: error: cannot find 'RTCAudioSession' in scope
281 | RTCAudioSession.sharedInstance().audioSessionDidDeactivate(AVAudioSession.sharedInstance())
282 | }
283 | RTCAudioSession.sharedInstance().isAudioEnabled = newValue
| `- error: cannot find 'RTCAudioSession' in scope
284 | }
285 | }
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:302:31: error: cannot find 'RTCAudioSession' in scope
300 | /// ```
301 | public func enableAudioSession(audioSession: AVAudioSession) {
302 | let rtcAudioSession = RTCAudioSession.sharedInstance()
| `- error: cannot find 'RTCAudioSession' in scope
303 | let wasAudioEnabled = rtcAudioSession.isAudioEnabled
304 | Logger.log.i(message: "TxClient:: enabling CallKit audio session; currentlyEnabled=\(rtcAudioSession.isAudioEnabled)")
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:328:31: error: cannot find 'RTCAudioSession' in scope
326 | /// ```
327 | public func disableAudioSession(audioSession: AVAudioSession) {
328 | let rtcAudioSession = RTCAudioSession.sharedInstance()
| `- error: cannot find 'RTCAudioSession' in scope
329 | let wasAudioEnabled = rtcAudioSession.isAudioEnabled
330 | Logger.log.i(message: "TxClient:: disabling CallKit audio session; currentlyEnabled=\(rtcAudioSession.isAudioEnabled)")
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:405:63: error: 'AVAudioSession' is unavailable in macOS
403 |
404 | // Remove audio route change observer
405 | NotificationCenter.default.removeObserver(self, name: AVAudioSession.routeChangeNotification, object: nil)
| `- error: 'AVAudioSession' is unavailable in macOS
406 |
407 | // Remove ACM reset observers
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:29:12: note: 'AVAudioSession' has been explicitly marked unavailable here
27 | NS_SWIFT_SENDABLE
28 | API_AVAILABLE(ios(3.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos)
29 | @interface AVAudioSession : NSObject {
| `- note: 'AVAudioSession' has been explicitly marked unavailable here
30 | @private
31 | void *_impl;
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:405:78: error: 'routeChangeNotification' is unavailable in macOS
403 |
404 | // Remove audio route change observer
405 | NotificationCenter.default.removeObserver(self, name: AVAudioSession.routeChangeNotification, object: nil)
| `- error: 'routeChangeNotification' is unavailable in macOS
406 |
407 | // Remove ACM reset observers
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:617:37: note: 'routeChangeNotification' has been explicitly marked unavailable here
615 | of the previous audio route.
616 | */
617 | 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
618 |
619 | /*!
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:425:19: error: 'AVAudioSession' is unavailable in macOS
423 | self,
424 | selector: #selector(handleAudioRouteChange),
425 | name: AVAudioSession.routeChangeNotification,
| `- error: 'AVAudioSession' is unavailable in macOS
426 | object: nil)
427 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:29:12: note: 'AVAudioSession' has been explicitly marked unavailable here
27 | NS_SWIFT_SENDABLE
28 | API_AVAILABLE(ios(3.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos)
29 | @interface AVAudioSession : NSObject {
| `- note: 'AVAudioSession' has been explicitly marked unavailable here
30 | @private
31 | void *_impl;
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:425:34: error: 'routeChangeNotification' is unavailable in macOS
423 | self,
424 | selector: #selector(handleAudioRouteChange),
425 | name: AVAudioSession.routeChangeNotification,
| `- error: 'routeChangeNotification' is unavailable in macOS
426 | object: nil)
427 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:617:37: note: 'routeChangeNotification' has been explicitly marked unavailable here
615 | of the previous audio route.
616 | */
617 | 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
618 |
619 | /*!
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:462:42: error: 'AVAudioSessionRouteChangeReasonKey' is unavailable in macOS
460 | @objc private func handleAudioRouteChange(notification: Notification) {
461 | guard let userInfo = notification.userInfo,
462 | let reasonValue = userInfo[AVAudioSessionRouteChangeReasonKey] as? UInt,
| `- error: 'AVAudioSessionRouteChangeReasonKey' is unavailable in macOS
463 | let reason = AVAudioSession.RouteChangeReason(rawValue: reasonValue) else {
464 | return
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:709:27: note: 'AVAudioSessionRouteChangeReasonKey' has been explicitly marked unavailable here
707 | /// keys for AVAudioSessionRouteChangeNotification
708 | /// value is an NSNumber representing an AVAudioSessionRouteChangeReason
709 | 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
710 | /// value is AVAudioSessionRouteDescription *
711 | 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:463:28: error: 'AVAudioSession' is unavailable in macOS
461 | guard let userInfo = notification.userInfo,
462 | let reasonValue = userInfo[AVAudioSessionRouteChangeReasonKey] as? UInt,
463 | let reason = AVAudioSession.RouteChangeReason(rawValue: reasonValue) else {
| `- error: 'AVAudioSession' is unavailable in macOS
464 | return
465 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:29:12: note: 'AVAudioSession' has been explicitly marked unavailable here
27 | NS_SWIFT_SENDABLE
28 | API_AVAILABLE(ios(3.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos)
29 | @interface AVAudioSession : NSObject {
| `- note: 'AVAudioSession' has been explicitly marked unavailable here
30 | @private
31 | void *_impl;
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:467:23: error: 'AVAudioSession' is unavailable in macOS
465 | }
466 |
467 | let session = AVAudioSession.sharedInstance()
| `- error: 'AVAudioSession' is unavailable in macOS
468 | let currentRoute = session.currentRoute
469 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:29:12: note: 'AVAudioSession' has been explicitly marked unavailable here
27 | NS_SWIFT_SENDABLE
28 | API_AVAILABLE(ios(3.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos)
29 | @interface AVAudioSession : NSObject {
| `- note: 'AVAudioSession' has been explicitly marked unavailable here
30 | @private
31 | void *_impl;
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:467:38: error: 'sharedInstance()' is unavailable in macOS
465 | }
466 |
467 | let session = AVAudioSession.sharedInstance()
| `- error: 'sharedInstance()' is unavailable in macOS
468 | let currentRoute = session.currentRoute
469 |
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:468:36: error: 'currentRoute' is unavailable in macOS
466 |
467 | let session = AVAudioSession.sharedInstance()
468 | let currentRoute = session.currentRoute
| `- error: 'currentRoute' is unavailable in macOS
469 |
470 | // Ensure we have at least one output port
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:440:54: note: 'currentRoute' has been explicitly marked unavailable here
438 | /// A description of the current route, consisting of zero or more input ports and zero or more
439 | /// output ports
440 | @property (readonly) AVAudioSessionRouteDescription *currentRoute
| `- note: 'currentRoute' has been explicitly marked unavailable here
441 | API_AVAILABLE(ios(6.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
442 |
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:471:41: error: 'outputs' is unavailable in macOS
469 |
470 | // Ensure we have at least one output port
471 | guard let output = currentRoute.outputs.first else {
| `- error: 'outputs' is unavailable in macOS
472 | return
473 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionRoute.h:212:75: note: 'outputs' has been explicitly marked unavailable here
210 |
211 | /// Flattened list of all output port descriptions associated with all the streams as part of the route.
212 | @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
213 |
214 | @end // AVAudioSessionRouteDescription
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:475:85: error: 'portType' is unavailable in macOS
473 | }
474 |
475 | Logger.log.i(message: "[ACM_RESET] TxClient:: Audio route changed: \(output.portType), reason: \(reason), isACMResetInProgress: \(isACMResetInProgress)")
| `- error: 'portType' is unavailable in macOS
476 |
477 | // Ignore audio route changes during ACM reset to prevent state desynchronization
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionRoute.h:136:52: note: 'portType' has been explicitly marked unavailable here
134 | }
135 |
136 | @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
137 |
138 | /// A descriptive name for the associated hardware port
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:486:40: error: 'portType' is unavailable in macOS
484 | case .categoryChange, .override, .routeConfigurationChange:
485 | // Update internal speaker state based on current output
486 | let isSpeaker = output.portType == .builtInSpeaker
| `- error: 'portType' is unavailable in macOS
487 | _isSpeakerEnabled = isSpeaker
488 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionRoute.h:136:52: note: 'portType' has been explicitly marked unavailable here
134 | }
135 |
136 | @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
137 |
138 | /// A descriptive name for the associated hardware port
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:486:53: error: 'builtInSpeaker' is unavailable in macOS
484 | case .categoryChange, .override, .routeConfigurationChange:
485 | // Update internal speaker state based on current output
486 | let isSpeaker = output.portType == .builtInSpeaker
| `- error: 'builtInSpeaker' is unavailable in macOS
487 | _isSpeakerEnabled = isSpeaker
488 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.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:495:50: error: 'portType' is unavailable in macOS
493 | userInfo: [
494 | "isSpeakerEnabled": isSpeaker,
495 | "outputPortType": output.portType
| `- error: 'portType' is unavailable in macOS
496 | ]
497 | )
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionRoute.h:136:52: note: 'portType' has been explicitly marked unavailable here
134 | }
135 |
136 | @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
137 |
138 | /// A descriptive name for the associated hardware port
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:561:32: error: 'AVAudioSession' is unavailable in macOS
559 |
560 | // Verify if speaker is actually active
561 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
| `- error: 'AVAudioSession' is unavailable in macOS
562 | let isSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
563 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:29:12: note: 'AVAudioSession' has been explicitly marked unavailable here
27 | NS_SWIFT_SENDABLE
28 | API_AVAILABLE(ios(3.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos)
29 | @interface AVAudioSession : NSObject {
| `- note: 'AVAudioSession' has been explicitly marked unavailable here
30 | @private
31 | void *_impl;
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:561:47: error: 'sharedInstance()' is unavailable in macOS
559 |
560 | // Verify if speaker is actually active
561 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
| `- error: 'sharedInstance()' is unavailable in macOS
562 | let isSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
563 |
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:561:64: error: 'currentRoute' is unavailable in macOS
559 |
560 | // Verify if speaker is actually active
561 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
| `- error: 'currentRoute' is unavailable in macOS
562 | let isSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
563 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:440:54: note: 'currentRoute' has been explicitly marked unavailable here
438 | /// A description of the current route, consisting of zero or more input ports and zero or more
439 | /// output ports
440 | @property (readonly) AVAudioSessionRouteDescription *currentRoute
| `- note: 'currentRoute' has been explicitly marked unavailable here
441 | API_AVAILABLE(ios(6.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
442 |
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:562:48: error: 'outputs' is unavailable in macOS
560 | // Verify if speaker is actually active
561 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
562 | let isSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
| `- error: 'outputs' is unavailable in macOS
563 |
564 | if isSpeakerActive {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionRoute.h:212:75: note: 'outputs' has been explicitly marked unavailable here
210 |
211 | /// Flattened list of all output port descriptions associated with all the streams as part of the route.
212 | @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
213 |
214 | @end // AVAudioSessionRouteDescription
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:562:70: error: 'portType' is unavailable in macOS
560 | // Verify if speaker is actually active
561 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
562 | let isSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
| `- error: 'portType' is unavailable in macOS
563 |
564 | if isSpeakerActive {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionRoute.h:136:52: note: 'portType' has been explicitly marked unavailable here
134 | }
135 |
136 | @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
137 |
138 | /// A descriptive name for the associated hardware port
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:562:83: error: 'builtInSpeaker' is unavailable in macOS
560 | // Verify if speaker is actually active
561 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
562 | let isSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
| `- error: 'builtInSpeaker' is unavailable in macOS
563 |
564 | if isSpeakerActive {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.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:1691:32: error: 'AVAudioSession' is unavailable in macOS
1689 | Logger.log.i(message: "[ACM_RESET] TxClient:: setEarpiece() called")
1690 | do {
1691 | let audioSession = AVAudioSession.sharedInstance()
| `- error: 'AVAudioSession' is unavailable in macOS
1692 | try audioSession.overrideOutputAudioPort(.none)
1693 | _isSpeakerEnabled = false
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:29:12: note: 'AVAudioSession' has been explicitly marked unavailable here
27 | NS_SWIFT_SENDABLE
28 | API_AVAILABLE(ios(3.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos)
29 | @interface AVAudioSession : NSObject {
| `- note: 'AVAudioSession' has been explicitly marked unavailable here
30 | @private
31 | void *_impl;
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1691:47: error: 'sharedInstance()' is unavailable in macOS
1689 | Logger.log.i(message: "[ACM_RESET] TxClient:: setEarpiece() called")
1690 | do {
1691 | let audioSession = AVAudioSession.sharedInstance()
| `- error: 'sharedInstance()' is unavailable in macOS
1692 | try audioSession.overrideOutputAudioPort(.none)
1693 | _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:1692:30: error: 'overrideOutputAudioPort' is unavailable in macOS
1690 | do {
1691 | let audioSession = AVAudioSession.sharedInstance()
1692 | try audioSession.overrideOutputAudioPort(.none)
| `- error: 'overrideOutputAudioPort' is unavailable in macOS
1693 | _isSpeakerEnabled = false
1694 | 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:1704:32: error: 'AVAudioSession' is unavailable in macOS
1702 | Logger.log.i(message: "[ACM_RESET] TxClient:: setSpeaker() called")
1703 | do {
1704 | let audioSession = AVAudioSession.sharedInstance()
| `- error: 'AVAudioSession' is unavailable in macOS
1705 | try audioSession.overrideOutputAudioPort(.speaker)
1706 | _isSpeakerEnabled = true
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:29:12: note: 'AVAudioSession' has been explicitly marked unavailable here
27 | NS_SWIFT_SENDABLE
28 | API_AVAILABLE(ios(3.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos)
29 | @interface AVAudioSession : NSObject {
| `- note: 'AVAudioSession' has been explicitly marked unavailable here
30 | @private
31 | void *_impl;
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1704:47: error: 'sharedInstance()' is unavailable in macOS
1702 | Logger.log.i(message: "[ACM_RESET] TxClient:: setSpeaker() called")
1703 | do {
1704 | let audioSession = AVAudioSession.sharedInstance()
| `- error: 'sharedInstance()' is unavailable in macOS
1705 | try audioSession.overrideOutputAudioPort(.speaker)
1706 | _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:1705:30: error: 'overrideOutputAudioPort' is unavailable in macOS
1703 | do {
1704 | let audioSession = AVAudioSession.sharedInstance()
1705 | try audioSession.overrideOutputAudioPort(.speaker)
| `- error: 'overrideOutputAudioPort' is unavailable in macOS
1706 | _isSpeakerEnabled = true
1707 | 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:1705:55: error: 'speaker' is unavailable in macOS
1703 | do {
1704 | let audioSession = AVAudioSession.sharedInstance()
1705 | try audioSession.overrideOutputAudioPort(.speaker)
| `- error: 'speaker' is unavailable in macOS
1706 | _isSpeakerEnabled = true
1707 | 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:2310:28: error: 'AVAudioSession' is unavailable in macOS
2308 | extension TxClient {
2309 | internal func resetAudioConfiguration() {
2310 | let audioSession = AVAudioSession.sharedInstance()
| `- error: 'AVAudioSession' is unavailable in macOS
2311 | do {
2312 | try audioSession.setCategory(
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:29:12: note: 'AVAudioSession' has been explicitly marked unavailable here
27 | NS_SWIFT_SENDABLE
28 | API_AVAILABLE(ios(3.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos)
29 | @interface AVAudioSession : NSObject {
| `- note: 'AVAudioSession' has been explicitly marked unavailable here
30 | @private
31 | void *_impl;
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:2310:43: error: 'sharedInstance()' is unavailable in macOS
2308 | extension TxClient {
2309 | internal func resetAudioConfiguration() {
2310 | let audioSession = AVAudioSession.sharedInstance()
| `- error: 'sharedInstance()' is unavailable in macOS
2311 | do {
2312 | 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:2312:30: error: 'setCategory(_:mode:options:)' is unavailable in macOS
2310 | let audioSession = AVAudioSession.sharedInstance()
2311 | do {
2312 | try audioSession.setCategory(
| `- error: 'setCategory(_:mode:options:)' is unavailable in macOS
2313 | .playback,
2314 | 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:2313:18: error: 'playback' is unavailable in macOS
2311 | do {
2312 | try audioSession.setCategory(
2313 | .playback,
| `- error: 'playback' is unavailable in macOS
2314 | mode: .default,
2315 | options: [.mixWithOthers]
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.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:2314:24: error: 'default' is unavailable in macOS
2312 | try audioSession.setCategory(
2313 | .playback,
2314 | mode: .default,
| `- error: 'default' is unavailable in macOS
2315 | options: [.mixWithOthers]
2316 | )
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.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:2323:31: error: cannot find 'RTCAudioSession' in scope
2321 |
2322 | internal func setupCorrectAudioConfiguration() {
2323 | let rtcAudioSession = RTCAudioSession.sharedInstance()
| `- error: cannot find 'RTCAudioSession' in scope
2324 | rtcAudioSession.lockForConfiguration()
2325 |
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:2326:29: error: cannot find 'RTCAudioSessionConfiguration' in scope
2324 | rtcAudioSession.lockForConfiguration()
2325 |
2326 | let configuration = RTCAudioSessionConfiguration.webRTC()
| `- error: cannot find 'RTCAudioSessionConfiguration' in scope
2327 | configuration.categoryOptions = [
2328 | .duckOthers,
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:2328:14: error: reference to member 'duckOthers' cannot be resolved without a contextual type
2326 | let configuration = RTCAudioSessionConfiguration.webRTC()
2327 | configuration.categoryOptions = [
2328 | .duckOthers,
| `- error: reference to member 'duckOthers' cannot be resolved without a contextual type
2329 | .allowBluetooth,
2330 | ]
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:2329:14: error: reference to member 'allowBluetooth' cannot be resolved without a contextual type
2327 | configuration.categoryOptions = [
2328 | .duckOthers,
2329 | .allowBluetooth,
| `- error: reference to member 'allowBluetooth' cannot be resolved without a contextual type
2330 | ]
2331 |
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:2343:31: error: cannot find 'RTCAudioSession' in scope
2341 | @discardableResult
2342 | internal func setAudioSessionActive(_ active: Bool) -> Bool {
2343 | let rtcAudioSession = RTCAudioSession.sharedInstance()
| `- error: cannot find 'RTCAudioSession' in scope
2344 | var succeeded = false
2345 | rtcAudioSession.lockForConfiguration()
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/Utils/FileLoger.swift:96:19: warning: value 'logData' was defined but never used; consider replacing with boolean test
94 |
95 | let logFileURL = FileLogger.shared.logFileURL
96 | guard let logData = try? Data(contentsOf: logFileURL) else {
| `- warning: value 'logData' was defined but never used; consider replacing with boolean test
97 | Logger.log.e(message: "Failed to read log file")
98 | return
[94/100] Compiling TelnyxRTC Peer.swift
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/WebRTC/Peer.swift:89:36: error: cannot find 'RTCAudioSession' in scope
87 | //Audio
88 | private var localAudioTrack: RTCAudioTrack?
89 | private let rtcAudioSession = RTCAudioSession.sharedInstance()
| `- error: cannot find 'RTCAudioSession' in scope
90 |
91 | //Video
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/WebRTC/Peer.swift:372:26: warning: 'setCodecPreferences' is deprecated: Use setCodecPreferences:error: instead.
370 |
371 | // Apply the ordered codec preferences
372 | audioTransceiver.setCodecPreferences(orderedCodecs)
| `- warning: 'setCodecPreferences' is deprecated: Use setCodecPreferences:error: instead.
373 | Logger.log.i(message: "Peer:: Applied codec preferences to audio transceiver: \(preferredCodecs.map { $0.mimeType }.joined(separator: ", "))")
374 | }
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/WebRTC/Peer.swift:731:36: error: 'AVAudioSession' is unavailable in macOS
729 | } else {
730 | // Detect current speaker state
731 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
| `- error: 'AVAudioSession' is unavailable in macOS
732 | wasSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
733 | Logger.log.i(message: "[ACM_RESET] Peer:: Detected current speaker state: \(wasSpeakerActive)")
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:29:12: note: 'AVAudioSession' has been explicitly marked unavailable here
27 | NS_SWIFT_SENDABLE
28 | API_AVAILABLE(ios(3.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos)
29 | @interface AVAudioSession : NSObject {
| `- note: 'AVAudioSession' has been explicitly marked unavailable here
30 | @private
31 | void *_impl;
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/WebRTC/Peer.swift:731:51: error: 'sharedInstance()' is unavailable in macOS
729 | } else {
730 | // Detect current speaker state
731 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
| `- error: 'sharedInstance()' is unavailable in macOS
732 | wasSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
733 | Logger.log.i(message: "[ACM_RESET] Peer:: Detected current speaker state: \(wasSpeakerActive)")
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/WebRTC/Peer.swift:731:68: error: 'currentRoute' is unavailable in macOS
729 | } else {
730 | // Detect current speaker state
731 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
| `- error: 'currentRoute' is unavailable in macOS
732 | wasSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
733 | Logger.log.i(message: "[ACM_RESET] Peer:: Detected current speaker state: \(wasSpeakerActive)")
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:440:54: note: 'currentRoute' has been explicitly marked unavailable here
438 | /// A description of the current route, consisting of zero or more input ports and zero or more
439 | /// output ports
440 | @property (readonly) AVAudioSessionRouteDescription *currentRoute
| `- note: 'currentRoute' has been explicitly marked unavailable here
441 | API_AVAILABLE(ios(6.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
442 |
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/WebRTC/Peer.swift:732:49: error: 'outputs' is unavailable in macOS
730 | // Detect current speaker state
731 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
732 | wasSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
| `- error: 'outputs' is unavailable in macOS
733 | Logger.log.i(message: "[ACM_RESET] Peer:: Detected current speaker state: \(wasSpeakerActive)")
734 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionRoute.h:212:75: note: 'outputs' has been explicitly marked unavailable here
210 |
211 | /// Flattened list of all output port descriptions associated with all the streams as part of the route.
212 | @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
213 |
214 | @end // AVAudioSessionRouteDescription
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/WebRTC/Peer.swift:732:71: error: 'portType' is unavailable in macOS
730 | // Detect current speaker state
731 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
732 | wasSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
| `- error: 'portType' is unavailable in macOS
733 | Logger.log.i(message: "[ACM_RESET] Peer:: Detected current speaker state: \(wasSpeakerActive)")
734 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionRoute.h:136:52: note: 'portType' has been explicitly marked unavailable here
134 | }
135 |
136 | @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
137 |
138 | /// A descriptive name for the associated hardware port
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/WebRTC/Peer.swift:732:84: error: 'builtInSpeaker' is unavailable in macOS
730 | // Detect current speaker state
731 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
732 | wasSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
| `- error: 'builtInSpeaker' is unavailable in macOS
733 | Logger.log.i(message: "[ACM_RESET] Peer:: Detected current speaker state: \(wasSpeakerActive)")
734 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.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/WebRTC/Peer.swift:814:35: error: cannot find 'RTCAudioSession' in scope
812 |
813 | // Use RTCAudioSession for WebRTC-specific audio configuration
814 | let rtcAudioSession = RTCAudioSession.sharedInstance()
| `- error: cannot find 'RTCAudioSession' in scope
815 |
816 | rtcAudioSession.lockForConfiguration()
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/WebRTC/Peer.swift:841:37: error: cannot find 'RTCAudioSessionConfiguration' in scope
839 |
840 | // Configure WebRTC audio session
841 | let configuration = RTCAudioSessionConfiguration.webRTC()
| `- error: cannot find 'RTCAudioSessionConfiguration' in scope
842 |
843 | // Build category options - include .defaultToSpeaker if speaker should be active
[95/100] Compiling TelnyxRTC TelnyxCallReportCollector.swift
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/WebRTC/Peer.swift:89:36: error: cannot find 'RTCAudioSession' in scope
87 | //Audio
88 | private var localAudioTrack: RTCAudioTrack?
89 | private let rtcAudioSession = RTCAudioSession.sharedInstance()
| `- error: cannot find 'RTCAudioSession' in scope
90 |
91 | //Video
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/WebRTC/Peer.swift:372:26: warning: 'setCodecPreferences' is deprecated: Use setCodecPreferences:error: instead.
370 |
371 | // Apply the ordered codec preferences
372 | audioTransceiver.setCodecPreferences(orderedCodecs)
| `- warning: 'setCodecPreferences' is deprecated: Use setCodecPreferences:error: instead.
373 | Logger.log.i(message: "Peer:: Applied codec preferences to audio transceiver: \(preferredCodecs.map { $0.mimeType }.joined(separator: ", "))")
374 | }
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/WebRTC/Peer.swift:731:36: error: 'AVAudioSession' is unavailable in macOS
729 | } else {
730 | // Detect current speaker state
731 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
| `- error: 'AVAudioSession' is unavailable in macOS
732 | wasSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
733 | Logger.log.i(message: "[ACM_RESET] Peer:: Detected current speaker state: \(wasSpeakerActive)")
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:29:12: note: 'AVAudioSession' has been explicitly marked unavailable here
27 | NS_SWIFT_SENDABLE
28 | API_AVAILABLE(ios(3.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos)
29 | @interface AVAudioSession : NSObject {
| `- note: 'AVAudioSession' has been explicitly marked unavailable here
30 | @private
31 | void *_impl;
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/WebRTC/Peer.swift:731:51: error: 'sharedInstance()' is unavailable in macOS
729 | } else {
730 | // Detect current speaker state
731 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
| `- error: 'sharedInstance()' is unavailable in macOS
732 | wasSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
733 | Logger.log.i(message: "[ACM_RESET] Peer:: Detected current speaker state: \(wasSpeakerActive)")
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/WebRTC/Peer.swift:731:68: error: 'currentRoute' is unavailable in macOS
729 | } else {
730 | // Detect current speaker state
731 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
| `- error: 'currentRoute' is unavailable in macOS
732 | wasSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
733 | Logger.log.i(message: "[ACM_RESET] Peer:: Detected current speaker state: \(wasSpeakerActive)")
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:440:54: note: 'currentRoute' has been explicitly marked unavailable here
438 | /// A description of the current route, consisting of zero or more input ports and zero or more
439 | /// output ports
440 | @property (readonly) AVAudioSessionRouteDescription *currentRoute
| `- note: 'currentRoute' has been explicitly marked unavailable here
441 | API_AVAILABLE(ios(6.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
442 |
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/WebRTC/Peer.swift:732:49: error: 'outputs' is unavailable in macOS
730 | // Detect current speaker state
731 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
732 | wasSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
| `- error: 'outputs' is unavailable in macOS
733 | Logger.log.i(message: "[ACM_RESET] Peer:: Detected current speaker state: \(wasSpeakerActive)")
734 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionRoute.h:212:75: note: 'outputs' has been explicitly marked unavailable here
210 |
211 | /// Flattened list of all output port descriptions associated with all the streams as part of the route.
212 | @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
213 |
214 | @end // AVAudioSessionRouteDescription
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/WebRTC/Peer.swift:732:71: error: 'portType' is unavailable in macOS
730 | // Detect current speaker state
731 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
732 | wasSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
| `- error: 'portType' is unavailable in macOS
733 | Logger.log.i(message: "[ACM_RESET] Peer:: Detected current speaker state: \(wasSpeakerActive)")
734 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionRoute.h:136:52: note: 'portType' has been explicitly marked unavailable here
134 | }
135 |
136 | @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
137 |
138 | /// A descriptive name for the associated hardware port
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/WebRTC/Peer.swift:732:84: error: 'builtInSpeaker' is unavailable in macOS
730 | // Detect current speaker state
731 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
732 | wasSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
| `- error: 'builtInSpeaker' is unavailable in macOS
733 | Logger.log.i(message: "[ACM_RESET] Peer:: Detected current speaker state: \(wasSpeakerActive)")
734 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.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/WebRTC/Peer.swift:814:35: error: cannot find 'RTCAudioSession' in scope
812 |
813 | // Use RTCAudioSession for WebRTC-specific audio configuration
814 | let rtcAudioSession = RTCAudioSession.sharedInstance()
| `- error: cannot find 'RTCAudioSession' in scope
815 |
816 | rtcAudioSession.lockForConfiguration()
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/WebRTC/Peer.swift:841:37: error: cannot find 'RTCAudioSessionConfiguration' in scope
839 |
840 | // Configure WebRTC audio session
841 | let configuration = RTCAudioSessionConfiguration.webRTC()
| `- error: cannot find 'RTCAudioSessionConfiguration' in scope
842 |
843 | // Build category options - include .defaultToSpeaker if speaker should be active
[96/100] Compiling TelnyxRTC WebRTCEventHandler.swift
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/WebRTC/Peer.swift:89:36: error: cannot find 'RTCAudioSession' in scope
87 | //Audio
88 | private var localAudioTrack: RTCAudioTrack?
89 | private let rtcAudioSession = RTCAudioSession.sharedInstance()
| `- error: cannot find 'RTCAudioSession' in scope
90 |
91 | //Video
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/WebRTC/Peer.swift:372:26: warning: 'setCodecPreferences' is deprecated: Use setCodecPreferences:error: instead.
370 |
371 | // Apply the ordered codec preferences
372 | audioTransceiver.setCodecPreferences(orderedCodecs)
| `- warning: 'setCodecPreferences' is deprecated: Use setCodecPreferences:error: instead.
373 | Logger.log.i(message: "Peer:: Applied codec preferences to audio transceiver: \(preferredCodecs.map { $0.mimeType }.joined(separator: ", "))")
374 | }
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/WebRTC/Peer.swift:731:36: error: 'AVAudioSession' is unavailable in macOS
729 | } else {
730 | // Detect current speaker state
731 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
| `- error: 'AVAudioSession' is unavailable in macOS
732 | wasSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
733 | Logger.log.i(message: "[ACM_RESET] Peer:: Detected current speaker state: \(wasSpeakerActive)")
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:29:12: note: 'AVAudioSession' has been explicitly marked unavailable here
27 | NS_SWIFT_SENDABLE
28 | API_AVAILABLE(ios(3.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos)
29 | @interface AVAudioSession : NSObject {
| `- note: 'AVAudioSession' has been explicitly marked unavailable here
30 | @private
31 | void *_impl;
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/WebRTC/Peer.swift:731:51: error: 'sharedInstance()' is unavailable in macOS
729 | } else {
730 | // Detect current speaker state
731 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
| `- error: 'sharedInstance()' is unavailable in macOS
732 | wasSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
733 | Logger.log.i(message: "[ACM_RESET] Peer:: Detected current speaker state: \(wasSpeakerActive)")
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/WebRTC/Peer.swift:731:68: error: 'currentRoute' is unavailable in macOS
729 | } else {
730 | // Detect current speaker state
731 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
| `- error: 'currentRoute' is unavailable in macOS
732 | wasSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
733 | Logger.log.i(message: "[ACM_RESET] Peer:: Detected current speaker state: \(wasSpeakerActive)")
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:440:54: note: 'currentRoute' has been explicitly marked unavailable here
438 | /// A description of the current route, consisting of zero or more input ports and zero or more
439 | /// output ports
440 | @property (readonly) AVAudioSessionRouteDescription *currentRoute
| `- note: 'currentRoute' has been explicitly marked unavailable here
441 | API_AVAILABLE(ios(6.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
442 |
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/WebRTC/Peer.swift:732:49: error: 'outputs' is unavailable in macOS
730 | // Detect current speaker state
731 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
732 | wasSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
| `- error: 'outputs' is unavailable in macOS
733 | Logger.log.i(message: "[ACM_RESET] Peer:: Detected current speaker state: \(wasSpeakerActive)")
734 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionRoute.h:212:75: note: 'outputs' has been explicitly marked unavailable here
210 |
211 | /// Flattened list of all output port descriptions associated with all the streams as part of the route.
212 | @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
213 |
214 | @end // AVAudioSessionRouteDescription
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/WebRTC/Peer.swift:732:71: error: 'portType' is unavailable in macOS
730 | // Detect current speaker state
731 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
732 | wasSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
| `- error: 'portType' is unavailable in macOS
733 | Logger.log.i(message: "[ACM_RESET] Peer:: Detected current speaker state: \(wasSpeakerActive)")
734 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionRoute.h:136:52: note: 'portType' has been explicitly marked unavailable here
134 | }
135 |
136 | @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
137 |
138 | /// A descriptive name for the associated hardware port
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/WebRTC/Peer.swift:732:84: error: 'builtInSpeaker' is unavailable in macOS
730 | // Detect current speaker state
731 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
732 | wasSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
| `- error: 'builtInSpeaker' is unavailable in macOS
733 | Logger.log.i(message: "[ACM_RESET] Peer:: Detected current speaker state: \(wasSpeakerActive)")
734 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.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/WebRTC/Peer.swift:814:35: error: cannot find 'RTCAudioSession' in scope
812 |
813 | // Use RTCAudioSession for WebRTC-specific audio configuration
814 | let rtcAudioSession = RTCAudioSession.sharedInstance()
| `- error: cannot find 'RTCAudioSession' in scope
815 |
816 | rtcAudioSession.lockForConfiguration()
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/WebRTC/Peer.swift:841:37: error: cannot find 'RTCAudioSessionConfiguration' in scope
839 |
840 | // Configure WebRTC audio session
841 | let configuration = RTCAudioSessionConfiguration.webRTC()
| `- error: cannot find 'RTCAudioSessionConfiguration' in scope
842 |
843 | // Build category options - include .defaultToSpeaker if speaker should be active
[97/100] Compiling TelnyxRTC WebRTCStatsEvent.swift
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/WebRTC/Peer.swift:89:36: error: cannot find 'RTCAudioSession' in scope
87 | //Audio
88 | private var localAudioTrack: RTCAudioTrack?
89 | private let rtcAudioSession = RTCAudioSession.sharedInstance()
| `- error: cannot find 'RTCAudioSession' in scope
90 |
91 | //Video
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/WebRTC/Peer.swift:372:26: warning: 'setCodecPreferences' is deprecated: Use setCodecPreferences:error: instead.
370 |
371 | // Apply the ordered codec preferences
372 | audioTransceiver.setCodecPreferences(orderedCodecs)
| `- warning: 'setCodecPreferences' is deprecated: Use setCodecPreferences:error: instead.
373 | Logger.log.i(message: "Peer:: Applied codec preferences to audio transceiver: \(preferredCodecs.map { $0.mimeType }.joined(separator: ", "))")
374 | }
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/WebRTC/Peer.swift:731:36: error: 'AVAudioSession' is unavailable in macOS
729 | } else {
730 | // Detect current speaker state
731 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
| `- error: 'AVAudioSession' is unavailable in macOS
732 | wasSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
733 | Logger.log.i(message: "[ACM_RESET] Peer:: Detected current speaker state: \(wasSpeakerActive)")
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:29:12: note: 'AVAudioSession' has been explicitly marked unavailable here
27 | NS_SWIFT_SENDABLE
28 | API_AVAILABLE(ios(3.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos)
29 | @interface AVAudioSession : NSObject {
| `- note: 'AVAudioSession' has been explicitly marked unavailable here
30 | @private
31 | void *_impl;
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/WebRTC/Peer.swift:731:51: error: 'sharedInstance()' is unavailable in macOS
729 | } else {
730 | // Detect current speaker state
731 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
| `- error: 'sharedInstance()' is unavailable in macOS
732 | wasSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
733 | Logger.log.i(message: "[ACM_RESET] Peer:: Detected current speaker state: \(wasSpeakerActive)")
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/WebRTC/Peer.swift:731:68: error: 'currentRoute' is unavailable in macOS
729 | } else {
730 | // Detect current speaker state
731 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
| `- error: 'currentRoute' is unavailable in macOS
732 | wasSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
733 | Logger.log.i(message: "[ACM_RESET] Peer:: Detected current speaker state: \(wasSpeakerActive)")
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:440:54: note: 'currentRoute' has been explicitly marked unavailable here
438 | /// A description of the current route, consisting of zero or more input ports and zero or more
439 | /// output ports
440 | @property (readonly) AVAudioSessionRouteDescription *currentRoute
| `- note: 'currentRoute' has been explicitly marked unavailable here
441 | API_AVAILABLE(ios(6.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
442 |
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/WebRTC/Peer.swift:732:49: error: 'outputs' is unavailable in macOS
730 | // Detect current speaker state
731 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
732 | wasSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
| `- error: 'outputs' is unavailable in macOS
733 | Logger.log.i(message: "[ACM_RESET] Peer:: Detected current speaker state: \(wasSpeakerActive)")
734 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionRoute.h:212:75: note: 'outputs' has been explicitly marked unavailable here
210 |
211 | /// Flattened list of all output port descriptions associated with all the streams as part of the route.
212 | @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
213 |
214 | @end // AVAudioSessionRouteDescription
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/WebRTC/Peer.swift:732:71: error: 'portType' is unavailable in macOS
730 | // Detect current speaker state
731 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
732 | wasSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
| `- error: 'portType' is unavailable in macOS
733 | Logger.log.i(message: "[ACM_RESET] Peer:: Detected current speaker state: \(wasSpeakerActive)")
734 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionRoute.h:136:52: note: 'portType' has been explicitly marked unavailable here
134 | }
135 |
136 | @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
137 |
138 | /// A descriptive name for the associated hardware port
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/WebRTC/Peer.swift:732:84: error: 'builtInSpeaker' is unavailable in macOS
730 | // Detect current speaker state
731 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
732 | wasSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
| `- error: 'builtInSpeaker' is unavailable in macOS
733 | Logger.log.i(message: "[ACM_RESET] Peer:: Detected current speaker state: \(wasSpeakerActive)")
734 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.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/WebRTC/Peer.swift:814:35: error: cannot find 'RTCAudioSession' in scope
812 |
813 | // Use RTCAudioSession for WebRTC-specific audio configuration
814 | let rtcAudioSession = RTCAudioSession.sharedInstance()
| `- error: cannot find 'RTCAudioSession' in scope
815 |
816 | rtcAudioSession.lockForConfiguration()
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/WebRTC/Peer.swift:841:37: error: cannot find 'RTCAudioSessionConfiguration' in scope
839 |
840 | // Configure WebRTC audio session
841 | let configuration = RTCAudioSessionConfiguration.webRTC()
| `- error: cannot find 'RTCAudioSessionConfiguration' in scope
842 |
843 | // Build category options - include .defaultToSpeaker if speaker should be active
[98/100] Compiling TelnyxRTC WebRTCStatsReporter.swift
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/WebRTC/Peer.swift:89:36: error: cannot find 'RTCAudioSession' in scope
87 | //Audio
88 | private var localAudioTrack: RTCAudioTrack?
89 | private let rtcAudioSession = RTCAudioSession.sharedInstance()
| `- error: cannot find 'RTCAudioSession' in scope
90 |
91 | //Video
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/WebRTC/Peer.swift:372:26: warning: 'setCodecPreferences' is deprecated: Use setCodecPreferences:error: instead.
370 |
371 | // Apply the ordered codec preferences
372 | audioTransceiver.setCodecPreferences(orderedCodecs)
| `- warning: 'setCodecPreferences' is deprecated: Use setCodecPreferences:error: instead.
373 | Logger.log.i(message: "Peer:: Applied codec preferences to audio transceiver: \(preferredCodecs.map { $0.mimeType }.joined(separator: ", "))")
374 | }
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/WebRTC/Peer.swift:731:36: error: 'AVAudioSession' is unavailable in macOS
729 | } else {
730 | // Detect current speaker state
731 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
| `- error: 'AVAudioSession' is unavailable in macOS
732 | wasSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
733 | Logger.log.i(message: "[ACM_RESET] Peer:: Detected current speaker state: \(wasSpeakerActive)")
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:29:12: note: 'AVAudioSession' has been explicitly marked unavailable here
27 | NS_SWIFT_SENDABLE
28 | API_AVAILABLE(ios(3.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos)
29 | @interface AVAudioSession : NSObject {
| `- note: 'AVAudioSession' has been explicitly marked unavailable here
30 | @private
31 | void *_impl;
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/WebRTC/Peer.swift:731:51: error: 'sharedInstance()' is unavailable in macOS
729 | } else {
730 | // Detect current speaker state
731 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
| `- error: 'sharedInstance()' is unavailable in macOS
732 | wasSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
733 | Logger.log.i(message: "[ACM_RESET] Peer:: Detected current speaker state: \(wasSpeakerActive)")
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/WebRTC/Peer.swift:731:68: error: 'currentRoute' is unavailable in macOS
729 | } else {
730 | // Detect current speaker state
731 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
| `- error: 'currentRoute' is unavailable in macOS
732 | wasSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
733 | Logger.log.i(message: "[ACM_RESET] Peer:: Detected current speaker state: \(wasSpeakerActive)")
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:440:54: note: 'currentRoute' has been explicitly marked unavailable here
438 | /// A description of the current route, consisting of zero or more input ports and zero or more
439 | /// output ports
440 | @property (readonly) AVAudioSessionRouteDescription *currentRoute
| `- note: 'currentRoute' has been explicitly marked unavailable here
441 | API_AVAILABLE(ios(6.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
442 |
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/WebRTC/Peer.swift:732:49: error: 'outputs' is unavailable in macOS
730 | // Detect current speaker state
731 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
732 | wasSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
| `- error: 'outputs' is unavailable in macOS
733 | Logger.log.i(message: "[ACM_RESET] Peer:: Detected current speaker state: \(wasSpeakerActive)")
734 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionRoute.h:212:75: note: 'outputs' has been explicitly marked unavailable here
210 |
211 | /// Flattened list of all output port descriptions associated with all the streams as part of the route.
212 | @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
213 |
214 | @end // AVAudioSessionRouteDescription
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/WebRTC/Peer.swift:732:71: error: 'portType' is unavailable in macOS
730 | // Detect current speaker state
731 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
732 | wasSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
| `- error: 'portType' is unavailable in macOS
733 | Logger.log.i(message: "[ACM_RESET] Peer:: Detected current speaker state: \(wasSpeakerActive)")
734 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionRoute.h:136:52: note: 'portType' has been explicitly marked unavailable here
134 | }
135 |
136 | @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
137 |
138 | /// A descriptive name for the associated hardware port
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/WebRTC/Peer.swift:732:84: error: 'builtInSpeaker' is unavailable in macOS
730 | // Detect current speaker state
731 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
732 | wasSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
| `- error: 'builtInSpeaker' is unavailable in macOS
733 | Logger.log.i(message: "[ACM_RESET] Peer:: Detected current speaker state: \(wasSpeakerActive)")
734 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.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/WebRTC/Peer.swift:814:35: error: cannot find 'RTCAudioSession' in scope
812 |
813 | // Use RTCAudioSession for WebRTC-specific audio configuration
814 | let rtcAudioSession = RTCAudioSession.sharedInstance()
| `- error: cannot find 'RTCAudioSession' in scope
815 |
816 | rtcAudioSession.lockForConfiguration()
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/WebRTC/Peer.swift:841:37: error: cannot find 'RTCAudioSessionConfiguration' in scope
839 |
840 | // Configure WebRTC audio session
841 | let configuration = RTCAudioSessionConfiguration.webRTC()
| `- error: cannot find 'RTCAudioSessionConfiguration' in scope
842 |
843 | // Build category options - include .defaultToSpeaker if speaker should be active
[99/100] Compiling TelnyxRTC WebRTCStatsTag.swift
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/WebRTC/Peer.swift:89:36: error: cannot find 'RTCAudioSession' in scope
87 | //Audio
88 | private var localAudioTrack: RTCAudioTrack?
89 | private let rtcAudioSession = RTCAudioSession.sharedInstance()
| `- error: cannot find 'RTCAudioSession' in scope
90 |
91 | //Video
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/WebRTC/Peer.swift:372:26: warning: 'setCodecPreferences' is deprecated: Use setCodecPreferences:error: instead.
370 |
371 | // Apply the ordered codec preferences
372 | audioTransceiver.setCodecPreferences(orderedCodecs)
| `- warning: 'setCodecPreferences' is deprecated: Use setCodecPreferences:error: instead.
373 | Logger.log.i(message: "Peer:: Applied codec preferences to audio transceiver: \(preferredCodecs.map { $0.mimeType }.joined(separator: ", "))")
374 | }
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/WebRTC/Peer.swift:731:36: error: 'AVAudioSession' is unavailable in macOS
729 | } else {
730 | // Detect current speaker state
731 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
| `- error: 'AVAudioSession' is unavailable in macOS
732 | wasSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
733 | Logger.log.i(message: "[ACM_RESET] Peer:: Detected current speaker state: \(wasSpeakerActive)")
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:29:12: note: 'AVAudioSession' has been explicitly marked unavailable here
27 | NS_SWIFT_SENDABLE
28 | API_AVAILABLE(ios(3.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos)
29 | @interface AVAudioSession : NSObject {
| `- note: 'AVAudioSession' has been explicitly marked unavailable here
30 | @private
31 | void *_impl;
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/WebRTC/Peer.swift:731:51: error: 'sharedInstance()' is unavailable in macOS
729 | } else {
730 | // Detect current speaker state
731 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
| `- error: 'sharedInstance()' is unavailable in macOS
732 | wasSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
733 | Logger.log.i(message: "[ACM_RESET] Peer:: Detected current speaker state: \(wasSpeakerActive)")
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/WebRTC/Peer.swift:731:68: error: 'currentRoute' is unavailable in macOS
729 | } else {
730 | // Detect current speaker state
731 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
| `- error: 'currentRoute' is unavailable in macOS
732 | wasSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
733 | Logger.log.i(message: "[ACM_RESET] Peer:: Detected current speaker state: \(wasSpeakerActive)")
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:440:54: note: 'currentRoute' has been explicitly marked unavailable here
438 | /// A description of the current route, consisting of zero or more input ports and zero or more
439 | /// output ports
440 | @property (readonly) AVAudioSessionRouteDescription *currentRoute
| `- note: 'currentRoute' has been explicitly marked unavailable here
441 | API_AVAILABLE(ios(6.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
442 |
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/WebRTC/Peer.swift:732:49: error: 'outputs' is unavailable in macOS
730 | // Detect current speaker state
731 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
732 | wasSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
| `- error: 'outputs' is unavailable in macOS
733 | Logger.log.i(message: "[ACM_RESET] Peer:: Detected current speaker state: \(wasSpeakerActive)")
734 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionRoute.h:212:75: note: 'outputs' has been explicitly marked unavailable here
210 |
211 | /// Flattened list of all output port descriptions associated with all the streams as part of the route.
212 | @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
213 |
214 | @end // AVAudioSessionRouteDescription
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/WebRTC/Peer.swift:732:71: error: 'portType' is unavailable in macOS
730 | // Detect current speaker state
731 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
732 | wasSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
| `- error: 'portType' is unavailable in macOS
733 | Logger.log.i(message: "[ACM_RESET] Peer:: Detected current speaker state: \(wasSpeakerActive)")
734 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionRoute.h:136:52: note: 'portType' has been explicitly marked unavailable here
134 | }
135 |
136 | @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
137 |
138 | /// A descriptive name for the associated hardware port
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/WebRTC/Peer.swift:732:84: error: 'builtInSpeaker' is unavailable in macOS
730 | // Detect current speaker state
731 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
732 | wasSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
| `- error: 'builtInSpeaker' is unavailable in macOS
733 | Logger.log.i(message: "[ACM_RESET] Peer:: Detected current speaker state: \(wasSpeakerActive)")
734 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.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/WebRTC/Peer.swift:814:35: error: cannot find 'RTCAudioSession' in scope
812 |
813 | // Use RTCAudioSession for WebRTC-specific audio configuration
814 | let rtcAudioSession = RTCAudioSession.sharedInstance()
| `- error: cannot find 'RTCAudioSession' in scope
815 |
816 | rtcAudioSession.lockForConfiguration()
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/WebRTC/Peer.swift:841:37: error: cannot find 'RTCAudioSessionConfiguration' in scope
839 |
840 | // Configure WebRTC audio session
841 | let configuration = RTCAudioSessionConfiguration.webRTC()
| `- error: cannot find 'RTCAudioSessionConfiguration' in scope
842 |
843 | // Build category options - include .defaultToSpeaker if speaker should be active
[100/100] Compiling TelnyxRTC resource_bundle_accessor.swift
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/WebRTC/Peer.swift:89:36: error: cannot find 'RTCAudioSession' in scope
87 | //Audio
88 | private var localAudioTrack: RTCAudioTrack?
89 | private let rtcAudioSession = RTCAudioSession.sharedInstance()
| `- error: cannot find 'RTCAudioSession' in scope
90 |
91 | //Video
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/WebRTC/Peer.swift:372:26: warning: 'setCodecPreferences' is deprecated: Use setCodecPreferences:error: instead.
370 |
371 | // Apply the ordered codec preferences
372 | audioTransceiver.setCodecPreferences(orderedCodecs)
| `- warning: 'setCodecPreferences' is deprecated: Use setCodecPreferences:error: instead.
373 | Logger.log.i(message: "Peer:: Applied codec preferences to audio transceiver: \(preferredCodecs.map { $0.mimeType }.joined(separator: ", "))")
374 | }
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/WebRTC/Peer.swift:731:36: error: 'AVAudioSession' is unavailable in macOS
729 | } else {
730 | // Detect current speaker state
731 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
| `- error: 'AVAudioSession' is unavailable in macOS
732 | wasSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
733 | Logger.log.i(message: "[ACM_RESET] Peer:: Detected current speaker state: \(wasSpeakerActive)")
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:29:12: note: 'AVAudioSession' has been explicitly marked unavailable here
27 | NS_SWIFT_SENDABLE
28 | API_AVAILABLE(ios(3.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos)
29 | @interface AVAudioSession : NSObject {
| `- note: 'AVAudioSession' has been explicitly marked unavailable here
30 | @private
31 | void *_impl;
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/WebRTC/Peer.swift:731:51: error: 'sharedInstance()' is unavailable in macOS
729 | } else {
730 | // Detect current speaker state
731 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
| `- error: 'sharedInstance()' is unavailable in macOS
732 | wasSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
733 | Logger.log.i(message: "[ACM_RESET] Peer:: Detected current speaker state: \(wasSpeakerActive)")
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/WebRTC/Peer.swift:731:68: error: 'currentRoute' is unavailable in macOS
729 | } else {
730 | // Detect current speaker state
731 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
| `- error: 'currentRoute' is unavailable in macOS
732 | wasSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
733 | Logger.log.i(message: "[ACM_RESET] Peer:: Detected current speaker state: \(wasSpeakerActive)")
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h:440:54: note: 'currentRoute' has been explicitly marked unavailable here
438 | /// A description of the current route, consisting of zero or more input ports and zero or more
439 | /// output ports
440 | @property (readonly) AVAudioSessionRouteDescription *currentRoute
| `- note: 'currentRoute' has been explicitly marked unavailable here
441 | API_AVAILABLE(ios(6.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
442 |
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/WebRTC/Peer.swift:732:49: error: 'outputs' is unavailable in macOS
730 | // Detect current speaker state
731 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
732 | wasSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
| `- error: 'outputs' is unavailable in macOS
733 | Logger.log.i(message: "[ACM_RESET] Peer:: Detected current speaker state: \(wasSpeakerActive)")
734 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionRoute.h:212:75: note: 'outputs' has been explicitly marked unavailable here
210 |
211 | /// Flattened list of all output port descriptions associated with all the streams as part of the route.
212 | @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
213 |
214 | @end // AVAudioSessionRouteDescription
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/WebRTC/Peer.swift:732:71: error: 'portType' is unavailable in macOS
730 | // Detect current speaker state
731 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
732 | wasSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
| `- error: 'portType' is unavailable in macOS
733 | Logger.log.i(message: "[ACM_RESET] Peer:: Detected current speaker state: \(wasSpeakerActive)")
734 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionRoute.h:136:52: note: 'portType' has been explicitly marked unavailable here
134 | }
135 |
136 | @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
137 |
138 | /// A descriptive name for the associated hardware port
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/WebRTC/Peer.swift:732:84: error: 'builtInSpeaker' is unavailable in macOS
730 | // Detect current speaker state
731 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
732 | wasSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
| `- error: 'builtInSpeaker' is unavailable in macOS
733 | Logger.log.i(message: "[ACM_RESET] Peer:: Detected current speaker state: \(wasSpeakerActive)")
734 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.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/WebRTC/Peer.swift:814:35: error: cannot find 'RTCAudioSession' in scope
812 |
813 | // Use RTCAudioSession for WebRTC-specific audio configuration
814 | let rtcAudioSession = RTCAudioSession.sharedInstance()
| `- error: cannot find 'RTCAudioSession' in scope
815 |
816 | rtcAudioSession.lockForConfiguration()
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/WebRTC/Peer.swift:841:37: error: cannot find 'RTCAudioSessionConfiguration' in scope
839 |
840 | // Configure WebRTC audio session
841 | let configuration = RTCAudioSessionConfiguration.webRTC()
| `- error: cannot find 'RTCAudioSessionConfiguration' in scope
842 |
843 | // Build category options - include .defaultToSpeaker if speaker should be active
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.1 macosSpm