Build Information
Failed to build GithubAPI, reference master (7705cd
), with Swift 6.1 for Android on 28 May 2025 01:41:29 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/serhii-londar/GithubAPI.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/serhii-londar/GithubAPI
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at 7705cde Merge pull request #16 from serhii-londar/swift-5.0
Cloned https://github.com/serhii-londar/GithubAPI.git
Revision (git rev-parse @):
7705cde68eaabe5fbd884af72627a4147228ba8f
SUCCESS checkout https://github.com/serhii-londar/GithubAPI.git at master
========================================
Build
========================================
Selected platform: android
Swift version: 6.1
Building package at path: $PWD
https://github.com/serhii-londar/GithubAPI.git
https://github.com/serhii-londar/GithubAPI.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
{
"identity" : "baseapi",
"requirement" : {
"range" : [
{
"lower_bound" : "0.1.0",
"upper_bound" : "1.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/serhii-londar/BaseAPI.git"
}
],
"manifest_display_name" : "GithubAPI",
"name" : "GithubAPI",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "9.0"
}
],
"products" : [
{
"name" : "GithubAPI",
"targets" : [
"GithubAPI"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "GithubAPI",
"module_type" : "SwiftTarget",
"name" : "GithubAPI",
"path" : "GithubAPI/Classes",
"product_dependencies" : [
"BaseAPI"
],
"product_memberships" : [
"GithubAPI"
],
"sources" : [
"ActivityAPI/ActivityAPI.swift",
"ActivityAPI/Events/EventsAPI.swift",
"ActivityAPI/Events/Models/EventResponse.swift",
"ActivityAPI/Events/Models/EventResponseActor.swift",
"ActivityAPI/Events/Models/EventResponseOrg.swift",
"ActivityAPI/Events/Models/EventResponseRepo.swift",
"ActivityAPI/Events/Models/EventTypes/EventTypes.swift",
"ActivityAPI/Feeds/FeedsAPI.swift",
"ActivityAPI/Feeds/Models/FeedsResponse.swift",
"ActivityAPI/Notifications/Models/NotificationsOwner.swift",
"ActivityAPI/Notifications/Models/NotificationsRepository.swift",
"ActivityAPI/Notifications/Models/NotificationsResponse.swift",
"ActivityAPI/Notifications/Models/NotificationsSubject.swift",
"ActivityAPI/Notifications/NotificationsAPI.swift",
"ActivityAPI/Starring/Models/StarredRepositories.swift",
"ActivityAPI/Starring/StarringAPI.swift",
"Authentication.swift",
"GithubAPI.swift",
"IssuesAPI/IssuesAPI.swift",
"IssuesAPI/Models/CreateIssue/Issue.swift",
"IssuesAPI/Models/GetIssueResponse/GetIssueResponse.swift",
"IssuesAPI/Models/GetIssueResponse/GetIssueResponseAssignee.swift",
"IssuesAPI/Models/GetIssueResponse/GetIssueResponseLabel.swift",
"IssuesAPI/Models/GetIssueResponse/GetIssueResponseMilestone.swift",
"IssuesAPI/Models/GetIssueResponse/GetIssueResponsePermission.swift",
"IssuesAPI/Models/GetIssueResponse/GetIssueResponsePullRequest.swift",
"IssuesAPI/Models/GetIssueResponse/GetIssueResponseRepository.swift",
"Login/GithubLogin.swift",
"Login/GithubLoginAPI.swift",
"Login/Models/AccessTokenResponse.swift",
"RepositoriesAPI/Models/Repository/RepositoryLicense.swift",
"RepositoriesAPI/Models/Repository/RepositoryOrganization.swift",
"RepositoriesAPI/Models/Repository/RepositoryOwner.swift",
"RepositoriesAPI/Models/Repository/RepositoryParent.swift",
"RepositoriesAPI/Models/Repository/RepositoryPermission.swift",
"RepositoriesAPI/Models/Repository/RepositoryReponse.swift",
"RepositoriesAPI/Models/RepositoryContents/CreateFile/FileRequest.swift",
"RepositoriesAPI/Models/RepositoryContents/CreateFile/FileResponse.swift",
"RepositoriesAPI/Models/RepositoryContents/RepositoryContentsLink.swift",
"RepositoriesAPI/Models/RepositoryContents/RepositoryContentsReponse.swift",
"RepositoriesAPI/RepositoriesAPI.swift",
"RepositoriesAPI/RepositoriesContentsAPI.swift",
"SearchAPI/Models/Code/SearchCodeItem.swift",
"SearchAPI/Models/Code/SearchCodeOwner.swift",
"SearchAPI/Models/Code/SearchCodeRepository.swift",
"SearchAPI/Models/Code/SearchCodeResponse.swift",
"SearchAPI/Models/Commits/SearchCommitsAuthor.swift",
"SearchAPI/Models/Commits/SearchCommitsCommit.swift",
"SearchAPI/Models/Commits/SearchCommitsCommitter.swift",
"SearchAPI/Models/Commits/SearchCommitsItem.swift",
"SearchAPI/Models/Commits/SearchCommitsOwner.swift",
"SearchAPI/Models/Commits/SearchCommitsParent.swift",
"SearchAPI/Models/Commits/SearchCommitsRepository.swift",
"SearchAPI/Models/Commits/SearchCommitsResponse.swift",
"SearchAPI/Models/Commits/SearchCommitsTree.swift",
"SearchAPI/Models/Issues/SearchIssuesAssignee.swift",
"SearchAPI/Models/Issues/SearchIssuesItem.swift",
"SearchAPI/Models/Issues/SearchIssuesLabel.swift",
"SearchAPI/Models/Issues/SearchIssuesMilestone.swift",
"SearchAPI/Models/Issues/SearchIssuesMilestoneCreator.swift",
"SearchAPI/Models/Issues/SearchIssuesPullRequest.swift",
"SearchAPI/Models/Issues/SearchIssuesResponse.swift",
"SearchAPI/Models/Issues/SearchIssuesUser.swift",
"SearchAPI/Models/Repositories/SearchRepositoriesItem.swift",
"SearchAPI/Models/Repositories/SearchRepositoriesOwner.swift",
"SearchAPI/Models/Repositories/SearchRepositoriesResponse.swift",
"SearchAPI/Models/Users/SearchUsersItem.swift",
"SearchAPI/Models/Users/SearchUsersResponse.swift",
"SearchAPI/SearchAPI.swift",
"UserAPI/Models/GetAllUsers/AllUsersResponse.swift",
"UserAPI/Models/GetOtherUser/OtherUserError.swift",
"UserAPI/Models/GetOtherUser/OtherUserResponse.swift",
"UserAPI/Models/GetUser/UserPlan.swift",
"UserAPI/Models/GetUser/UserResponse.swift",
"UserAPI/Models/UpdateUser/UpdateUser.swift",
"UserAPI/UserAPI.swift"
],
"type" : "library"
}
],
"tools_version" : "5.2"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
Fetching https://github.com/serhii-londar/BaseAPI.git
[1/386] Fetching baseapi
Fetched https://github.com/serhii-londar/BaseAPI.git from cache (0.32s)
Computing version for https://github.com/serhii-londar/BaseAPI.git
Computed https://github.com/serhii-londar/BaseAPI.git at 0.2.2 (0.86s)
Creating working copy for https://github.com/serhii-londar/BaseAPI.git
Working copy of https://github.com/serhii-londar/BaseAPI.git resolved at 0.2.2
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-24593BA9C3E375BF.txt
[4/11] Compiling BaseAPI ResponsetHeaderFields.swift
[5/11] Compiling BaseAPI RequestHeaderFields.swift
[6/11] Compiling BaseAPI RequestMethod.swift
[7/11] Compiling BaseAPI Request.swift
/host/spi-builder-workspace/.build/checkouts/BaseAPI/BaseAPI/Classes/Request.swift:29:40: error: cannot find type 'URLRequest' in scope
27 | }
28 |
29 | public func request() -> (request: URLRequest?, error: Error?) {
| `- error: cannot find type 'URLRequest' in scope
30 | // First encode just the base URL
31 | if let encodedBaseUrl = url.addingPercentEncoding(withAllowedCharacters: .urlFragmentAllowed) {
/host/spi-builder-workspace/.build/checkouts/BaseAPI/BaseAPI/Classes/Request.swift:35:31: error: cannot find 'URLRequest' in scope
33 | let finalUrl = appendParametersToUrl(encodedBaseUrl)
34 | if let url = URL(string: finalUrl) {
35 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
36 | if let headers = headers {
37 | for (key, value) in headers {
error: emit-module command failed with exit code 1 (use -v to see invocation)
[8/11] Compiling BaseAPI CharacterSet.swift
[9/11] Emitting module BaseAPI
/host/spi-builder-workspace/.build/checkouts/BaseAPI/BaseAPI/Classes/BaseAPI.swift:14:46: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | #endif
13 |
14 | public typealias BaseAPICompletion = (Data?, URLResponse?, Error?) -> Swift.Void
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | public typealias BaseAPIResult = SynchronousDataTaskResult
16 |
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/.build/checkouts/BaseAPI/BaseAPI/Classes/BaseAPI.swift:18:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 |
17 | open class BaseAPI {
18 | var session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 | private let parsingQueue = DispatchQueue(label: "BaseAPI-parsing-queue")
20 |
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/BaseAPI/BaseAPI/Classes/BaseAPI.swift:25:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 | }
24 |
25 | public init(session: URLSession) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | self.session = session
27 | }
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/BaseAPI/BaseAPI/Classes/BaseAPI.swift:29:31: error: cannot find type 'URLRequest' in scope
27 | }
28 |
29 | public func send(request: URLRequest, completion: @escaping BaseAPICompletion) {
| `- error: cannot find type 'URLRequest' in scope
30 | session.dataTask(with: request, completionHandler: completion).resume()
31 | }
/host/spi-builder-workspace/.build/checkouts/BaseAPI/BaseAPI/Classes/BaseAPI.swift:33:31: error: cannot find type 'URLRequest' in scope
31 | }
32 |
33 | public func send(request: URLRequest) -> BaseAPIResult {
| `- error: cannot find type 'URLRequest' in scope
34 | return session.synchronousDataTask(request: request)
35 | }
/host/spi-builder-workspace/.build/checkouts/BaseAPI/BaseAPI/Classes/BaseAPI.swift:78:62: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
76 | /// MARK - private
77 |
78 | private func handle<T: Decodable>(data: Data?, response: URLResponse?, error: Error?, callbackQueue: DispatchQueue = .main, success: @escaping (T) -> Void, failure: @escaping (Error) -> Void) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
79 | if let data = data {
80 | do {
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/.build/checkouts/BaseAPI/BaseAPI/Classes/BaseAPI.swift:93:48: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
91 | }
92 |
93 | private func handle(data: Data?, response: URLResponse?, error: Error?, callbackQueue: DispatchQueue = .main, success: @escaping () -> Void, failure: @escaping (Error) -> Void) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
94 | if let resp = response as? HTTPURLResponse, resp.statusCode == 200 {
95 | callbackQueue.async { success() }
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/.build/checkouts/BaseAPI/BaseAPI/Classes/Extensions/URLSession.swift:16:70: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | #endif
15 |
16 | public typealias SynchronousDataTaskResult = (data: Data?, response: URLResponse?, error: Error?)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 |
18 | extension URLSession {
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/.build/checkouts/BaseAPI/BaseAPI/Classes/Extensions/URLSession.swift:18:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
16 | public typealias SynchronousDataTaskResult = (data: Data?, response: URLResponse?, error: Error?)
17 |
18 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
19 | public func synchronousDataTask(request: URLRequest) -> SynchronousDataTaskResult {
20 | var data: Data?
/host/spi-builder-workspace/.build/checkouts/BaseAPI/BaseAPI/Classes/Request.swift:29:40: error: cannot find type 'URLRequest' in scope
27 | }
28 |
29 | public func request() -> (request: URLRequest?, error: Error?) {
| `- error: cannot find type 'URLRequest' in scope
30 | // First encode just the base URL
31 | if let encodedBaseUrl = url.addingPercentEncoding(withAllowedCharacters: .urlFragmentAllowed) {
[10/11] Compiling BaseAPI URLSession.swift
/host/spi-builder-workspace/.build/checkouts/BaseAPI/BaseAPI/Classes/Extensions/URLSession.swift:16:70: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | #endif
15 |
16 | public typealias SynchronousDataTaskResult = (data: Data?, response: URLResponse?, error: Error?)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 |
18 | extension URLSession {
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/.build/checkouts/BaseAPI/BaseAPI/Classes/Extensions/URLSession.swift:18:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
16 | public typealias SynchronousDataTaskResult = (data: Data?, response: URLResponse?, error: Error?)
17 |
18 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
19 | public func synchronousDataTask(request: URLRequest) -> SynchronousDataTaskResult {
20 | var data: Data?
/host/spi-builder-workspace/.build/checkouts/BaseAPI/BaseAPI/Classes/Extensions/URLSession.swift:19:46: error: cannot find type 'URLRequest' in scope
17 |
18 | extension URLSession {
19 | public func synchronousDataTask(request: URLRequest) -> SynchronousDataTaskResult {
| `- error: cannot find type 'URLRequest' in scope
20 | var data: Data?
21 | var response: URLResponse?
[11/11] Compiling BaseAPI BaseAPI.swift
/host/spi-builder-workspace/.build/checkouts/BaseAPI/BaseAPI/Classes/BaseAPI.swift:14:46: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | #endif
13 |
14 | public typealias BaseAPICompletion = (Data?, URLResponse?, Error?) -> Swift.Void
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | public typealias BaseAPIResult = SynchronousDataTaskResult
16 |
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/.build/checkouts/BaseAPI/BaseAPI/Classes/BaseAPI.swift:18:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 |
17 | open class BaseAPI {
18 | var session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 | private let parsingQueue = DispatchQueue(label: "BaseAPI-parsing-queue")
20 |
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/BaseAPI/BaseAPI/Classes/BaseAPI.swift:25:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 | }
24 |
25 | public init(session: URLSession) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | self.session = session
27 | }
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/BaseAPI/BaseAPI/Classes/BaseAPI.swift:29:31: error: cannot find type 'URLRequest' in scope
27 | }
28 |
29 | public func send(request: URLRequest, completion: @escaping BaseAPICompletion) {
| `- error: cannot find type 'URLRequest' in scope
30 | session.dataTask(with: request, completionHandler: completion).resume()
31 | }
/host/spi-builder-workspace/.build/checkouts/BaseAPI/BaseAPI/Classes/BaseAPI.swift:33:31: error: cannot find type 'URLRequest' in scope
31 | }
32 |
33 | public func send(request: URLRequest) -> BaseAPIResult {
| `- error: cannot find type 'URLRequest' in scope
34 | return session.synchronousDataTask(request: request)
35 | }
/host/spi-builder-workspace/.build/checkouts/BaseAPI/BaseAPI/Classes/BaseAPI.swift:78:62: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
76 | /// MARK - private
77 |
78 | private func handle<T: Decodable>(data: Data?, response: URLResponse?, error: Error?, callbackQueue: DispatchQueue = .main, success: @escaping (T) -> Void, failure: @escaping (Error) -> Void) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
79 | if let data = data {
80 | do {
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/.build/checkouts/BaseAPI/BaseAPI/Classes/BaseAPI.swift:93:48: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
91 | }
92 |
93 | private func handle(data: Data?, response: URLResponse?, error: Error?, callbackQueue: DispatchQueue = .main, success: @escaping () -> Void, failure: @escaping (Error) -> Void) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
94 | if let resp = response as? HTTPURLResponse, resp.statusCode == 200 {
95 | callbackQueue.async { success() }
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/.build/checkouts/BaseAPI/BaseAPI/Classes/BaseAPI.swift:22:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
20 |
21 | public init() {
22 | self.session = URLSession(configuration: URLSessionConfiguration.default)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
23 | }
24 |
/host/spi-builder-workspace/.build/checkouts/BaseAPI/BaseAPI/Classes/BaseAPI.swift:22:74: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
20 |
21 | public init() {
22 | self.session = URLSession(configuration: URLSessionConfiguration.default)
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
23 | }
24 |
/host/spi-builder-workspace/.build/checkouts/BaseAPI/BaseAPI/Classes/BaseAPI.swift:30:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
28 |
29 | public func send(request: URLRequest, completion: @escaping BaseAPICompletion) {
30 | session.dataTask(with: request, completionHandler: completion).resume()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
31 | }
32 |
/host/spi-builder-workspace/.build/checkouts/BaseAPI/BaseAPI/Classes/BaseAPI.swift:34:24: error: value of type 'URLSession' (aka 'AnyObject') has no member 'synchronousDataTask'
32 |
33 | public func send(request: URLRequest) -> BaseAPIResult {
34 | return session.synchronousDataTask(request: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'synchronousDataTask'
35 | }
36 |
/host/spi-builder-workspace/.build/checkouts/BaseAPI/BaseAPI/Classes/Request.swift:29:40: error: cannot find type 'URLRequest' in scope
27 | }
28 |
29 | public func request() -> (request: URLRequest?, error: Error?) {
| `- error: cannot find type 'URLRequest' in scope
30 | // First encode just the base URL
31 | if let encodedBaseUrl = url.addingPercentEncoding(withAllowedCharacters: .urlFragmentAllowed) {
/host/spi-builder-workspace/.build/checkouts/BaseAPI/BaseAPI/Classes/BaseAPI.swift:43:32: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
41 | let buildRequest = request.request()
42 | if let urlRequest = buildRequest.request {
43 | let task = session.dataTask(with: urlRequest) { (data, response, error) in
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
44 | callbackQueue.async { completion(data, response, error) }
45 | }
/host/spi-builder-workspace/.build/checkouts/BaseAPI/BaseAPI/Classes/BaseAPI.swift:56:28: error: value of type 'URLSession' (aka 'AnyObject') has no member 'synchronousDataTask'
54 | let buildRequest = request.request()
55 | if let urlRequest = buildRequest.request {
56 | return session.synchronousDataTask(request: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'synchronousDataTask'
57 | } else {
58 | return (nil, nil, buildRequest.error)
/host/spi-builder-workspace/.build/checkouts/BaseAPI/BaseAPI/Classes/BaseAPI.swift:89:56: error: value of type 'URLResponse' (aka 'AnyObject') has no member 'description'
87 | callFailure(with: error, callbackQueue: callbackQueue, failure: failure)
88 | } else if let response = response {
89 | callFailure(with: NSError(domain: response.description, code: -9999, userInfo: ["response": response]), callbackQueue: callbackQueue, failure: failure)
| `- error: value of type 'URLResponse' (aka 'AnyObject') has no member 'description'
90 | }
91 | }
/host/spi-builder-workspace/.build/checkouts/BaseAPI/BaseAPI/Classes/BaseAPI.swift:94:36: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
92 |
93 | private func handle(data: Data?, response: URLResponse?, error: Error?, callbackQueue: DispatchQueue = .main, success: @escaping () -> Void, failure: @escaping (Error) -> Void) {
94 | if let resp = response as? HTTPURLResponse, resp.statusCode == 200 {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
95 | callbackQueue.async { success() }
96 | } else if let error = error {
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/.build/checkouts/BaseAPI/BaseAPI/Classes/BaseAPI.swift:94:58: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
92 |
93 | private func handle(data: Data?, response: URLResponse?, error: Error?, callbackQueue: DispatchQueue = .main, success: @escaping () -> Void, failure: @escaping (Error) -> Void) {
94 | if let resp = response as? HTTPURLResponse, resp.statusCode == 200 {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
95 | callbackQueue.async { success() }
96 | } else if let error = error {
/host/spi-builder-workspace/.build/checkouts/BaseAPI/BaseAPI/Classes/BaseAPI.swift:99:56: error: value of type 'URLResponse' (aka 'AnyObject') has no member 'description'
97 | callFailure(with: error, callbackQueue: callbackQueue, failure: failure)
98 | } else if let response = response {
99 | callFailure(with: NSError(domain: response.description, code: -9999, userInfo: ["response": response]), callbackQueue: callbackQueue, failure: failure)
| `- error: value of type 'URLResponse' (aka 'AnyObject') has no member 'description'
100 | }
101 | }
/host/spi-builder-workspace/.build/checkouts/BaseAPI/BaseAPI/Classes/BaseAPI.swift:117:32: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
115 | let buildRequest = request.request()
116 | if let urlRequest = buildRequest.request {
117 | let task = session.dataTask(with: urlRequest) { (data, response, error) in
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
118 | callbackQueue.async { completion(data, response, error) }
119 | }
/host/spi-builder-workspace/.build/checkouts/BaseAPI/BaseAPI/Classes/BaseAPI.swift:130:28: error: value of type 'URLSession' (aka 'AnyObject') has no member 'synchronousDataTask'
128 | let buildRequest = request.request()
129 | if let urlRequest = buildRequest.request {
130 | return session.synchronousDataTask(request: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'synchronousDataTask'
131 | } else {
132 | return (nil, nil, buildRequest.error)
/host/spi-builder-workspace/.build/checkouts/BaseAPI/BaseAPI/Classes/BaseAPI.swift:149:32: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
147 | let buildRequest = request.request()
148 | if let urlRequest = buildRequest.request {
149 | let task = session.dataTask(with: urlRequest) { (data, response, error) in
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
150 | callbackQueue.async { completion(data, response, error) }
151 | }
/host/spi-builder-workspace/.build/checkouts/BaseAPI/BaseAPI/Classes/BaseAPI.swift:162:28: error: value of type 'URLSession' (aka 'AnyObject') has no member 'synchronousDataTask'
160 | let buildRequest = request.request()
161 | if let urlRequest = buildRequest.request {
162 | return session.synchronousDataTask(request: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'synchronousDataTask'
163 | } else {
164 | return (nil, nil, buildRequest.error)
/host/spi-builder-workspace/.build/checkouts/BaseAPI/BaseAPI/Classes/BaseAPI.swift:188:32: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
186 | let buildRequest = request.request()
187 | if let urlRequest = buildRequest.request {
188 | let task = session.dataTask(with: urlRequest) { (data, response, error) in
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
189 | callbackQueue.async { completion(data, response, error) }
190 | }
/host/spi-builder-workspace/.build/checkouts/BaseAPI/BaseAPI/Classes/BaseAPI.swift:201:28: error: value of type 'URLSession' (aka 'AnyObject') has no member 'synchronousDataTask'
199 | let buildRequest = request.request()
200 | if let urlRequest = buildRequest.request {
201 | return session.synchronousDataTask(request: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'synchronousDataTask'
202 | } else {
203 | return (nil, nil, buildRequest.error)
/host/spi-builder-workspace/.build/checkouts/BaseAPI/BaseAPI/Classes/BaseAPI.swift:227:32: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
225 | let buildRequest = request.request()
226 | if let urlRequest = buildRequest.request {
227 | let task = session.dataTask(with: urlRequest) { (data, response, error) in
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
228 | callbackQueue.async { completion(data, response, error) }
229 | }
/host/spi-builder-workspace/.build/checkouts/BaseAPI/BaseAPI/Classes/BaseAPI.swift:240:28: error: value of type 'URLSession' (aka 'AnyObject') has no member 'synchronousDataTask'
238 | let buildRequest = request.request()
239 | if let urlRequest = buildRequest.request {
240 | return session.synchronousDataTask(request: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'synchronousDataTask'
241 | } else {
242 | return (nil, nil, buildRequest.error)
/host/spi-builder-workspace/.build/checkouts/BaseAPI/BaseAPI/Classes/BaseAPI.swift:266:32: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
264 | let buildRequest = request.request()
265 | if let urlRequest = buildRequest.request {
266 | let task = session.dataTask(with: urlRequest) { (data, response, error) in
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
267 | callbackQueue.async { completion(data, response, error) }
268 | }
/host/spi-builder-workspace/.build/checkouts/BaseAPI/BaseAPI/Classes/BaseAPI.swift:279:28: error: value of type 'URLSession' (aka 'AnyObject') has no member 'synchronousDataTask'
277 | let buildRequest = request.request()
278 | if let urlRequest = buildRequest.request {
279 | return session.synchronousDataTask(request: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'synchronousDataTask'
280 | } else {
281 | return (nil, nil, buildRequest.error)
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/9] Compiling BaseAPI Request.swift
/host/spi-builder-workspace/.build/checkouts/BaseAPI/BaseAPI/Classes/Request.swift:29:40: error: cannot find type 'URLRequest' in scope
27 | }
28 |
29 | public func request() -> (request: URLRequest?, error: Error?) {
| `- error: cannot find type 'URLRequest' in scope
30 | // First encode just the base URL
31 | if let encodedBaseUrl = url.addingPercentEncoding(withAllowedCharacters: .urlFragmentAllowed) {
/host/spi-builder-workspace/.build/checkouts/BaseAPI/BaseAPI/Classes/Request.swift:35:31: error: cannot find 'URLRequest' in scope
33 | let finalUrl = appendParametersToUrl(encodedBaseUrl)
34 | if let url = URL(string: finalUrl) {
35 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
36 | if let headers = headers {
37 | for (key, value) in headers {
[3/9] Compiling BaseAPI CharacterSet.swift
[4/9] Compiling BaseAPI URLSession.swift
/host/spi-builder-workspace/.build/checkouts/BaseAPI/BaseAPI/Classes/Extensions/URLSession.swift:16:70: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | #endif
15 |
16 | public typealias SynchronousDataTaskResult = (data: Data?, response: URLResponse?, error: Error?)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 |
18 | extension URLSession {
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/.build/checkouts/BaseAPI/BaseAPI/Classes/Extensions/URLSession.swift:18:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
16 | public typealias SynchronousDataTaskResult = (data: Data?, response: URLResponse?, error: Error?)
17 |
18 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
19 | public func synchronousDataTask(request: URLRequest) -> SynchronousDataTaskResult {
20 | var data: Data?
/host/spi-builder-workspace/.build/checkouts/BaseAPI/BaseAPI/Classes/Extensions/URLSession.swift:19:46: error: cannot find type 'URLRequest' in scope
17 |
18 | extension URLSession {
19 | public func synchronousDataTask(request: URLRequest) -> SynchronousDataTaskResult {
| `- error: cannot find type 'URLRequest' in scope
20 | var data: Data?
21 | var response: URLResponse?
[5/9] Compiling BaseAPI RequestHeaderFields.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[6/9] Emitting module BaseAPI
/host/spi-builder-workspace/.build/checkouts/BaseAPI/BaseAPI/Classes/BaseAPI.swift:14:46: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | #endif
13 |
14 | public typealias BaseAPICompletion = (Data?, URLResponse?, Error?) -> Swift.Void
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | public typealias BaseAPIResult = SynchronousDataTaskResult
16 |
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/.build/checkouts/BaseAPI/BaseAPI/Classes/BaseAPI.swift:18:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 |
17 | open class BaseAPI {
18 | var session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 | private let parsingQueue = DispatchQueue(label: "BaseAPI-parsing-queue")
20 |
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/BaseAPI/BaseAPI/Classes/BaseAPI.swift:25:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 | }
24 |
25 | public init(session: URLSession) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | self.session = session
27 | }
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/BaseAPI/BaseAPI/Classes/BaseAPI.swift:29:31: error: cannot find type 'URLRequest' in scope
27 | }
28 |
29 | public func send(request: URLRequest, completion: @escaping BaseAPICompletion) {
| `- error: cannot find type 'URLRequest' in scope
30 | session.dataTask(with: request, completionHandler: completion).resume()
31 | }
/host/spi-builder-workspace/.build/checkouts/BaseAPI/BaseAPI/Classes/BaseAPI.swift:33:31: error: cannot find type 'URLRequest' in scope
31 | }
32 |
33 | public func send(request: URLRequest) -> BaseAPIResult {
| `- error: cannot find type 'URLRequest' in scope
34 | return session.synchronousDataTask(request: request)
35 | }
/host/spi-builder-workspace/.build/checkouts/BaseAPI/BaseAPI/Classes/BaseAPI.swift:78:62: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
76 | /// MARK - private
77 |
78 | private func handle<T: Decodable>(data: Data?, response: URLResponse?, error: Error?, callbackQueue: DispatchQueue = .main, success: @escaping (T) -> Void, failure: @escaping (Error) -> Void) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
79 | if let data = data {
80 | do {
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/.build/checkouts/BaseAPI/BaseAPI/Classes/BaseAPI.swift:93:48: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
91 | }
92 |
93 | private func handle(data: Data?, response: URLResponse?, error: Error?, callbackQueue: DispatchQueue = .main, success: @escaping () -> Void, failure: @escaping (Error) -> Void) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
94 | if let resp = response as? HTTPURLResponse, resp.statusCode == 200 {
95 | callbackQueue.async { success() }
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/.build/checkouts/BaseAPI/BaseAPI/Classes/Extensions/URLSession.swift:16:70: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | #endif
15 |
16 | public typealias SynchronousDataTaskResult = (data: Data?, response: URLResponse?, error: Error?)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 |
18 | extension URLSession {
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/.build/checkouts/BaseAPI/BaseAPI/Classes/Extensions/URLSession.swift:18:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
16 | public typealias SynchronousDataTaskResult = (data: Data?, response: URLResponse?, error: Error?)
17 |
18 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
19 | public func synchronousDataTask(request: URLRequest) -> SynchronousDataTaskResult {
20 | var data: Data?
/host/spi-builder-workspace/.build/checkouts/BaseAPI/BaseAPI/Classes/Request.swift:29:40: error: cannot find type 'URLRequest' in scope
27 | }
28 |
29 | public func request() -> (request: URLRequest?, error: Error?) {
| `- error: cannot find type 'URLRequest' in scope
30 | // First encode just the base URL
31 | if let encodedBaseUrl = url.addingPercentEncoding(withAllowedCharacters: .urlFragmentAllowed) {
[7/9] Compiling BaseAPI BaseAPI.swift
/host/spi-builder-workspace/.build/checkouts/BaseAPI/BaseAPI/Classes/BaseAPI.swift:14:46: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | #endif
13 |
14 | public typealias BaseAPICompletion = (Data?, URLResponse?, Error?) -> Swift.Void
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | public typealias BaseAPIResult = SynchronousDataTaskResult
16 |
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/.build/checkouts/BaseAPI/BaseAPI/Classes/BaseAPI.swift:18:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 |
17 | open class BaseAPI {
18 | var session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 | private let parsingQueue = DispatchQueue(label: "BaseAPI-parsing-queue")
20 |
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/BaseAPI/BaseAPI/Classes/BaseAPI.swift:25:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 | }
24 |
25 | public init(session: URLSession) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | self.session = session
27 | }
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/BaseAPI/BaseAPI/Classes/BaseAPI.swift:29:31: error: cannot find type 'URLRequest' in scope
27 | }
28 |
29 | public func send(request: URLRequest, completion: @escaping BaseAPICompletion) {
| `- error: cannot find type 'URLRequest' in scope
30 | session.dataTask(with: request, completionHandler: completion).resume()
31 | }
/host/spi-builder-workspace/.build/checkouts/BaseAPI/BaseAPI/Classes/BaseAPI.swift:33:31: error: cannot find type 'URLRequest' in scope
31 | }
32 |
33 | public func send(request: URLRequest) -> BaseAPIResult {
| `- error: cannot find type 'URLRequest' in scope
34 | return session.synchronousDataTask(request: request)
35 | }
/host/spi-builder-workspace/.build/checkouts/BaseAPI/BaseAPI/Classes/BaseAPI.swift:78:62: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
76 | /// MARK - private
77 |
78 | private func handle<T: Decodable>(data: Data?, response: URLResponse?, error: Error?, callbackQueue: DispatchQueue = .main, success: @escaping (T) -> Void, failure: @escaping (Error) -> Void) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
79 | if let data = data {
80 | do {
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/.build/checkouts/BaseAPI/BaseAPI/Classes/BaseAPI.swift:93:48: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
91 | }
92 |
93 | private func handle(data: Data?, response: URLResponse?, error: Error?, callbackQueue: DispatchQueue = .main, success: @escaping () -> Void, failure: @escaping (Error) -> Void) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
94 | if let resp = response as? HTTPURLResponse, resp.statusCode == 200 {
95 | callbackQueue.async { success() }
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/.build/checkouts/BaseAPI/BaseAPI/Classes/BaseAPI.swift:22:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
20 |
21 | public init() {
22 | self.session = URLSession(configuration: URLSessionConfiguration.default)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
23 | }
24 |
/host/spi-builder-workspace/.build/checkouts/BaseAPI/BaseAPI/Classes/BaseAPI.swift:22:74: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
20 |
21 | public init() {
22 | self.session = URLSession(configuration: URLSessionConfiguration.default)
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
23 | }
24 |
/host/spi-builder-workspace/.build/checkouts/BaseAPI/BaseAPI/Classes/BaseAPI.swift:30:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
28 |
29 | public func send(request: URLRequest, completion: @escaping BaseAPICompletion) {
30 | session.dataTask(with: request, completionHandler: completion).resume()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
31 | }
32 |
/host/spi-builder-workspace/.build/checkouts/BaseAPI/BaseAPI/Classes/BaseAPI.swift:34:24: error: value of type 'URLSession' (aka 'AnyObject') has no member 'synchronousDataTask'
32 |
33 | public func send(request: URLRequest) -> BaseAPIResult {
34 | return session.synchronousDataTask(request: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'synchronousDataTask'
35 | }
36 |
/host/spi-builder-workspace/.build/checkouts/BaseAPI/BaseAPI/Classes/Request.swift:29:40: error: cannot find type 'URLRequest' in scope
27 | }
28 |
29 | public func request() -> (request: URLRequest?, error: Error?) {
| `- error: cannot find type 'URLRequest' in scope
30 | // First encode just the base URL
31 | if let encodedBaseUrl = url.addingPercentEncoding(withAllowedCharacters: .urlFragmentAllowed) {
/host/spi-builder-workspace/.build/checkouts/BaseAPI/BaseAPI/Classes/BaseAPI.swift:43:32: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
41 | let buildRequest = request.request()
42 | if let urlRequest = buildRequest.request {
43 | let task = session.dataTask(with: urlRequest) { (data, response, error) in
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
44 | callbackQueue.async { completion(data, response, error) }
45 | }
/host/spi-builder-workspace/.build/checkouts/BaseAPI/BaseAPI/Classes/BaseAPI.swift:56:28: error: value of type 'URLSession' (aka 'AnyObject') has no member 'synchronousDataTask'
54 | let buildRequest = request.request()
55 | if let urlRequest = buildRequest.request {
56 | return session.synchronousDataTask(request: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'synchronousDataTask'
57 | } else {
58 | return (nil, nil, buildRequest.error)
/host/spi-builder-workspace/.build/checkouts/BaseAPI/BaseAPI/Classes/BaseAPI.swift:89:56: error: value of type 'URLResponse' (aka 'AnyObject') has no member 'description'
87 | callFailure(with: error, callbackQueue: callbackQueue, failure: failure)
88 | } else if let response = response {
89 | callFailure(with: NSError(domain: response.description, code: -9999, userInfo: ["response": response]), callbackQueue: callbackQueue, failure: failure)
| `- error: value of type 'URLResponse' (aka 'AnyObject') has no member 'description'
90 | }
91 | }
/host/spi-builder-workspace/.build/checkouts/BaseAPI/BaseAPI/Classes/BaseAPI.swift:94:36: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
92 |
93 | private func handle(data: Data?, response: URLResponse?, error: Error?, callbackQueue: DispatchQueue = .main, success: @escaping () -> Void, failure: @escaping (Error) -> Void) {
94 | if let resp = response as? HTTPURLResponse, resp.statusCode == 200 {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
95 | callbackQueue.async { success() }
96 | } else if let error = error {
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/.build/checkouts/BaseAPI/BaseAPI/Classes/BaseAPI.swift:94:58: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
92 |
93 | private func handle(data: Data?, response: URLResponse?, error: Error?, callbackQueue: DispatchQueue = .main, success: @escaping () -> Void, failure: @escaping (Error) -> Void) {
94 | if let resp = response as? HTTPURLResponse, resp.statusCode == 200 {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
95 | callbackQueue.async { success() }
96 | } else if let error = error {
/host/spi-builder-workspace/.build/checkouts/BaseAPI/BaseAPI/Classes/BaseAPI.swift:99:56: error: value of type 'URLResponse' (aka 'AnyObject') has no member 'description'
97 | callFailure(with: error, callbackQueue: callbackQueue, failure: failure)
98 | } else if let response = response {
99 | callFailure(with: NSError(domain: response.description, code: -9999, userInfo: ["response": response]), callbackQueue: callbackQueue, failure: failure)
| `- error: value of type 'URLResponse' (aka 'AnyObject') has no member 'description'
100 | }
101 | }
/host/spi-builder-workspace/.build/checkouts/BaseAPI/BaseAPI/Classes/BaseAPI.swift:117:32: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
115 | let buildRequest = request.request()
116 | if let urlRequest = buildRequest.request {
117 | let task = session.dataTask(with: urlRequest) { (data, response, error) in
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
118 | callbackQueue.async { completion(data, response, error) }
119 | }
/host/spi-builder-workspace/.build/checkouts/BaseAPI/BaseAPI/Classes/BaseAPI.swift:130:28: error: value of type 'URLSession' (aka 'AnyObject') has no member 'synchronousDataTask'
128 | let buildRequest = request.request()
129 | if let urlRequest = buildRequest.request {
130 | return session.synchronousDataTask(request: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'synchronousDataTask'
131 | } else {
132 | return (nil, nil, buildRequest.error)
/host/spi-builder-workspace/.build/checkouts/BaseAPI/BaseAPI/Classes/BaseAPI.swift:149:32: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
147 | let buildRequest = request.request()
148 | if let urlRequest = buildRequest.request {
149 | let task = session.dataTask(with: urlRequest) { (data, response, error) in
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
150 | callbackQueue.async { completion(data, response, error) }
151 | }
/host/spi-builder-workspace/.build/checkouts/BaseAPI/BaseAPI/Classes/BaseAPI.swift:162:28: error: value of type 'URLSession' (aka 'AnyObject') has no member 'synchronousDataTask'
160 | let buildRequest = request.request()
161 | if let urlRequest = buildRequest.request {
162 | return session.synchronousDataTask(request: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'synchronousDataTask'
163 | } else {
164 | return (nil, nil, buildRequest.error)
/host/spi-builder-workspace/.build/checkouts/BaseAPI/BaseAPI/Classes/BaseAPI.swift:188:32: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
186 | let buildRequest = request.request()
187 | if let urlRequest = buildRequest.request {
188 | let task = session.dataTask(with: urlRequest) { (data, response, error) in
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
189 | callbackQueue.async { completion(data, response, error) }
190 | }
/host/spi-builder-workspace/.build/checkouts/BaseAPI/BaseAPI/Classes/BaseAPI.swift:201:28: error: value of type 'URLSession' (aka 'AnyObject') has no member 'synchronousDataTask'
199 | let buildRequest = request.request()
200 | if let urlRequest = buildRequest.request {
201 | return session.synchronousDataTask(request: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'synchronousDataTask'
202 | } else {
203 | return (nil, nil, buildRequest.error)
/host/spi-builder-workspace/.build/checkouts/BaseAPI/BaseAPI/Classes/BaseAPI.swift:227:32: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
225 | let buildRequest = request.request()
226 | if let urlRequest = buildRequest.request {
227 | let task = session.dataTask(with: urlRequest) { (data, response, error) in
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
228 | callbackQueue.async { completion(data, response, error) }
229 | }
/host/spi-builder-workspace/.build/checkouts/BaseAPI/BaseAPI/Classes/BaseAPI.swift:240:28: error: value of type 'URLSession' (aka 'AnyObject') has no member 'synchronousDataTask'
238 | let buildRequest = request.request()
239 | if let urlRequest = buildRequest.request {
240 | return session.synchronousDataTask(request: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'synchronousDataTask'
241 | } else {
242 | return (nil, nil, buildRequest.error)
/host/spi-builder-workspace/.build/checkouts/BaseAPI/BaseAPI/Classes/BaseAPI.swift:266:32: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
264 | let buildRequest = request.request()
265 | if let urlRequest = buildRequest.request {
266 | let task = session.dataTask(with: urlRequest) { (data, response, error) in
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
267 | callbackQueue.async { completion(data, response, error) }
268 | }
/host/spi-builder-workspace/.build/checkouts/BaseAPI/BaseAPI/Classes/BaseAPI.swift:279:28: error: value of type 'URLSession' (aka 'AnyObject') has no member 'synchronousDataTask'
277 | let buildRequest = request.request()
278 | if let urlRequest = buildRequest.request {
279 | return session.synchronousDataTask(request: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'synchronousDataTask'
280 | } else {
281 | return (nil, nil, buildRequest.error)
[8/9] Compiling BaseAPI ResponsetHeaderFields.swift
[9/9] Compiling BaseAPI RequestMethod.swift
BUILD FAILURE 6.1 android