Build Information
Failed to build Auth, reference 0.5.2 (077bf9), with Swift 6.2 for Linux on 20 Jun 2025 23:03:31 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/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: 0.5.2
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
* tag 0.5.2 -> FETCH_HEAD
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 0.5.2
========================================
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-2":/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/apple/swift-nio.git
Fetching https://github.com/krzyzanowskim/CryptoSwift.git
Fetching https://github.com/attaswift/BigInt
[1/4807] Fetching bigint
[3847/17748] Fetching bigint, cryptoswift
[6620/94087] Fetching bigint, cryptoswift, swift-nio
Fetched https://github.com/attaswift/BigInt from cache (5.67s)
Fetched https://github.com/krzyzanowskim/CryptoSwift.git from cache (5.69s)
Fetched https://github.com/apple/swift-nio.git from cache (5.78s)
Computing version for https://github.com/attaswift/BigInt
Computed https://github.com/attaswift/BigInt at 4.0.0 (8.79s)
Computing version for https://github.com/krzyzanowskim/CryptoSwift.git
Computed https://github.com/krzyzanowskim/CryptoSwift.git at 1.8.4 (0.46s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.83.0 (1.45s)
Fetching https://github.com/apple/swift-system.git
Fetching https://github.com/apple/swift-atomics.git
Fetching https://github.com/apple/swift-collections.git
[1/1797] Fetching swift-atomics
[595/18437] Fetching swift-atomics, swift-collections
[1386/22873] Fetching swift-atomics, swift-collections, swift-system
Fetched https://github.com/apple/swift-system.git from cache (2.20s)
Fetched https://github.com/apple/swift-atomics.git from cache (2.21s)
Fetched https://github.com/apple/swift-collections.git from cache (2.26s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.3.0 (2.98s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.5.0 (0.66s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.2.0 (1.31s)
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-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/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-system.git
Working copy of https://github.com/apple/swift-system.git resolved at 1.5.0
Building for debugging...
[0/72] Write sources
[0/72] Copying PrivacyInfo.xcprivacy
[14/72] Write sources
[22/72] Compiling CNIOWindows shim.c
[23/72] Compiling _AtomicsShims.c
[24/72] Compiling CNIOWindows WSAStartup.c
[25/72] Compiling CNIOLinux liburing_shims.c
[26/72] Compiling CNIOWASI CNIOWASI.c
[27/72] Compiling CNIOLLHTTP c_nio_http.c
[27/72] Write sources
[30/72] Compiling CNIOLinux shim.c
[31/72] Compiling CNIODarwin shim.c
[32/72] Write swift-version-24593BA9C3E375BF.txt
[33/72] Compiling CNIOLLHTTP c_nio_api.c
[34/95] Compiling CNIOLLHTTP c_nio_llhttp.c
[36/116] Emitting module SwiftyBase64
[36/217] Compiling c-nioatomics.c
[38/235] Compiling Atomics UnsafeAtomic.swift
[39/235] Compiling Atomics UnsafeAtomicLazyReference.swift
[40/237] Compiling Atomics Unmanaged extensions.swift
[41/237] Compiling BigInt String Conversion.swift
[42/239] Compiling Atomics ManagedAtomic.swift
[43/239] Compiling Atomics ManagedAtomicLazyReference.swift
[44/239] Compiling Atomics AtomicMemoryOrderings.swift
[45/239] Compiling Atomics DoubleWord.swift
[46/239] Compiling Atomics AtomicStorage.swift
[47/239] Compiling Atomics AtomicValue.swift
[48/239] Compiling Atomics AtomicReference.swift
[49/239] Compiling Atomics IntegerConformances.swift
[50/239] Emitting module InternalCollectionsUtilities
[51/239] Compiling Atomics AtomicInteger.swift
[52/239] Compiling Atomics AtomicOptionalWrappable.swift
[53/240] Compiling Atomics OptionalRawRepresentable.swift
[54/240] Compiling Atomics RawRepresentable.swift
[57/240] Compiling Atomics PointerConformances.swift
[58/240] Compiling Atomics Primitives.native.swift
[59/240] Compiling Atomics AtomicBool.swift
[61/240] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[62/240] Compiling SwiftyBase64 Alphabets.swift
[63/240] Compiling _NIODataStructures PriorityQueue.swift
[64/240] Compiling SwiftyBase64 Base64.swift
[65/241] Compiling _NIODataStructures _TinyArray.swift
[67/241] Emitting module _NIOBase64
[68/241] Compiling _NIOBase64 Base64.swift
[68/242] Wrapping AST for SwiftyBase64 for debugging
[71/242] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
[72/243] Wrapping AST for _NIOBase64 for debugging
[76/250] Wrapping AST for InternalCollectionsUtilities for debugging
[78/258] Compiling Atomics IntegerOperations.swift
[80/258] Compiling DequeModule Deque+CustomReflectable.swift
[81/258] Compiling DequeModule Deque+Descriptions.swift
[82/260] Compiling DequeModule _DequeBuffer.swift
[83/260] Compiling DequeModule _DequeBufferHeader.swift
[84/260] Compiling DequeModule Deque+Equatable.swift
[85/260] Compiling DequeModule Deque+ExpressibleByArrayLiteral.swift
[86/260] Compiling DequeModule Deque+Extras.swift
[87/260] Compiling DequeModule Deque+Hashable.swift
[88/260] Compiling DequeModule _DequeSlot.swift
[89/260] Compiling DequeModule _UnsafeWrappedBuffer.swift
[90/260] Compiling _NIODataStructures Heap.swift
[91/260] Emitting module _NIODataStructures
[91/261] Compiling c-atomics.c
[94/267] Compiling BigInt Subtraction.swift
[95/267] Compiling BigInt Words and Bits.swift
[95/267] Wrapping AST for _NIODataStructures for debugging
[97/267] Compiling DequeModule Deque+Testing.swift
[98/267] Compiling DequeModule Deque._Storage.swift
[99/267] Compiling DequeModule Deque._UnsafeHandle.swift
[100/267] Compiling DequeModule Deque.swift
[101/267] Compiling NIOConcurrencyHelpers NIOLockedValueBox.swift
[102/267] Compiling DequeModule Deque+Codable.swift
[103/267] Compiling DequeModule Deque+Collection.swift
[116/267] Emitting module BigInt
[120/267] Compiling NIOConcurrencyHelpers NIOLock.swift
[125/268] Emitting module DequeModule
[126/269] Wrapping AST for BigInt for debugging
[128/269] Compiling NIOConcurrencyHelpers lock.swift
[128/269] Wrapping AST for DequeModule for debugging
[130/269] Emitting module NIOConcurrencyHelpers
[131/269] Compiling NIOConcurrencyHelpers NIOAtomic.swift
[132/269] Compiling NIOConcurrencyHelpers atomics.swift
[133/270] Wrapping AST for NIOConcurrencyHelpers for debugging
[135/270] Emitting module Atomics
[136/270] Compiling CryptoSwift XChaCha20+Foundation.swift
[137/270] Compiling CryptoSwift Generics.swift
[138/270] Compiling CryptoSwift HKDF.swift
[139/270] Compiling CryptoSwift HMAC.swift
[140/270] Compiling CryptoSwift ISO10126Padding.swift
[141/270] Compiling CryptoSwift ISO78164Padding.swift
[142/270] Compiling CryptoSwift Int+Extension.swift
[143/270] Compiling CryptoSwift MD5.swift
[144/270] Compiling CryptoSwift NoPadding.swift
[145/270] Compiling CryptoSwift Operators.swift
[146/270] Compiling CryptoSwift DER.swift
[147/270] Compiling CryptoSwift PBKDF1.swift
[148/270] Compiling CryptoSwift PBKDF2.swift
[149/270] Compiling CryptoSwift PKCS1v15.swift
[156/285] Wrapping AST for Atomics for debugging
[158/345] Compiling NIOCore MulticastChannel.swift
[159/345] Compiling NIOCore NIOAny.swift
[160/345] Compiling NIOCore NIOCloseOnErrorHandler.swift
[161/345] Compiling NIOCore NIOLoopBound.swift
[162/345] Compiling NIOCore NIOPooledRecvBufferAllocator.swift
[163/345] Compiling NIOCore NIOScheduledCallback.swift
[164/345] Compiling NIOCore NIOSendable.swift
[165/345] Compiling NIOCore RecvByteBufferAllocator.swift
[166/353] Compiling NIOCore EventLoop+SerialExecutor.swift
[167/353] Compiling NIOCore EventLoop.swift
[168/353] Compiling NIOCore AddressedEnvelope.swift
[169/353] Compiling NIOCore AsyncAwaitSupport.swift
[170/353] Compiling NIOCore AsyncChannel.swift
[171/353] Compiling NIOCore AsyncChannelHandler.swift
[172/353] Compiling NIOCore AsyncChannelInboundStream.swift
[173/353] Compiling NIOCore AsyncChannelOutboundWriter.swift
[174/353] Compiling NIOCore NIOAsyncSequenceProducer.swift
[175/353] Compiling NIOCore NIOAsyncSequenceProducerStrategies.swift
[176/353] Compiling NIOCore NIOAsyncWriter.swift
[177/353] Compiling NIOCore ByteBuffer-multi-int.swift
[178/353] Compiling NIOCore ByteBuffer-quicBinaryEncodingStrategy.swift
[179/353] Compiling NIOCore ByteBuffer-views.swift
[180/353] Compiling NIOCore Channel.swift
[181/353] Compiling NIOCore ChannelHandler.swift
[182/353] Compiling NIOCore ChannelHandlers.swift
[183/353] Compiling NIOCore ChannelInvoker.swift
[184/353] Compiling NIOCore ChannelOption.swift
[185/353] Compiling NIOCore ChannelPipeline.swift
[186/353] Compiling NIOCore EventLoopFuture+AssumeIsolated.swift
[187/353] Compiling NIOCore EventLoopFuture+Deprecated.swift
[188/353] Compiling NIOCore EventLoopFuture+WithEventLoop.swift
[189/353] Compiling NIOCore EventLoopFuture.swift
[190/353] Compiling NIOCore FileDescriptor.swift
[191/353] Compiling NIOCore FileHandle.swift
[192/353] Compiling NIOCore FileRegion.swift
[193/353] Compiling NIOCore GlobalSingletons.swift
[194/353] Compiling NIOCore IO.swift
[196/353] Compiling NIOCore SingleStepByteToMessageDecoder.swift
[197/353] Compiling NIOCore SocketAddresses.swift
[198/353] Compiling NIOCore SocketOptionProvider.swift
[199/353] Compiling NIOCore SystemCallHelpers.swift
[200/353] Compiling NIOCore TimeAmount+Duration.swift
[201/353] Compiling NIOCore TypeAssistedChannelHandler.swift
[202/353] Compiling NIOCore UniversalBootstrapSupport.swift
[203/353] Compiling NIOCore Utilities.swift
[204/353] Compiling CryptoSwift Data+Extension.swift
[205/353] Compiling CryptoSwift HMAC+Foundation.swift
[206/353] Compiling CryptoSwift Rabbit+Foundation.swift
[207/353] Compiling CryptoSwift String+FoundationExtension.swift
[208/353] Compiling CryptoSwift Utils+Foundation.swift
[209/353] Compiling NIOCore IOData.swift
[210/353] Compiling NIOCore IPProtocol.swift
[211/353] Compiling NIOCore IntegerBitPacking.swift
[212/353] Compiling NIOCore IntegerTypes.swift
[213/353] Compiling NIOCore Interfaces.swift
[214/353] Compiling NIOCore Linux.swift
[215/353] Compiling NIOCore MarkedCircularBuffer.swift
[231/353] Compiling CryptoSwift Signature.swift
[232/353] Compiling CryptoSwift StreamDecryptor.swift
[233/353] Compiling CryptoSwift StreamEncryptor.swift
[234/353] Compiling CryptoSwift String+Extension.swift
[235/353] Compiling CryptoSwift UInt128.swift
[236/353] Compiling CryptoSwift UInt16+Extension.swift
[237/353] Compiling CryptoSwift UInt32+Extension.swift
[238/353] Compiling CryptoSwift UInt64+Extension.swift
[239/353] Compiling CryptoSwift UInt8+Extension.swift
[240/353] Compiling CryptoSwift Updatable.swift
[241/353] Compiling CryptoSwift Utils.swift
[242/353] Compiling CryptoSwift XChaCha20.swift
[243/353] Compiling CryptoSwift ZeroPadding.swift
[244/353] Compiling CryptoSwift resource_bundle_accessor.swift
[253/353] Compiling NIOCore NIOThrowingAsyncSequenceProducer.swift
[254/353] Compiling NIOCore BSDSocketAPI.swift
[255/353] Compiling NIOCore ByteBuffer-aux.swift
[256/353] Compiling NIOCore ByteBuffer-binaryEncodedLengthPrefix.swift
[257/353] Compiling NIOCore ByteBuffer-conversions.swift
[258/353] Compiling NIOCore ByteBuffer-core.swift
[259/353] Compiling NIOCore ByteBuffer-hex.swift
[260/353] Compiling NIOCore ByteBuffer-int.swift
[261/353] Compiling NIOCore ByteBuffer-lengthPrefix.swift
[262/353] Compiling NIOCore CircularBuffer.swift
[263/353] Compiling NIOCore Codec.swift
[264/353] Compiling NIOCore ConvenienceOptionSupport.swift
[265/353] Compiling NIOCore DeadChannel.swift
[266/353] Compiling NIOCore DispatchQueue+WithFuture.swift
[267/353] Compiling NIOCore EventLoop+Deprecated.swift
[268/353] Emitting module CryptoSwift
[285/353] Compiling CryptoSwift PKCS5.swift
[286/353] Compiling CryptoSwift PKCS7.swift
[287/353] Compiling CryptoSwift PKCS7Padding.swift
[288/353] Compiling CryptoSwift Padding.swift
[289/353] Compiling CryptoSwift Poly1305.swift
[290/353] Compiling CryptoSwift RSA+Cipher.swift
[291/353] Compiling CryptoSwift RSA+Signature.swift
[292/353] Compiling CryptoSwift RSA.swift
[293/353] Compiling CryptoSwift Rabbit.swift
[294/353] Compiling CryptoSwift SHA1.swift
[295/353] Compiling CryptoSwift SHA2.swift
[296/353] Compiling CryptoSwift SHA3.swift
[297/353] Compiling CryptoSwift Scrypt.swift
[298/353] Compiling CryptoSwift SecureBytes.swift
[299/354] Wrapping AST for CryptoSwift for debugging
[328/354] Emitting module NIOCore
[329/360] Wrapping AST for NIOCore for debugging
[331/405] Compiling NIOEmbedded AsyncTestingEventLoop.swift
[332/405] Compiling NIOEmbedded AsyncTestingChannel.swift
[333/405] Emitting module NIOEmbedded
[334/405] Compiling NIOEmbedded Embedded.swift
[335/406] Wrapping AST for NIOEmbedded for debugging
[337/406] Compiling NIOPosix IO.swift
[338/406] Compiling NIOPosix IntegerBitPacking.swift
[339/406] Compiling NIOPosix IntegerTypes.swift
[340/406] Compiling NIOPosix Linux.swift
[341/406] Compiling NIOPosix LinuxCPUSet.swift
[342/406] Compiling NIOPosix LinuxUring.swift
[343/406] Compiling NIOPosix MultiThreadedEventLoopGroup.swift
[344/412] Compiling NIOPosix ThreadPosix.swift
[345/412] Compiling NIOPosix ThreadWindows.swift
[346/412] Compiling NIOPosix UnsafeTransfer.swift
[347/412] Compiling NIOPosix Utilities.swift
[348/412] Compiling NIOPosix VsockAddress.swift
[349/412] Compiling NIOPosix VsockChannelEvents.swift
[350/412] Compiling NIOPosix Pool.swift
[351/412] Compiling NIOPosix PosixSingletons+ConcurrencyTakeOver.swift
[352/412] Compiling NIOPosix PosixSingletons.swift
[353/412] Compiling NIOPosix RawSocketBootstrap.swift
[354/412] Compiling NIOPosix Resolver.swift
[355/412] Compiling NIOPosix Selectable.swift
[356/412] Compiling NIOPosix ServerSocket.swift
[357/412] Compiling NIOPosix Socket.swift
[358/412] Compiling NIOPosix SocketChannel.swift
[359/412] Compiling NIOPosix SocketProtocols.swift
[360/412] Compiling NIOPosix System.swift
[361/412] Compiling NIOPosix Thread.swift
[362/412] Compiling NIOPosix SelectableChannel.swift
[363/412] Compiling NIOPosix SelectableEventLoop.swift
[364/412] Compiling NIOPosix SelectorEpoll.swift
[365/412] Compiling NIOPosix SelectorGeneric.swift
[366/412] Compiling NIOPosix SelectorKqueue.swift
[367/412] Compiling NIOPosix SelectorUring.swift
[368/412] Emitting module NIOPosix
[369/412] Compiling NIOPosix BSDSocketAPICommon.swift
[370/412] Compiling NIOPosix BSDSocketAPIPosix.swift
[371/412] Compiling NIOPosix BSDSocketAPIWindows.swift
[372/412] Compiling NIOPosix BaseSocket.swift
[373/412] Compiling NIOPosix BaseSocketChannel+SocketOptionProvider.swift
[374/412] Compiling NIOPosix BaseSocketChannel.swift
[375/412] Compiling NIOPosix BaseStreamSocketChannel.swift
[376/412] Compiling NIOPosix Bootstrap.swift
[377/412] Compiling NIOPosix ControlMessage.swift
[378/412] Compiling NIOPosix DatagramVectorReadManager.swift
[379/412] Compiling NIOPosix Errors+Any.swift
[380/412] Compiling NIOPosix FileDescriptor.swift
[381/412] Compiling NIOPosix GetaddrinfoResolver.swift
[382/412] Compiling NIOPosix HappyEyeballs.swift
[383/412] Compiling NIOPosix NIOThreadPool.swift
[384/412] Compiling NIOPosix NonBlockingFileIO.swift
[385/412] Compiling NIOPosix PendingDatagramWritesManager.swift
[386/412] Compiling NIOPosix PendingWritesManager.swift
[387/412] Compiling NIOPosix PipeChannel.swift
[388/412] Compiling NIOPosix PipePair.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] Compiling NIOHTTP1 NIOHTTPClientUpgradeHandler.swift
[398/434] Compiling NIOHTTP1 NIOHTTPObjectAggregator.swift
[399/434] Compiling NIOHTTP1 NIOTypedHTTPServerUpgradeHandler.swift
[400/434] Compiling NIOHTTP1 NIOTypedHTTPServerUpgraderStateMachine.swift
[401/434] Compiling NIOHTTP1 HTTPServerProtocolErrorHandler.swift
[402/434] Compiling NIOHTTP1 HTTPServerUpgradeHandler.swift
[403/434] Compiling NIOHTTP1 HTTPPipelineSetup.swift
[404/434] Compiling NIOHTTP1 HTTPServerPipelineHandler.swift
[405/434] Compiling NIOHTTP1 HTTPHeaderValidator.swift
[406/434] Compiling NIOHTTP1 HTTPHeaders+Validation.swift
[407/434] Compiling NIOHTTP1 HTTPTypedPipelineSetup.swift
[408/434] Compiling NIOHTTP1 HTTPTypes.swift
[409/434] Emitting module NIOHTTP1
[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] Compiling TinyHTTPServer TinyHTTPServer.swift
[416/437] Emitting module TinyHTTPServer
[417/453] Wrapping AST for TinyHTTPServer for debugging
[419/459] Compiling OAuth2 TokenProvider.swift
[420/460] Compiling OAuth1 TokenProvider.swift
[421/460] Compiling OAuth1 encode.swift
[422/460] Compiling OAuth1 openURL.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[423/460] Emitting module OAuth2
/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
error: emit-module command failed with exit code 1 (use -v to see invocation)
[424/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
[425/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 | }
[426/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 |
[427/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 |
[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 BrowserTokenProvider.swift
/host/spi-builder-workspace/Sources/OAuth2/BrowserTokenProvider.swift:124:30: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
122 | body: nil,
123 | authorization: authorization) { data, response, _ in
124 | if let c = (response as? HTTPURLResponse)!.allHeaderFields["Content-Type"] {
| `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
125 | contentType = c as? String
126 | }
/host/spi-builder-workspace/Sources/OAuth2/BrowserTokenProvider.swift:124:52: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
122 | body: nil,
123 | authorization: authorization) { data, response, _ in
124 | if let c = (response as? HTTPURLResponse)!.allHeaderFields["Content-Type"] {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
125 | contentType = c as? String
126 | }
[430/460] Compiling OAuth2 Code.swift
/host/spi-builder-workspace/Sources/OAuth2/BrowserTokenProvider.swift:124:30: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
122 | body: nil,
123 | authorization: authorization) { data, response, _ in
124 | if let c = (response as? HTTPURLResponse)!.allHeaderFields["Content-Type"] {
| `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
125 | contentType = c as? String
126 | }
/host/spi-builder-workspace/Sources/OAuth2/BrowserTokenProvider.swift:124:52: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
122 | body: nil,
123 | authorization: authorization) { data, response, _ in
124 | if let c = (response as? HTTPURLResponse)!.allHeaderFields["Content-Type"] {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
125 | contentType = c as? String
126 | }
[431/460] 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 | }
[432/460] 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 | }
[433/460] Compiling OAuth2 openURL.swift
[434/460] Compiling OAuth1 Token.swift
[435/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 | }
[436/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 | }
BUILD FAILURE 6.2 linux