Build Information
Failed to build telnyx-webrtc-ios, reference main (016bc2
), with Swift 5.10 for macOS (SPM) on 29 Oct 2024 19:25:56 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-15.4.0.app xcrun swift build --arch arm64
Build Log
========================================
RunAll
========================================
Builder version: 4.55.4
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/team-telnyx/telnyx-webrtc-ios.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/team-telnyx/telnyx-webrtc-ios
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 016bc2e Merge pull request #133 from team-telnyx/IS/Fix/AttachActiveCall
Cloned https://github.com/team-telnyx/telnyx-webrtc-ios.git
Revision (git rev-parse @):
016bc2ebb8f7640027c1a20af6539db60910c20d
SUCCESS checkout https://github.com/team-telnyx/telnyx-webrtc-ios.git at main
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 5.10
Building package at path: $PWD
https://github.com/team-telnyx/telnyx-webrtc-ios.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.4.0.app xcrun swift build --arch arm64
Building for debugging...
[0/92] Write sources
[0/92] Copying PrivacyInfo.xcprivacy
[5/92] Write swift-version-33747A42983211AE.txt
[6/92] Copying WebRTC.framework
[7/112] Compiling BSGFileLocations.m
[8/112] Compiling BugsnagUser.m
[9/112] Compiling BugsnagStackframe.m
[10/112] Compiling BugsnagSession.m
[11/112] Compiling BugsnagStacktrace.m
[12/112] Compiling BugsnagNotifier.m
[13/112] Compiling BugsnagHandledState.m
[14/112] Compiling Bugsnag resource_bundle_accessor.m
[15/112] Compiling BugsnagError.m
[16/112] Compiling BSGPersistentDeviceID.m
[17/112] Compiling BugsnagDeviceWithState.m
[18/112] Compiling BugsnagDevice.m
[19/112] Compiling BugsnagThread.m
[20/112] Compiling BugsnagEvent.m
[21/112] Compiling BugsnagCorrelation.m
[22/112] Compiling BSGStorageMigratorV0V1.m
[23/112] Compiling BugsnagBreadcrumb.m
[24/112] Compiling BSG_KSMach_x86_64.c
[25/112] Compiling BSG_KSMach_x86_32.c
[26/112] Compiling BugsnagAppWithState.m
[27/112] Compiling BSG_KSMach_Arm.c
[28/112] Compiling BugsnagApp.m
[29/112] Compiling BugsnagMetadata.m
[31/112] Emitting module Starscream
[31/114] Compiling BSG_KSSysCtl.c
[32/114] Compiling BSG_Symbolicate.c
[33/114] Compiling BSG_KSJSONCodec.c
[34/114] Compiling BSG_KSLogger.c
[35/114] Compiling BSG_KSString.c
[36/114] Compiling BSG_KSFileUtils.c
[37/114] Compiling BSG_KSCrashStringConversion.c
[38/114] Compiling BSG_KSBacktrace.c
[39/114] Compiling BSG_KSCrashSentry_NSException.m
[40/114] Compiling BSG_KSSignalInfo.c
[41/114] Compiling BSG_KSMach.c
[42/114] Compiling BSG_KSMachHeaders.c
[43/114] Compiling BSG_KSMach_Arm64.c
[44/114] Compiling BSG_KSCrashSentry_Signal.c
[45/114] Compiling BSG_KSFile.c
[46/114] Compiling BSG_KSSystemInfo.m
[47/114] Compiling BSG_KSCrashNames.c
[48/114] Compiling BSG_KSCrashReport.c
[49/114] Compiling BSG_KSCrashC.c
[50/114] Compiling BSG_KSCrashSentry_MachException.c
[51/114] Compiling BSG_KSCrashIdentifier.m
[52/114] Compiling BSG_KSCrashState.m
[53/114] Compiling BSG_KSCrashSentry.c
[54/114] Compiling BSG_KSCrashDoctor.m
[55/114] Compiling MRCCanary.m
[56/114] Compiling BugsnagCollections.m
[57/114] Compiling BugsnagCocoaPerformanceFromBugsnagCocoa.m
[58/114] Compiling BSGUtils.m
[59/114] Compiling BSG_RFC3339DateTool.m
[60/114] Compiling BSGSerialization.m
[61/114] Compiling BSGTelemetry.m
[62/114] Compiling BSGJSONSerialization.m
[63/114] Compiling BSGGlobals.m
[64/114] Compiling BSGFilesystem.m
[65/114] Compiling BSGFeatureFlagStore.m
[66/114] Compiling BSGInternalErrorReporter.m
[67/114] Compiling BugsnagApiClient.m
[68/114] Compiling BSGAppHangDetector.m
[69/114] Compiling BSGSessionUploader.m
[70/114] Compiling BSGEventUploader.m
[71/114] Compiling BSGEventUploadObjectOperation.m
[72/114] Compiling BSGEventUploadFileOperation.m
[73/114] Compiling BSGEventUploadKSCrashReportOperation.m
[74/114] Compiling BSGEventUploadOperation.m
[75/114] Compiling BugsnagErrorTypes.m
[76/114] Compiling BugsnagEndpointConfiguration.m
[77/114] Compiling BSGConfigurationBuilder.m
[78/114] Compiling BugsnagConfiguration.m
[79/114] Compiling BSGConnectivity.m
[80/114] Compiling Bugsnag BugsnagLastRunInfo.m
[81/114] Compiling Bugsnag BugsnagFeatureFlag.m
[82/114] Compiling BSG_KSCrashSentry_CPPException.mm
[83/114] Compiling Bugsnag Bugsnag.m
[84/114] Compiling BugsnagBreadcrumbs.m
[85/114] Compiling Bugsnag BSGCrashSentry.m
[86/114] Compiling BSGNetworkBreadcrumb.m
[88/114] Compiling Starscream Transport.swift
[89/114] Compiling Starscream resource_bundle_accessor.swift
[90/114] Compiling Starscream FoundationHTTPServerHandler.swift
[91/114] Compiling Starscream FrameCollector.swift
[92/114] Compiling Starscream Engine.swift
[93/114] Compiling Starscream NativeEngine.swift
[94/114] Compiling Starscream WSEngine.swift
[95/114] Compiling Starscream FoundationHTTPHandler.swift
[96/114] Compiling Starscream WebSocketServer.swift
[97/114] Compiling Starscream WebSocket.swift
[98/114] Compiling Starscream StringHTTPHandler.swift
[99/114] Compiling Starscream FoundationSecurity.swift
[100/114] Compiling Starscream Framer.swift
[101/114] Compiling Starscream HTTPHandler.swift
[102/114] Compiling Starscream Compression.swift
[103/114] Compiling Starscream WSCompression.swift
[104/114] Compiling Starscream Data+Extensions.swift
[105/114] Compiling Starscream Security.swift
[106/114] Compiling Starscream Server.swift
[107/114] Compiling Starscream FoundationTransport.swift
[108/114] Compiling Starscream TCPTransport.swift
[108/114] Compiling BSG_KSCrash.m
[109/114] Compiling BSGNotificationBreadcrumbs.m
[110/114] Compiling BSGRunContext.m
[111/114] Compiling Bugsnag BugsnagSessionTracker.m
[112/114] Compiling Bugsnag BugsnagSystemState.m
[113/114] Compiling BugsnagClient.m
error: emit-module command failed with exit code 1 (use -v to see invocation)
[115/143] Emitting module TelnyxRTC
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:136:34: error: 'CXAnswerCallAction' is unavailable in macOS
private var answerCallAction:CXAnswerCallAction? = nil
^~~~~~~~~~~~~~~~~~
CallKit.CXAnswerCallAction:2:12: note: 'CXAnswerCallAction' has been explicitly marked unavailable here
open class CXAnswerCallAction : CXCallAction {
^
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:137:31: error: 'CXEndCallAction' is unavailable in macOS
private var endCallAction:CXEndCallAction? = nil
^~~~~~~~~~~~~~~
CallKit.CXEndCallAction:2:12: note: 'CXEndCallAction' has been explicitly marked unavailable here
open class CXEndCallAction : CXCallAction {
^
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:177:50: error: 'AVAudioSession' is unavailable in macOS
public func enableAudioSession(audioSession: AVAudioSession){
^~~~~~~~~~~~~~
AVFAudio.AVAudioSession:2:12: note: 'AVAudioSession' has been explicitly marked unavailable here
open class AVAudioSession : NSObject {
^
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:182:51: error: 'AVAudioSession' is unavailable in macOS
public func disableAudioSession(audioSession: AVAudioSession){
^~~~~~~~~~~~~~
AVFAudio.AVAudioSession:2:12: note: 'AVAudioSession' has been explicitly marked unavailable here
open class AVAudioSession : NSObject {
^
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:187:24: error: 'AVAudioSession' is unavailable in macOS
let currentRoute = AVAudioSession.sharedInstance().currentRoute
^~~~~~~~~~~~~~
AVFAudio.AVAudioSession:2:12: note: 'AVAudioSession' has been explicitly marked unavailable here
open class AVAudioSession : NSObject {
^
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:187:39: error: 'sharedInstance()' is unavailable in macOS
let currentRoute = AVAudioSession.sharedInstance().currentRoute
^~~~~~~~~~~~~~
AVFAudio.AVAudioSession:4:21: note: 'sharedInstance()' has been explicitly marked unavailable here
open class func sharedInstance() -> AVAudioSession
^
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:187:56: error: 'currentRoute' is unavailable in macOS
let currentRoute = AVAudioSession.sharedInstance().currentRoute
^~~~~~~~~~~~
AVFAudio.AVAudioSession:5:14: note: 'currentRoute' has been explicitly marked unavailable here
open var currentRoute: AVAudioSessionRouteDescription { get }
^
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:276:48: error: 'CXAnswerCallAction' is unavailable in macOS
public func answerFromCallkit(answerAction:CXAnswerCallAction,customHeaders:[String:String] = [:]) {
^~~~~~~~~~~~~~~~~~
CallKit.CXAnswerCallAction:2:12: note: 'CXAnswerCallAction' has been explicitly marked unavailable here
open class CXAnswerCallAction : CXCallAction {
^
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:297:46: error: 'CXEndCallAction' is unavailable in macOS
public func endCallFromCallkit(endAction:CXEndCallAction,callId:UUID? = nil) {
^~~~~~~~~~~~~~~
CallKit.CXEndCallAction:2:12: note: 'CXEndCallAction' has been explicitly marked unavailable here
open class CXEndCallAction : CXCallAction {
^
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/WebRTC/Peer.swift:36:36: error: cannot find 'RTCAudioSession' in scope
private let rtcAudioSession = RTCAudioSession.sharedInstance()
^~~~~~~~~~~~~~~
[116/146] Compiling TelnyxRTC Method.swift
[117/146] Compiling TelnyxRTC ModifyMessage.swift
[118/146] Compiling TelnyxRTC StatsMessage.swift
[119/146] Compiling TelnyxRTC DisablePushMessage.swift
[120/146] Compiling TelnyxRTC GatewayMessage.swift
[121/146] Compiling TelnyxRTC InfoMessage.swift
[122/146] Compiling TelnyxRTC TxConfig.swift
[123/146] Compiling TelnyxRTC TxError.swift
[124/146] Compiling TelnyxRTC TxPushConfig.swift
[125/146] Compiling TelnyxRTC InviteMessage.swift
[126/146] Compiling TelnyxRTC LoginMessage.swift
[127/146] Compiling TelnyxRTC Message.swift
[128/146] Compiling TelnyxRTC AnswerMessage.swift
[129/146] Compiling TelnyxRTC AttachCallMessage.swift
[130/146] Compiling TelnyxRTC ByeMessage.swift
[131/146] Compiling TelnyxRTC TxPushIPConfig.swift
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/Services/Socket.swift:106:9: warning: default will never be executed
@unknown default:
^
[132/146] Compiling TelnyxRTC TxServerConfiguration.swift
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/Services/Socket.swift:106:9: warning: default will never be executed
@unknown default:
^
[133/146] Compiling TelnyxRTC Socket.swift
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/Services/Socket.swift:106:9: warning: default will never be executed
@unknown default:
^
[134/146] Compiling TelnyxRTC InternalConfig.swift
[135/146] Compiling TelnyxRTC Params.swift
[136/146] Compiling TelnyxRTC TxCallInfo.swift
[137/146] Compiling TelnyxRTC TxCallOptions.swift
[138/146] Compiling TelnyxRTC Call.swift
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/WebRTC/Call.swift:720:17: error: 'AVAudioSession' is unavailable in macOS
try AVAudioSession.sharedInstance().setCategory(AVAudioSession.Category.ambient)
^~~~~~~~~~~~~~
AVFAudio.AVAudioSession:2:12: note: 'AVAudioSession' has been explicitly marked unavailable here
open class AVAudioSession : NSObject {
^
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/WebRTC/Call.swift:720:32: error: 'sharedInstance()' is unavailable in macOS
try AVAudioSession.sharedInstance().setCategory(AVAudioSession.Category.ambient)
^~~~~~~~~~~~~~
AVFAudio.AVAudioSession:4:21: note: 'sharedInstance()' has been explicitly marked unavailable here
open class func sharedInstance() -> AVAudioSession
^
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/WebRTC/Call.swift:720:49: error: 'setCategory' is unavailable in macOS
try AVAudioSession.sharedInstance().setCategory(AVAudioSession.Category.ambient)
^~~~~~~~~~~
AVFAudio.AVAudioSession:8:15: note: 'setCategory' has been explicitly marked unavailable here
open func setCategory(_ category: AVAudioSession.Category) throws
^
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/WebRTC/Call.swift:720:61: error: 'AVAudioSession' is unavailable in macOS
try AVAudioSession.sharedInstance().setCategory(AVAudioSession.Category.ambient)
^~~~~~~~~~~~~~
AVFAudio.AVAudioSession:2:12: note: 'AVAudioSession' has been explicitly marked unavailable here
open class AVAudioSession : NSObject {
^
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/WebRTC/Call.swift:720:85: error: 'ambient' is unavailable in macOS
try AVAudioSession.sharedInstance().setCategory(AVAudioSession.Category.ambient)
^~~~~~~
AVFAudio.AVAudioSession.Category:3:23: note: 'ambient' has been explicitly marked unavailable here
public static let ambient: AVAudioSession.Category
^
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/WebRTC/Call.swift:721:17: error: 'AVAudioSession' is unavailable in macOS
try AVAudioSession.sharedInstance().setActive(true)
^~~~~~~~~~~~~~
AVFAudio.AVAudioSession:2:12: note: 'AVAudioSession' has been explicitly marked unavailable here
open class AVAudioSession : NSObject {
^
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/WebRTC/Call.swift:721:32: error: 'sharedInstance()' is unavailable in macOS
try AVAudioSession.sharedInstance().setActive(true)
^~~~~~~~~~~~~~
AVFAudio.AVAudioSession:4:21: note: 'sharedInstance()' has been explicitly marked unavailable here
open class func sharedInstance() -> AVAudioSession
^
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/WebRTC/Call.swift:721:49: error: 'setActive' is unavailable in Swift
try AVAudioSession.sharedInstance().setActive(true)
^~~~~~~~~
AVFAudio.AVAudioSession:4:15: note: 'setActive' has been explicitly marked unavailable here
open func setActive(_ active: Bool) throws
^
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/WebRTC/Peer.swift:36:36: error: cannot find 'RTCAudioSession' in scope
private let rtcAudioSession = RTCAudioSession.sharedInstance()
^~~~~~~~~~~~~~~
[139/146] Compiling TelnyxRTC Peer.swift
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/WebRTC/Call.swift:720:17: error: 'AVAudioSession' is unavailable in macOS
try AVAudioSession.sharedInstance().setCategory(AVAudioSession.Category.ambient)
^~~~~~~~~~~~~~
AVFAudio.AVAudioSession:2:12: note: 'AVAudioSession' has been explicitly marked unavailable here
open class AVAudioSession : NSObject {
^
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/WebRTC/Call.swift:720:32: error: 'sharedInstance()' is unavailable in macOS
try AVAudioSession.sharedInstance().setCategory(AVAudioSession.Category.ambient)
^~~~~~~~~~~~~~
AVFAudio.AVAudioSession:4:21: note: 'sharedInstance()' has been explicitly marked unavailable here
open class func sharedInstance() -> AVAudioSession
^
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/WebRTC/Call.swift:720:49: error: 'setCategory' is unavailable in macOS
try AVAudioSession.sharedInstance().setCategory(AVAudioSession.Category.ambient)
^~~~~~~~~~~
AVFAudio.AVAudioSession:8:15: note: 'setCategory' has been explicitly marked unavailable here
open func setCategory(_ category: AVAudioSession.Category) throws
^
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/WebRTC/Call.swift:720:61: error: 'AVAudioSession' is unavailable in macOS
try AVAudioSession.sharedInstance().setCategory(AVAudioSession.Category.ambient)
^~~~~~~~~~~~~~
AVFAudio.AVAudioSession:2:12: note: 'AVAudioSession' has been explicitly marked unavailable here
open class AVAudioSession : NSObject {
^
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/WebRTC/Call.swift:720:85: error: 'ambient' is unavailable in macOS
try AVAudioSession.sharedInstance().setCategory(AVAudioSession.Category.ambient)
^~~~~~~
AVFAudio.AVAudioSession.Category:3:23: note: 'ambient' has been explicitly marked unavailable here
public static let ambient: AVAudioSession.Category
^
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/WebRTC/Call.swift:721:17: error: 'AVAudioSession' is unavailable in macOS
try AVAudioSession.sharedInstance().setActive(true)
^~~~~~~~~~~~~~
AVFAudio.AVAudioSession:2:12: note: 'AVAudioSession' has been explicitly marked unavailable here
open class AVAudioSession : NSObject {
^
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/WebRTC/Call.swift:721:32: error: 'sharedInstance()' is unavailable in macOS
try AVAudioSession.sharedInstance().setActive(true)
^~~~~~~~~~~~~~
AVFAudio.AVAudioSession:4:21: note: 'sharedInstance()' has been explicitly marked unavailable here
open class func sharedInstance() -> AVAudioSession
^
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/WebRTC/Call.swift:721:49: error: 'setActive' is unavailable in Swift
try AVAudioSession.sharedInstance().setActive(true)
^~~~~~~~~
AVFAudio.AVAudioSession:4:15: note: 'setActive' has been explicitly marked unavailable here
open func setActive(_ active: Bool) throws
^
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/WebRTC/Peer.swift:36:36: error: cannot find 'RTCAudioSession' in scope
private let rtcAudioSession = RTCAudioSession.sharedInstance()
^~~~~~~~~~~~~~~
[140/146] Compiling TelnyxRTC resource_bundle_accessor.swift
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/WebRTC/Call.swift:720:17: error: 'AVAudioSession' is unavailable in macOS
try AVAudioSession.sharedInstance().setCategory(AVAudioSession.Category.ambient)
^~~~~~~~~~~~~~
AVFAudio.AVAudioSession:2:12: note: 'AVAudioSession' has been explicitly marked unavailable here
open class AVAudioSession : NSObject {
^
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/WebRTC/Call.swift:720:32: error: 'sharedInstance()' is unavailable in macOS
try AVAudioSession.sharedInstance().setCategory(AVAudioSession.Category.ambient)
^~~~~~~~~~~~~~
AVFAudio.AVAudioSession:4:21: note: 'sharedInstance()' has been explicitly marked unavailable here
open class func sharedInstance() -> AVAudioSession
^
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/WebRTC/Call.swift:720:49: error: 'setCategory' is unavailable in macOS
try AVAudioSession.sharedInstance().setCategory(AVAudioSession.Category.ambient)
^~~~~~~~~~~
AVFAudio.AVAudioSession:8:15: note: 'setCategory' has been explicitly marked unavailable here
open func setCategory(_ category: AVAudioSession.Category) throws
^
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/WebRTC/Call.swift:720:61: error: 'AVAudioSession' is unavailable in macOS
try AVAudioSession.sharedInstance().setCategory(AVAudioSession.Category.ambient)
^~~~~~~~~~~~~~
AVFAudio.AVAudioSession:2:12: note: 'AVAudioSession' has been explicitly marked unavailable here
open class AVAudioSession : NSObject {
^
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/WebRTC/Call.swift:720:85: error: 'ambient' is unavailable in macOS
try AVAudioSession.sharedInstance().setCategory(AVAudioSession.Category.ambient)
^~~~~~~
AVFAudio.AVAudioSession.Category:3:23: note: 'ambient' has been explicitly marked unavailable here
public static let ambient: AVAudioSession.Category
^
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/WebRTC/Call.swift:721:17: error: 'AVAudioSession' is unavailable in macOS
try AVAudioSession.sharedInstance().setActive(true)
^~~~~~~~~~~~~~
AVFAudio.AVAudioSession:2:12: note: 'AVAudioSession' has been explicitly marked unavailable here
open class AVAudioSession : NSObject {
^
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/WebRTC/Call.swift:721:32: error: 'sharedInstance()' is unavailable in macOS
try AVAudioSession.sharedInstance().setActive(true)
^~~~~~~~~~~~~~
AVFAudio.AVAudioSession:4:21: note: 'sharedInstance()' has been explicitly marked unavailable here
open class func sharedInstance() -> AVAudioSession
^
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/WebRTC/Call.swift:721:49: error: 'setActive' is unavailable in Swift
try AVAudioSession.sharedInstance().setActive(true)
^~~~~~~~~
AVFAudio.AVAudioSession:4:15: note: 'setActive' has been explicitly marked unavailable here
open func setActive(_ active: Bool) throws
^
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/WebRTC/Peer.swift:36:36: error: cannot find 'RTCAudioSession' in scope
private let rtcAudioSession = RTCAudioSession.sharedInstance()
^~~~~~~~~~~~~~~
[141/146] Compiling TelnyxRTC TxClientSocketDelegate.swift
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/Utils/FileLoger.swift:104:13: warning: initialization of immutable value 'timestamp' was never used; consider replacing with assignment to '_' or removing it
let timestamp = DateFormatter.localizedString(from: Date(), dateStyle: .medium, timeStyle: .medium)
~~~~^~~~~~~~~
_
[142/146] Compiling TelnyxRTC FileLoger.swift
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/Utils/FileLoger.swift:104:13: warning: initialization of immutable value 'timestamp' was never used; consider replacing with assignment to '_' or removing it
let timestamp = DateFormatter.localizedString(from: Date(), dateStyle: .medium, timeStyle: .medium)
~~~~^~~~~~~~~
_
[143/146] Compiling TelnyxRTC Logger.swift
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/Utils/FileLoger.swift:104:13: warning: initialization of immutable value 'timestamp' was never used; consider replacing with assignment to '_' or removing it
let timestamp = DateFormatter.localizedString(from: Date(), dateStyle: .medium, timeStyle: .medium)
~~~~^~~~~~~~~
_
[144/146] Compiling TelnyxRTC SocketDelegate.swift
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:136:34: error: 'CXAnswerCallAction' is unavailable in macOS
private var answerCallAction:CXAnswerCallAction? = nil
^~~~~~~~~~~~~~~~~~
CallKit.CXAnswerCallAction:2:12: note: 'CXAnswerCallAction' has been explicitly marked unavailable here
open class CXAnswerCallAction : CXCallAction {
^
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:137:31: error: 'CXEndCallAction' is unavailable in macOS
private var endCallAction:CXEndCallAction? = nil
^~~~~~~~~~~~~~~
CallKit.CXEndCallAction:2:12: note: 'CXEndCallAction' has been explicitly marked unavailable here
open class CXEndCallAction : CXCallAction {
^
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:177:50: error: 'AVAudioSession' is unavailable in macOS
public func enableAudioSession(audioSession: AVAudioSession){
^~~~~~~~~~~~~~
AVFAudio.AVAudioSession:2:12: note: 'AVAudioSession' has been explicitly marked unavailable here
open class AVAudioSession : NSObject {
^
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:182:51: error: 'AVAudioSession' is unavailable in macOS
public func disableAudioSession(audioSession: AVAudioSession){
^~~~~~~~~~~~~~
AVFAudio.AVAudioSession:2:12: note: 'AVAudioSession' has been explicitly marked unavailable here
open class AVAudioSession : NSObject {
^
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:187:24: error: 'AVAudioSession' is unavailable in macOS
let currentRoute = AVAudioSession.sharedInstance().currentRoute
^~~~~~~~~~~~~~
AVFAudio.AVAudioSession:2:12: note: 'AVAudioSession' has been explicitly marked unavailable here
open class AVAudioSession : NSObject {
^
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:187:39: error: 'sharedInstance()' is unavailable in macOS
let currentRoute = AVAudioSession.sharedInstance().currentRoute
^~~~~~~~~~~~~~
AVFAudio.AVAudioSession:4:21: note: 'sharedInstance()' has been explicitly marked unavailable here
open class func sharedInstance() -> AVAudioSession
^
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:187:56: error: 'currentRoute' is unavailable in macOS
let currentRoute = AVAudioSession.sharedInstance().currentRoute
^~~~~~~~~~~~
AVFAudio.AVAudioSession:5:14: note: 'currentRoute' has been explicitly marked unavailable here
open var currentRoute: AVAudioSessionRouteDescription { get }
^
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:276:48: error: 'CXAnswerCallAction' is unavailable in macOS
public func answerFromCallkit(answerAction:CXAnswerCallAction,customHeaders:[String:String] = [:]) {
^~~~~~~~~~~~~~~~~~
CallKit.CXAnswerCallAction:2:12: note: 'CXAnswerCallAction' has been explicitly marked unavailable here
open class CXAnswerCallAction : CXCallAction {
^
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:297:46: error: 'CXEndCallAction' is unavailable in macOS
public func endCallFromCallkit(endAction:CXEndCallAction,callId:UUID? = nil) {
^~~~~~~~~~~~~~~
CallKit.CXEndCallAction:2:12: note: 'CXEndCallAction' has been explicitly marked unavailable here
open class CXEndCallAction : CXCallAction {
^
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:164:20: error: cannot find 'RTCAudioSession' in scope
return RTCAudioSession.sharedInstance().isAudioEnabled
^~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:168:17: error: cannot find 'RTCAudioSession' in scope
RTCAudioSession.sharedInstance().audioSessionDidActivate(AVAudioSession.sharedInstance())
^~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:170:17: error: cannot find 'RTCAudioSession' in scope
RTCAudioSession.sharedInstance().audioSessionDidDeactivate(AVAudioSession.sharedInstance())
^~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:172:13: error: cannot find 'RTCAudioSession' in scope
RTCAudioSession.sharedInstance().isAudioEnabled = newValue
^~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:178:9: error: cannot find 'RTCAudioSession' in scope
RTCAudioSession.sharedInstance().audioSessionDidActivate(audioSession)
^~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:179:9: error: cannot find 'RTCAudioSession' in scope
RTCAudioSession.sharedInstance().isAudioEnabled = true
^~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:183:9: error: cannot find 'RTCAudioSession' in scope
RTCAudioSession.sharedInstance().audioSessionDidActivate(audioSession)
^~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:184:9: error: cannot find 'RTCAudioSession' in scope
RTCAudioSession.sharedInstance().isAudioEnabled = false
^~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:629:32: error: 'AVAudioSession' is unavailable in macOS
let audioSession = AVAudioSession.sharedInstance()
^~~~~~~~~~~~~~
AVFAudio.AVAudioSession:2:12: note: 'AVAudioSession' has been explicitly marked unavailable here
open class AVAudioSession : NSObject {
^
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:629:47: error: 'sharedInstance()' is unavailable in macOS
let audioSession = AVAudioSession.sharedInstance()
^~~~~~~~~~~~~~
AVFAudio.AVAudioSession:4:21: note: 'sharedInstance()' has been explicitly marked unavailable here
open class func sharedInstance() -> AVAudioSession
^
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:630:30: error: 'overrideOutputAudioPort' is unavailable in macOS
try audioSession.overrideOutputAudioPort(.none)
^~~~~~~~~~~~~~~~~~~~~~~
AVFAudio.AVAudioSession:45:15: note: 'overrideOutputAudioPort' has been explicitly marked unavailable here
open func overrideOutputAudioPort(_ portOverride: AVAudioSession.PortOverride) throws
^
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:640:32: error: 'AVAudioSession' is unavailable in macOS
let audioSession = AVAudioSession.sharedInstance()
^~~~~~~~~~~~~~
AVFAudio.AVAudioSession:2:12: note: 'AVAudioSession' has been explicitly marked unavailable here
open class AVAudioSession : NSObject {
^
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:640:47: error: 'sharedInstance()' is unavailable in macOS
let audioSession = AVAudioSession.sharedInstance()
^~~~~~~~~~~~~~
AVFAudio.AVAudioSession:4:21: note: 'sharedInstance()' has been explicitly marked unavailable here
open class func sharedInstance() -> AVAudioSession
^
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:641:30: error: 'overrideOutputAudioPort' is unavailable in macOS
try audioSession.overrideOutputAudioPort(.speaker)
^~~~~~~~~~~~~~~~~~~~~~~
AVFAudio.AVAudioSession:45:15: note: 'overrideOutputAudioPort' has been explicitly marked unavailable here
open func overrideOutputAudioPort(_ portOverride: AVAudioSession.PortOverride) throws
^
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:641:55: error: 'speaker' is unavailable in macOS
try audioSession.overrideOutputAudioPort(.speaker)
^~~~~~~
AVFAudio.AVAudioSession:28:14: note: 'speaker' has been explicitly marked unavailable here
case speaker
^
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:754:13: warning: initialization of immutable value 'socketError' was never used; consider replacing with assignment to '_' or removing it
let socketError = TxError.socketConnectionFailed(reason: .socketCancelled(nativeError: error))
~~~~^~~~~~~~~~~
_
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:785:17: warning: initialization of immutable value 'noActiveCalls' was never used; consider replacing with assignment to '_' or removing it
let noActiveCalls = self.calls.filter { $0.value.callState == .ACTIVE || $0.value.callState == .HELD }.isEmpty
~~~~^~~~~~~~~~~~~
_
[145/146] Compiling TelnyxRTC TxClient.swift
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:136:34: error: 'CXAnswerCallAction' is unavailable in macOS
private var answerCallAction:CXAnswerCallAction? = nil
^~~~~~~~~~~~~~~~~~
CallKit.CXAnswerCallAction:2:12: note: 'CXAnswerCallAction' has been explicitly marked unavailable here
open class CXAnswerCallAction : CXCallAction {
^
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:137:31: error: 'CXEndCallAction' is unavailable in macOS
private var endCallAction:CXEndCallAction? = nil
^~~~~~~~~~~~~~~
CallKit.CXEndCallAction:2:12: note: 'CXEndCallAction' has been explicitly marked unavailable here
open class CXEndCallAction : CXCallAction {
^
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:177:50: error: 'AVAudioSession' is unavailable in macOS
public func enableAudioSession(audioSession: AVAudioSession){
^~~~~~~~~~~~~~
AVFAudio.AVAudioSession:2:12: note: 'AVAudioSession' has been explicitly marked unavailable here
open class AVAudioSession : NSObject {
^
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:182:51: error: 'AVAudioSession' is unavailable in macOS
public func disableAudioSession(audioSession: AVAudioSession){
^~~~~~~~~~~~~~
AVFAudio.AVAudioSession:2:12: note: 'AVAudioSession' has been explicitly marked unavailable here
open class AVAudioSession : NSObject {
^
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:187:24: error: 'AVAudioSession' is unavailable in macOS
let currentRoute = AVAudioSession.sharedInstance().currentRoute
^~~~~~~~~~~~~~
AVFAudio.AVAudioSession:2:12: note: 'AVAudioSession' has been explicitly marked unavailable here
open class AVAudioSession : NSObject {
^
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:187:39: error: 'sharedInstance()' is unavailable in macOS
let currentRoute = AVAudioSession.sharedInstance().currentRoute
^~~~~~~~~~~~~~
AVFAudio.AVAudioSession:4:21: note: 'sharedInstance()' has been explicitly marked unavailable here
open class func sharedInstance() -> AVAudioSession
^
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:187:56: error: 'currentRoute' is unavailable in macOS
let currentRoute = AVAudioSession.sharedInstance().currentRoute
^~~~~~~~~~~~
AVFAudio.AVAudioSession:5:14: note: 'currentRoute' has been explicitly marked unavailable here
open var currentRoute: AVAudioSessionRouteDescription { get }
^
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:276:48: error: 'CXAnswerCallAction' is unavailable in macOS
public func answerFromCallkit(answerAction:CXAnswerCallAction,customHeaders:[String:String] = [:]) {
^~~~~~~~~~~~~~~~~~
CallKit.CXAnswerCallAction:2:12: note: 'CXAnswerCallAction' has been explicitly marked unavailable here
open class CXAnswerCallAction : CXCallAction {
^
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:297:46: error: 'CXEndCallAction' is unavailable in macOS
public func endCallFromCallkit(endAction:CXEndCallAction,callId:UUID? = nil) {
^~~~~~~~~~~~~~~
CallKit.CXEndCallAction:2:12: note: 'CXEndCallAction' has been explicitly marked unavailable here
open class CXEndCallAction : CXCallAction {
^
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:164:20: error: cannot find 'RTCAudioSession' in scope
return RTCAudioSession.sharedInstance().isAudioEnabled
^~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:168:17: error: cannot find 'RTCAudioSession' in scope
RTCAudioSession.sharedInstance().audioSessionDidActivate(AVAudioSession.sharedInstance())
^~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:170:17: error: cannot find 'RTCAudioSession' in scope
RTCAudioSession.sharedInstance().audioSessionDidDeactivate(AVAudioSession.sharedInstance())
^~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:172:13: error: cannot find 'RTCAudioSession' in scope
RTCAudioSession.sharedInstance().isAudioEnabled = newValue
^~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:178:9: error: cannot find 'RTCAudioSession' in scope
RTCAudioSession.sharedInstance().audioSessionDidActivate(audioSession)
^~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:179:9: error: cannot find 'RTCAudioSession' in scope
RTCAudioSession.sharedInstance().isAudioEnabled = true
^~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:183:9: error: cannot find 'RTCAudioSession' in scope
RTCAudioSession.sharedInstance().audioSessionDidActivate(audioSession)
^~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:184:9: error: cannot find 'RTCAudioSession' in scope
RTCAudioSession.sharedInstance().isAudioEnabled = false
^~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:629:32: error: 'AVAudioSession' is unavailable in macOS
let audioSession = AVAudioSession.sharedInstance()
^~~~~~~~~~~~~~
AVFAudio.AVAudioSession:2:12: note: 'AVAudioSession' has been explicitly marked unavailable here
open class AVAudioSession : NSObject {
^
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:629:47: error: 'sharedInstance()' is unavailable in macOS
let audioSession = AVAudioSession.sharedInstance()
^~~~~~~~~~~~~~
AVFAudio.AVAudioSession:4:21: note: 'sharedInstance()' has been explicitly marked unavailable here
open class func sharedInstance() -> AVAudioSession
^
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:630:30: error: 'overrideOutputAudioPort' is unavailable in macOS
try audioSession.overrideOutputAudioPort(.none)
^~~~~~~~~~~~~~~~~~~~~~~
AVFAudio.AVAudioSession:45:15: note: 'overrideOutputAudioPort' has been explicitly marked unavailable here
open func overrideOutputAudioPort(_ portOverride: AVAudioSession.PortOverride) throws
^
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:640:32: error: 'AVAudioSession' is unavailable in macOS
let audioSession = AVAudioSession.sharedInstance()
^~~~~~~~~~~~~~
AVFAudio.AVAudioSession:2:12: note: 'AVAudioSession' has been explicitly marked unavailable here
open class AVAudioSession : NSObject {
^
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:640:47: error: 'sharedInstance()' is unavailable in macOS
let audioSession = AVAudioSession.sharedInstance()
^~~~~~~~~~~~~~
AVFAudio.AVAudioSession:4:21: note: 'sharedInstance()' has been explicitly marked unavailable here
open class func sharedInstance() -> AVAudioSession
^
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:641:30: error: 'overrideOutputAudioPort' is unavailable in macOS
try audioSession.overrideOutputAudioPort(.speaker)
^~~~~~~~~~~~~~~~~~~~~~~
AVFAudio.AVAudioSession:45:15: note: 'overrideOutputAudioPort' has been explicitly marked unavailable here
open func overrideOutputAudioPort(_ portOverride: AVAudioSession.PortOverride) throws
^
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:641:55: error: 'speaker' is unavailable in macOS
try audioSession.overrideOutputAudioPort(.speaker)
^~~~~~~
AVFAudio.AVAudioSession:28:14: note: 'speaker' has been explicitly marked unavailable here
case speaker
^
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:754:13: warning: initialization of immutable value 'socketError' was never used; consider replacing with assignment to '_' or removing it
let socketError = TxError.socketConnectionFailed(reason: .socketCancelled(nativeError: error))
~~~~^~~~~~~~~~~
_
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:785:17: warning: initialization of immutable value 'noActiveCalls' was never used; consider replacing with assignment to '_' or removing it
let noActiveCalls = self.calls.filter { $0.value.callState == .ACTIVE || $0.value.callState == .HELD }.isEmpty
~~~~^~~~~~~~~~~~~
_
[146/146] Compiling TelnyxRTC TxClientDelegate.swift
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:136:34: error: 'CXAnswerCallAction' is unavailable in macOS
private var answerCallAction:CXAnswerCallAction? = nil
^~~~~~~~~~~~~~~~~~
CallKit.CXAnswerCallAction:2:12: note: 'CXAnswerCallAction' has been explicitly marked unavailable here
open class CXAnswerCallAction : CXCallAction {
^
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:137:31: error: 'CXEndCallAction' is unavailable in macOS
private var endCallAction:CXEndCallAction? = nil
^~~~~~~~~~~~~~~
CallKit.CXEndCallAction:2:12: note: 'CXEndCallAction' has been explicitly marked unavailable here
open class CXEndCallAction : CXCallAction {
^
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:177:50: error: 'AVAudioSession' is unavailable in macOS
public func enableAudioSession(audioSession: AVAudioSession){
^~~~~~~~~~~~~~
AVFAudio.AVAudioSession:2:12: note: 'AVAudioSession' has been explicitly marked unavailable here
open class AVAudioSession : NSObject {
^
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:182:51: error: 'AVAudioSession' is unavailable in macOS
public func disableAudioSession(audioSession: AVAudioSession){
^~~~~~~~~~~~~~
AVFAudio.AVAudioSession:2:12: note: 'AVAudioSession' has been explicitly marked unavailable here
open class AVAudioSession : NSObject {
^
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:187:24: error: 'AVAudioSession' is unavailable in macOS
let currentRoute = AVAudioSession.sharedInstance().currentRoute
^~~~~~~~~~~~~~
AVFAudio.AVAudioSession:2:12: note: 'AVAudioSession' has been explicitly marked unavailable here
open class AVAudioSession : NSObject {
^
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:187:39: error: 'sharedInstance()' is unavailable in macOS
let currentRoute = AVAudioSession.sharedInstance().currentRoute
^~~~~~~~~~~~~~
AVFAudio.AVAudioSession:4:21: note: 'sharedInstance()' has been explicitly marked unavailable here
open class func sharedInstance() -> AVAudioSession
^
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:187:56: error: 'currentRoute' is unavailable in macOS
let currentRoute = AVAudioSession.sharedInstance().currentRoute
^~~~~~~~~~~~
AVFAudio.AVAudioSession:5:14: note: 'currentRoute' has been explicitly marked unavailable here
open var currentRoute: AVAudioSessionRouteDescription { get }
^
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:276:48: error: 'CXAnswerCallAction' is unavailable in macOS
public func answerFromCallkit(answerAction:CXAnswerCallAction,customHeaders:[String:String] = [:]) {
^~~~~~~~~~~~~~~~~~
CallKit.CXAnswerCallAction:2:12: note: 'CXAnswerCallAction' has been explicitly marked unavailable here
open class CXAnswerCallAction : CXCallAction {
^
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:297:46: error: 'CXEndCallAction' is unavailable in macOS
public func endCallFromCallkit(endAction:CXEndCallAction,callId:UUID? = nil) {
^~~~~~~~~~~~~~~
CallKit.CXEndCallAction:2:12: note: 'CXEndCallAction' has been explicitly marked unavailable here
open class CXEndCallAction : CXCallAction {
^
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:164:20: error: cannot find 'RTCAudioSession' in scope
return RTCAudioSession.sharedInstance().isAudioEnabled
^~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:168:17: error: cannot find 'RTCAudioSession' in scope
RTCAudioSession.sharedInstance().audioSessionDidActivate(AVAudioSession.sharedInstance())
^~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:170:17: error: cannot find 'RTCAudioSession' in scope
RTCAudioSession.sharedInstance().audioSessionDidDeactivate(AVAudioSession.sharedInstance())
^~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:172:13: error: cannot find 'RTCAudioSession' in scope
RTCAudioSession.sharedInstance().isAudioEnabled = newValue
^~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:178:9: error: cannot find 'RTCAudioSession' in scope
RTCAudioSession.sharedInstance().audioSessionDidActivate(audioSession)
^~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:179:9: error: cannot find 'RTCAudioSession' in scope
RTCAudioSession.sharedInstance().isAudioEnabled = true
^~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:183:9: error: cannot find 'RTCAudioSession' in scope
RTCAudioSession.sharedInstance().audioSessionDidActivate(audioSession)
^~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:184:9: error: cannot find 'RTCAudioSession' in scope
RTCAudioSession.sharedInstance().isAudioEnabled = false
^~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:629:32: error: 'AVAudioSession' is unavailable in macOS
let audioSession = AVAudioSession.sharedInstance()
^~~~~~~~~~~~~~
AVFAudio.AVAudioSession:2:12: note: 'AVAudioSession' has been explicitly marked unavailable here
open class AVAudioSession : NSObject {
^
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:629:47: error: 'sharedInstance()' is unavailable in macOS
let audioSession = AVAudioSession.sharedInstance()
^~~~~~~~~~~~~~
AVFAudio.AVAudioSession:4:21: note: 'sharedInstance()' has been explicitly marked unavailable here
open class func sharedInstance() -> AVAudioSession
^
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:630:30: error: 'overrideOutputAudioPort' is unavailable in macOS
try audioSession.overrideOutputAudioPort(.none)
^~~~~~~~~~~~~~~~~~~~~~~
AVFAudio.AVAudioSession:45:15: note: 'overrideOutputAudioPort' has been explicitly marked unavailable here
open func overrideOutputAudioPort(_ portOverride: AVAudioSession.PortOverride) throws
^
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:640:32: error: 'AVAudioSession' is unavailable in macOS
let audioSession = AVAudioSession.sharedInstance()
^~~~~~~~~~~~~~
AVFAudio.AVAudioSession:2:12: note: 'AVAudioSession' has been explicitly marked unavailable here
open class AVAudioSession : NSObject {
^
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:640:47: error: 'sharedInstance()' is unavailable in macOS
let audioSession = AVAudioSession.sharedInstance()
^~~~~~~~~~~~~~
AVFAudio.AVAudioSession:4:21: note: 'sharedInstance()' has been explicitly marked unavailable here
open class func sharedInstance() -> AVAudioSession
^
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:641:30: error: 'overrideOutputAudioPort' is unavailable in macOS
try audioSession.overrideOutputAudioPort(.speaker)
^~~~~~~~~~~~~~~~~~~~~~~
AVFAudio.AVAudioSession:45:15: note: 'overrideOutputAudioPort' has been explicitly marked unavailable here
open func overrideOutputAudioPort(_ portOverride: AVAudioSession.PortOverride) throws
^
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:641:55: error: 'speaker' is unavailable in macOS
try audioSession.overrideOutputAudioPort(.speaker)
^~~~~~~
AVFAudio.AVAudioSession:28:14: note: 'speaker' has been explicitly marked unavailable here
case speaker
^
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:754:13: warning: initialization of immutable value 'socketError' was never used; consider replacing with assignment to '_' or removing it
let socketError = TxError.socketConnectionFailed(reason: .socketCancelled(nativeError: error))
~~~~^~~~~~~~~~~
_
/Users/admin/builder/spi-builder-workspace/TelnyxRTC/Telnyx/TxClient.swift:785:17: warning: initialization of immutable value 'noActiveCalls' was never used; consider replacing with assignment to '_' or removing it
let noActiveCalls = self.calls.filter { $0.value.callState == .ACTIVE || $0.value.callState == .HELD }.isEmpty
~~~~^~~~~~~~~~~~~
_
error: fatalError
Fetching https://github.com/bugsnag/bugsnag-cocoa.git
Fetching https://github.com/stasel/WebRTC.git
Fetching https://github.com/daltoniam/Starscream.git
[1/605] Fetching webrtc
[606/5507] Fetching webrtc, starscream
[5508/50593] Fetching webrtc, starscream, bugsnag-cocoa
Fetched https://github.com/stasel/WebRTC.git from cache (4.39s)
Fetched https://github.com/daltoniam/Starscream.git from cache (4.39s)
Fetched https://github.com/bugsnag/bugsnag-cocoa.git from cache (4.39s)
Computing version for https://github.com/stasel/WebRTC.git
Computed https://github.com/stasel/WebRTC.git at 124.0.0 (0.57s)
Computing version for https://github.com/daltoniam/Starscream.git
Computed https://github.com/daltoniam/Starscream.git at 4.0.8 (0.56s)
Computing version for https://github.com/bugsnag/bugsnag-cocoa.git
Computed https://github.com/bugsnag/bugsnag-cocoa.git at 6.30.1 (0.57s)
Creating working copy for https://github.com/bugsnag/bugsnag-cocoa.git
Working copy of https://github.com/bugsnag/bugsnag-cocoa.git resolved at 6.30.1
Creating working copy for https://github.com/stasel/WebRTC.git
Working copy of https://github.com/stasel/WebRTC.git resolved at 124.0.0
Creating working copy for https://github.com/daltoniam/Starscream.git
Working copy of https://github.com/daltoniam/Starscream.git resolved at 4.0.8
[7714/39449570] Downloading https://github.com/stasel/WebRTC/releases/download/124.0.0/WebRTC-M124.xcframework.zip
Downloading binary artifact https://github.com/stasel/WebRTC/releases/download/124.0.0/WebRTC-M124.xcframework.zip
Downloaded https://github.com/stasel/WebRTC/releases/download/124.0.0/WebRTC-M124.xcframework.zip (2.93s)
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
BUILD FAILURE 5.10 macosSpm