Build Information
Failed to build telnyx-webrtc-ios, reference 2.4.0 (bb237c), with Swift 6.1 for macOS (SPM) on 17 Nov 2025 21:22:37 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64Build Log
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:303:78: error: 'routeChangeNotification' is unavailable in macOS
301 |
302 | // Remove audio route change observer
303 | NotificationCenter.default.removeObserver(self, name: AVAudioSession.routeChangeNotification, object: nil)
| `- error: 'routeChangeNotification' is unavailable in macOS
304 |
305 | // Remove ACM reset observers
/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:323:19: error: 'AVAudioSession' is unavailable in macOS
321 | self,
322 | selector: #selector(handleAudioRouteChange),
323 | name: AVAudioSession.routeChangeNotification,
| `- error: 'AVAudioSession' is unavailable in macOS
324 | object: nil)
325 |
/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:323:34: error: 'routeChangeNotification' is unavailable in macOS
321 | self,
322 | selector: #selector(handleAudioRouteChange),
323 | name: AVAudioSession.routeChangeNotification,
| `- error: 'routeChangeNotification' is unavailable in macOS
324 | object: nil)
325 |
/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:360:42: error: 'AVAudioSessionRouteChangeReasonKey' is unavailable in macOS
358 | @objc private func handleAudioRouteChange(notification: Notification) {
359 | guard let userInfo = notification.userInfo,
360 | let reasonValue = userInfo[AVAudioSessionRouteChangeReasonKey] as? UInt,
| `- error: 'AVAudioSessionRouteChangeReasonKey' is unavailable in macOS
361 | let reason = AVAudioSession.RouteChangeReason(rawValue: reasonValue) else {
362 | return
/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:361:28: error: 'AVAudioSession' is unavailable in macOS
359 | guard let userInfo = notification.userInfo,
360 | let reasonValue = userInfo[AVAudioSessionRouteChangeReasonKey] as? UInt,
361 | let reason = AVAudioSession.RouteChangeReason(rawValue: reasonValue) else {
| `- error: 'AVAudioSession' is unavailable in macOS
362 | return
363 | }
/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:365:23: error: 'AVAudioSession' is unavailable in macOS
363 | }
364 |
365 | let session = AVAudioSession.sharedInstance()
| `- error: 'AVAudioSession' is unavailable in macOS
366 | let currentRoute = session.currentRoute
367 |
/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:365:38: error: 'sharedInstance()' is unavailable in macOS
363 | }
364 |
365 | let session = AVAudioSession.sharedInstance()
| `- error: 'sharedInstance()' is unavailable in macOS
366 | let currentRoute = session.currentRoute
367 |
AVFAudio.AVAudioSession.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:366:36: error: 'currentRoute' is unavailable in macOS
364 |
365 | let session = AVAudioSession.sharedInstance()
366 | let currentRoute = session.currentRoute
| `- error: 'currentRoute' is unavailable in macOS
367 |
368 | // Ensure we have at least one output port
/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:369:41: error: 'outputs' is unavailable in macOS
367 |
368 | // Ensure we have at least one output port
369 | guard let output = currentRoute.outputs.first else {
| `- error: 'outputs' is unavailable in macOS
370 | return
371 | }
/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:373:85: error: 'portType' is unavailable in macOS
371 | }
372 |
373 | Logger.log.i(message: "[ACM_RESET] TxClient:: Audio route changed: \(output.portType), reason: \(reason), isACMResetInProgress: \(isACMResetInProgress)")
| `- error: 'portType' is unavailable in macOS
374 |
375 | // Ignore audio route changes during ACM reset to prevent state desynchronization
/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:384:40: error: 'portType' is unavailable in macOS
382 | case .categoryChange, .override, .routeConfigurationChange:
383 | // Update internal speaker state based on current output
384 | let isSpeaker = output.portType == .builtInSpeaker
| `- error: 'portType' is unavailable in macOS
385 | _isSpeakerEnabled = isSpeaker
386 |
/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:384:53: error: 'builtInSpeaker' is unavailable in macOS
382 | case .categoryChange, .override, .routeConfigurationChange:
383 | // Update internal speaker state based on current output
384 | let isSpeaker = output.portType == .builtInSpeaker
| `- error: 'builtInSpeaker' is unavailable in macOS
385 | _isSpeakerEnabled = isSpeaker
386 |
/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:393:50: error: 'portType' is unavailable in macOS
391 | userInfo: [
392 | "isSpeakerEnabled": isSpeaker,
393 | "outputPortType": output.portType
| `- error: 'portType' is unavailable in macOS
394 | ]
395 | )
/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:459:32: error: 'AVAudioSession' is unavailable in macOS
457 |
458 | // Verify if speaker is actually active
459 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
| `- error: 'AVAudioSession' is unavailable in macOS
460 | let isSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
461 |
/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:459:47: error: 'sharedInstance()' is unavailable in macOS
457 |
458 | // Verify if speaker is actually active
459 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
| `- error: 'sharedInstance()' is unavailable in macOS
460 | let isSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
461 |
AVFAudio.AVAudioSession.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:459:64: error: 'currentRoute' is unavailable in macOS
457 |
458 | // Verify if speaker is actually active
459 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
| `- error: 'currentRoute' is unavailable in macOS
460 | let isSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
461 |
/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:460:48: error: 'outputs' is unavailable in macOS
458 | // Verify if speaker is actually active
459 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
460 | let isSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
| `- error: 'outputs' is unavailable in macOS
461 |
462 | if isSpeakerActive {
/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:460:70: error: 'portType' is unavailable in macOS
458 | // Verify if speaker is actually active
459 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
460 | let isSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
| `- error: 'portType' is unavailable in macOS
461 |
462 | if isSpeakerActive {
/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:460:83: error: 'builtInSpeaker' is unavailable in macOS
458 | // Verify if speaker is actually active
459 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
460 | let isSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
| `- error: 'builtInSpeaker' is unavailable in macOS
461 |
462 | if isSpeakerActive {
/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:541:57: error: 'AVAudioSession' is unavailable in macOS
539 | // Remove audio route change observer
540 | NotificationCenter.default.removeObserver(self,
541 | name: AVAudioSession.routeChangeNotification,
| `- error: 'AVAudioSession' is unavailable in macOS
542 | object: nil)
543 | socket?.disconnect(reconnect: false)
/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:541:72: error: 'routeChangeNotification' is unavailable in macOS
539 | // Remove audio route change observer
540 | NotificationCenter.default.removeObserver(self,
541 | name: AVAudioSession.routeChangeNotification,
| `- error: 'routeChangeNotification' is unavailable in macOS
542 | object: nil)
543 | socket?.disconnect(reconnect: false)
/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:1165:32: error: 'AVAudioSession' is unavailable in macOS
1163 | Logger.log.i(message: "[ACM_RESET] TxClient:: setEarpiece() called")
1164 | do {
1165 | let audioSession = AVAudioSession.sharedInstance()
| `- error: 'AVAudioSession' is unavailable in macOS
1166 | try audioSession.overrideOutputAudioPort(.none)
1167 | _isSpeakerEnabled = false
/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:1165:47: error: 'sharedInstance()' is unavailable in macOS
1163 | Logger.log.i(message: "[ACM_RESET] TxClient:: setEarpiece() called")
1164 | do {
1165 | let audioSession = AVAudioSession.sharedInstance()
| `- error: 'sharedInstance()' is unavailable in macOS
1166 | try audioSession.overrideOutputAudioPort(.none)
1167 | _isSpeakerEnabled = false
AVFAudio.AVAudioSession.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:1166:30: error: 'overrideOutputAudioPort' is unavailable in macOS
1164 | do {
1165 | let audioSession = AVAudioSession.sharedInstance()
1166 | try audioSession.overrideOutputAudioPort(.none)
| `- error: 'overrideOutputAudioPort' is unavailable in macOS
1167 | _isSpeakerEnabled = false
1168 | Logger.log.i(message: "[ACM_RESET] TxClient:: Earpiece set successfully, _isSpeakerEnabled: \(_isSpeakerEnabled)")
AVFAudio.AVAudioSession.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:1178:32: error: 'AVAudioSession' is unavailable in macOS
1176 | Logger.log.i(message: "[ACM_RESET] TxClient:: setSpeaker() called")
1177 | do {
1178 | let audioSession = AVAudioSession.sharedInstance()
| `- error: 'AVAudioSession' is unavailable in macOS
1179 | try audioSession.overrideOutputAudioPort(.speaker)
1180 | _isSpeakerEnabled = true
/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:1178:47: error: 'sharedInstance()' is unavailable in macOS
1176 | Logger.log.i(message: "[ACM_RESET] TxClient:: setSpeaker() called")
1177 | do {
1178 | let audioSession = AVAudioSession.sharedInstance()
| `- error: 'sharedInstance()' is unavailable in macOS
1179 | try audioSession.overrideOutputAudioPort(.speaker)
1180 | _isSpeakerEnabled = true
AVFAudio.AVAudioSession.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:1179:30: error: 'overrideOutputAudioPort' is unavailable in macOS
1177 | do {
1178 | let audioSession = AVAudioSession.sharedInstance()
1179 | try audioSession.overrideOutputAudioPort(.speaker)
| `- error: 'overrideOutputAudioPort' is unavailable in macOS
1180 | _isSpeakerEnabled = true
1181 | Logger.log.i(message: "[ACM_RESET] TxClient:: Speaker set successfully, _isSpeakerEnabled: \(_isSpeakerEnabled)")
AVFAudio.AVAudioSession.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:1179:55: error: 'speaker' is unavailable in macOS
1177 | do {
1178 | let audioSession = AVAudioSession.sharedInstance()
1179 | try audioSession.overrideOutputAudioPort(.speaker)
| `- error: 'speaker' is unavailable in macOS
1180 | _isSpeakerEnabled = true
1181 | Logger.log.i(message: "[ACM_RESET] TxClient:: Speaker set successfully, _isSpeakerEnabled: \(_isSpeakerEnabled)")
AVFAudio.AVAudioSession.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:1644:28: error: 'AVAudioSession' is unavailable in macOS
1642 | extension TxClient {
1643 | internal func resetAudioConfiguration() {
1644 | let audioSession = AVAudioSession.sharedInstance()
| `- error: 'AVAudioSession' is unavailable in macOS
1645 | do {
1646 | try audioSession.setCategory(
/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:1644:43: error: 'sharedInstance()' is unavailable in macOS
1642 | extension TxClient {
1643 | internal func resetAudioConfiguration() {
1644 | let audioSession = AVAudioSession.sharedInstance()
| `- error: 'sharedInstance()' is unavailable in macOS
1645 | do {
1646 | try audioSession.setCategory(
AVFAudio.AVAudioSession.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:1646:30: error: 'setCategory(_:mode:options:)' is unavailable in macOS
1644 | let audioSession = AVAudioSession.sharedInstance()
1645 | do {
1646 | try audioSession.setCategory(
| `- error: 'setCategory(_:mode:options:)' is unavailable in macOS
1647 | .playback,
1648 | mode: .default,
AVFAudio.AVAudioSession.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:1647:18: error: 'playback' is unavailable in macOS
1645 | do {
1646 | try audioSession.setCategory(
1647 | .playback,
| `- error: 'playback' is unavailable in macOS
1648 | mode: .default,
1649 | options: [.mixWithOthers]
/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:1648:24: error: 'default' is unavailable in macOS
1646 | try audioSession.setCategory(
1647 | .playback,
1648 | mode: .default,
| `- error: 'default' is unavailable in macOS
1649 | options: [.mixWithOthers]
1650 | )
/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:1657:31: error: cannot find 'RTCAudioSession' in scope
1655 |
1656 | internal func setupCorrectAudioConfiguration() {
1657 | let rtcAudioSession = RTCAudioSession.sharedInstance()
| `- error: cannot find 'RTCAudioSession' in scope
1658 | rtcAudioSession.lockForConfiguration()
1659 |
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1660:29: error: cannot find 'RTCAudioSessionConfiguration' in scope
1658 | rtcAudioSession.lockForConfiguration()
1659 |
1660 | let configuration = RTCAudioSessionConfiguration.webRTC()
| `- error: cannot find 'RTCAudioSessionConfiguration' in scope
1661 | configuration.categoryOptions = [
1662 | .duckOthers,
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1662:14: error: reference to member 'duckOthers' cannot be resolved without a contextual type
1660 | let configuration = RTCAudioSessionConfiguration.webRTC()
1661 | configuration.categoryOptions = [
1662 | .duckOthers,
| `- error: reference to member 'duckOthers' cannot be resolved without a contextual type
1663 | .allowBluetooth,
1664 | ]
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1663:14: error: reference to member 'allowBluetooth' cannot be resolved without a contextual type
1661 | configuration.categoryOptions = [
1662 | .duckOthers,
1663 | .allowBluetooth,
| `- error: reference to member 'allowBluetooth' cannot be resolved without a contextual type
1664 | ]
1665 |
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1676:31: error: cannot find 'RTCAudioSession' in scope
1674 |
1675 | internal func setAudioSessionActive(_ active: Bool) {
1676 | let rtcAudioSession = RTCAudioSession.sharedInstance()
| `- error: cannot find 'RTCAudioSession' in scope
1677 |
1678 | rtcAudioSession.lockForConfiguration()
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/Utils/FileLoger.swift:96:19: warning: value 'logData' was defined but never used; consider replacing with boolean test
94 |
95 | let logFileURL = FileLogger.shared.logFileURL
96 | guard let logData = try? Data(contentsOf: logFileURL) else {
| `- warning: value 'logData' was defined but never used; consider replacing with boolean test
97 | Logger.log.e(message: "Failed to read log file")
98 | return
[63/90] Compiling TelnyxRTC FileLoger.swift
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/Services/Socket.swift:143:26: warning: immutable value 'data' was never used; consider replacing with '_' or removing it
141 | break;
142 |
143 | case .binary(let data):
| `- warning: immutable value 'data' was never used; consider replacing with '_' or removing it
144 | break
145 | case .ping(_):
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:135:34: error: 'CXAnswerCallAction' is unavailable in macOS
133 | private var socket : Socket?
134 |
135 | private var answerCallAction:CXAnswerCallAction? = nil
| `- error: 'CXAnswerCallAction' is unavailable in macOS
136 | private var endCallAction:CXEndCallAction? = nil
137 | private var sessionId : String?
/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:136:31: error: 'CXEndCallAction' is unavailable in macOS
134 |
135 | private var answerCallAction:CXAnswerCallAction? = nil
136 | private var endCallAction:CXEndCallAction? = nil
| `- error: 'CXEndCallAction' is unavailable in macOS
137 | private var sessionId : String?
138 | internal var txConfig: TxConfig?
/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:219:50: error: 'AVAudioSession' is unavailable in macOS
217 | /// }
218 | /// ```
219 | public func enableAudioSession(audioSession: AVAudioSession) {
| `- error: 'AVAudioSession' is unavailable in macOS
220 | setupCorrectAudioConfiguration()
221 | setAudioSessionActive(true)
/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:238:51: error: 'AVAudioSession' is unavailable in macOS
236 | /// }
237 | /// ```
238 | public func disableAudioSession(audioSession: AVAudioSession) {
| `- error: 'AVAudioSession' is unavailable in macOS
239 | resetAudioConfiguration()
240 | setAudioSessionActive(false)
/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:245:24: error: 'AVAudioSession' is unavailable in macOS
243 | /// The current audio route configuration.
244 | /// This provides information about the active input and output ports.
245 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
| `- error: 'AVAudioSession' is unavailable in macOS
246 |
247 | /// Client must be registered in order to receive or place calls.
/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:245:39: error: 'sharedInstance()' is unavailable in macOS
243 | /// The current audio route configuration.
244 | /// This provides information about the active input and output ports.
245 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
| `- error: 'sharedInstance()' is unavailable in macOS
246 |
247 | /// Client must be registered in order to receive or place calls.
AVFAudio.AVAudioSession.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:245:56: error: 'currentRoute' is unavailable in macOS
243 | /// The current audio route configuration.
244 | /// This provides information about the active input and output ports.
245 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
| `- error: 'currentRoute' is unavailable in macOS
246 |
247 | /// Client must be registered in order to receive or place calls.
/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:594:48: error: 'CXAnswerCallAction' is unavailable in macOS
592 | /// - debug: (optional) Enable debug mode for call quality metrics and WebRTC statistics.
593 | /// When enabled, real-time call quality metrics will be available through the call's `onCallQualityChange` callback.
594 | public func answerFromCallkit(answerAction:CXAnswerCallAction,customHeaders:[String:String] = [:], debug:Bool = false) {
| `- error: 'CXAnswerCallAction' is unavailable in macOS
595 | self.answerCallAction = answerAction
596 | ///answer call if currentPushCall is not nil
/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:617:46: error: 'CXEndCallAction' is unavailable in macOS
615 |
616 | /// To end and control callKit active and conn
617 | public func endCallFromCallkit(endAction:CXEndCallAction,callId:UUID? = nil) {
| `- error: 'CXEndCallAction' is unavailable in macOS
618 | self.endCallAction = endAction
619 | // Place the code you want to delay here
/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:193:20: error: cannot find 'RTCAudioSession' in scope
191 | public var isAudioDeviceEnabled : Bool {
192 | get {
193 | return RTCAudioSession.sharedInstance().isAudioEnabled
| `- error: cannot find 'RTCAudioSession' in scope
194 | }
195 | set {
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:197:17: error: cannot find 'RTCAudioSession' in scope
195 | set {
196 | if newValue {
197 | RTCAudioSession.sharedInstance().audioSessionDidActivate(AVAudioSession.sharedInstance())
| `- error: cannot find 'RTCAudioSession' in scope
198 | } else {
199 | RTCAudioSession.sharedInstance().audioSessionDidDeactivate(AVAudioSession.sharedInstance())
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:199:17: error: cannot find 'RTCAudioSession' in scope
197 | RTCAudioSession.sharedInstance().audioSessionDidActivate(AVAudioSession.sharedInstance())
198 | } else {
199 | RTCAudioSession.sharedInstance().audioSessionDidDeactivate(AVAudioSession.sharedInstance())
| `- error: cannot find 'RTCAudioSession' in scope
200 | }
201 | RTCAudioSession.sharedInstance().isAudioEnabled = newValue
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:201:13: error: cannot find 'RTCAudioSession' in scope
199 | RTCAudioSession.sharedInstance().audioSessionDidDeactivate(AVAudioSession.sharedInstance())
200 | }
201 | RTCAudioSession.sharedInstance().isAudioEnabled = newValue
| `- error: cannot find 'RTCAudioSession' in scope
202 | }
203 | }
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:303:63: error: 'AVAudioSession' is unavailable in macOS
301 |
302 | // Remove audio route change observer
303 | NotificationCenter.default.removeObserver(self, name: AVAudioSession.routeChangeNotification, object: nil)
| `- error: 'AVAudioSession' is unavailable in macOS
304 |
305 | // Remove ACM reset observers
/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:303:78: error: 'routeChangeNotification' is unavailable in macOS
301 |
302 | // Remove audio route change observer
303 | NotificationCenter.default.removeObserver(self, name: AVAudioSession.routeChangeNotification, object: nil)
| `- error: 'routeChangeNotification' is unavailable in macOS
304 |
305 | // Remove ACM reset observers
/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:323:19: error: 'AVAudioSession' is unavailable in macOS
321 | self,
322 | selector: #selector(handleAudioRouteChange),
323 | name: AVAudioSession.routeChangeNotification,
| `- error: 'AVAudioSession' is unavailable in macOS
324 | object: nil)
325 |
/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:323:34: error: 'routeChangeNotification' is unavailable in macOS
321 | self,
322 | selector: #selector(handleAudioRouteChange),
323 | name: AVAudioSession.routeChangeNotification,
| `- error: 'routeChangeNotification' is unavailable in macOS
324 | object: nil)
325 |
/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:360:42: error: 'AVAudioSessionRouteChangeReasonKey' is unavailable in macOS
358 | @objc private func handleAudioRouteChange(notification: Notification) {
359 | guard let userInfo = notification.userInfo,
360 | let reasonValue = userInfo[AVAudioSessionRouteChangeReasonKey] as? UInt,
| `- error: 'AVAudioSessionRouteChangeReasonKey' is unavailable in macOS
361 | let reason = AVAudioSession.RouteChangeReason(rawValue: reasonValue) else {
362 | return
/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:361:28: error: 'AVAudioSession' is unavailable in macOS
359 | guard let userInfo = notification.userInfo,
360 | let reasonValue = userInfo[AVAudioSessionRouteChangeReasonKey] as? UInt,
361 | let reason = AVAudioSession.RouteChangeReason(rawValue: reasonValue) else {
| `- error: 'AVAudioSession' is unavailable in macOS
362 | return
363 | }
/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:365:23: error: 'AVAudioSession' is unavailable in macOS
363 | }
364 |
365 | let session = AVAudioSession.sharedInstance()
| `- error: 'AVAudioSession' is unavailable in macOS
366 | let currentRoute = session.currentRoute
367 |
/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:365:38: error: 'sharedInstance()' is unavailable in macOS
363 | }
364 |
365 | let session = AVAudioSession.sharedInstance()
| `- error: 'sharedInstance()' is unavailable in macOS
366 | let currentRoute = session.currentRoute
367 |
AVFAudio.AVAudioSession.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:366:36: error: 'currentRoute' is unavailable in macOS
364 |
365 | let session = AVAudioSession.sharedInstance()
366 | let currentRoute = session.currentRoute
| `- error: 'currentRoute' is unavailable in macOS
367 |
368 | // Ensure we have at least one output port
/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:369:41: error: 'outputs' is unavailable in macOS
367 |
368 | // Ensure we have at least one output port
369 | guard let output = currentRoute.outputs.first else {
| `- error: 'outputs' is unavailable in macOS
370 | return
371 | }
/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:373:85: error: 'portType' is unavailable in macOS
371 | }
372 |
373 | Logger.log.i(message: "[ACM_RESET] TxClient:: Audio route changed: \(output.portType), reason: \(reason), isACMResetInProgress: \(isACMResetInProgress)")
| `- error: 'portType' is unavailable in macOS
374 |
375 | // Ignore audio route changes during ACM reset to prevent state desynchronization
/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:384:40: error: 'portType' is unavailable in macOS
382 | case .categoryChange, .override, .routeConfigurationChange:
383 | // Update internal speaker state based on current output
384 | let isSpeaker = output.portType == .builtInSpeaker
| `- error: 'portType' is unavailable in macOS
385 | _isSpeakerEnabled = isSpeaker
386 |
/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:384:53: error: 'builtInSpeaker' is unavailable in macOS
382 | case .categoryChange, .override, .routeConfigurationChange:
383 | // Update internal speaker state based on current output
384 | let isSpeaker = output.portType == .builtInSpeaker
| `- error: 'builtInSpeaker' is unavailable in macOS
385 | _isSpeakerEnabled = isSpeaker
386 |
/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:393:50: error: 'portType' is unavailable in macOS
391 | userInfo: [
392 | "isSpeakerEnabled": isSpeaker,
393 | "outputPortType": output.portType
| `- error: 'portType' is unavailable in macOS
394 | ]
395 | )
/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:459:32: error: 'AVAudioSession' is unavailable in macOS
457 |
458 | // Verify if speaker is actually active
459 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
| `- error: 'AVAudioSession' is unavailable in macOS
460 | let isSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
461 |
/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:459:47: error: 'sharedInstance()' is unavailable in macOS
457 |
458 | // Verify if speaker is actually active
459 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
| `- error: 'sharedInstance()' is unavailable in macOS
460 | let isSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
461 |
AVFAudio.AVAudioSession.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:459:64: error: 'currentRoute' is unavailable in macOS
457 |
458 | // Verify if speaker is actually active
459 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
| `- error: 'currentRoute' is unavailable in macOS
460 | let isSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
461 |
/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:460:48: error: 'outputs' is unavailable in macOS
458 | // Verify if speaker is actually active
459 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
460 | let isSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
| `- error: 'outputs' is unavailable in macOS
461 |
462 | if isSpeakerActive {
/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:460:70: error: 'portType' is unavailable in macOS
458 | // Verify if speaker is actually active
459 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
460 | let isSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
| `- error: 'portType' is unavailable in macOS
461 |
462 | if isSpeakerActive {
/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:460:83: error: 'builtInSpeaker' is unavailable in macOS
458 | // Verify if speaker is actually active
459 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
460 | let isSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
| `- error: 'builtInSpeaker' is unavailable in macOS
461 |
462 | if isSpeakerActive {
/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:541:57: error: 'AVAudioSession' is unavailable in macOS
539 | // Remove audio route change observer
540 | NotificationCenter.default.removeObserver(self,
541 | name: AVAudioSession.routeChangeNotification,
| `- error: 'AVAudioSession' is unavailable in macOS
542 | object: nil)
543 | socket?.disconnect(reconnect: false)
/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:541:72: error: 'routeChangeNotification' is unavailable in macOS
539 | // Remove audio route change observer
540 | NotificationCenter.default.removeObserver(self,
541 | name: AVAudioSession.routeChangeNotification,
| `- error: 'routeChangeNotification' is unavailable in macOS
542 | object: nil)
543 | socket?.disconnect(reconnect: false)
/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:1165:32: error: 'AVAudioSession' is unavailable in macOS
1163 | Logger.log.i(message: "[ACM_RESET] TxClient:: setEarpiece() called")
1164 | do {
1165 | let audioSession = AVAudioSession.sharedInstance()
| `- error: 'AVAudioSession' is unavailable in macOS
1166 | try audioSession.overrideOutputAudioPort(.none)
1167 | _isSpeakerEnabled = false
/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:1165:47: error: 'sharedInstance()' is unavailable in macOS
1163 | Logger.log.i(message: "[ACM_RESET] TxClient:: setEarpiece() called")
1164 | do {
1165 | let audioSession = AVAudioSession.sharedInstance()
| `- error: 'sharedInstance()' is unavailable in macOS
1166 | try audioSession.overrideOutputAudioPort(.none)
1167 | _isSpeakerEnabled = false
AVFAudio.AVAudioSession.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:1166:30: error: 'overrideOutputAudioPort' is unavailable in macOS
1164 | do {
1165 | let audioSession = AVAudioSession.sharedInstance()
1166 | try audioSession.overrideOutputAudioPort(.none)
| `- error: 'overrideOutputAudioPort' is unavailable in macOS
1167 | _isSpeakerEnabled = false
1168 | Logger.log.i(message: "[ACM_RESET] TxClient:: Earpiece set successfully, _isSpeakerEnabled: \(_isSpeakerEnabled)")
AVFAudio.AVAudioSession.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:1178:32: error: 'AVAudioSession' is unavailable in macOS
1176 | Logger.log.i(message: "[ACM_RESET] TxClient:: setSpeaker() called")
1177 | do {
1178 | let audioSession = AVAudioSession.sharedInstance()
| `- error: 'AVAudioSession' is unavailable in macOS
1179 | try audioSession.overrideOutputAudioPort(.speaker)
1180 | _isSpeakerEnabled = true
/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:1178:47: error: 'sharedInstance()' is unavailable in macOS
1176 | Logger.log.i(message: "[ACM_RESET] TxClient:: setSpeaker() called")
1177 | do {
1178 | let audioSession = AVAudioSession.sharedInstance()
| `- error: 'sharedInstance()' is unavailable in macOS
1179 | try audioSession.overrideOutputAudioPort(.speaker)
1180 | _isSpeakerEnabled = true
AVFAudio.AVAudioSession.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:1179:30: error: 'overrideOutputAudioPort' is unavailable in macOS
1177 | do {
1178 | let audioSession = AVAudioSession.sharedInstance()
1179 | try audioSession.overrideOutputAudioPort(.speaker)
| `- error: 'overrideOutputAudioPort' is unavailable in macOS
1180 | _isSpeakerEnabled = true
1181 | Logger.log.i(message: "[ACM_RESET] TxClient:: Speaker set successfully, _isSpeakerEnabled: \(_isSpeakerEnabled)")
AVFAudio.AVAudioSession.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:1179:55: error: 'speaker' is unavailable in macOS
1177 | do {
1178 | let audioSession = AVAudioSession.sharedInstance()
1179 | try audioSession.overrideOutputAudioPort(.speaker)
| `- error: 'speaker' is unavailable in macOS
1180 | _isSpeakerEnabled = true
1181 | Logger.log.i(message: "[ACM_RESET] TxClient:: Speaker set successfully, _isSpeakerEnabled: \(_isSpeakerEnabled)")
AVFAudio.AVAudioSession.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:1644:28: error: 'AVAudioSession' is unavailable in macOS
1642 | extension TxClient {
1643 | internal func resetAudioConfiguration() {
1644 | let audioSession = AVAudioSession.sharedInstance()
| `- error: 'AVAudioSession' is unavailable in macOS
1645 | do {
1646 | try audioSession.setCategory(
/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:1644:43: error: 'sharedInstance()' is unavailable in macOS
1642 | extension TxClient {
1643 | internal func resetAudioConfiguration() {
1644 | let audioSession = AVAudioSession.sharedInstance()
| `- error: 'sharedInstance()' is unavailable in macOS
1645 | do {
1646 | try audioSession.setCategory(
AVFAudio.AVAudioSession.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:1646:30: error: 'setCategory(_:mode:options:)' is unavailable in macOS
1644 | let audioSession = AVAudioSession.sharedInstance()
1645 | do {
1646 | try audioSession.setCategory(
| `- error: 'setCategory(_:mode:options:)' is unavailable in macOS
1647 | .playback,
1648 | mode: .default,
AVFAudio.AVAudioSession.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:1647:18: error: 'playback' is unavailable in macOS
1645 | do {
1646 | try audioSession.setCategory(
1647 | .playback,
| `- error: 'playback' is unavailable in macOS
1648 | mode: .default,
1649 | options: [.mixWithOthers]
/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:1648:24: error: 'default' is unavailable in macOS
1646 | try audioSession.setCategory(
1647 | .playback,
1648 | mode: .default,
| `- error: 'default' is unavailable in macOS
1649 | options: [.mixWithOthers]
1650 | )
/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:1657:31: error: cannot find 'RTCAudioSession' in scope
1655 |
1656 | internal func setupCorrectAudioConfiguration() {
1657 | let rtcAudioSession = RTCAudioSession.sharedInstance()
| `- error: cannot find 'RTCAudioSession' in scope
1658 | rtcAudioSession.lockForConfiguration()
1659 |
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1660:29: error: cannot find 'RTCAudioSessionConfiguration' in scope
1658 | rtcAudioSession.lockForConfiguration()
1659 |
1660 | let configuration = RTCAudioSessionConfiguration.webRTC()
| `- error: cannot find 'RTCAudioSessionConfiguration' in scope
1661 | configuration.categoryOptions = [
1662 | .duckOthers,
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1662:14: error: reference to member 'duckOthers' cannot be resolved without a contextual type
1660 | let configuration = RTCAudioSessionConfiguration.webRTC()
1661 | configuration.categoryOptions = [
1662 | .duckOthers,
| `- error: reference to member 'duckOthers' cannot be resolved without a contextual type
1663 | .allowBluetooth,
1664 | ]
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1663:14: error: reference to member 'allowBluetooth' cannot be resolved without a contextual type
1661 | configuration.categoryOptions = [
1662 | .duckOthers,
1663 | .allowBluetooth,
| `- error: reference to member 'allowBluetooth' cannot be resolved without a contextual type
1664 | ]
1665 |
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1676:31: error: cannot find 'RTCAudioSession' in scope
1674 |
1675 | internal func setAudioSessionActive(_ active: Bool) {
1676 | let rtcAudioSession = RTCAudioSession.sharedInstance()
| `- error: cannot find 'RTCAudioSession' in scope
1677 |
1678 | rtcAudioSession.lockForConfiguration()
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/Utils/FileLoger.swift:96:19: warning: value 'logData' was defined but never used; consider replacing with boolean test
94 |
95 | let logFileURL = FileLogger.shared.logFileURL
96 | guard let logData = try? Data(contentsOf: logFileURL) else {
| `- warning: value 'logData' was defined but never used; consider replacing with boolean test
97 | Logger.log.e(message: "Failed to read log file")
98 | return
[64/90] Compiling TelnyxRTC Logger.swift
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/Services/Socket.swift:143:26: warning: immutable value 'data' was never used; consider replacing with '_' or removing it
141 | break;
142 |
143 | case .binary(let data):
| `- warning: immutable value 'data' was never used; consider replacing with '_' or removing it
144 | break
145 | case .ping(_):
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:135:34: error: 'CXAnswerCallAction' is unavailable in macOS
133 | private var socket : Socket?
134 |
135 | private var answerCallAction:CXAnswerCallAction? = nil
| `- error: 'CXAnswerCallAction' is unavailable in macOS
136 | private var endCallAction:CXEndCallAction? = nil
137 | private var sessionId : String?
/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:136:31: error: 'CXEndCallAction' is unavailable in macOS
134 |
135 | private var answerCallAction:CXAnswerCallAction? = nil
136 | private var endCallAction:CXEndCallAction? = nil
| `- error: 'CXEndCallAction' is unavailable in macOS
137 | private var sessionId : String?
138 | internal var txConfig: TxConfig?
/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:219:50: error: 'AVAudioSession' is unavailable in macOS
217 | /// }
218 | /// ```
219 | public func enableAudioSession(audioSession: AVAudioSession) {
| `- error: 'AVAudioSession' is unavailable in macOS
220 | setupCorrectAudioConfiguration()
221 | setAudioSessionActive(true)
/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:238:51: error: 'AVAudioSession' is unavailable in macOS
236 | /// }
237 | /// ```
238 | public func disableAudioSession(audioSession: AVAudioSession) {
| `- error: 'AVAudioSession' is unavailable in macOS
239 | resetAudioConfiguration()
240 | setAudioSessionActive(false)
/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:245:24: error: 'AVAudioSession' is unavailable in macOS
243 | /// The current audio route configuration.
244 | /// This provides information about the active input and output ports.
245 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
| `- error: 'AVAudioSession' is unavailable in macOS
246 |
247 | /// Client must be registered in order to receive or place calls.
/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:245:39: error: 'sharedInstance()' is unavailable in macOS
243 | /// The current audio route configuration.
244 | /// This provides information about the active input and output ports.
245 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
| `- error: 'sharedInstance()' is unavailable in macOS
246 |
247 | /// Client must be registered in order to receive or place calls.
AVFAudio.AVAudioSession.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:245:56: error: 'currentRoute' is unavailable in macOS
243 | /// The current audio route configuration.
244 | /// This provides information about the active input and output ports.
245 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
| `- error: 'currentRoute' is unavailable in macOS
246 |
247 | /// Client must be registered in order to receive or place calls.
/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:594:48: error: 'CXAnswerCallAction' is unavailable in macOS
592 | /// - debug: (optional) Enable debug mode for call quality metrics and WebRTC statistics.
593 | /// When enabled, real-time call quality metrics will be available through the call's `onCallQualityChange` callback.
594 | public func answerFromCallkit(answerAction:CXAnswerCallAction,customHeaders:[String:String] = [:], debug:Bool = false) {
| `- error: 'CXAnswerCallAction' is unavailable in macOS
595 | self.answerCallAction = answerAction
596 | ///answer call if currentPushCall is not nil
/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:617:46: error: 'CXEndCallAction' is unavailable in macOS
615 |
616 | /// To end and control callKit active and conn
617 | public func endCallFromCallkit(endAction:CXEndCallAction,callId:UUID? = nil) {
| `- error: 'CXEndCallAction' is unavailable in macOS
618 | self.endCallAction = endAction
619 | // Place the code you want to delay here
/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:193:20: error: cannot find 'RTCAudioSession' in scope
191 | public var isAudioDeviceEnabled : Bool {
192 | get {
193 | return RTCAudioSession.sharedInstance().isAudioEnabled
| `- error: cannot find 'RTCAudioSession' in scope
194 | }
195 | set {
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:197:17: error: cannot find 'RTCAudioSession' in scope
195 | set {
196 | if newValue {
197 | RTCAudioSession.sharedInstance().audioSessionDidActivate(AVAudioSession.sharedInstance())
| `- error: cannot find 'RTCAudioSession' in scope
198 | } else {
199 | RTCAudioSession.sharedInstance().audioSessionDidDeactivate(AVAudioSession.sharedInstance())
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:199:17: error: cannot find 'RTCAudioSession' in scope
197 | RTCAudioSession.sharedInstance().audioSessionDidActivate(AVAudioSession.sharedInstance())
198 | } else {
199 | RTCAudioSession.sharedInstance().audioSessionDidDeactivate(AVAudioSession.sharedInstance())
| `- error: cannot find 'RTCAudioSession' in scope
200 | }
201 | RTCAudioSession.sharedInstance().isAudioEnabled = newValue
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:201:13: error: cannot find 'RTCAudioSession' in scope
199 | RTCAudioSession.sharedInstance().audioSessionDidDeactivate(AVAudioSession.sharedInstance())
200 | }
201 | RTCAudioSession.sharedInstance().isAudioEnabled = newValue
| `- error: cannot find 'RTCAudioSession' in scope
202 | }
203 | }
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:303:63: error: 'AVAudioSession' is unavailable in macOS
301 |
302 | // Remove audio route change observer
303 | NotificationCenter.default.removeObserver(self, name: AVAudioSession.routeChangeNotification, object: nil)
| `- error: 'AVAudioSession' is unavailable in macOS
304 |
305 | // Remove ACM reset observers
/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:303:78: error: 'routeChangeNotification' is unavailable in macOS
301 |
302 | // Remove audio route change observer
303 | NotificationCenter.default.removeObserver(self, name: AVAudioSession.routeChangeNotification, object: nil)
| `- error: 'routeChangeNotification' is unavailable in macOS
304 |
305 | // Remove ACM reset observers
/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:323:19: error: 'AVAudioSession' is unavailable in macOS
321 | self,
322 | selector: #selector(handleAudioRouteChange),
323 | name: AVAudioSession.routeChangeNotification,
| `- error: 'AVAudioSession' is unavailable in macOS
324 | object: nil)
325 |
/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:323:34: error: 'routeChangeNotification' is unavailable in macOS
321 | self,
322 | selector: #selector(handleAudioRouteChange),
323 | name: AVAudioSession.routeChangeNotification,
| `- error: 'routeChangeNotification' is unavailable in macOS
324 | object: nil)
325 |
/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:360:42: error: 'AVAudioSessionRouteChangeReasonKey' is unavailable in macOS
358 | @objc private func handleAudioRouteChange(notification: Notification) {
359 | guard let userInfo = notification.userInfo,
360 | let reasonValue = userInfo[AVAudioSessionRouteChangeReasonKey] as? UInt,
| `- error: 'AVAudioSessionRouteChangeReasonKey' is unavailable in macOS
361 | let reason = AVAudioSession.RouteChangeReason(rawValue: reasonValue) else {
362 | return
/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:361:28: error: 'AVAudioSession' is unavailable in macOS
359 | guard let userInfo = notification.userInfo,
360 | let reasonValue = userInfo[AVAudioSessionRouteChangeReasonKey] as? UInt,
361 | let reason = AVAudioSession.RouteChangeReason(rawValue: reasonValue) else {
| `- error: 'AVAudioSession' is unavailable in macOS
362 | return
363 | }
/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:365:23: error: 'AVAudioSession' is unavailable in macOS
363 | }
364 |
365 | let session = AVAudioSession.sharedInstance()
| `- error: 'AVAudioSession' is unavailable in macOS
366 | let currentRoute = session.currentRoute
367 |
/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:365:38: error: 'sharedInstance()' is unavailable in macOS
363 | }
364 |
365 | let session = AVAudioSession.sharedInstance()
| `- error: 'sharedInstance()' is unavailable in macOS
366 | let currentRoute = session.currentRoute
367 |
AVFAudio.AVAudioSession.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:366:36: error: 'currentRoute' is unavailable in macOS
364 |
365 | let session = AVAudioSession.sharedInstance()
366 | let currentRoute = session.currentRoute
| `- error: 'currentRoute' is unavailable in macOS
367 |
368 | // Ensure we have at least one output port
/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:369:41: error: 'outputs' is unavailable in macOS
367 |
368 | // Ensure we have at least one output port
369 | guard let output = currentRoute.outputs.first else {
| `- error: 'outputs' is unavailable in macOS
370 | return
371 | }
/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:373:85: error: 'portType' is unavailable in macOS
371 | }
372 |
373 | Logger.log.i(message: "[ACM_RESET] TxClient:: Audio route changed: \(output.portType), reason: \(reason), isACMResetInProgress: \(isACMResetInProgress)")
| `- error: 'portType' is unavailable in macOS
374 |
375 | // Ignore audio route changes during ACM reset to prevent state desynchronization
/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:384:40: error: 'portType' is unavailable in macOS
382 | case .categoryChange, .override, .routeConfigurationChange:
383 | // Update internal speaker state based on current output
384 | let isSpeaker = output.portType == .builtInSpeaker
| `- error: 'portType' is unavailable in macOS
385 | _isSpeakerEnabled = isSpeaker
386 |
/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:384:53: error: 'builtInSpeaker' is unavailable in macOS
382 | case .categoryChange, .override, .routeConfigurationChange:
383 | // Update internal speaker state based on current output
384 | let isSpeaker = output.portType == .builtInSpeaker
| `- error: 'builtInSpeaker' is unavailable in macOS
385 | _isSpeakerEnabled = isSpeaker
386 |
/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:393:50: error: 'portType' is unavailable in macOS
391 | userInfo: [
392 | "isSpeakerEnabled": isSpeaker,
393 | "outputPortType": output.portType
| `- error: 'portType' is unavailable in macOS
394 | ]
395 | )
/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:459:32: error: 'AVAudioSession' is unavailable in macOS
457 |
458 | // Verify if speaker is actually active
459 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
| `- error: 'AVAudioSession' is unavailable in macOS
460 | let isSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
461 |
/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:459:47: error: 'sharedInstance()' is unavailable in macOS
457 |
458 | // Verify if speaker is actually active
459 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
| `- error: 'sharedInstance()' is unavailable in macOS
460 | let isSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
461 |
AVFAudio.AVAudioSession.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:459:64: error: 'currentRoute' is unavailable in macOS
457 |
458 | // Verify if speaker is actually active
459 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
| `- error: 'currentRoute' is unavailable in macOS
460 | let isSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
461 |
/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:460:48: error: 'outputs' is unavailable in macOS
458 | // Verify if speaker is actually active
459 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
460 | let isSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
| `- error: 'outputs' is unavailable in macOS
461 |
462 | if isSpeakerActive {
/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:460:70: error: 'portType' is unavailable in macOS
458 | // Verify if speaker is actually active
459 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
460 | let isSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
| `- error: 'portType' is unavailable in macOS
461 |
462 | if isSpeakerActive {
/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:460:83: error: 'builtInSpeaker' is unavailable in macOS
458 | // Verify if speaker is actually active
459 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
460 | let isSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
| `- error: 'builtInSpeaker' is unavailable in macOS
461 |
462 | if isSpeakerActive {
/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:541:57: error: 'AVAudioSession' is unavailable in macOS
539 | // Remove audio route change observer
540 | NotificationCenter.default.removeObserver(self,
541 | name: AVAudioSession.routeChangeNotification,
| `- error: 'AVAudioSession' is unavailable in macOS
542 | object: nil)
543 | socket?.disconnect(reconnect: false)
/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:541:72: error: 'routeChangeNotification' is unavailable in macOS
539 | // Remove audio route change observer
540 | NotificationCenter.default.removeObserver(self,
541 | name: AVAudioSession.routeChangeNotification,
| `- error: 'routeChangeNotification' is unavailable in macOS
542 | object: nil)
543 | socket?.disconnect(reconnect: false)
/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:1165:32: error: 'AVAudioSession' is unavailable in macOS
1163 | Logger.log.i(message: "[ACM_RESET] TxClient:: setEarpiece() called")
1164 | do {
1165 | let audioSession = AVAudioSession.sharedInstance()
| `- error: 'AVAudioSession' is unavailable in macOS
1166 | try audioSession.overrideOutputAudioPort(.none)
1167 | _isSpeakerEnabled = false
/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:1165:47: error: 'sharedInstance()' is unavailable in macOS
1163 | Logger.log.i(message: "[ACM_RESET] TxClient:: setEarpiece() called")
1164 | do {
1165 | let audioSession = AVAudioSession.sharedInstance()
| `- error: 'sharedInstance()' is unavailable in macOS
1166 | try audioSession.overrideOutputAudioPort(.none)
1167 | _isSpeakerEnabled = false
AVFAudio.AVAudioSession.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:1166:30: error: 'overrideOutputAudioPort' is unavailable in macOS
1164 | do {
1165 | let audioSession = AVAudioSession.sharedInstance()
1166 | try audioSession.overrideOutputAudioPort(.none)
| `- error: 'overrideOutputAudioPort' is unavailable in macOS
1167 | _isSpeakerEnabled = false
1168 | Logger.log.i(message: "[ACM_RESET] TxClient:: Earpiece set successfully, _isSpeakerEnabled: \(_isSpeakerEnabled)")
AVFAudio.AVAudioSession.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:1178:32: error: 'AVAudioSession' is unavailable in macOS
1176 | Logger.log.i(message: "[ACM_RESET] TxClient:: setSpeaker() called")
1177 | do {
1178 | let audioSession = AVAudioSession.sharedInstance()
| `- error: 'AVAudioSession' is unavailable in macOS
1179 | try audioSession.overrideOutputAudioPort(.speaker)
1180 | _isSpeakerEnabled = true
/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:1178:47: error: 'sharedInstance()' is unavailable in macOS
1176 | Logger.log.i(message: "[ACM_RESET] TxClient:: setSpeaker() called")
1177 | do {
1178 | let audioSession = AVAudioSession.sharedInstance()
| `- error: 'sharedInstance()' is unavailable in macOS
1179 | try audioSession.overrideOutputAudioPort(.speaker)
1180 | _isSpeakerEnabled = true
AVFAudio.AVAudioSession.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:1179:30: error: 'overrideOutputAudioPort' is unavailable in macOS
1177 | do {
1178 | let audioSession = AVAudioSession.sharedInstance()
1179 | try audioSession.overrideOutputAudioPort(.speaker)
| `- error: 'overrideOutputAudioPort' is unavailable in macOS
1180 | _isSpeakerEnabled = true
1181 | Logger.log.i(message: "[ACM_RESET] TxClient:: Speaker set successfully, _isSpeakerEnabled: \(_isSpeakerEnabled)")
AVFAudio.AVAudioSession.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:1179:55: error: 'speaker' is unavailable in macOS
1177 | do {
1178 | let audioSession = AVAudioSession.sharedInstance()
1179 | try audioSession.overrideOutputAudioPort(.speaker)
| `- error: 'speaker' is unavailable in macOS
1180 | _isSpeakerEnabled = true
1181 | Logger.log.i(message: "[ACM_RESET] TxClient:: Speaker set successfully, _isSpeakerEnabled: \(_isSpeakerEnabled)")
AVFAudio.AVAudioSession.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:1644:28: error: 'AVAudioSession' is unavailable in macOS
1642 | extension TxClient {
1643 | internal func resetAudioConfiguration() {
1644 | let audioSession = AVAudioSession.sharedInstance()
| `- error: 'AVAudioSession' is unavailable in macOS
1645 | do {
1646 | try audioSession.setCategory(
/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:1644:43: error: 'sharedInstance()' is unavailable in macOS
1642 | extension TxClient {
1643 | internal func resetAudioConfiguration() {
1644 | let audioSession = AVAudioSession.sharedInstance()
| `- error: 'sharedInstance()' is unavailable in macOS
1645 | do {
1646 | try audioSession.setCategory(
AVFAudio.AVAudioSession.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:1646:30: error: 'setCategory(_:mode:options:)' is unavailable in macOS
1644 | let audioSession = AVAudioSession.sharedInstance()
1645 | do {
1646 | try audioSession.setCategory(
| `- error: 'setCategory(_:mode:options:)' is unavailable in macOS
1647 | .playback,
1648 | mode: .default,
AVFAudio.AVAudioSession.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:1647:18: error: 'playback' is unavailable in macOS
1645 | do {
1646 | try audioSession.setCategory(
1647 | .playback,
| `- error: 'playback' is unavailable in macOS
1648 | mode: .default,
1649 | options: [.mixWithOthers]
/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:1648:24: error: 'default' is unavailable in macOS
1646 | try audioSession.setCategory(
1647 | .playback,
1648 | mode: .default,
| `- error: 'default' is unavailable in macOS
1649 | options: [.mixWithOthers]
1650 | )
/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:1657:31: error: cannot find 'RTCAudioSession' in scope
1655 |
1656 | internal func setupCorrectAudioConfiguration() {
1657 | let rtcAudioSession = RTCAudioSession.sharedInstance()
| `- error: cannot find 'RTCAudioSession' in scope
1658 | rtcAudioSession.lockForConfiguration()
1659 |
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1660:29: error: cannot find 'RTCAudioSessionConfiguration' in scope
1658 | rtcAudioSession.lockForConfiguration()
1659 |
1660 | let configuration = RTCAudioSessionConfiguration.webRTC()
| `- error: cannot find 'RTCAudioSessionConfiguration' in scope
1661 | configuration.categoryOptions = [
1662 | .duckOthers,
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1662:14: error: reference to member 'duckOthers' cannot be resolved without a contextual type
1660 | let configuration = RTCAudioSessionConfiguration.webRTC()
1661 | configuration.categoryOptions = [
1662 | .duckOthers,
| `- error: reference to member 'duckOthers' cannot be resolved without a contextual type
1663 | .allowBluetooth,
1664 | ]
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1663:14: error: reference to member 'allowBluetooth' cannot be resolved without a contextual type
1661 | configuration.categoryOptions = [
1662 | .duckOthers,
1663 | .allowBluetooth,
| `- error: reference to member 'allowBluetooth' cannot be resolved without a contextual type
1664 | ]
1665 |
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:1676:31: error: cannot find 'RTCAudioSession' in scope
1674 |
1675 | internal func setAudioSessionActive(_ active: Bool) {
1676 | let rtcAudioSession = RTCAudioSession.sharedInstance()
| `- error: cannot find 'RTCAudioSession' in scope
1677 |
1678 | rtcAudioSession.lockForConfiguration()
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/Utils/FileLoger.swift:96:19: warning: value 'logData' was defined but never used; consider replacing with boolean test
94 |
95 | let logFileURL = FileLogger.shared.logFileURL
96 | guard let logData = try? Data(contentsOf: logFileURL) else {
| `- warning: value 'logData' was defined but never used; consider replacing with boolean test
97 | Logger.log.e(message: "Failed to read log file")
98 | return
[65/90] Compiling TelnyxRTC MOSCalculator.swift
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/Utils/NetworkMonitor.swift:8:27: error: 'NWPathMonitor' is only available in macOS 10.14 or newer
3 | import SystemConfiguration
4 |
5 | class NetworkMonitor {
| `- note: add @available attribute to enclosing class
6 | static let shared = NetworkMonitor() // Singleton instance
7 |
8 | private let monitor = NWPathMonitor()
| `- error: 'NWPathMonitor' is only available in macOS 10.14 or newer
9 | private let queue = DispatchQueue(label: "NetworkMonitorQueue")
10 |
[66/90] Compiling TelnyxRTC NetworkMonitor.swift
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/Utils/NetworkMonitor.swift:8:27: error: 'NWPathMonitor' is only available in macOS 10.14 or newer
3 | import SystemConfiguration
4 |
5 | class NetworkMonitor {
| `- note: add @available attribute to enclosing class
6 | static let shared = NetworkMonitor() // Singleton instance
7 |
8 | private let monitor = NWPathMonitor()
| `- error: 'NWPathMonitor' is only available in macOS 10.14 or newer
9 | private let queue = DispatchQueue(label: "NetworkMonitorQueue")
10 |
[67/90] Compiling TelnyxRTC TxLogger.swift
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/Utils/NetworkMonitor.swift:8:27: error: 'NWPathMonitor' is only available in macOS 10.14 or newer
3 | import SystemConfiguration
4 |
5 | class NetworkMonitor {
| `- note: add @available attribute to enclosing class
6 | static let shared = NetworkMonitor() // Singleton instance
7 |
8 | private let monitor = NWPathMonitor()
| `- error: 'NWPathMonitor' is only available in macOS 10.14 or newer
9 | private let queue = DispatchQueue(label: "NetworkMonitorQueue")
10 |
[68/90] Compiling TelnyxRTC AIConversationMessage.swift
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/Utils/NetworkMonitor.swift:8:27: error: 'NWPathMonitor' is only available in macOS 10.14 or newer
3 | import SystemConfiguration
4 |
5 | class NetworkMonitor {
| `- note: add @available attribute to enclosing class
6 | static let shared = NetworkMonitor() // Singleton instance
7 |
8 | private let monitor = NWPathMonitor()
| `- error: 'NWPathMonitor' is only available in macOS 10.14 or newer
9 | private let queue = DispatchQueue(label: "NetworkMonitorQueue")
10 |
[69/90] Compiling TelnyxRTC AnonymousLoginMessage.swift
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/Utils/NetworkMonitor.swift:8:27: error: 'NWPathMonitor' is only available in macOS 10.14 or newer
3 | import SystemConfiguration
4 |
5 | class NetworkMonitor {
| `- note: add @available attribute to enclosing class
6 | static let shared = NetworkMonitor() // Singleton instance
7 |
8 | private let monitor = NWPathMonitor()
| `- error: 'NWPathMonitor' is only available in macOS 10.14 or newer
9 | private let queue = DispatchQueue(label: "NetworkMonitorQueue")
10 |
[70/90] Compiling TelnyxRTC AnswerMessage.swift
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/Utils/NetworkMonitor.swift:8:27: error: 'NWPathMonitor' is only available in macOS 10.14 or newer
3 | import SystemConfiguration
4 |
5 | class NetworkMonitor {
| `- note: add @available attribute to enclosing class
6 | static let shared = NetworkMonitor() // Singleton instance
7 |
8 | private let monitor = NWPathMonitor()
| `- error: 'NWPathMonitor' is only available in macOS 10.14 or newer
9 | private let queue = DispatchQueue(label: "NetworkMonitorQueue")
10 |
[71/90] Compiling TelnyxRTC AttachCallMessage.swift
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/Utils/NetworkMonitor.swift:8:27: error: 'NWPathMonitor' is only available in macOS 10.14 or newer
3 | import SystemConfiguration
4 |
5 | class NetworkMonitor {
| `- note: add @available attribute to enclosing class
6 | static let shared = NetworkMonitor() // Singleton instance
7 |
8 | private let monitor = NWPathMonitor()
| `- error: 'NWPathMonitor' is only available in macOS 10.14 or newer
9 | private let queue = DispatchQueue(label: "NetworkMonitorQueue")
10 |
[72/90] Compiling TelnyxRTC RTCMediaStreamTrack+Extension.swift
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/WebRTC/Peer.swift:56:36: error: cannot find 'RTCAudioSession' in scope
54 | //Audio
55 | private var localAudioTrack: RTCAudioTrack?
56 | private let rtcAudioSession = RTCAudioSession.sharedInstance()
| `- error: cannot find 'RTCAudioSession' in scope
57 |
58 | //Video
[73/90] Compiling TelnyxRTC RTCRtcpMuxPolicy+Extension.swift
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/WebRTC/Peer.swift:56:36: error: cannot find 'RTCAudioSession' in scope
54 | //Audio
55 | private var localAudioTrack: RTCAudioTrack?
56 | private let rtcAudioSession = RTCAudioSession.sharedInstance()
| `- error: cannot find 'RTCAudioSession' in scope
57 |
58 | //Video
[74/90] Compiling TelnyxRTC RTCSdpSemantics+Extension.swift
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/WebRTC/Peer.swift:56:36: error: cannot find 'RTCAudioSession' in scope
54 | //Audio
55 | private var localAudioTrack: RTCAudioTrack?
56 | private let rtcAudioSession = RTCAudioSession.sharedInstance()
| `- error: cannot find 'RTCAudioSession' in scope
57 |
58 | //Video
[75/90] Compiling TelnyxRTC RTCSignalingState+Extension.swift
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/WebRTC/Peer.swift:56:36: error: cannot find 'RTCAudioSession' in scope
54 | //Audio
55 | private var localAudioTrack: RTCAudioTrack?
56 | private let rtcAudioSession = RTCAudioSession.sharedInstance()
| `- error: cannot find 'RTCAudioSession' in scope
57 |
58 | //Video
[76/90] Compiling TelnyxRTC RTClsCertPolicy+Extension.swift
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/WebRTC/Peer.swift:56:36: error: cannot find 'RTCAudioSession' in scope
54 | //Audio
55 | private var localAudioTrack: RTCAudioTrack?
56 | private let rtcAudioSession = RTCAudioSession.sharedInstance()
| `- error: cannot find 'RTCAudioSession' in scope
57 |
58 | //Video
[77/90] Compiling TelnyxRTC Peer+IceRestart.swift
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/WebRTC/Peer.swift:56:36: error: cannot find 'RTCAudioSession' in scope
54 | //Audio
55 | private var localAudioTrack: RTCAudioTrack?
56 | private let rtcAudioSession = RTCAudioSession.sharedInstance()
| `- error: cannot find 'RTCAudioSession' in scope
57 |
58 | //Video
[78/90] Compiling TelnyxRTC Peer.swift
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/WebRTC/Peer.swift:56:36: error: cannot find 'RTCAudioSession' in scope
54 | //Audio
55 | private var localAudioTrack: RTCAudioTrack?
56 | private let rtcAudioSession = RTCAudioSession.sharedInstance()
| `- error: cannot find 'RTCAudioSession' in scope
57 |
58 | //Video
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/WebRTC/Peer.swift:292:26: warning: 'setCodecPreferences' is deprecated: Use setCodecPreferences:error: instead.
290 |
291 | // Apply the ordered codec preferences
292 | audioTransceiver.setCodecPreferences(orderedCodecs)
| `- warning: 'setCodecPreferences' is deprecated: Use setCodecPreferences:error: instead.
293 | Logger.log.i(message: "Peer:: Applied codec preferences to audio transceiver: \(preferredCodecs.map { $0.mimeType }.joined(separator: ", "))")
294 | }
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/WebRTC/Peer.swift:535:36: error: 'AVAudioSession' is unavailable in macOS
533 | } else {
534 | // Detect current speaker state
535 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
| `- error: 'AVAudioSession' is unavailable in macOS
536 | wasSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
537 | 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:535:51: error: 'sharedInstance()' is unavailable in macOS
533 | } else {
534 | // Detect current speaker state
535 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
| `- error: 'sharedInstance()' is unavailable in macOS
536 | wasSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
537 | 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:535:68: error: 'currentRoute' is unavailable in macOS
533 | } else {
534 | // Detect current speaker state
535 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
| `- error: 'currentRoute' is unavailable in macOS
536 | wasSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
537 | 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:536:49: error: 'outputs' is unavailable in macOS
534 | // Detect current speaker state
535 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
536 | wasSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
| `- error: 'outputs' is unavailable in macOS
537 | Logger.log.i(message: "[ACM_RESET] Peer:: Detected current speaker state: \(wasSpeakerActive)")
538 | }
/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:536:71: error: 'portType' is unavailable in macOS
534 | // Detect current speaker state
535 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
536 | wasSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
| `- error: 'portType' is unavailable in macOS
537 | Logger.log.i(message: "[ACM_RESET] Peer:: Detected current speaker state: \(wasSpeakerActive)")
538 | }
/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:536:84: error: 'builtInSpeaker' is unavailable in macOS
534 | // Detect current speaker state
535 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
536 | wasSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
| `- error: 'builtInSpeaker' is unavailable in macOS
537 | Logger.log.i(message: "[ACM_RESET] Peer:: Detected current speaker state: \(wasSpeakerActive)")
538 | }
/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:618:35: error: cannot find 'RTCAudioSession' in scope
616 |
617 | // Use RTCAudioSession for WebRTC-specific audio configuration
618 | let rtcAudioSession = RTCAudioSession.sharedInstance()
| `- error: cannot find 'RTCAudioSession' in scope
619 |
620 | rtcAudioSession.lockForConfiguration()
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/WebRTC/Peer.swift:645:37: error: cannot find 'RTCAudioSessionConfiguration' in scope
643 |
644 | // Configure WebRTC audio session
645 | let configuration = RTCAudioSessionConfiguration.webRTC()
| `- error: cannot find 'RTCAudioSessionConfiguration' in scope
646 |
647 | // Build category options - include .defaultToSpeaker if speaker should be active
[79/90] Compiling TelnyxRTC WebRTCEventHandler.swift
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/WebRTC/Peer.swift:56:36: error: cannot find 'RTCAudioSession' in scope
54 | //Audio
55 | private var localAudioTrack: RTCAudioTrack?
56 | private let rtcAudioSession = RTCAudioSession.sharedInstance()
| `- error: cannot find 'RTCAudioSession' in scope
57 |
58 | //Video
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/WebRTC/Peer.swift:292:26: warning: 'setCodecPreferences' is deprecated: Use setCodecPreferences:error: instead.
290 |
291 | // Apply the ordered codec preferences
292 | audioTransceiver.setCodecPreferences(orderedCodecs)
| `- warning: 'setCodecPreferences' is deprecated: Use setCodecPreferences:error: instead.
293 | Logger.log.i(message: "Peer:: Applied codec preferences to audio transceiver: \(preferredCodecs.map { $0.mimeType }.joined(separator: ", "))")
294 | }
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/WebRTC/Peer.swift:535:36: error: 'AVAudioSession' is unavailable in macOS
533 | } else {
534 | // Detect current speaker state
535 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
| `- error: 'AVAudioSession' is unavailable in macOS
536 | wasSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
537 | 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:535:51: error: 'sharedInstance()' is unavailable in macOS
533 | } else {
534 | // Detect current speaker state
535 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
| `- error: 'sharedInstance()' is unavailable in macOS
536 | wasSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
537 | 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:535:68: error: 'currentRoute' is unavailable in macOS
533 | } else {
534 | // Detect current speaker state
535 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
| `- error: 'currentRoute' is unavailable in macOS
536 | wasSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
537 | 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:536:49: error: 'outputs' is unavailable in macOS
534 | // Detect current speaker state
535 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
536 | wasSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
| `- error: 'outputs' is unavailable in macOS
537 | Logger.log.i(message: "[ACM_RESET] Peer:: Detected current speaker state: \(wasSpeakerActive)")
538 | }
/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:536:71: error: 'portType' is unavailable in macOS
534 | // Detect current speaker state
535 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
536 | wasSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
| `- error: 'portType' is unavailable in macOS
537 | Logger.log.i(message: "[ACM_RESET] Peer:: Detected current speaker state: \(wasSpeakerActive)")
538 | }
/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:536:84: error: 'builtInSpeaker' is unavailable in macOS
534 | // Detect current speaker state
535 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
536 | wasSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
| `- error: 'builtInSpeaker' is unavailable in macOS
537 | Logger.log.i(message: "[ACM_RESET] Peer:: Detected current speaker state: \(wasSpeakerActive)")
538 | }
/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:618:35: error: cannot find 'RTCAudioSession' in scope
616 |
617 | // Use RTCAudioSession for WebRTC-specific audio configuration
618 | let rtcAudioSession = RTCAudioSession.sharedInstance()
| `- error: cannot find 'RTCAudioSession' in scope
619 |
620 | rtcAudioSession.lockForConfiguration()
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/WebRTC/Peer.swift:645:37: error: cannot find 'RTCAudioSessionConfiguration' in scope
643 |
644 | // Configure WebRTC audio session
645 | let configuration = RTCAudioSessionConfiguration.webRTC()
| `- error: cannot find 'RTCAudioSessionConfiguration' in scope
646 |
647 | // Build category options - include .defaultToSpeaker if speaker should be active
[80/90] Compiling TelnyxRTC WebRTCStatsEvent.swift
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/WebRTC/Peer.swift:56:36: error: cannot find 'RTCAudioSession' in scope
54 | //Audio
55 | private var localAudioTrack: RTCAudioTrack?
56 | private let rtcAudioSession = RTCAudioSession.sharedInstance()
| `- error: cannot find 'RTCAudioSession' in scope
57 |
58 | //Video
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/WebRTC/Peer.swift:292:26: warning: 'setCodecPreferences' is deprecated: Use setCodecPreferences:error: instead.
290 |
291 | // Apply the ordered codec preferences
292 | audioTransceiver.setCodecPreferences(orderedCodecs)
| `- warning: 'setCodecPreferences' is deprecated: Use setCodecPreferences:error: instead.
293 | Logger.log.i(message: "Peer:: Applied codec preferences to audio transceiver: \(preferredCodecs.map { $0.mimeType }.joined(separator: ", "))")
294 | }
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/WebRTC/Peer.swift:535:36: error: 'AVAudioSession' is unavailable in macOS
533 | } else {
534 | // Detect current speaker state
535 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
| `- error: 'AVAudioSession' is unavailable in macOS
536 | wasSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
537 | 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:535:51: error: 'sharedInstance()' is unavailable in macOS
533 | } else {
534 | // Detect current speaker state
535 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
| `- error: 'sharedInstance()' is unavailable in macOS
536 | wasSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
537 | 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:535:68: error: 'currentRoute' is unavailable in macOS
533 | } else {
534 | // Detect current speaker state
535 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
| `- error: 'currentRoute' is unavailable in macOS
536 | wasSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
537 | 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:536:49: error: 'outputs' is unavailable in macOS
534 | // Detect current speaker state
535 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
536 | wasSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
| `- error: 'outputs' is unavailable in macOS
537 | Logger.log.i(message: "[ACM_RESET] Peer:: Detected current speaker state: \(wasSpeakerActive)")
538 | }
/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:536:71: error: 'portType' is unavailable in macOS
534 | // Detect current speaker state
535 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
536 | wasSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
| `- error: 'portType' is unavailable in macOS
537 | Logger.log.i(message: "[ACM_RESET] Peer:: Detected current speaker state: \(wasSpeakerActive)")
538 | }
/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:536:84: error: 'builtInSpeaker' is unavailable in macOS
534 | // Detect current speaker state
535 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
536 | wasSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
| `- error: 'builtInSpeaker' is unavailable in macOS
537 | Logger.log.i(message: "[ACM_RESET] Peer:: Detected current speaker state: \(wasSpeakerActive)")
538 | }
/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:618:35: error: cannot find 'RTCAudioSession' in scope
616 |
617 | // Use RTCAudioSession for WebRTC-specific audio configuration
618 | let rtcAudioSession = RTCAudioSession.sharedInstance()
| `- error: cannot find 'RTCAudioSession' in scope
619 |
620 | rtcAudioSession.lockForConfiguration()
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/WebRTC/Peer.swift:645:37: error: cannot find 'RTCAudioSessionConfiguration' in scope
643 |
644 | // Configure WebRTC audio session
645 | let configuration = RTCAudioSessionConfiguration.webRTC()
| `- error: cannot find 'RTCAudioSessionConfiguration' in scope
646 |
647 | // Build category options - include .defaultToSpeaker if speaker should be active
[81/90] Compiling TelnyxRTC WebRTCStatsReporter.swift
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/WebRTC/Peer.swift:56:36: error: cannot find 'RTCAudioSession' in scope
54 | //Audio
55 | private var localAudioTrack: RTCAudioTrack?
56 | private let rtcAudioSession = RTCAudioSession.sharedInstance()
| `- error: cannot find 'RTCAudioSession' in scope
57 |
58 | //Video
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/WebRTC/Peer.swift:292:26: warning: 'setCodecPreferences' is deprecated: Use setCodecPreferences:error: instead.
290 |
291 | // Apply the ordered codec preferences
292 | audioTransceiver.setCodecPreferences(orderedCodecs)
| `- warning: 'setCodecPreferences' is deprecated: Use setCodecPreferences:error: instead.
293 | Logger.log.i(message: "Peer:: Applied codec preferences to audio transceiver: \(preferredCodecs.map { $0.mimeType }.joined(separator: ", "))")
294 | }
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/WebRTC/Peer.swift:535:36: error: 'AVAudioSession' is unavailable in macOS
533 | } else {
534 | // Detect current speaker state
535 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
| `- error: 'AVAudioSession' is unavailable in macOS
536 | wasSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
537 | 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:535:51: error: 'sharedInstance()' is unavailable in macOS
533 | } else {
534 | // Detect current speaker state
535 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
| `- error: 'sharedInstance()' is unavailable in macOS
536 | wasSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
537 | 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:535:68: error: 'currentRoute' is unavailable in macOS
533 | } else {
534 | // Detect current speaker state
535 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
| `- error: 'currentRoute' is unavailable in macOS
536 | wasSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
537 | 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:536:49: error: 'outputs' is unavailable in macOS
534 | // Detect current speaker state
535 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
536 | wasSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
| `- error: 'outputs' is unavailable in macOS
537 | Logger.log.i(message: "[ACM_RESET] Peer:: Detected current speaker state: \(wasSpeakerActive)")
538 | }
/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:536:71: error: 'portType' is unavailable in macOS
534 | // Detect current speaker state
535 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
536 | wasSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
| `- error: 'portType' is unavailable in macOS
537 | Logger.log.i(message: "[ACM_RESET] Peer:: Detected current speaker state: \(wasSpeakerActive)")
538 | }
/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:536:84: error: 'builtInSpeaker' is unavailable in macOS
534 | // Detect current speaker state
535 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
536 | wasSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
| `- error: 'builtInSpeaker' is unavailable in macOS
537 | Logger.log.i(message: "[ACM_RESET] Peer:: Detected current speaker state: \(wasSpeakerActive)")
538 | }
/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:618:35: error: cannot find 'RTCAudioSession' in scope
616 |
617 | // Use RTCAudioSession for WebRTC-specific audio configuration
618 | let rtcAudioSession = RTCAudioSession.sharedInstance()
| `- error: cannot find 'RTCAudioSession' in scope
619 |
620 | rtcAudioSession.lockForConfiguration()
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/WebRTC/Peer.swift:645:37: error: cannot find 'RTCAudioSessionConfiguration' in scope
643 |
644 | // Configure WebRTC audio session
645 | let configuration = RTCAudioSessionConfiguration.webRTC()
| `- error: cannot find 'RTCAudioSessionConfiguration' in scope
646 |
647 | // Build category options - include .defaultToSpeaker if speaker should be active
[82/90] Compiling TelnyxRTC WebRTCStatsTag.swift
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/WebRTC/Peer.swift:56:36: error: cannot find 'RTCAudioSession' in scope
54 | //Audio
55 | private var localAudioTrack: RTCAudioTrack?
56 | private let rtcAudioSession = RTCAudioSession.sharedInstance()
| `- error: cannot find 'RTCAudioSession' in scope
57 |
58 | //Video
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/WebRTC/Peer.swift:292:26: warning: 'setCodecPreferences' is deprecated: Use setCodecPreferences:error: instead.
290 |
291 | // Apply the ordered codec preferences
292 | audioTransceiver.setCodecPreferences(orderedCodecs)
| `- warning: 'setCodecPreferences' is deprecated: Use setCodecPreferences:error: instead.
293 | Logger.log.i(message: "Peer:: Applied codec preferences to audio transceiver: \(preferredCodecs.map { $0.mimeType }.joined(separator: ", "))")
294 | }
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/WebRTC/Peer.swift:535:36: error: 'AVAudioSession' is unavailable in macOS
533 | } else {
534 | // Detect current speaker state
535 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
| `- error: 'AVAudioSession' is unavailable in macOS
536 | wasSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
537 | 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:535:51: error: 'sharedInstance()' is unavailable in macOS
533 | } else {
534 | // Detect current speaker state
535 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
| `- error: 'sharedInstance()' is unavailable in macOS
536 | wasSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
537 | 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:535:68: error: 'currentRoute' is unavailable in macOS
533 | } else {
534 | // Detect current speaker state
535 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
| `- error: 'currentRoute' is unavailable in macOS
536 | wasSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
537 | 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:536:49: error: 'outputs' is unavailable in macOS
534 | // Detect current speaker state
535 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
536 | wasSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
| `- error: 'outputs' is unavailable in macOS
537 | Logger.log.i(message: "[ACM_RESET] Peer:: Detected current speaker state: \(wasSpeakerActive)")
538 | }
/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:536:71: error: 'portType' is unavailable in macOS
534 | // Detect current speaker state
535 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
536 | wasSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
| `- error: 'portType' is unavailable in macOS
537 | Logger.log.i(message: "[ACM_RESET] Peer:: Detected current speaker state: \(wasSpeakerActive)")
538 | }
/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:536:84: error: 'builtInSpeaker' is unavailable in macOS
534 | // Detect current speaker state
535 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
536 | wasSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
| `- error: 'builtInSpeaker' is unavailable in macOS
537 | Logger.log.i(message: "[ACM_RESET] Peer:: Detected current speaker state: \(wasSpeakerActive)")
538 | }
/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:618:35: error: cannot find 'RTCAudioSession' in scope
616 |
617 | // Use RTCAudioSession for WebRTC-specific audio configuration
618 | let rtcAudioSession = RTCAudioSession.sharedInstance()
| `- error: cannot find 'RTCAudioSession' in scope
619 |
620 | rtcAudioSession.lockForConfiguration()
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/WebRTC/Peer.swift:645:37: error: cannot find 'RTCAudioSessionConfiguration' in scope
643 |
644 | // Configure WebRTC audio session
645 | let configuration = RTCAudioSessionConfiguration.webRTC()
| `- error: cannot find 'RTCAudioSessionConfiguration' in scope
646 |
647 | // Build category options - include .defaultToSpeaker if speaker should be active
[83/90] Compiling TelnyxRTC resource_bundle_accessor.swift
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/WebRTC/Peer.swift:56:36: error: cannot find 'RTCAudioSession' in scope
54 | //Audio
55 | private var localAudioTrack: RTCAudioTrack?
56 | private let rtcAudioSession = RTCAudioSession.sharedInstance()
| `- error: cannot find 'RTCAudioSession' in scope
57 |
58 | //Video
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/WebRTC/Peer.swift:292:26: warning: 'setCodecPreferences' is deprecated: Use setCodecPreferences:error: instead.
290 |
291 | // Apply the ordered codec preferences
292 | audioTransceiver.setCodecPreferences(orderedCodecs)
| `- warning: 'setCodecPreferences' is deprecated: Use setCodecPreferences:error: instead.
293 | Logger.log.i(message: "Peer:: Applied codec preferences to audio transceiver: \(preferredCodecs.map { $0.mimeType }.joined(separator: ", "))")
294 | }
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/WebRTC/Peer.swift:535:36: error: 'AVAudioSession' is unavailable in macOS
533 | } else {
534 | // Detect current speaker state
535 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
| `- error: 'AVAudioSession' is unavailable in macOS
536 | wasSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
537 | 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:535:51: error: 'sharedInstance()' is unavailable in macOS
533 | } else {
534 | // Detect current speaker state
535 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
| `- error: 'sharedInstance()' is unavailable in macOS
536 | wasSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
537 | 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:535:68: error: 'currentRoute' is unavailable in macOS
533 | } else {
534 | // Detect current speaker state
535 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
| `- error: 'currentRoute' is unavailable in macOS
536 | wasSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
537 | 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:536:49: error: 'outputs' is unavailable in macOS
534 | // Detect current speaker state
535 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
536 | wasSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
| `- error: 'outputs' is unavailable in macOS
537 | Logger.log.i(message: "[ACM_RESET] Peer:: Detected current speaker state: \(wasSpeakerActive)")
538 | }
/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:536:71: error: 'portType' is unavailable in macOS
534 | // Detect current speaker state
535 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
536 | wasSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
| `- error: 'portType' is unavailable in macOS
537 | Logger.log.i(message: "[ACM_RESET] Peer:: Detected current speaker state: \(wasSpeakerActive)")
538 | }
/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:536:84: error: 'builtInSpeaker' is unavailable in macOS
534 | // Detect current speaker state
535 | let currentRoute = AVAudioSession.sharedInstance().currentRoute
536 | wasSpeakerActive = currentRoute.outputs.contains { $0.portType == .builtInSpeaker }
| `- error: 'builtInSpeaker' is unavailable in macOS
537 | Logger.log.i(message: "[ACM_RESET] Peer:: Detected current speaker state: \(wasSpeakerActive)")
538 | }
/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:618:35: error: cannot find 'RTCAudioSession' in scope
616 |
617 | // Use RTCAudioSession for WebRTC-specific audio configuration
618 | let rtcAudioSession = RTCAudioSession.sharedInstance()
| `- error: cannot find 'RTCAudioSession' in scope
619 |
620 | rtcAudioSession.lockForConfiguration()
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/WebRTC/Peer.swift:645:37: error: cannot find 'RTCAudioSessionConfiguration' in scope
643 |
644 | // Configure WebRTC audio session
645 | let configuration = RTCAudioSessionConfiguration.webRTC()
| `- error: cannot find 'RTCAudioSessionConfiguration' in scope
646 |
647 | // Build category options - include .defaultToSpeaker if speaker should be active
[84/90] Compiling TelnyxRTC TxCodecCapability.swift
[85/90] Compiling TelnyxRTC TxConfig.swift
[86/90] Compiling TelnyxRTC TxError.swift
[87/90] Compiling TelnyxRTC TxPushConfig.swift
[88/90] Compiling TelnyxRTC TxPushIPConfig.swift
[89/90] Compiling TelnyxRTC TxServerConfiguration.swift
[90/90] Compiling TelnyxRTC AIAssistantManager.swift
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