Build Information
Failed to build telnyx-webrtc-ios, reference main (016bc2
), with Swift 5.8 for macOS (SPM) on 29 Oct 2024 19:21:21 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-14.3.1.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.8
Building package at path: $PWD
https://github.com/team-telnyx/telnyx-webrtc-ios.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-14.3.1.app xcrun swift build --arch arm64
Building for debugging...
[0/89] Copying PrivacyInfo.xcprivacy
[3/89] Copying WebRTC.framework
[4/109] Compiling Bugsnag resource_bundle_accessor.m
[5/109] Compiling BugsnagNotifier.m
[6/109] Compiling BugsnagThread.m
[7/109] Compiling BSGFileLocations.m
[8/109] Compiling BugsnagHandledState.m
[9/109] Compiling BugsnagStackframe.m
[10/109] Compiling BugsnagSession.m
[11/109] Compiling BugsnagStacktrace.m
[11/109] Compiling BugsnagUser.m
[14/109] Emitting module Starscream
[14/111] Compiling BugsnagEvent.m
[15/111] Compiling BugsnagError.m
[16/111] Compiling BugsnagCorrelation.m
[17/111] Compiling BSGStorageMigratorV0V1.m
[18/111] Compiling BugsnagBreadcrumb.m
[19/111] Compiling BugsnagApp.m
[20/111] Compiling BugsnagDevice.m
[21/111] Compiling BugsnagDeviceWithState.m
[22/111] Compiling BugsnagAppWithState.m
[23/111] Compiling BugsnagMetadata.m
[24/111] Compiling BSG_KSMach_x86_64.c
[25/111] Compiling BSG_KSMach_x86_32.c
[26/111] Compiling BSG_KSMach_Arm.c
[27/111] Compiling BSGPersistentDeviceID.m
[28/111] Compiling BSG_KSSysCtl.c
[29/111] Compiling BSG_Symbolicate.c
[30/111] Compiling BSG_KSLogger.c
[31/111] Compiling BSG_KSSignalInfo.c
[32/111] Compiling BSG_KSFileUtils.c
[33/111] Compiling BSG_KSCrashStringConversion.c
[34/111] Compiling BSG_KSMach_Arm64.c
[35/111] Compiling BSG_KSBacktrace.c
[36/111] Compiling BSG_KSJSONCodec.c
[37/111] Compiling BSG_KSMach.c
[38/111] Compiling BSG_KSCrashSentry_NSException.m
[39/111] Compiling BSG_KSString.c
[40/111] Compiling BSG_KSFile.c
[41/111] Compiling BSG_KSCrashSentry_Signal.c
[42/111] Compiling BSG_KSCrashNames.c
[43/111] Compiling BSG_KSMachHeaders.c
[44/111] Compiling BSG_KSCrashState.m
[45/111] Compiling BSG_KSCrashReport.c
[46/111] Compiling BSG_KSCrashSentry_MachException.c
[47/111] Compiling BSG_KSSystemInfo.m
[48/111] Compiling BSG_KSCrashC.c
[49/111] Compiling BSG_KSCrashIdentifier.m
[50/111] Compiling BSG_KSCrashSentry.c
[51/111] Compiling BSG_KSCrashDoctor.m
[52/111] Compiling MRCCanary.m
[53/111] Compiling BugsnagCollections.m
[54/111] Compiling BSG_RFC3339DateTool.m
[55/111] Compiling BugsnagCocoaPerformanceFromBugsnagCocoa.m
[56/111] Compiling BSGSerialization.m
[57/111] Compiling BSGUtils.m
[58/111] Compiling BSGTelemetry.m
[59/111] Compiling BSGJSONSerialization.m
[60/111] Compiling BSGGlobals.m
[61/111] Compiling BSGFilesystem.m
[62/111] Compiling BSGFeatureFlagStore.m
[63/111] Compiling BSGInternalErrorReporter.m
[64/111] Compiling BSGAppHangDetector.m
[65/111] Compiling BugsnagApiClient.m
[66/111] Compiling BSGEventUploader.m
[67/111] Compiling BSGSessionUploader.m
[68/111] Compiling BSGEventUploadObjectOperation.m
[69/111] Compiling BSGEventUploadKSCrashReportOperation.m
[70/111] Compiling BSGEventUploadOperation.m
[71/111] Compiling BSGEventUploadFileOperation.m
[72/111] Compiling BugsnagErrorTypes.m
[73/111] Compiling BugsnagEndpointConfiguration.m
[75/111] Compiling Starscream Transport.swift
[76/111] Compiling Starscream resource_bundle_accessor.swift
[76/111] Compiling BSGConfigurationBuilder.m
[78/111] Compiling Starscream Engine.swift
[79/111] Compiling Starscream NativeEngine.swift
[80/111] Compiling Starscream WSEngine.swift
[81/111] Compiling Starscream FoundationHTTPHandler.swift
[81/111] Compiling BugsnagConfiguration.m
[82/111] Compiling BSG_KSCrashSentry_CPPException.mm
[84/111] Compiling Starscream WebSocketServer.swift
[85/111] Compiling Starscream WebSocket.swift
[86/111] Compiling Starscream StringHTTPHandler.swift
[87/111] Compiling Starscream FoundationSecurity.swift
[88/111] Compiling Starscream Framer.swift
[89/111] Compiling Starscream HTTPHandler.swift
[90/111] Compiling Starscream Security.swift
[91/111] Compiling Starscream Server.swift
[92/111] Compiling Starscream Compression.swift
[93/111] Compiling Starscream WSCompression.swift
[94/111] Compiling Starscream Data+Extensions.swift
[95/111] Compiling Starscream FoundationTransport.swift
[96/111] Compiling Starscream TCPTransport.swift
[97/111] Compiling Starscream FoundationHTTPServerHandler.swift
[98/111] Compiling Starscream FrameCollector.swift
[98/111] Compiling BSGConnectivity.m
[99/111] Compiling Bugsnag BugsnagLastRunInfo.m
[100/111] Compiling Bugsnag BugsnagFeatureFlag.m
[101/111] Compiling Bugsnag Bugsnag.m
[102/111] Compiling BugsnagBreadcrumbs.m
[103/111] Compiling BSGNetworkBreadcrumb.m
[104/111] Compiling Bugsnag BSGCrashSentry.m
[105/111] Compiling BSG_KSCrash.m
[106/111] Compiling Bugsnag BugsnagSystemState.m
[107/111] Compiling BSGRunContext.m
[108/111] Compiling BSGNotificationBreadcrumbs.m
[109/111] Compiling Bugsnag BugsnagSessionTracker.m
[110/111] Compiling BugsnagClient.m
error: emit-module command failed with exit code 1 (use -v to see invocation)
[112/140] 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()
^~~~~~~~~~~~~~~
[113/143] 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)
~~~~^~~~~~~~~
_
[114/143] 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)
~~~~^~~~~~~~~
_
[115/143] 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)
~~~~^~~~~~~~~
_
[116/143] Compiling TelnyxRTC Method.swift
[117/143] Compiling TelnyxRTC ModifyMessage.swift
[118/143] Compiling TelnyxRTC StatsMessage.swift
[119/143] Compiling TelnyxRTC DisablePushMessage.swift
[120/143] Compiling TelnyxRTC GatewayMessage.swift
[121/143] Compiling TelnyxRTC InfoMessage.swift
[122/143] Compiling TelnyxRTC InviteMessage.swift
[123/143] Compiling TelnyxRTC LoginMessage.swift
[124/143] Compiling TelnyxRTC Message.swift
[125/143] Compiling TelnyxRTC InternalConfig.swift
[126/143] Compiling TelnyxRTC Params.swift
[127/143] Compiling TelnyxRTC TxCallInfo.swift
[128/143] Compiling TelnyxRTC TxCallOptions.swift
[129/143] 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()
^~~~~~~~~~~~~~~
[130/143] 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()
^~~~~~~~~~~~~~~
[131/143] 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()
^~~~~~~~~~~~~~~
[132/143] 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:
^
[133/143] 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:
^
[134/143] 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:
^
[135/143] Compiling TelnyxRTC AnswerMessage.swift
[136/143] Compiling TelnyxRTC AttachCallMessage.swift
[137/143] Compiling TelnyxRTC ByeMessage.swift
[138/143] Compiling TelnyxRTC TxConfig.swift
[139/143] Compiling TelnyxRTC TxError.swift
[140/143] Compiling TelnyxRTC TxPushConfig.swift
[141/143] 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
~~~~^~~~~~~~~~~~~
_
[142/143] 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
~~~~^~~~~~~~~~~~~
_
[143/143] 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
~~~~^~~~~~~~~~~~~
_
Fetching https://github.com/stasel/WebRTC.git
Fetching https://github.com/bugsnag/bugsnag-cocoa.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 (4.28s)
Fetched https://github.com/bugsnag/bugsnag-cocoa.git (4.28s)
Fetched https://github.com/daltoniam/Starscream.git (4.28s)
Computing version for https://github.com/stasel/WebRTC.git
Computed https://github.com/stasel/WebRTC.git at 124.0.0 (0.74s)
Computing version for https://github.com/daltoniam/Starscream.git
Computed https://github.com/daltoniam/Starscream.git at 4.0.8 (0.73s)
Computing version for https://github.com/bugsnag/bugsnag-cocoa.git
Computed https://github.com/bugsnag/bugsnag-cocoa.git at 6.30.1 (0.74s)
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/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/daltoniam/Starscream.git
Working copy of https://github.com/daltoniam/Starscream.git resolved at 4.0.8
Downloading binary artifact https://github.com/stasel/WebRTC/releases/download/124.0.0/WebRTC-M124.xcframework.zip
[32750/39449570] Downloading 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.78s)
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.8 macosSpm