The Swift Package Index logo.Swift Package Index

Build Information

Failed to build BbcNews, reference main (161a58), with Swift 6.1 for Wasm on 29 May 2025 23:04:20 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/bilaalrashid/bbc-news-swift.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/bilaalrashid/bbc-news-swift
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 161a58d Merge pull request #54 from bilaalrashid/bilaal/swift-6-ci
Cloned https://github.com/bilaalrashid/bbc-news-swift.git
Revision (git rev-parse @):
161a58dd4c914fb58c4c8518e236986e2818736a
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/bilaalrashid/bbc-news-swift.git at main
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/bilaalrashid/bbc-news-swift.git
https://github.com/bilaalrashid/bbc-news-swift.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "BbcNews",
  "name" : "BbcNews",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "16.0"
    },
    {
      "name" : "macos",
      "version" : "13.0"
    },
    {
      "name" : "maccatalyst",
      "version" : "13.0"
    },
    {
      "name" : "tvos",
      "version" : "16.0"
    },
    {
      "name" : "watchos",
      "version" : "9.0"
    },
    {
      "name" : "visionos",
      "version" : "1.0"
    }
  ],
  "products" : [
    {
      "name" : "BbcNews",
      "targets" : [
        "BbcNews"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "BbcNewsTests",
      "module_type" : "SwiftTarget",
      "name" : "BbcNewsTests",
      "path" : "Tests/BbcNewsTests",
      "resources" : [
        {
          "path" : "/host/spi-builder-workspace/Tests/BbcNewsTests/Resources",
          "rule" : {
            "copy" : {
            }
          }
        }
      ],
      "sources" : [
        "BbcNewsTests.swift",
        "FDImageTests.swift",
        "FDLinkDestinationTests.swift",
        "SchemaTests.swift",
        "UnknownableTests.swift"
      ],
      "target_dependencies" : [
        "BbcNews"
      ],
      "type" : "test"
    },
    {
      "c99name" : "BbcNews",
      "module_type" : "SwiftTarget",
      "name" : "BbcNews",
      "path" : "Sources/BbcNews",
      "product_memberships" : [
        "BbcNews"
      ],
      "sources" : [
        "BbcNews.swift",
        "Models/Discovery/Collection/FDBillboard.swift",
        "Models/Discovery/Collection/FDCarousel.swift",
        "Models/Discovery/Collection/FDCollection.swift",
        "Models/Discovery/Collection/FDHierarchicalCollection.swift",
        "Models/Discovery/Collection/FDSimpleCollection.swift",
        "Models/Discovery/Collection/FDSimplePromoGrid.swift",
        "Models/Discovery/FDBadge.swift",
        "Models/Discovery/FDBadgeType.swift",
        "Models/Discovery/FDBrand.swift",
        "Models/Discovery/FDCallToActionBanner.swift",
        "Models/Discovery/FDCallToActionButton.swift",
        "Models/Discovery/FDChipList.swift",
        "Models/Discovery/FDCollectionHeader.swift",
        "Models/Discovery/FDCopyright.swift",
        "Models/Discovery/FDSourceFormat.swift",
        "Models/Discovery/FDStoryPromo.swift",
        "Models/Discovery/FDStoryPromoStyle.swift",
        "Models/Discovery/FDTopic.swift",
        "Models/Discovery/FDTopicButton.swift",
        "Models/Discovery/FDTrackedEvent.swift",
        "Models/Discovery/FDTracker.swift",
        "Models/Discovery/FDTrackerPayload.swift",
        "Models/Discovery/Link/FDContentSource.swift",
        "Models/Discovery/Link/FDLink.swift",
        "Models/Discovery/Link/FDLinkDestination.swift",
        "Models/Discovery/Link/FDPresentation.swift",
        "Models/Discovery/Link/FDPresentationType.swift",
        "Models/Discovery/Weather/FDTemperature.swift",
        "Models/Discovery/Weather/FDWeatherForecast.swift",
        "Models/Discovery/Weather/FDWeatherIcon.swift",
        "Models/Discovery/Weather/FDWeatherLocation.swift",
        "Models/Discovery/Weather/FDWeatherPromoSummary.swift",
        "Models/Request/ReleaseTrack.swift",
        "Models/Request/Service.swift",
        "Models/ResolverResult/FDResolverResponse.swift",
        "Models/ResolverResult/FDResolverResult.swift",
        "Models/Result/FDData.swift",
        "Models/Result/FDDataMetadata.swift",
        "Models/Result/FDItem.swift",
        "Models/Result/FDResult.swift",
        "Models/Story/FDByline.swift",
        "Models/Story/FDBylineContributor.swift",
        "Models/Story/FDContentList.swift",
        "Models/Story/FDContentListOrder.swift",
        "Models/Story/FDHeadline.swift",
        "Models/Story/FDHeadlineByline.swift",
        "Models/Story/FDSectionHeader.swift",
        "Models/Story/FDVideoPortraitStory.swift",
        "Models/Story/Image/FDImage.swift",
        "Models/Story/Image/FDImageContainer.swift",
        "Models/Story/Image/FDImageMetadata.swift",
        "Models/Story/Image/FDImageSizingMethod.swift",
        "Models/Story/Image/FDImageSizingMethodType.swift",
        "Models/Story/Image/FDImageSource.swift",
        "Models/Story/Media/FDMedia.swift",
        "Models/Story/Media/FDMediaMetaData.swift",
        "Models/Story/Media/FDMediaSource.swift",
        "Models/Story/Media/FDMediaType.swift",
        "Models/Story/Text/FDAttribute.swift",
        "Models/Story/Text/FDAttributeType.swift",
        "Models/Story/Text/FDAttributedText.swift",
        "Models/Story/Text/FDAttributedTextSpan.swift",
        "Models/Story/Text/FDTextContainer.swift",
        "Models/Story/Text/FDTextContainerType.swift",
        "Utils/FailableCodable.swift",
        "Utils/JSONDecoder+DecodeWithoutThrowing.swift",
        "Utils/Logger.swift",
        "Utils/NetworkError.swift",
        "Utils/UIDevice+ModelIdentifier.swift",
        "Utils/Unknownable.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "6.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/66] Emitting module BbcNews
/host/spi-builder-workspace/Sources/BbcNews/BbcNews.swift:166:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
164 |
165 |     /// The session to perform network requests from.
166 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
167 |
168 |     /// service: The international service that API results should be localised for e.g. BBC Cymru.
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
[4/74] Compiling BbcNews FDTextContainer.swift
[5/74] Compiling BbcNews FDTextContainerType.swift
[6/74] Compiling BbcNews FailableCodable.swift
[7/74] Compiling BbcNews JSONDecoder+DecodeWithoutThrowing.swift
[8/74] Compiling BbcNews Logger.swift
[9/74] Compiling BbcNews NetworkError.swift
[10/74] Compiling BbcNews UIDevice+ModelIdentifier.swift
[11/74] Compiling BbcNews Unknownable.swift
[12/74] Compiling BbcNews FDBrand.swift
[13/74] Compiling BbcNews FDCallToActionBanner.swift
[14/74] Compiling BbcNews FDCallToActionButton.swift
[15/74] Compiling BbcNews FDChipList.swift
[16/74] Compiling BbcNews FDCollectionHeader.swift
[17/74] Compiling BbcNews FDCopyright.swift
[18/74] Compiling BbcNews FDSourceFormat.swift
[19/74] Compiling BbcNews FDStoryPromo.swift
[20/74] Compiling BbcNews FDStoryPromoStyle.swift
[21/74] Compiling BbcNews BbcNews.swift
/host/spi-builder-workspace/Sources/BbcNews/BbcNews.swift:166:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
164 |
165 |     /// The session to perform network requests from.
166 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
167 |
168 |     /// service: The international service that API results should be localised for e.g. BBC Cymru.
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/Sources/BbcNews/BbcNews.swift:193:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
191 |         release: ReleaseTrack? = nil
192 |     ) {
193 |         let configuration = URLSessionConfiguration.default
    |                                                     `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
194 |         configuration.httpAdditionalHeaders = [
195 |             // Pretend to be the BBC News app
/host/spi-builder-workspace/Sources/BbcNews/BbcNews.swift:200:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
198 |         ]
199 |
200 |         self.session = URLSession(configuration: configuration)
    |                        `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
201 |         self.service = service
202 |         self.releaseTrack = nil
/host/spi-builder-workspace/Sources/BbcNews/BbcNews.swift:347:59: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
345 |
346 |         do {
347 |             let (data, response) = try await self.session.data(from: url)
    |                                                           `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
348 |
349 |             guard let httpResponse = response as? HTTPURLResponse else {
[22/74] Compiling BbcNews FDBillboard.swift
/host/spi-builder-workspace/Sources/BbcNews/BbcNews.swift:166:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
164 |
165 |     /// The session to perform network requests from.
166 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
167 |
168 |     /// service: The international service that API results should be localised for e.g. BBC Cymru.
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/Sources/BbcNews/BbcNews.swift:193:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
191 |         release: ReleaseTrack? = nil
192 |     ) {
193 |         let configuration = URLSessionConfiguration.default
    |                                                     `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
194 |         configuration.httpAdditionalHeaders = [
195 |             // Pretend to be the BBC News app
/host/spi-builder-workspace/Sources/BbcNews/BbcNews.swift:200:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
198 |         ]
199 |
200 |         self.session = URLSession(configuration: configuration)
    |                        `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
201 |         self.service = service
202 |         self.releaseTrack = nil
/host/spi-builder-workspace/Sources/BbcNews/BbcNews.swift:347:59: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
345 |
346 |         do {
347 |             let (data, response) = try await self.session.data(from: url)
    |                                                           `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
348 |
349 |             guard let httpResponse = response as? HTTPURLResponse else {
[23/74] Compiling BbcNews FDCarousel.swift
/host/spi-builder-workspace/Sources/BbcNews/BbcNews.swift:166:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
164 |
165 |     /// The session to perform network requests from.
166 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
167 |
168 |     /// service: The international service that API results should be localised for e.g. BBC Cymru.
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/Sources/BbcNews/BbcNews.swift:193:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
191 |         release: ReleaseTrack? = nil
192 |     ) {
193 |         let configuration = URLSessionConfiguration.default
    |                                                     `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
194 |         configuration.httpAdditionalHeaders = [
195 |             // Pretend to be the BBC News app
/host/spi-builder-workspace/Sources/BbcNews/BbcNews.swift:200:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
198 |         ]
199 |
200 |         self.session = URLSession(configuration: configuration)
    |                        `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
201 |         self.service = service
202 |         self.releaseTrack = nil
/host/spi-builder-workspace/Sources/BbcNews/BbcNews.swift:347:59: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
345 |
346 |         do {
347 |             let (data, response) = try await self.session.data(from: url)
    |                                                           `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
348 |
349 |             guard let httpResponse = response as? HTTPURLResponse else {
[24/74] Compiling BbcNews FDCollection.swift
/host/spi-builder-workspace/Sources/BbcNews/BbcNews.swift:166:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
164 |
165 |     /// The session to perform network requests from.
166 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
167 |
168 |     /// service: The international service that API results should be localised for e.g. BBC Cymru.
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/Sources/BbcNews/BbcNews.swift:193:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
191 |         release: ReleaseTrack? = nil
192 |     ) {
193 |         let configuration = URLSessionConfiguration.default
    |                                                     `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
194 |         configuration.httpAdditionalHeaders = [
195 |             // Pretend to be the BBC News app
/host/spi-builder-workspace/Sources/BbcNews/BbcNews.swift:200:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
198 |         ]
199 |
200 |         self.session = URLSession(configuration: configuration)
    |                        `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
201 |         self.service = service
202 |         self.releaseTrack = nil
/host/spi-builder-workspace/Sources/BbcNews/BbcNews.swift:347:59: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
345 |
346 |         do {
347 |             let (data, response) = try await self.session.data(from: url)
    |                                                           `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
348 |
349 |             guard let httpResponse = response as? HTTPURLResponse else {
[25/74] Compiling BbcNews FDHierarchicalCollection.swift
/host/spi-builder-workspace/Sources/BbcNews/BbcNews.swift:166:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
164 |
165 |     /// The session to perform network requests from.
166 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
167 |
168 |     /// service: The international service that API results should be localised for e.g. BBC Cymru.
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/Sources/BbcNews/BbcNews.swift:193:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
191 |         release: ReleaseTrack? = nil
192 |     ) {
193 |         let configuration = URLSessionConfiguration.default
    |                                                     `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
194 |         configuration.httpAdditionalHeaders = [
195 |             // Pretend to be the BBC News app
/host/spi-builder-workspace/Sources/BbcNews/BbcNews.swift:200:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
198 |         ]
199 |
200 |         self.session = URLSession(configuration: configuration)
    |                        `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
201 |         self.service = service
202 |         self.releaseTrack = nil
/host/spi-builder-workspace/Sources/BbcNews/BbcNews.swift:347:59: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
345 |
346 |         do {
347 |             let (data, response) = try await self.session.data(from: url)
    |                                                           `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
348 |
349 |             guard let httpResponse = response as? HTTPURLResponse else {
[26/74] Compiling BbcNews FDSimpleCollection.swift
/host/spi-builder-workspace/Sources/BbcNews/BbcNews.swift:166:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
164 |
165 |     /// The session to perform network requests from.
166 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
167 |
168 |     /// service: The international service that API results should be localised for e.g. BBC Cymru.
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/Sources/BbcNews/BbcNews.swift:193:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
191 |         release: ReleaseTrack? = nil
192 |     ) {
193 |         let configuration = URLSessionConfiguration.default
    |                                                     `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
194 |         configuration.httpAdditionalHeaders = [
195 |             // Pretend to be the BBC News app
/host/spi-builder-workspace/Sources/BbcNews/BbcNews.swift:200:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
198 |         ]
199 |
200 |         self.session = URLSession(configuration: configuration)
    |                        `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
201 |         self.service = service
202 |         self.releaseTrack = nil
/host/spi-builder-workspace/Sources/BbcNews/BbcNews.swift:347:59: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
345 |
346 |         do {
347 |             let (data, response) = try await self.session.data(from: url)
    |                                                           `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
348 |
349 |             guard let httpResponse = response as? HTTPURLResponse else {
[27/74] Compiling BbcNews FDSimplePromoGrid.swift
/host/spi-builder-workspace/Sources/BbcNews/BbcNews.swift:166:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
164 |
165 |     /// The session to perform network requests from.
166 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
167 |
168 |     /// service: The international service that API results should be localised for e.g. BBC Cymru.
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/Sources/BbcNews/BbcNews.swift:193:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
191 |         release: ReleaseTrack? = nil
192 |     ) {
193 |         let configuration = URLSessionConfiguration.default
    |                                                     `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
194 |         configuration.httpAdditionalHeaders = [
195 |             // Pretend to be the BBC News app
/host/spi-builder-workspace/Sources/BbcNews/BbcNews.swift:200:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
198 |         ]
199 |
200 |         self.session = URLSession(configuration: configuration)
    |                        `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
201 |         self.service = service
202 |         self.releaseTrack = nil
/host/spi-builder-workspace/Sources/BbcNews/BbcNews.swift:347:59: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
345 |
346 |         do {
347 |             let (data, response) = try await self.session.data(from: url)
    |                                                           `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
348 |
349 |             guard let httpResponse = response as? HTTPURLResponse else {
[28/74] Compiling BbcNews FDBadge.swift
/host/spi-builder-workspace/Sources/BbcNews/BbcNews.swift:166:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
164 |
165 |     /// The session to perform network requests from.
166 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
167 |
168 |     /// service: The international service that API results should be localised for e.g. BBC Cymru.
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/Sources/BbcNews/BbcNews.swift:193:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
191 |         release: ReleaseTrack? = nil
192 |     ) {
193 |         let configuration = URLSessionConfiguration.default
    |                                                     `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
194 |         configuration.httpAdditionalHeaders = [
195 |             // Pretend to be the BBC News app
/host/spi-builder-workspace/Sources/BbcNews/BbcNews.swift:200:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
198 |         ]
199 |
200 |         self.session = URLSession(configuration: configuration)
    |                        `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
201 |         self.service = service
202 |         self.releaseTrack = nil
/host/spi-builder-workspace/Sources/BbcNews/BbcNews.swift:347:59: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
345 |
346 |         do {
347 |             let (data, response) = try await self.session.data(from: url)
    |                                                           `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
348 |
349 |             guard let httpResponse = response as? HTTPURLResponse else {
[29/74] Compiling BbcNews FDBadgeType.swift
/host/spi-builder-workspace/Sources/BbcNews/BbcNews.swift:166:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
164 |
165 |     /// The session to perform network requests from.
166 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
167 |
168 |     /// service: The international service that API results should be localised for e.g. BBC Cymru.
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/Sources/BbcNews/BbcNews.swift:193:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
191 |         release: ReleaseTrack? = nil
192 |     ) {
193 |         let configuration = URLSessionConfiguration.default
    |                                                     `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
194 |         configuration.httpAdditionalHeaders = [
195 |             // Pretend to be the BBC News app
/host/spi-builder-workspace/Sources/BbcNews/BbcNews.swift:200:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
198 |         ]
199 |
200 |         self.session = URLSession(configuration: configuration)
    |                        `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
201 |         self.service = service
202 |         self.releaseTrack = nil
/host/spi-builder-workspace/Sources/BbcNews/BbcNews.swift:347:59: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
345 |
346 |         do {
347 |             let (data, response) = try await self.session.data(from: url)
    |                                                           `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
348 |
349 |             guard let httpResponse = response as? HTTPURLResponse else {
[30/74] Compiling BbcNews FDResolverResult.swift
[31/74] Compiling BbcNews FDData.swift
[32/74] Compiling BbcNews FDDataMetadata.swift
[33/74] Compiling BbcNews FDItem.swift
[34/74] Compiling BbcNews FDResult.swift
[35/74] Compiling BbcNews FDByline.swift
[36/74] Compiling BbcNews FDBylineContributor.swift
[37/74] Compiling BbcNews FDContentList.swift
[38/74] Compiling BbcNews FDContentListOrder.swift
[39/74] Compiling BbcNews FDTopic.swift
[40/74] Compiling BbcNews FDTopicButton.swift
[41/74] Compiling BbcNews FDTrackedEvent.swift
[42/74] Compiling BbcNews FDTracker.swift
[43/74] Compiling BbcNews FDTrackerPayload.swift
[44/74] Compiling BbcNews FDContentSource.swift
[45/74] Compiling BbcNews FDLink.swift
[46/74] Compiling BbcNews FDLinkDestination.swift
[47/74] Compiling BbcNews FDPresentation.swift
[48/74] Compiling BbcNews FDImageSource.swift
[49/74] Compiling BbcNews FDMedia.swift
[50/74] Compiling BbcNews FDMediaMetaData.swift
[51/74] Compiling BbcNews FDMediaSource.swift
[52/74] Compiling BbcNews FDMediaType.swift
[53/74] Compiling BbcNews FDAttribute.swift
[54/74] Compiling BbcNews FDAttributeType.swift
[55/74] Compiling BbcNews FDAttributedText.swift
[56/74] Compiling BbcNews FDAttributedTextSpan.swift
[57/74] Compiling BbcNews FDPresentationType.swift
[58/74] Compiling BbcNews FDTemperature.swift
[59/74] Compiling BbcNews FDWeatherForecast.swift
[60/74] Compiling BbcNews FDWeatherIcon.swift
[61/74] Compiling BbcNews FDWeatherLocation.swift
[62/74] Compiling BbcNews FDWeatherPromoSummary.swift
[63/74] Compiling BbcNews ReleaseTrack.swift
[64/74] Compiling BbcNews Service.swift
[65/74] Compiling BbcNews FDResolverResponse.swift
[66/74] Compiling BbcNews FDHeadline.swift
[67/74] Compiling BbcNews FDHeadlineByline.swift
[68/74] Compiling BbcNews FDSectionHeader.swift
[69/74] Compiling BbcNews FDVideoPortraitStory.swift
[70/74] Compiling BbcNews FDImage.swift
[71/74] Compiling BbcNews FDImageContainer.swift
[72/74] Compiling BbcNews FDImageMetadata.swift
[73/74] Compiling BbcNews FDImageSizingMethod.swift
[74/74] Compiling BbcNews FDImageSizingMethodType.swift
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/65] Compiling BbcNews BbcNews.swift
/host/spi-builder-workspace/Sources/BbcNews/BbcNews.swift:166:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
164 |
165 |     /// The session to perform network requests from.
166 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
167 |
168 |     /// service: The international service that API results should be localised for e.g. BBC Cymru.
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/Sources/BbcNews/BbcNews.swift:193:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
191 |         release: ReleaseTrack? = nil
192 |     ) {
193 |         let configuration = URLSessionConfiguration.default
    |                                                     `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
194 |         configuration.httpAdditionalHeaders = [
195 |             // Pretend to be the BBC News app
/host/spi-builder-workspace/Sources/BbcNews/BbcNews.swift:200:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
198 |         ]
199 |
200 |         self.session = URLSession(configuration: configuration)
    |                        `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
201 |         self.service = service
202 |         self.releaseTrack = nil
/host/spi-builder-workspace/Sources/BbcNews/BbcNews.swift:347:59: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
345 |
346 |         do {
347 |             let (data, response) = try await self.session.data(from: url)
    |                                                           `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
348 |
349 |             guard let httpResponse = response as? HTTPURLResponse else {
[3/65] Compiling BbcNews FDBillboard.swift
/host/spi-builder-workspace/Sources/BbcNews/BbcNews.swift:166:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
164 |
165 |     /// The session to perform network requests from.
166 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
167 |
168 |     /// service: The international service that API results should be localised for e.g. BBC Cymru.
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/Sources/BbcNews/BbcNews.swift:193:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
191 |         release: ReleaseTrack? = nil
192 |     ) {
193 |         let configuration = URLSessionConfiguration.default
    |                                                     `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
194 |         configuration.httpAdditionalHeaders = [
195 |             // Pretend to be the BBC News app
/host/spi-builder-workspace/Sources/BbcNews/BbcNews.swift:200:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
198 |         ]
199 |
200 |         self.session = URLSession(configuration: configuration)
    |                        `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
201 |         self.service = service
202 |         self.releaseTrack = nil
/host/spi-builder-workspace/Sources/BbcNews/BbcNews.swift:347:59: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
345 |
346 |         do {
347 |             let (data, response) = try await self.session.data(from: url)
    |                                                           `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
348 |
349 |             guard let httpResponse = response as? HTTPURLResponse else {
[4/65] Compiling BbcNews FDCarousel.swift
/host/spi-builder-workspace/Sources/BbcNews/BbcNews.swift:166:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
164 |
165 |     /// The session to perform network requests from.
166 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
167 |
168 |     /// service: The international service that API results should be localised for e.g. BBC Cymru.
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/Sources/BbcNews/BbcNews.swift:193:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
191 |         release: ReleaseTrack? = nil
192 |     ) {
193 |         let configuration = URLSessionConfiguration.default
    |                                                     `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
194 |         configuration.httpAdditionalHeaders = [
195 |             // Pretend to be the BBC News app
/host/spi-builder-workspace/Sources/BbcNews/BbcNews.swift:200:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
198 |         ]
199 |
200 |         self.session = URLSession(configuration: configuration)
    |                        `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
201 |         self.service = service
202 |         self.releaseTrack = nil
/host/spi-builder-workspace/Sources/BbcNews/BbcNews.swift:347:59: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
345 |
346 |         do {
347 |             let (data, response) = try await self.session.data(from: url)
    |                                                           `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
348 |
349 |             guard let httpResponse = response as? HTTPURLResponse else {
[5/65] Compiling BbcNews FDCollection.swift
/host/spi-builder-workspace/Sources/BbcNews/BbcNews.swift:166:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
164 |
165 |     /// The session to perform network requests from.
166 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
167 |
168 |     /// service: The international service that API results should be localised for e.g. BBC Cymru.
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/Sources/BbcNews/BbcNews.swift:193:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
191 |         release: ReleaseTrack? = nil
192 |     ) {
193 |         let configuration = URLSessionConfiguration.default
    |                                                     `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
194 |         configuration.httpAdditionalHeaders = [
195 |             // Pretend to be the BBC News app
/host/spi-builder-workspace/Sources/BbcNews/BbcNews.swift:200:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
198 |         ]
199 |
200 |         self.session = URLSession(configuration: configuration)
    |                        `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
201 |         self.service = service
202 |         self.releaseTrack = nil
/host/spi-builder-workspace/Sources/BbcNews/BbcNews.swift:347:59: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
345 |
346 |         do {
347 |             let (data, response) = try await self.session.data(from: url)
    |                                                           `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
348 |
349 |             guard let httpResponse = response as? HTTPURLResponse else {
[6/65] Compiling BbcNews FDHierarchicalCollection.swift
/host/spi-builder-workspace/Sources/BbcNews/BbcNews.swift:166:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
164 |
165 |     /// The session to perform network requests from.
166 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
167 |
168 |     /// service: The international service that API results should be localised for e.g. BBC Cymru.
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/Sources/BbcNews/BbcNews.swift:193:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
191 |         release: ReleaseTrack? = nil
192 |     ) {
193 |         let configuration = URLSessionConfiguration.default
    |                                                     `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
194 |         configuration.httpAdditionalHeaders = [
195 |             // Pretend to be the BBC News app
/host/spi-builder-workspace/Sources/BbcNews/BbcNews.swift:200:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
198 |         ]
199 |
200 |         self.session = URLSession(configuration: configuration)
    |                        `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
201 |         self.service = service
202 |         self.releaseTrack = nil
/host/spi-builder-workspace/Sources/BbcNews/BbcNews.swift:347:59: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
345 |
346 |         do {
347 |             let (data, response) = try await self.session.data(from: url)
    |                                                           `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
348 |
349 |             guard let httpResponse = response as? HTTPURLResponse else {
[7/65] Compiling BbcNews FDSimpleCollection.swift
/host/spi-builder-workspace/Sources/BbcNews/BbcNews.swift:166:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
164 |
165 |     /// The session to perform network requests from.
166 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
167 |
168 |     /// service: The international service that API results should be localised for e.g. BBC Cymru.
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/Sources/BbcNews/BbcNews.swift:193:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
191 |         release: ReleaseTrack? = nil
192 |     ) {
193 |         let configuration = URLSessionConfiguration.default
    |                                                     `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
194 |         configuration.httpAdditionalHeaders = [
195 |             // Pretend to be the BBC News app
/host/spi-builder-workspace/Sources/BbcNews/BbcNews.swift:200:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
198 |         ]
199 |
200 |         self.session = URLSession(configuration: configuration)
    |                        `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
201 |         self.service = service
202 |         self.releaseTrack = nil
/host/spi-builder-workspace/Sources/BbcNews/BbcNews.swift:347:59: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
345 |
346 |         do {
347 |             let (data, response) = try await self.session.data(from: url)
    |                                                           `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
348 |
349 |             guard let httpResponse = response as? HTTPURLResponse else {
[8/65] Compiling BbcNews FDSimplePromoGrid.swift
/host/spi-builder-workspace/Sources/BbcNews/BbcNews.swift:166:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
164 |
165 |     /// The session to perform network requests from.
166 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
167 |
168 |     /// service: The international service that API results should be localised for e.g. BBC Cymru.
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/Sources/BbcNews/BbcNews.swift:193:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
191 |         release: ReleaseTrack? = nil
192 |     ) {
193 |         let configuration = URLSessionConfiguration.default
    |                                                     `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
194 |         configuration.httpAdditionalHeaders = [
195 |             // Pretend to be the BBC News app
/host/spi-builder-workspace/Sources/BbcNews/BbcNews.swift:200:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
198 |         ]
199 |
200 |         self.session = URLSession(configuration: configuration)
    |                        `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
201 |         self.service = service
202 |         self.releaseTrack = nil
/host/spi-builder-workspace/Sources/BbcNews/BbcNews.swift:347:59: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
345 |
346 |         do {
347 |             let (data, response) = try await self.session.data(from: url)
    |                                                           `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
348 |
349 |             guard let httpResponse = response as? HTTPURLResponse else {
[9/65] Compiling BbcNews FDBadge.swift
/host/spi-builder-workspace/Sources/BbcNews/BbcNews.swift:166:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
164 |
165 |     /// The session to perform network requests from.
166 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
167 |
168 |     /// service: The international service that API results should be localised for e.g. BBC Cymru.
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/Sources/BbcNews/BbcNews.swift:193:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
191 |         release: ReleaseTrack? = nil
192 |     ) {
193 |         let configuration = URLSessionConfiguration.default
    |                                                     `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
194 |         configuration.httpAdditionalHeaders = [
195 |             // Pretend to be the BBC News app
/host/spi-builder-workspace/Sources/BbcNews/BbcNews.swift:200:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
198 |         ]
199 |
200 |         self.session = URLSession(configuration: configuration)
    |                        `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
201 |         self.service = service
202 |         self.releaseTrack = nil
/host/spi-builder-workspace/Sources/BbcNews/BbcNews.swift:347:59: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
345 |
346 |         do {
347 |             let (data, response) = try await self.session.data(from: url)
    |                                                           `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
348 |
349 |             guard let httpResponse = response as? HTTPURLResponse else {
[10/65] Compiling BbcNews FDBadgeType.swift
/host/spi-builder-workspace/Sources/BbcNews/BbcNews.swift:166:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
164 |
165 |     /// The session to perform network requests from.
166 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
167 |
168 |     /// service: The international service that API results should be localised for e.g. BBC Cymru.
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/Sources/BbcNews/BbcNews.swift:193:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
191 |         release: ReleaseTrack? = nil
192 |     ) {
193 |         let configuration = URLSessionConfiguration.default
    |                                                     `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
194 |         configuration.httpAdditionalHeaders = [
195 |             // Pretend to be the BBC News app
/host/spi-builder-workspace/Sources/BbcNews/BbcNews.swift:200:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
198 |         ]
199 |
200 |         self.session = URLSession(configuration: configuration)
    |                        `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
201 |         self.service = service
202 |         self.releaseTrack = nil
/host/spi-builder-workspace/Sources/BbcNews/BbcNews.swift:347:59: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
345 |
346 |         do {
347 |             let (data, response) = try await self.session.data(from: url)
    |                                                           `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
348 |
349 |             guard let httpResponse = response as? HTTPURLResponse else {
error: emit-module command failed with exit code 1 (use -v to see invocation)
[11/73] Emitting module BbcNews
/host/spi-builder-workspace/Sources/BbcNews/BbcNews.swift:166:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
164 |
165 |     /// The session to perform network requests from.
166 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
167 |
168 |     /// service: The international service that API results should be localised for e.g. BBC Cymru.
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
[12/73] Compiling BbcNews FDTextContainer.swift
[13/73] Compiling BbcNews FDTextContainerType.swift
[14/73] Compiling BbcNews FailableCodable.swift
[15/73] Compiling BbcNews JSONDecoder+DecodeWithoutThrowing.swift
[16/73] Compiling BbcNews Logger.swift
[17/73] Compiling BbcNews NetworkError.swift
[18/73] Compiling BbcNews UIDevice+ModelIdentifier.swift
[19/73] Compiling BbcNews Unknownable.swift
[20/73] Compiling BbcNews FDImageSource.swift
[21/73] Compiling BbcNews FDMedia.swift
[22/73] Compiling BbcNews FDMediaMetaData.swift
[23/73] Compiling BbcNews FDMediaSource.swift
[24/73] Compiling BbcNews FDMediaType.swift
[25/73] Compiling BbcNews FDAttribute.swift
[26/73] Compiling BbcNews FDAttributeType.swift
[27/73] Compiling BbcNews FDAttributedText.swift
[28/73] Compiling BbcNews FDAttributedTextSpan.swift
[29/73] Compiling BbcNews FDBrand.swift
[30/73] Compiling BbcNews FDCallToActionBanner.swift
[31/73] Compiling BbcNews FDCallToActionButton.swift
[32/73] Compiling BbcNews FDChipList.swift
[33/73] Compiling BbcNews FDCollectionHeader.swift
[34/73] Compiling BbcNews FDCopyright.swift
[35/73] Compiling BbcNews FDSourceFormat.swift
[36/73] Compiling BbcNews FDStoryPromo.swift
[37/73] Compiling BbcNews FDStoryPromoStyle.swift
[38/73] Compiling BbcNews FDPresentationType.swift
[39/73] Compiling BbcNews FDTemperature.swift
[40/73] Compiling BbcNews FDWeatherForecast.swift
[41/73] Compiling BbcNews FDWeatherIcon.swift
[42/73] Compiling BbcNews FDWeatherLocation.swift
[43/73] Compiling BbcNews FDWeatherPromoSummary.swift
[44/73] Compiling BbcNews ReleaseTrack.swift
[45/73] Compiling BbcNews Service.swift
[46/73] Compiling BbcNews FDResolverResponse.swift
[47/73] Compiling BbcNews FDTopic.swift
[48/73] Compiling BbcNews FDTopicButton.swift
[49/73] Compiling BbcNews FDTrackedEvent.swift
[50/73] Compiling BbcNews FDTracker.swift
[51/73] Compiling BbcNews FDTrackerPayload.swift
[52/73] Compiling BbcNews FDContentSource.swift
[53/73] Compiling BbcNews FDLink.swift
[54/73] Compiling BbcNews FDLinkDestination.swift
[55/73] Compiling BbcNews FDPresentation.swift
[56/73] Compiling BbcNews FDHeadline.swift
[57/73] Compiling BbcNews FDHeadlineByline.swift
[58/73] Compiling BbcNews FDSectionHeader.swift
[59/73] Compiling BbcNews FDVideoPortraitStory.swift
[60/73] Compiling BbcNews FDImage.swift
[61/73] Compiling BbcNews FDImageContainer.swift
[62/73] Compiling BbcNews FDImageMetadata.swift
[63/73] Compiling BbcNews FDImageSizingMethod.swift
[64/73] Compiling BbcNews FDImageSizingMethodType.swift
[65/73] Compiling BbcNews FDResolverResult.swift
[66/73] Compiling BbcNews FDData.swift
[67/73] Compiling BbcNews FDDataMetadata.swift
[68/73] Compiling BbcNews FDItem.swift
[69/73] Compiling BbcNews FDResult.swift
[70/73] Compiling BbcNews FDByline.swift
[71/73] Compiling BbcNews FDBylineContributor.swift
[72/73] Compiling BbcNews FDContentList.swift
[73/73] Compiling BbcNews FDContentListOrder.swift
BUILD FAILURE 6.1 wasm