Build Information
Failed to build ITunesFeedGenerator with Swift 5.9 for Linux.
Build Command
Build command unavailable
Build Log
========================================
RunAll
========================================
Builder version: 4.27.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/alfianlosari/ITunesFeedGenerator.git
Reference: main
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/alfianlosari/ITunesFeedGenerator
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at cf55dc0 Make releaseDate field as optional
Cloned https://github.com/alfianlosari/ITunesFeedGenerator.git
Revision (git rev-parse @):
cf55dc0eca850c32e0111899633b00cce488d224
SUCCESS checkout https://github.com/alfianlosari/ITunesFeedGenerator.git at main
========================================
Build
========================================
Selected platform: linux
Swift version: 5.9
Building package at path: $PWD/checkout
Running build ...
bash -c docker run --rm -v "checkouts-4606859-0":/host -w "$PWD/checkout" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1
Unable to find image 'registry.gitlab.com/finestructure/spi-images:basic-5.9-latest' locally
basic-5.9-latest: Pulling from finestructure/spi-images
43f89b94cd7d: Already exists
a27a36b75cc2: Already exists
8a659dca10c1: Already exists
601d71a7ecfb: Already exists
7e184a04e049: Pulling fs layer
eed752aac761: Pulling fs layer
eed752aac761: Download complete
7e184a04e049: Verifying Checksum
7e184a04e049: Download complete
7e184a04e049: Pull complete
eed752aac761: Pull complete
Digest: sha256:0f2c65052ff93028a07b3c517133aaed189a0b419e8b42f955615c2c76508cb4
Status: Downloaded newer image for registry.gitlab.com/finestructure/spi-images:basic-5.9-latest
Building for debugging...
[1/6] Compiling ITunesFeedGenerator Song.swift
[2/6] Compiling ITunesFeedGenerator Feed.swift
[3/6] Compiling ITunesFeedGenerator Book.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/6] Compiling ITunesFeedGenerator Application.swift
[5/6] Emitting module ITunesFeedGenerator
/host/spi-builder-workspace/Sources/ITunesFeedGenerator/FeedRepository.swift:19:38: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
private let session = URLSession.shared
~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/ITunesFeedGenerator/FeedRepository.swift:48:61: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
private func validateHTTPResponse(data: Data, response: URLResponse) throws {
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
[6/6] Compiling ITunesFeedGenerator FeedRepository.swift
/host/spi-builder-workspace/Sources/ITunesFeedGenerator/FeedRepository.swift:19:38: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
private let session = URLSession.shared
~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/ITunesFeedGenerator/FeedRepository.swift:48:61: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
private func validateHTTPResponse(data: Data, response: URLResponse) throws {
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/ITunesFeedGenerator/FeedRepository.swift:45:16: warning: no calls to throwing functions occur within 'try' expression
return try jsonDecoder.decode(FeedRootResponse<D>.self, from: data).feed
^
/host/spi-builder-workspace/Sources/ITunesFeedGenerator/FeedRepository.swift:49:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
guard let httpResponse = response as? HTTPURLResponse else {
^
/host/spi-builder-workspace/Sources/ITunesFeedGenerator/FeedRepository.swift:49:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
guard let httpResponse = response as? HTTPURLResponse else {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/ITunesFeedGenerator/FeedRepository.swift:53:41: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
guard 200...299 ~= httpResponse.statusCode else {
~~~~~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/ITunesFeedGenerator/FeedRepository.swift:55:89: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
throw StoreAPIRepositoryError.httpStatusCodeFailed(statusCode: httpResponse.statusCode, error: errorResponse)
~~~~~~~~~~~~ ^~~~~~~~~~
error: fatalError
[0/1] Planning build
Building for debugging...
error: emit-module command failed with exit code 1 (use -v to see invocation)
[1/2] Emitting module ITunesFeedGenerator
/host/spi-builder-workspace/Sources/ITunesFeedGenerator/FeedRepository.swift:19:38: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
private let session = URLSession.shared
~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/ITunesFeedGenerator/FeedRepository.swift:48:61: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
private func validateHTTPResponse(data: Data, response: URLResponse) throws {
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
[2/2] Compiling ITunesFeedGenerator FeedRepository.swift
/host/spi-builder-workspace/Sources/ITunesFeedGenerator/FeedRepository.swift:19:38: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
private let session = URLSession.shared
~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/ITunesFeedGenerator/FeedRepository.swift:48:61: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
private func validateHTTPResponse(data: Data, response: URLResponse) throws {
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/ITunesFeedGenerator/FeedRepository.swift:45:16: warning: no calls to throwing functions occur within 'try' expression
return try jsonDecoder.decode(FeedRootResponse<D>.self, from: data).feed
^
/host/spi-builder-workspace/Sources/ITunesFeedGenerator/FeedRepository.swift:49:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
guard let httpResponse = response as? HTTPURLResponse else {
^
/host/spi-builder-workspace/Sources/ITunesFeedGenerator/FeedRepository.swift:49:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
guard let httpResponse = response as? HTTPURLResponse else {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/ITunesFeedGenerator/FeedRepository.swift:53:41: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
guard 200...299 ~= httpResponse.statusCode else {
~~~~~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/ITunesFeedGenerator/FeedRepository.swift:55:89: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
throw StoreAPIRepositoryError.httpStatusCodeFailed(statusCode: httpResponse.statusCode, error: errorResponse)
~~~~~~~~~~~~ ^~~~~~~~~~
error: fatalError
BUILD FAILURE 5.9 linux