The Swift Package Index logo.Swift Package Index

Build Information

Failed to build InAppTools, reference main (b25576), with Swift 6.1 for Android on 29 May 2025 10:06:03 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/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/dhennessy/inapptools-ios-sdk.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/dhennessy/inapptools-ios-sdk
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at b25576b Prepare for SDK release
Cloned https://github.com/dhennessy/inapptools-ios-sdk.git
Revision (git rev-parse @):
b25576bb1c6c478da8516ba3016849f6dd0beb12
SUCCESS checkout https://github.com/dhennessy/inapptools-ios-sdk.git at main
========================================
Build
========================================
Selected platform:         android
Swift version:             6.1
Building package at path:  $PWD
https://github.com/dhennessy/inapptools-ios-sdk.git
https://github.com/dhennessy/inapptools-ios-sdk.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "mocker",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "3.0.0",
            "upper_bound" : "4.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/WeTransfer/Mocker.git"
    }
  ],
  "manifest_display_name" : "InAppTools",
  "name" : "InAppTools",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "15.0"
    },
    {
      "name" : "macos",
      "version" : "12.0"
    }
  ],
  "products" : [
    {
      "name" : "InAppTools",
      "targets" : [
        "InAppTools"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "swift_languages_versions" : [
    "5"
  ],
  "targets" : [
    {
      "c99name" : "InAppToolsTests",
      "module_type" : "SwiftTarget",
      "name" : "InAppToolsTests",
      "path" : "Tests/InAppToolsTests",
      "product_dependencies" : [
        "Mocker"
      ],
      "sources" : [
        "InAppToolsTests.swift"
      ],
      "target_dependencies" : [
        "InAppTools"
      ],
      "type" : "test"
    },
    {
      "c99name" : "InAppTools",
      "module_type" : "SwiftTarget",
      "name" : "InAppTools",
      "path" : "Sources/InAppTools",
      "product_memberships" : [
        "InAppTools"
      ],
      "resources" : [
        {
          "path" : "/host/spi-builder-workspace/Sources/InAppTools/PrivacyInfo.xcprivacy",
          "rule" : {
            "copy" : {
            }
          }
        }
      ],
      "sources" : [
        "InAppTools.swift",
        "InAppToolsError.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.7"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/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/WeTransfer/Mocker.git
[1/1891] Fetching mocker
Fetched https://github.com/WeTransfer/Mocker.git from cache (2.47s)
Computing version for https://github.com/WeTransfer/Mocker.git
Computed https://github.com/WeTransfer/Mocker.git at 3.0.2 (5.38s)
Creating working copy for https://github.com/WeTransfer/Mocker.git
Working copy of https://github.com/WeTransfer/Mocker.git resolved at 3.0.2
Building for debugging...
[0/3] Write sources
[0/3] Copying PrivacyInfo.xcprivacy
[2/3] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/7] Emitting module InAppTools
/host/spi-builder-workspace/Sources/InAppTools/InAppTools.swift:5:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 3 | public class MailingList {
 4 |     private let apiKey: String
 5 |     private let session: URLSession
   |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 6 |     private let baseURL: URL
 7 |
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/InAppTools/InAppTools.swift:39:42: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
37 |     }
38 |
39 |     public init(apiKey: String, session: URLSession = .shared, baseURL: URL = URL(string: "https://api.inapptools.com/v1/")!) {
   |                                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 |         self.apiKey = apiKey
41 |         self.session = session
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/InAppTools/InAppTools.swift:39:56: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
37 |     }
38 |
39 |     public init(apiKey: String, session: URLSession = .shared, baseURL: URL = URL(string: "https://api.inapptools.com/v1/")!) {
   |                                                        `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
40 |         self.apiKey = apiKey
41 |         self.session = session
/host/spi-builder-workspace/Sources/InAppTools/InAppTools.swift:81:61: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
79 |     // MARK: Implementation helpers
80 |
81 |     private func validateHttpResponse(data: Data, response: URLResponse) throws {
   |                                                             `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
82 |         guard let http = response as? HTTPURLResponse else {
83 |             throw InAppToolsError.invalidResponse
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
[5/7] Compiling InAppTools InAppToolsError.swift
[6/7] Compiling InAppTools resource_bundle_accessor.swift
[7/7] Compiling InAppTools InAppTools.swift
/host/spi-builder-workspace/Sources/InAppTools/InAppTools.swift:5:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 3 | public class MailingList {
 4 |     private let apiKey: String
 5 |     private let session: URLSession
   |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 6 |     private let baseURL: URL
 7 |
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/InAppTools/InAppTools.swift:39:42: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
37 |     }
38 |
39 |     public init(apiKey: String, session: URLSession = .shared, baseURL: URL = URL(string: "https://api.inapptools.com/v1/")!) {
   |                                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 |         self.apiKey = apiKey
41 |         self.session = session
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/InAppTools/InAppTools.swift:39:56: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
37 |     }
38 |
39 |     public init(apiKey: String, session: URLSession = .shared, baseURL: URL = URL(string: "https://api.inapptools.com/v1/")!) {
   |                                                        `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
40 |         self.apiKey = apiKey
41 |         self.session = session
/host/spi-builder-workspace/Sources/InAppTools/InAppTools.swift:81:61: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
79 |     // MARK: Implementation helpers
80 |
81 |     private func validateHttpResponse(data: Data, response: URLResponse) throws {
   |                                                             `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
82 |         guard let http = response as? HTTPURLResponse else {
83 |             throw InAppToolsError.invalidResponse
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/InAppTools/InAppTools.swift:50:23: error: cannot find 'URLRequest' in scope
48 |         let body = try jsonEncoder.encode(MemberChanges(email: email, firstName: firstName, lastName: lastName, name: name, fields: fields, tags: tags, status: .subscribed))
49 |         let url = baseURL.appendingPathComponent("lists/\(listId)/members/\(email)/")
50 |         var request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
51 |         request.httpMethod = "PUT"
52 |         request.setValue(apiKey, forHTTPHeaderField: "X-API-Key")
/host/spi-builder-workspace/Sources/InAppTools/InAppTools.swift:55:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
53 |         request.setValue("application/json", forHTTPHeaderField: "Content-Type")
54 |         request.httpBody = body
55 |         let (data, response) = try await session.data(for: request)
   |                                                  `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
56 |         try validateHttpResponse(data: data, response: response)
57 |         let jsonDecoder = JSONDecoder()
/host/spi-builder-workspace/Sources/InAppTools/InAppTools.swift:67:23: error: cannot find 'URLRequest' in scope
65 |         let body = try jsonEncoder.encode(StatusChanges(status: .unsubscribed))
66 |         let url = baseURL.appendingPathComponent("lists/\(listId)/members/\(uuid)/")
67 |         var request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
68 |         request.httpMethod = "PUT"
69 |         request.setValue(apiKey, forHTTPHeaderField: "X-API-Key")
/host/spi-builder-workspace/Sources/InAppTools/InAppTools.swift:72:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
70 |         request.setValue("application/json", forHTTPHeaderField: "Content-Type")
71 |         request.httpBody = body
72 |         let (data, response) = try await session.data(for: request)
   |                                                  `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
73 |         try validateHttpResponse(data: data, response: response)
74 |         let jsonDecoder = JSONDecoder()
/host/spi-builder-workspace/Sources/InAppTools/InAppTools.swift:82:35: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
80 |
81 |     private func validateHttpResponse(data: Data, response: URLResponse) throws {
82 |         guard let http = response as? HTTPURLResponse else {
   |                                   `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
83 |             throw InAppToolsError.invalidResponse
84 |         }
/host/spi-builder-workspace/Sources/InAppTools/InAppTools.swift:82:39: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
80 |
81 |     private func validateHttpResponse(data: Data, response: URLResponse) throws {
82 |         guard let http = response as? HTTPURLResponse else {
   |                                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
83 |             throw InAppToolsError.invalidResponse
84 |         }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/InAppTools/InAppTools.swift:86:21: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
84 |         }
85 |
86 |         switch http.statusCode {
   |                     `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
87 |         case 200...299:
88 |             return
/host/spi-builder-workspace/Sources/InAppTools/InAppTools.swift:92:53: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
90 |         case 400...599:
91 |             let body = String(data: data, encoding: .utf8) ?? ""
92 |             throw InAppToolsError.requestError(http.statusCode, body)
   |                                                     `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
93 |
94 |         default:
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/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/5] Compiling InAppTools resource_bundle_accessor.swift
[3/5] Compiling InAppTools InAppToolsError.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/5] Emitting module InAppTools
/host/spi-builder-workspace/Sources/InAppTools/InAppTools.swift:5:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 3 | public class MailingList {
 4 |     private let apiKey: String
 5 |     private let session: URLSession
   |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 6 |     private let baseURL: URL
 7 |
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/InAppTools/InAppTools.swift:39:42: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
37 |     }
38 |
39 |     public init(apiKey: String, session: URLSession = .shared, baseURL: URL = URL(string: "https://api.inapptools.com/v1/")!) {
   |                                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 |         self.apiKey = apiKey
41 |         self.session = session
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/InAppTools/InAppTools.swift:39:56: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
37 |     }
38 |
39 |     public init(apiKey: String, session: URLSession = .shared, baseURL: URL = URL(string: "https://api.inapptools.com/v1/")!) {
   |                                                        `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
40 |         self.apiKey = apiKey
41 |         self.session = session
/host/spi-builder-workspace/Sources/InAppTools/InAppTools.swift:81:61: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
79 |     // MARK: Implementation helpers
80 |
81 |     private func validateHttpResponse(data: Data, response: URLResponse) throws {
   |                                                             `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
82 |         guard let http = response as? HTTPURLResponse else {
83 |             throw InAppToolsError.invalidResponse
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
[5/5] Compiling InAppTools InAppTools.swift
/host/spi-builder-workspace/Sources/InAppTools/InAppTools.swift:5:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 3 | public class MailingList {
 4 |     private let apiKey: String
 5 |     private let session: URLSession
   |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 6 |     private let baseURL: URL
 7 |
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/InAppTools/InAppTools.swift:39:42: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
37 |     }
38 |
39 |     public init(apiKey: String, session: URLSession = .shared, baseURL: URL = URL(string: "https://api.inapptools.com/v1/")!) {
   |                                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 |         self.apiKey = apiKey
41 |         self.session = session
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/InAppTools/InAppTools.swift:39:56: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
37 |     }
38 |
39 |     public init(apiKey: String, session: URLSession = .shared, baseURL: URL = URL(string: "https://api.inapptools.com/v1/")!) {
   |                                                        `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
40 |         self.apiKey = apiKey
41 |         self.session = session
/host/spi-builder-workspace/Sources/InAppTools/InAppTools.swift:81:61: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
79 |     // MARK: Implementation helpers
80 |
81 |     private func validateHttpResponse(data: Data, response: URLResponse) throws {
   |                                                             `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
82 |         guard let http = response as? HTTPURLResponse else {
83 |             throw InAppToolsError.invalidResponse
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/InAppTools/InAppTools.swift:50:23: error: cannot find 'URLRequest' in scope
48 |         let body = try jsonEncoder.encode(MemberChanges(email: email, firstName: firstName, lastName: lastName, name: name, fields: fields, tags: tags, status: .subscribed))
49 |         let url = baseURL.appendingPathComponent("lists/\(listId)/members/\(email)/")
50 |         var request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
51 |         request.httpMethod = "PUT"
52 |         request.setValue(apiKey, forHTTPHeaderField: "X-API-Key")
/host/spi-builder-workspace/Sources/InAppTools/InAppTools.swift:55:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
53 |         request.setValue("application/json", forHTTPHeaderField: "Content-Type")
54 |         request.httpBody = body
55 |         let (data, response) = try await session.data(for: request)
   |                                                  `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
56 |         try validateHttpResponse(data: data, response: response)
57 |         let jsonDecoder = JSONDecoder()
/host/spi-builder-workspace/Sources/InAppTools/InAppTools.swift:67:23: error: cannot find 'URLRequest' in scope
65 |         let body = try jsonEncoder.encode(StatusChanges(status: .unsubscribed))
66 |         let url = baseURL.appendingPathComponent("lists/\(listId)/members/\(uuid)/")
67 |         var request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
68 |         request.httpMethod = "PUT"
69 |         request.setValue(apiKey, forHTTPHeaderField: "X-API-Key")
/host/spi-builder-workspace/Sources/InAppTools/InAppTools.swift:72:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
70 |         request.setValue("application/json", forHTTPHeaderField: "Content-Type")
71 |         request.httpBody = body
72 |         let (data, response) = try await session.data(for: request)
   |                                                  `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
73 |         try validateHttpResponse(data: data, response: response)
74 |         let jsonDecoder = JSONDecoder()
/host/spi-builder-workspace/Sources/InAppTools/InAppTools.swift:82:35: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
80 |
81 |     private func validateHttpResponse(data: Data, response: URLResponse) throws {
82 |         guard let http = response as? HTTPURLResponse else {
   |                                   `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
83 |             throw InAppToolsError.invalidResponse
84 |         }
/host/spi-builder-workspace/Sources/InAppTools/InAppTools.swift:82:39: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
80 |
81 |     private func validateHttpResponse(data: Data, response: URLResponse) throws {
82 |         guard let http = response as? HTTPURLResponse else {
   |                                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
83 |             throw InAppToolsError.invalidResponse
84 |         }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/InAppTools/InAppTools.swift:86:21: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
84 |         }
85 |
86 |         switch http.statusCode {
   |                     `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
87 |         case 200...299:
88 |             return
/host/spi-builder-workspace/Sources/InAppTools/InAppTools.swift:92:53: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
90 |         case 400...599:
91 |             let body = String(data: data, encoding: .utf8) ?? ""
92 |             throw InAppToolsError.requestError(http.statusCode, body)
   |                                                     `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
93 |
94 |         default:
BUILD FAILURE 6.1 android