Build Information
Failed to build Auth, reference master (077bf9), with Swift 6.2 for Linux on 20 Jun 2025 23:03:53 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.2-latest swift build --triple x86_64-unknown-linux-gnu 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/barrault01/google-auth-library-swift.git
Reference: master
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/barrault01/google-auth-library-swift
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at 077bf9b Bump crypto
Cloned https://github.com/barrault01/google-auth-library-swift.git
Revision (git rev-parse @):
077bf9b1f65311fbc6be34e8ba8b34ae0f8403b5
SUCCESS checkout https://github.com/barrault01/google-auth-library-swift.git at master
========================================
Build
========================================
Selected platform: linux
Swift version: 6.2
Building package at path: $PWD
https://github.com/barrault01/google-auth-library-swift.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.2-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:f81a7bd7aa87a0f81848d48c5bcc03f5f78deebd37fa5f9be9913077205d3687
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.2-latest
Fetching https://github.com/krzyzanowskim/CryptoSwift.git
Fetching https://github.com/attaswift/BigInt
[1/4807] Fetching bigint
[723/17748] Fetching bigint, cryptoswift
Fetched https://github.com/attaswift/BigInt from cache (1.19s)
[3577/12941] Fetching cryptoswift
Fetching https://github.com/apple/swift-nio.git
Fetched https://github.com/krzyzanowskim/CryptoSwift.git from cache (2.81s)
[1/76339] Fetching swift-nio
Fetched https://github.com/apple/swift-nio.git from cache (8.85s)
Computing version for https://github.com/attaswift/BigInt
Computed https://github.com/attaswift/BigInt at 4.0.0 (16.32s)
Computing version for https://github.com/krzyzanowskim/CryptoSwift.git
Computed https://github.com/krzyzanowskim/CryptoSwift.git at 1.8.4 (0.89s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.83.0 (1.63s)
Fetching https://github.com/apple/swift-atomics.git
Fetching https://github.com/apple/swift-system.git
Fetching https://github.com/apple/swift-collections.git
[1/1797] Fetching swift-atomics
[73/6233] Fetching swift-atomics, swift-system
[2281/22873] Fetching swift-atomics, swift-system, swift-collections
Fetched https://github.com/apple/swift-atomics.git from cache (2.40s)
Fetched https://github.com/apple/swift-system.git from cache (2.40s)
Fetched https://github.com/apple/swift-collections.git from cache (2.48s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.3.0 (3.34s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.5.0 (0.65s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.2.0 (1.58s)
Creating working copy for https://github.com/attaswift/BigInt
Working copy of https://github.com/attaswift/BigInt resolved at 4.0.0
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.2.0
Creating working copy for https://github.com/apple/swift-nio.git
Working copy of https://github.com/apple/swift-nio.git resolved at 2.83.0
Creating working copy for https://github.com/apple/swift-atomics.git
Working copy of https://github.com/apple/swift-atomics.git resolved at 1.3.0
Creating working copy for https://github.com/krzyzanowskim/CryptoSwift.git
Working copy of https://github.com/krzyzanowskim/CryptoSwift.git resolved at 1.8.4
Creating working copy for https://github.com/apple/swift-system.git
Working copy of https://github.com/apple/swift-system.git resolved at 1.5.0
Building for debugging...
[0/72] Compiling CNIOLLHTTP c_nio_http.c
[0/72] Write sources
[3/72] Compiling CNIODarwin shim.c
[3/72] Write sources
[3/72] Copying PrivacyInfo.xcprivacy
[3/72] Write sources
[24/72] Compiling CNIOLinux liburing_shims.c
[25/72] Write swift-version-24593BA9C3E375BF.txt
[26/72] Compiling CNIOWindows shim.c
[27/72] Compiling _AtomicsShims.c
[28/72] Compiling CNIOWindows WSAStartup.c
[29/72] Compiling CNIOWASI CNIOWASI.c
[30/72] Compiling CNIOLLHTTP c_nio_api.c
[31/72] Compiling CNIOLinux shim.c
[32/196] Compiling CNIOLLHTTP c_nio_llhttp.c
[32/196] Write sources
[35/217] Compiling c-nioatomics.c
[36/235] Compiling c-atomics.c
[38/241] Emitting module SwiftyBase64
[39/241] Emitting module InternalCollectionsUtilities
[40/241] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[41/241] Compiling Atomics ManagedAtomic.swift
[42/241] Compiling Atomics ManagedAtomicLazyReference.swift
[43/241] Compiling Atomics OptionalRawRepresentable.swift
[44/241] Compiling Atomics RawRepresentable.swift
[45/241] Compiling Atomics AtomicInteger.swift
[46/241] Compiling Atomics AtomicOptionalWrappable.swift
[47/241] Compiling Atomics AtomicStorage.swift
[48/241] Compiling Atomics AtomicValue.swift
[49/244] Compiling Atomics Unmanaged extensions.swift
[50/244] Compiling BigInt String Conversion.swift
[51/244] Compiling Atomics AtomicBool.swift
[52/244] Compiling Atomics IntegerConformances.swift
[53/246] Compiling Atomics UnsafeAtomic.swift
[54/246] Compiling Atomics UnsafeAtomicLazyReference.swift
[55/246] Compiling Atomics AtomicMemoryOrderings.swift
[56/246] Compiling Atomics DoubleWord.swift
[59/246] Compiling Atomics AtomicReference.swift
[64/246] Compiling Atomics PointerConformances.swift
[65/246] Compiling Atomics Primitives.native.swift
[66/246] Compiling SwiftyBase64 Alphabets.swift
[67/246] Compiling SwiftyBase64 Base64.swift
[68/246] Emitting module BigInt
[73/247] Emitting module _NIOBase64
[74/247] Compiling _NIOBase64 Base64.swift
[74/248] Wrapping AST for SwiftyBase64 for debugging
[77/248] Compiling _NIODataStructures _TinyArray.swift
[78/248] Compiling _NIODataStructures PriorityQueue.swift
[78/248] Wrapping AST for _NIOBase64 for debugging
[80/248] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
[81/249] Wrapping AST for InternalCollectionsUtilities for debugging
[83/264] Compiling Atomics IntegerOperations.swift
[85/264] Compiling DequeModule _DequeBuffer.swift
[86/264] Compiling DequeModule _DequeBufferHeader.swift
[87/266] Compiling DequeModule Deque+CustomReflectable.swift
[88/266] Compiling DequeModule Deque+Descriptions.swift
[89/266] Compiling DequeModule Deque+Extras.swift
[90/266] Compiling DequeModule Deque+Hashable.swift
[91/266] Compiling DequeModule Deque+Equatable.swift
[92/266] Compiling DequeModule Deque+ExpressibleByArrayLiteral.swift
[93/266] Compiling BigInt Subtraction.swift
[94/266] Compiling BigInt Words and Bits.swift
[95/266] Emitting module NIOConcurrencyHelpers
[96/266] Compiling NIOConcurrencyHelpers NIOLock.swift
[97/266] Compiling NIOConcurrencyHelpers NIOAtomic.swift
[98/266] Compiling NIOConcurrencyHelpers lock.swift
[99/266] Compiling DequeModule _DequeSlot.swift
[100/266] Compiling DequeModule _UnsafeWrappedBuffer.swift
[101/266] Compiling _NIODataStructures Heap.swift
[102/266] Emitting module _NIODataStructures
[103/267] Wrapping AST for _NIODataStructures for debugging
[105/267] Compiling DequeModule Deque+Codable.swift
[106/267] Compiling DequeModule Deque+Collection.swift
[114/267] Compiling DequeModule Deque._Storage.swift
[115/267] Compiling DequeModule Deque._UnsafeHandle.swift
[116/267] Compiling DequeModule Deque.swift
[121/268] Compiling DequeModule Deque+Testing.swift
[124/268] Wrapping AST for BigInt for debugging
[126/268] Compiling NIOConcurrencyHelpers atomics.swift
[127/268] Compiling NIOConcurrencyHelpers NIOLockedValueBox.swift
[131/269] Emitting module DequeModule
[131/270] Wrapping AST for NIOConcurrencyHelpers for debugging
[137/270] Emitting module Atomics
[141/271] Compiling CryptoSwift CompactMap.swift
[142/271] Compiling CryptoSwift Cryptor.swift
[143/271] Compiling CryptoSwift Cryptors.swift
[144/271] Compiling CryptoSwift Digest.swift
[145/271] Compiling CryptoSwift DigestType.swift
[146/271] Compiling CryptoSwift AES+Foundation.swift
[147/271] Compiling CryptoSwift Array+Foundation.swift
[148/271] Compiling CryptoSwift Blowfish+Foundation.swift
[149/271] Compiling CryptoSwift ChaCha20+Foundation.swift
[150/271] Compiling CryptoSwift Data+Extension.swift
[151/271] Compiling CryptoSwift HMAC+Foundation.swift
[152/271] Compiling CryptoSwift Rabbit+Foundation.swift
[153/271] Compiling CryptoSwift String+FoundationExtension.swift
[154/271] Compiling CryptoSwift Utils+Foundation.swift
[154/271] Wrapping AST for DequeModule for debugging
[156/285] Wrapping AST for Atomics for debugging
[158/345] Compiling NIOCore NIOCloseOnErrorHandler.swift
[159/345] Compiling NIOCore NIOLoopBound.swift
[160/345] Compiling NIOCore NIOPooledRecvBufferAllocator.swift
[161/345] Compiling NIOCore NIOScheduledCallback.swift
[162/345] Compiling NIOCore NIOSendable.swift
[163/345] Compiling NIOCore RecvByteBufferAllocator.swift
[164/345] Compiling NIOCore ByteBuffer-multi-int.swift
[165/345] Compiling NIOCore ByteBuffer-quicBinaryEncodingStrategy.swift
[166/345] Compiling NIOCore ByteBuffer-views.swift
[167/345] Compiling NIOCore Channel.swift
[168/345] Compiling NIOCore ChannelHandler.swift
[169/345] Compiling NIOCore ChannelHandlers.swift
[170/345] Compiling NIOCore ChannelInvoker.swift
[171/345] Compiling NIOCore ChannelOption.swift
[172/345] Compiling NIOCore ByteBuffer-core.swift
[173/345] Compiling NIOCore ByteBuffer-hex.swift
[174/345] Compiling NIOCore ByteBuffer-int.swift
[175/345] Compiling NIOCore ByteBuffer-lengthPrefix.swift
[176/345] Compiling NIOCore IO.swift
[177/345] Compiling NIOCore IOData.swift
[178/345] Compiling NIOCore IPProtocol.swift
[179/345] Compiling NIOCore IntegerBitPacking.swift
[180/345] Compiling NIOCore IntegerTypes.swift
[181/345] Compiling NIOCore Interfaces.swift
[182/345] Compiling NIOCore Linux.swift
[183/345] Compiling NIOCore MarkedCircularBuffer.swift
[184/345] Compiling NIOCore MulticastChannel.swift
[185/345] Compiling NIOCore NIOAny.swift
[194/353] Compiling NIOCore EventLoop+SerialExecutor.swift
[195/353] Compiling NIOCore EventLoop.swift
[196/353] Compiling NIOCore EventLoopFuture+AssumeIsolated.swift
[197/353] Compiling NIOCore EventLoopFuture+Deprecated.swift
[198/353] Compiling NIOCore EventLoopFuture+WithEventLoop.swift
[199/353] Compiling NIOCore EventLoopFuture.swift
[200/353] Compiling NIOCore FileDescriptor.swift
[201/353] Compiling NIOCore FileHandle.swift
[202/353] Compiling NIOCore FileRegion.swift
[203/353] Compiling NIOCore GlobalSingletons.swift
[204/353] Compiling NIOCore NIOThrowingAsyncSequenceProducer.swift
[205/353] Compiling NIOCore BSDSocketAPI.swift
[206/353] Compiling NIOCore ByteBuffer-aux.swift
[207/353] Compiling NIOCore ByteBuffer-binaryEncodedLengthPrefix.swift
[208/353] Compiling NIOCore ByteBuffer-conversions.swift
[209/353] Compiling NIOCore AddressedEnvelope.swift
[210/353] Compiling NIOCore AsyncAwaitSupport.swift
[211/353] Compiling NIOCore AsyncChannel.swift
[212/353] Compiling NIOCore AsyncChannelHandler.swift
[213/353] Compiling NIOCore AsyncChannelInboundStream.swift
[214/353] Compiling NIOCore AsyncChannelOutboundWriter.swift
[215/353] Compiling NIOCore NIOAsyncSequenceProducer.swift
[216/353] Compiling NIOCore NIOAsyncSequenceProducerStrategies.swift
[217/353] Compiling NIOCore NIOAsyncWriter.swift
[218/353] Compiling NIOCore CircularBuffer.swift
[219/353] Compiling NIOCore Codec.swift
[220/353] Compiling NIOCore ConvenienceOptionSupport.swift
[221/353] Compiling NIOCore DeadChannel.swift
[222/353] Compiling NIOCore DispatchQueue+WithFuture.swift
[223/353] Compiling NIOCore EventLoop+Deprecated.swift
[224/353] Emitting module CryptoSwift
[241/353] Compiling CryptoSwift Signature.swift
[242/353] Compiling CryptoSwift StreamDecryptor.swift
[243/353] Compiling CryptoSwift StreamEncryptor.swift
[244/353] Compiling CryptoSwift String+Extension.swift
[245/353] Compiling CryptoSwift UInt128.swift
[246/353] Compiling CryptoSwift UInt16+Extension.swift
[247/353] Compiling CryptoSwift UInt32+Extension.swift
[248/353] Compiling CryptoSwift UInt64+Extension.swift
[249/353] Compiling CryptoSwift UInt8+Extension.swift
[250/353] Compiling CryptoSwift Updatable.swift
[251/353] Compiling CryptoSwift Utils.swift
[252/353] Compiling CryptoSwift XChaCha20.swift
[253/353] Compiling CryptoSwift ZeroPadding.swift
[254/353] Compiling CryptoSwift resource_bundle_accessor.swift
[263/353] Compiling NIOCore SingleStepByteToMessageDecoder.swift
[264/353] Compiling NIOCore SocketAddresses.swift
[265/353] Compiling NIOCore SocketOptionProvider.swift
[266/353] Compiling NIOCore SystemCallHelpers.swift
[267/353] Compiling NIOCore TimeAmount+Duration.swift
[268/353] Compiling NIOCore TypeAssistedChannelHandler.swift
[269/353] Compiling NIOCore UniversalBootstrapSupport.swift
[270/353] Compiling NIOCore Utilities.swift
[271/353] Compiling CryptoSwift PKCS5.swift
[272/353] Compiling CryptoSwift PKCS7.swift
[273/353] Compiling CryptoSwift PKCS7Padding.swift
[274/353] Compiling CryptoSwift Padding.swift
[275/353] Compiling CryptoSwift Poly1305.swift
[276/353] Compiling CryptoSwift RSA+Cipher.swift
[277/353] Compiling CryptoSwift RSA+Signature.swift
[278/353] Compiling CryptoSwift RSA.swift
[279/353] Compiling CryptoSwift Rabbit.swift
[280/353] Compiling CryptoSwift SHA1.swift
[281/353] Compiling CryptoSwift SHA2.swift
[282/353] Compiling CryptoSwift SHA3.swift
[283/353] Compiling CryptoSwift Scrypt.swift
[284/353] Compiling CryptoSwift SecureBytes.swift
[285/353] Compiling CryptoSwift XChaCha20+Foundation.swift
[286/353] Compiling CryptoSwift Generics.swift
[287/353] Compiling CryptoSwift HKDF.swift
[288/353] Compiling CryptoSwift HMAC.swift
[289/353] Compiling CryptoSwift ISO10126Padding.swift
[290/353] Compiling CryptoSwift ISO78164Padding.swift
[291/353] Compiling CryptoSwift Int+Extension.swift
[292/353] Compiling CryptoSwift MD5.swift
[293/353] Compiling CryptoSwift NoPadding.swift
[294/353] Compiling CryptoSwift Operators.swift
[295/353] Compiling CryptoSwift DER.swift
[296/353] Compiling CryptoSwift PBKDF1.swift
[297/353] Compiling CryptoSwift PBKDF2.swift
[298/353] Compiling CryptoSwift PKCS1v15.swift
[299/354] Wrapping AST for CryptoSwift for debugging
[327/354] Compiling NIOCore ChannelPipeline.swift
[328/354] Emitting module NIOCore
[329/355] Wrapping AST for NIOCore for debugging
[331/405] Compiling NIOEmbedded Embedded.swift
[332/405] Compiling NIOEmbedded AsyncTestingChannel.swift
[333/405] Compiling NIOEmbedded AsyncTestingEventLoop.swift
[334/405] Emitting module NIOEmbedded
[335/406] Wrapping AST for NIOEmbedded for debugging
[337/406] Compiling NIOPosix SelectableChannel.swift
[338/406] Compiling NIOPosix SelectableEventLoop.swift
[339/406] Compiling NIOPosix SelectorEpoll.swift
[340/406] Compiling NIOPosix SelectorGeneric.swift
[341/406] Compiling NIOPosix SelectorKqueue.swift
[342/406] Compiling NIOPosix SelectorUring.swift
[343/412] Emitting module NIOPosix
[344/412] Compiling NIOPosix ServerSocket.swift
[345/412] Compiling NIOPosix Socket.swift
[346/412] Compiling NIOPosix SocketChannel.swift
[347/412] Compiling NIOPosix SocketProtocols.swift
[348/412] Compiling NIOPosix System.swift
[349/412] Compiling NIOPosix Thread.swift
[350/412] Compiling NIOPosix ThreadPosix.swift
[351/412] Compiling NIOPosix ThreadWindows.swift
[352/412] Compiling NIOPosix UnsafeTransfer.swift
[353/412] Compiling NIOPosix Utilities.swift
[354/412] Compiling NIOPosix VsockAddress.swift
[355/412] Compiling NIOPosix VsockChannelEvents.swift
[356/412] Compiling NIOPosix IO.swift
[357/412] Compiling NIOPosix IntegerBitPacking.swift
[358/412] Compiling NIOPosix IntegerTypes.swift
[359/412] Compiling NIOPosix Linux.swift
[360/412] Compiling NIOPosix LinuxCPUSet.swift
[361/412] Compiling NIOPosix LinuxUring.swift
[362/412] Compiling NIOPosix MultiThreadedEventLoopGroup.swift
[363/412] Compiling NIOPosix Bootstrap.swift
[364/412] Compiling NIOPosix ControlMessage.swift
[365/412] Compiling NIOPosix DatagramVectorReadManager.swift
[366/412] Compiling NIOPosix Errors+Any.swift
[367/412] Compiling NIOPosix FileDescriptor.swift
[368/412] Compiling NIOPosix GetaddrinfoResolver.swift
[369/412] Compiling NIOPosix HappyEyeballs.swift
[370/412] Compiling NIOPosix NIOThreadPool.swift
[371/412] Compiling NIOPosix NonBlockingFileIO.swift
[372/412] Compiling NIOPosix PendingDatagramWritesManager.swift
[373/412] Compiling NIOPosix PendingWritesManager.swift
[374/412] Compiling NIOPosix PipeChannel.swift
[375/412] Compiling NIOPosix PipePair.swift
[376/412] Compiling NIOPosix Pool.swift
[377/412] Compiling NIOPosix PosixSingletons+ConcurrencyTakeOver.swift
[378/412] Compiling NIOPosix PosixSingletons.swift
[379/412] Compiling NIOPosix RawSocketBootstrap.swift
[380/412] Compiling NIOPosix Resolver.swift
[381/412] Compiling NIOPosix Selectable.swift
[382/412] Compiling NIOPosix BSDSocketAPICommon.swift
[383/412] Compiling NIOPosix BSDSocketAPIPosix.swift
[384/412] Compiling NIOPosix BSDSocketAPIWindows.swift
[385/412] Compiling NIOPosix BaseSocket.swift
[386/412] Compiling NIOPosix BaseSocketChannel+SocketOptionProvider.swift
[387/412] Compiling NIOPosix BaseSocketChannel.swift
[388/412] Compiling NIOPosix BaseStreamSocketChannel.swift
[389/413] Wrapping AST for NIOPosix for debugging
[391/415] Compiling NIO Exports.swift
[392/415] Emitting module NIO
[393/416] Wrapping AST for NIO for debugging
[395/432] Compiling NIOHTTP1 NIOTypedHTTPClientUpgradeHandler.swift
[396/432] Compiling NIOHTTP1 NIOTypedHTTPClientUpgraderStateMachine.swift
[397/434] Emitting module NIOHTTP1
[398/434] Compiling NIOHTTP1 HTTPServerProtocolErrorHandler.swift
[399/434] Compiling NIOHTTP1 HTTPServerUpgradeHandler.swift
[400/434] Compiling NIOHTTP1 HTTPPipelineSetup.swift
[401/434] Compiling NIOHTTP1 HTTPServerPipelineHandler.swift
[402/434] Compiling NIOHTTP1 NIOHTTPClientUpgradeHandler.swift
[403/434] Compiling NIOHTTP1 NIOHTTPObjectAggregator.swift
[404/434] Compiling NIOHTTP1 HTTPHeaderValidator.swift
[405/434] Compiling NIOHTTP1 HTTPHeaders+Validation.swift
[406/434] Compiling NIOHTTP1 NIOTypedHTTPServerUpgradeHandler.swift
[407/434] Compiling NIOHTTP1 NIOTypedHTTPServerUpgraderStateMachine.swift
[408/434] Compiling NIOHTTP1 HTTPTypedPipelineSetup.swift
[409/434] Compiling NIOHTTP1 HTTPTypes.swift
[410/434] Compiling NIOHTTP1 ByteCollectionUtils.swift
[411/434] Compiling NIOHTTP1 HTTPDecoder.swift
[412/434] Compiling NIOHTTP1 HTTPEncoder.swift
[413/435] Wrapping AST for NIOHTTP1 for debugging
[415/437] Emitting module TinyHTTPServer
[416/437] Compiling TinyHTTPServer TinyHTTPServer.swift
[417/438] Wrapping AST for TinyHTTPServer for debugging
[419/459] Compiling OAuth1 openURL.swift
[420/459] Compiling OAuth1 TokenProvider.swift
[421/459] Compiling OAuth1 encode.swift
[422/459] Compiling OAuth2 TokenProvider.swift
[423/459] Compiling OAuth2 ServiceAccountTokenProvider.swift
/host/spi-builder-workspace/Sources/OAuth2/ServiceAccountTokenProvider.swift:89:22: error: cannot find 'URLRequest' in scope
87 | let data = try? JSONSerialization.data(withJSONObject: json)
88 |
89 | var urlRequest = URLRequest(url:URL(string:credentials.TokenURI)!)
| `- error: cannot find 'URLRequest' in scope
90 | urlRequest.httpMethod = "POST"
91 | urlRequest.httpBody = data
/host/spi-builder-workspace/Sources/OAuth2/ServiceAccountTokenProvider.swift:94:19: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
92 | urlRequest.setValue("application/json", forHTTPHeaderField:"Content-Type")
93 |
94 | let session = URLSession(configuration: URLSessionConfiguration.default)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
95 | let task: URLSessionDataTask = session.dataTask(with:urlRequest)
96 | {(data, response, error) -> Void in
/host/spi-builder-workspace/Sources/OAuth2/ServiceAccountTokenProvider.swift:94:69: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
92 | urlRequest.setValue("application/json", forHTTPHeaderField:"Content-Type")
93 |
94 | let session = URLSession(configuration: URLSessionConfiguration.default)
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
95 | let task: URLSessionDataTask = session.dataTask(with:urlRequest)
96 | {(data, response, error) -> Void in
/host/spi-builder-workspace/Sources/OAuth2/ServiceAccountTokenProvider.swift:95:15: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
93 |
94 | let session = URLSession(configuration: URLSessionConfiguration.default)
95 | let task: URLSessionDataTask = session.dataTask(with:urlRequest)
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
96 | {(data, response, error) -> Void in
97 | let decoder = JSONDecoder()
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/OAuth2/ServiceAccountTokenProvider.swift:105:10: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'resume'
103 | }
104 | }
105 | task.resume()
| `- error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'resume'
106 | }
107 | }
[424/459] Compiling OAuth2 Token.swift
/host/spi-builder-workspace/Sources/OAuth2/ServiceAccountTokenProvider.swift:89:22: error: cannot find 'URLRequest' in scope
87 | let data = try? JSONSerialization.data(withJSONObject: json)
88 |
89 | var urlRequest = URLRequest(url:URL(string:credentials.TokenURI)!)
| `- error: cannot find 'URLRequest' in scope
90 | urlRequest.httpMethod = "POST"
91 | urlRequest.httpBody = data
/host/spi-builder-workspace/Sources/OAuth2/ServiceAccountTokenProvider.swift:94:19: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
92 | urlRequest.setValue("application/json", forHTTPHeaderField:"Content-Type")
93 |
94 | let session = URLSession(configuration: URLSessionConfiguration.default)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
95 | let task: URLSessionDataTask = session.dataTask(with:urlRequest)
96 | {(data, response, error) -> Void in
/host/spi-builder-workspace/Sources/OAuth2/ServiceAccountTokenProvider.swift:94:69: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
92 | urlRequest.setValue("application/json", forHTTPHeaderField:"Content-Type")
93 |
94 | let session = URLSession(configuration: URLSessionConfiguration.default)
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
95 | let task: URLSessionDataTask = session.dataTask(with:urlRequest)
96 | {(data, response, error) -> Void in
/host/spi-builder-workspace/Sources/OAuth2/ServiceAccountTokenProvider.swift:95:15: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
93 |
94 | let session = URLSession(configuration: URLSessionConfiguration.default)
95 | let task: URLSessionDataTask = session.dataTask(with:urlRequest)
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
96 | {(data, response, error) -> Void in
97 | let decoder = JSONDecoder()
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/OAuth2/ServiceAccountTokenProvider.swift:105:10: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'resume'
103 | }
104 | }
105 | task.resume()
| `- error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'resume'
106 | }
107 | }
error: emit-module command failed with exit code 1 (use -v to see invocation)
[425/460] Emitting module OAuth1
/host/spi-builder-workspace/Sources/OAuth1/Connection.swift:59:33: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
57 | consumerKey : String,
58 | consumerSecret : String,
59 | callback: @escaping (Data?, URLResponse?, Error?)->()) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
60 |
61 | // prepare the request for signing
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/OAuth1/Connection.swift:112:33: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
110 | urlString : String,
111 | parameters : [String:String],
112 | callback: @escaping (Data?, URLResponse?, Error?)->()) throws {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
113 |
114 | try provider.withToken() {(token, consumerKey, consumerSecret, err) in
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/OAuth1/Connection.swift:138:33: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
136 | method : String,
137 | urlString : String,
138 | callback: @escaping (Data?, URLResponse?, Error?)->()) throws {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
139 | let parameters : [String:String] = [:]
140 | try self.performRequest(method:method, urlString:urlString, parameters:parameters, callback:callback)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
[426/460] Compiling OAuth1 Token.swift
[427/460] Compiling OAuth1 BrowserTokenProvider.swift
/host/spi-builder-workspace/Sources/OAuth1/BrowserTokenProvider.swift:120:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
118 |
119 | var data: Data?
120 | var response: HTTPURLResponse?
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
121 | var error : Error?
122 |
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/OAuth1/BrowserTokenProvider.swift:131:22: warning: forced cast of 'HTTPURLResponse?' (aka 'Optional<AnyObject>') to same type has no effect
129 | consumerSecret: credentials.consumerSecret) { d, r, e in
130 | data = d
131 | response = r as! HTTPURLResponse?
| `- warning: forced cast of 'HTTPURLResponse?' (aka 'Optional<AnyObject>') to same type has no effect
132 | error = e
133 | sem2.signal()
/host/spi-builder-workspace/Sources/OAuth1/BrowserTokenProvider.swift:131:26: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
129 | consumerSecret: credentials.consumerSecret) { d, r, e in
130 | data = d
131 | response = r as! HTTPURLResponse?
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
132 | error = e
133 | sem2.signal()
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/OAuth1/BrowserTokenProvider.swift:143:19: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
141 | if let response = response,
142 | let data = data {
143 | if response.statusCode != 200 {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
144 | throw AuthError.tokenRequestFailed
145 | }
[428/460] Compiling OAuth1 Connection.swift
/host/spi-builder-workspace/Sources/OAuth1/Connection.swift:59:33: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
57 | consumerKey : String,
58 | consumerSecret : String,
59 | callback: @escaping (Data?, URLResponse?, Error?)->()) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
60 |
61 | // prepare the request for signing
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/OAuth1/Connection.swift:112:33: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
110 | urlString : String,
111 | parameters : [String:String],
112 | callback: @escaping (Data?, URLResponse?, Error?)->()) throws {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
113 |
114 | try provider.withToken() {(token, consumerKey, consumerSecret, err) in
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/OAuth1/Connection.swift:138:33: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
136 | method : String,
137 | urlString : String,
138 | callback: @escaping (Data?, URLResponse?, Error?)->()) throws {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
139 | let parameters : [String:String] = [:]
140 | try self.performRequest(method:method, urlString:urlString, parameters:parameters, callback:callback)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/OAuth1/Connection.swift:49:52: error: cannot force unwrap value of non-optional type 'String'
47 | // generate the signature
48 | let hmac = try! CryptoSwift.HMAC(key: secret, variant: .sha1).authenticate(Array(signatureBaseString.utf8))
49 | parameters["oauth_signature"] = hmac.toBase64()!
| `- error: cannot force unwrap value of non-optional type 'String'
50 | }
51 |
/host/spi-builder-workspace/Sources/OAuth1/Connection.swift:97:19: error: cannot find 'URLRequest' in scope
95 | urlComponents.queryItems = queryItems
96 |
97 | var request = URLRequest(url: urlComponents.url!)
| `- error: cannot find 'URLRequest' in scope
98 | request.setValue(authorization, forHTTPHeaderField:"Authorization")
99 | request.httpMethod = method
/host/spi-builder-workspace/Sources/OAuth1/Connection.swift:101:19: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
99 | request.httpMethod = method
100 |
101 | let session = URLSession(configuration: URLSessionConfiguration.default)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
102 | let task: URLSessionDataTask = session.dataTask(with:request) { (data, response, error) -> Void in
103 | callback(data, response, error)
/host/spi-builder-workspace/Sources/OAuth1/Connection.swift:101:69: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
99 | request.httpMethod = method
100 |
101 | let session = URLSession(configuration: URLSessionConfiguration.default)
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
102 | let task: URLSessionDataTask = session.dataTask(with:request) { (data, response, error) -> Void in
103 | callback(data, response, error)
/host/spi-builder-workspace/Sources/OAuth1/Connection.swift:102:15: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
100 |
101 | let session = URLSession(configuration: URLSessionConfiguration.default)
102 | let task: URLSessionDataTask = session.dataTask(with:request) { (data, response, error) -> Void in
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
103 | callback(data, response, error)
104 | }
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/OAuth1/Connection.swift:105:10: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'resume'
103 | callback(data, response, error)
104 | }
105 | task.resume()
| `- error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'resume'
106 | }
107 |
[429/460] Compiling OAuth2 GoogleCloudMetadataTokenProvider.swift
/host/spi-builder-workspace/Sources/OAuth2/GoogleCloudMetadataTokenProvider.swift:36:19: error: cannot find 'URLRequest' in scope
34 | let urlString = "http://metadata/computeMetadata/v1/instance/service-accounts/default/token"
35 | let urlComponents = URLComponents(string:urlString)!
36 | var request = URLRequest(url: urlComponents.url!)
| `- error: cannot find 'URLRequest' in scope
37 | request.setValue("Google", forHTTPHeaderField:"Metadata-Flavor")
38 | request.httpMethod = "GET"
/host/spi-builder-workspace/Sources/OAuth2/GoogleCloudMetadataTokenProvider.swift:39:19: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
37 | request.setValue("Google", forHTTPHeaderField:"Metadata-Flavor")
38 | request.httpMethod = "GET"
39 | let session = URLSession(configuration: URLSessionConfiguration.default)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
40 | let task: URLSessionDataTask = session.dataTask(with:request) {
41 | (data, response, error) -> Void in
/host/spi-builder-workspace/Sources/OAuth2/GoogleCloudMetadataTokenProvider.swift:39:69: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
37 | request.setValue("Google", forHTTPHeaderField:"Metadata-Flavor")
38 | request.httpMethod = "GET"
39 | let session = URLSession(configuration: URLSessionConfiguration.default)
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
40 | let task: URLSessionDataTask = session.dataTask(with:request) {
41 | (data, response, error) -> Void in
/host/spi-builder-workspace/Sources/OAuth2/GoogleCloudMetadataTokenProvider.swift:40:15: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
38 | request.httpMethod = "GET"
39 | let session = URLSession(configuration: URLSessionConfiguration.default)
40 | let task: URLSessionDataTask = session.dataTask(with:request) {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 | (data, response, error) -> Void in
42 | if let data = data {
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/OAuth2/GoogleCloudMetadataTokenProvider.swift:48:10: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'resume'
46 | sem.signal()
47 | }
48 | task.resume()
| `- error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'resume'
49 | _ = sem.wait(timeout: DispatchTime.distantFuture)
50 | }
[430/460] Compiling OAuth2 GoogleRefreshTokenProvider.swift
/host/spi-builder-workspace/Sources/OAuth2/GoogleCloudMetadataTokenProvider.swift:36:19: error: cannot find 'URLRequest' in scope
34 | let urlString = "http://metadata/computeMetadata/v1/instance/service-accounts/default/token"
35 | let urlComponents = URLComponents(string:urlString)!
36 | var request = URLRequest(url: urlComponents.url!)
| `- error: cannot find 'URLRequest' in scope
37 | request.setValue("Google", forHTTPHeaderField:"Metadata-Flavor")
38 | request.httpMethod = "GET"
/host/spi-builder-workspace/Sources/OAuth2/GoogleCloudMetadataTokenProvider.swift:39:19: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
37 | request.setValue("Google", forHTTPHeaderField:"Metadata-Flavor")
38 | request.httpMethod = "GET"
39 | let session = URLSession(configuration: URLSessionConfiguration.default)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
40 | let task: URLSessionDataTask = session.dataTask(with:request) {
41 | (data, response, error) -> Void in
/host/spi-builder-workspace/Sources/OAuth2/GoogleCloudMetadataTokenProvider.swift:39:69: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
37 | request.setValue("Google", forHTTPHeaderField:"Metadata-Flavor")
38 | request.httpMethod = "GET"
39 | let session = URLSession(configuration: URLSessionConfiguration.default)
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
40 | let task: URLSessionDataTask = session.dataTask(with:request) {
41 | (data, response, error) -> Void in
/host/spi-builder-workspace/Sources/OAuth2/GoogleCloudMetadataTokenProvider.swift:40:15: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
38 | request.httpMethod = "GET"
39 | let session = URLSession(configuration: URLSessionConfiguration.default)
40 | let task: URLSessionDataTask = session.dataTask(with:request) {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 | (data, response, error) -> Void in
42 | if let data = data {
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/OAuth2/GoogleCloudMetadataTokenProvider.swift:48:10: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'resume'
46 | sem.signal()
47 | }
48 | task.resume()
| `- error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'resume'
49 | _ = sem.wait(timeout: DispatchTime.distantFuture)
50 | }
[431/460] Compiling OAuth2 Connection.swift
/host/spi-builder-workspace/Sources/OAuth2/Connection.swift:32:33: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 | body: Data!,
31 | authorization: String,
32 | callback: @escaping (Data?, URLResponse?, Error?) -> Void) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 |
34 | var urlComponents = URLComponents(string: urlString)!
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/OAuth2/Connection.swift:71:33: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
69 | parameters: [String: String],
70 | body: Data!,
71 | callback: @escaping (Data?, URLResponse?, Error?) -> Void) throws {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
72 |
73 | try provider.withToken {token, err in
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/OAuth2/Connection.swift:93:33: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
91 | method: String,
92 | urlString: String,
93 | callback: @escaping (Data?, URLResponse?, Error?) -> Void) throws {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
94 |
95 | let parameters: [String: String] = [:]
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/OAuth2/Connection.swift:44:19: error: cannot find 'URLRequest' in scope
42 | }
43 |
44 | var request = URLRequest(url: urlComponents.url!)
| `- error: cannot find 'URLRequest' in scope
45 | request.setValue(authorization, forHTTPHeaderField: "Authorization")
46 | request.httpMethod = method
/host/spi-builder-workspace/Sources/OAuth2/Connection.swift:59:19: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
57 | }
58 |
59 | let session = URLSession(configuration: URLSessionConfiguration.default)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
60 | let task: URLSessionDataTask = session.dataTask(with: request) { (data, response, error) -> Void in
61 | callback(data, response, error)
/host/spi-builder-workspace/Sources/OAuth2/Connection.swift:59:69: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
57 | }
58 |
59 | let session = URLSession(configuration: URLSessionConfiguration.default)
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
60 | let task: URLSessionDataTask = session.dataTask(with: request) { (data, response, error) -> Void in
61 | callback(data, response, error)
/host/spi-builder-workspace/Sources/OAuth2/Connection.swift:60:15: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
58 |
59 | let session = URLSession(configuration: URLSessionConfiguration.default)
60 | let task: URLSessionDataTask = session.dataTask(with: request) { (data, response, error) -> Void in
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
61 | callback(data, response, error)
62 | }
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/OAuth2/Connection.swift:63:10: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'resume'
61 | callback(data, response, error)
62 | }
63 | task.resume()
| `- error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'resume'
64 | }
65 |
[432/460] Compiling OAuth2 DefaultTokenProvider.swift
/host/spi-builder-workspace/Sources/OAuth2/Connection.swift:32:33: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 | body: Data!,
31 | authorization: String,
32 | callback: @escaping (Data?, URLResponse?, Error?) -> Void) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 |
34 | var urlComponents = URLComponents(string: urlString)!
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/OAuth2/Connection.swift:71:33: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
69 | parameters: [String: String],
70 | body: Data!,
71 | callback: @escaping (Data?, URLResponse?, Error?) -> Void) throws {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
72 |
73 | try provider.withToken {token, err in
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/OAuth2/Connection.swift:93:33: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
91 | method: String,
92 | urlString: String,
93 | callback: @escaping (Data?, URLResponse?, Error?) -> Void) throws {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
94 |
95 | let parameters: [String: String] = [:]
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/OAuth2/Connection.swift:44:19: error: cannot find 'URLRequest' in scope
42 | }
43 |
44 | var request = URLRequest(url: urlComponents.url!)
| `- error: cannot find 'URLRequest' in scope
45 | request.setValue(authorization, forHTTPHeaderField: "Authorization")
46 | request.httpMethod = method
/host/spi-builder-workspace/Sources/OAuth2/Connection.swift:59:19: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
57 | }
58 |
59 | let session = URLSession(configuration: URLSessionConfiguration.default)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
60 | let task: URLSessionDataTask = session.dataTask(with: request) { (data, response, error) -> Void in
61 | callback(data, response, error)
/host/spi-builder-workspace/Sources/OAuth2/Connection.swift:59:69: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
57 | }
58 |
59 | let session = URLSession(configuration: URLSessionConfiguration.default)
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
60 | let task: URLSessionDataTask = session.dataTask(with: request) { (data, response, error) -> Void in
61 | callback(data, response, error)
/host/spi-builder-workspace/Sources/OAuth2/Connection.swift:60:15: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
58 |
59 | let session = URLSession(configuration: URLSessionConfiguration.default)
60 | let task: URLSessionDataTask = session.dataTask(with: request) { (data, response, error) -> Void in
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
61 | callback(data, response, error)
62 | }
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/OAuth2/Connection.swift:63:10: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'resume'
61 | callback(data, response, error)
62 | }
63 | task.resume()
| `- error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'resume'
64 | }
65 |
BUILD FAILURE 6.2 linux