The Swift Package Index logo.Swift Package Index

Build Information

Failed to build GoogleScholarSwift, reference main (3c7b00), with Swift 6.1 for Android on 29 May 2025 14:58:02 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ezefranca/GoogleScholarSwift.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/ezefranca/GoogleScholarSwift
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 3c7b005 Adjustments to V1.2
Cloned https://github.com/ezefranca/GoogleScholarSwift.git
Revision (git rev-parse @):
3c7b0054008736eaa287bcba776c4acedb12f89c
SUCCESS checkout https://github.com/ezefranca/GoogleScholarSwift.git at main
========================================
Build
========================================
Selected platform:         android
Swift version:             6.1
Building package at path:  $PWD
https://github.com/ezefranca/GoogleScholarSwift.git
https://github.com/ezefranca/GoogleScholarSwift.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "swiftsoup",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "2.7.2",
            "upper_bound" : "3.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/scinfu/SwiftSoup.git"
    },
    {
      "identity" : "swift-docc-plugin",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-docc-plugin.git"
    }
  ],
  "manifest_display_name" : "GoogleScholarSwift",
  "name" : "GoogleScholarSwift",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "macos",
      "version" : "12.0"
    },
    {
      "name" : "tvos",
      "version" : "13.0"
    },
    {
      "name" : "watchos",
      "version" : "6.0"
    }
  ],
  "products" : [
    {
      "name" : "GoogleScholarSwift",
      "targets" : [
        "GoogleScholarSwift"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "GoogleScholarSwiftTests",
      "module_type" : "SwiftTarget",
      "name" : "GoogleScholarSwiftTests",
      "path" : "Tests",
      "sources" : [
        "GoogleScholarFetcherTests/GoogleScholarSwiftTests.swift"
      ],
      "target_dependencies" : [
        "GoogleScholarSwift"
      ],
      "type" : "test"
    },
    {
      "c99name" : "GoogleScholarSwift",
      "module_type" : "SwiftTarget",
      "name" : "GoogleScholarSwift",
      "path" : "Sources/GoogleScholarSwift",
      "product_dependencies" : [
        "SwiftSoup"
      ],
      "product_memberships" : [
        "GoogleScholarSwift"
      ],
      "sources" : [
        "Constants/Constants.swift",
        "Enums/FetchQuantity.swift",
        "Enums/SortBy.swift",
        "Impl/CacheService.swift",
        "Impl/GoogleScholarFetcher.swift",
        "Impl/HTMLParser.swift",
        "Impl/NetworkService.swift",
        "Models/Article.swift",
        "Models/ArticleLink.swift",
        "Models/Author.swift",
        "Models/AuthorMetrics.swift",
        "Models/CitationMetrics.swift",
        "Models/CoAuthor.swift",
        "Models/GoogleScholarCacheConfig.swift",
        "Models/GoogleScholarID.swift",
        "Models/Publication.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
Fetching https://github.com/apple/swift-docc-plugin.git
Fetching https://github.com/scinfu/SwiftSoup.git
[1/2049] Fetching swift-docc-plugin
[227/5957] Fetching swift-docc-plugin, swiftsoup
Fetched https://github.com/apple/swift-docc-plugin.git from cache (0.63s)
Fetched https://github.com/scinfu/SwiftSoup.git from cache (0.72s)
Computing version for https://github.com/apple/swift-docc-plugin.git
Computed https://github.com/apple/swift-docc-plugin.git at 1.4.3 (4.21s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3391] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (0.53s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (1.32s)
Computing version for https://github.com/scinfu/SwiftSoup.git
Computed https://github.com/scinfu/SwiftSoup.git at 2.8.7 (0.71s)
Creating working copy for https://github.com/scinfu/SwiftSoup.git
Working copy of https://github.com/scinfu/SwiftSoup.git resolved at 2.8.7
Creating working copy for https://github.com/swiftlang/swift-docc-symbolkit
Working copy of https://github.com/swiftlang/swift-docc-symbolkit resolved at 1.0.0
Creating working copy for https://github.com/apple/swift-docc-plugin.git
Working copy of https://github.com/apple/swift-docc-plugin.git resolved at 1.4.3
[1/1] Compiling plugin Swift-DocC Preview
[2/2] Compiling plugin Swift-DocC
Building for debugging...
[2/5] Write sources
[4/5] Write swift-version-24593BA9C3E375BF.txt
[6/59] Emitting module SwiftSoup
[7/66] Compiling SwiftSoup UTF8Arrays.swift
[8/66] Compiling SwiftSoup UnfairLock.swift
[9/66] Compiling SwiftSoup UnicodeScalar.swift
[10/66] Compiling SwiftSoup Validate.swift
[11/66] Compiling SwiftSoup Whitelist.swift
[12/66] Compiling SwiftSoup XmlDeclaration.swift
[13/66] Compiling SwiftSoup XmlTreeBuilder.swift
[14/66] Compiling SwiftSoup SimpleDictionary.swift
[15/66] Compiling SwiftSoup StreamReader.swift
[16/66] Compiling SwiftSoup String.swift
[17/66] Compiling SwiftSoup StringBuilder.swift
[18/66] Compiling SwiftSoup StringUtil.swift
[19/66] Compiling SwiftSoup StructuralEvaluator.swift
[20/66] Compiling SwiftSoup SwiftSoup.swift
[21/66] Compiling SwiftSoup Collector.swift
[22/66] Compiling SwiftSoup CombiningEvaluator.swift
[23/66] Compiling SwiftSoup Comment.swift
[24/66] Compiling SwiftSoup Connection.swift
[25/66] Compiling SwiftSoup CssSelector.swift
[26/66] Compiling SwiftSoup DataNode.swift
[27/66] Compiling SwiftSoup DataUtil.swift
[28/66] Compiling SwiftSoup Document.swift
[29/66] Compiling SwiftSoup ParseErrorList.swift
[30/66] Compiling SwiftSoup ParseSettings.swift
[31/66] Compiling SwiftSoup Parser.swift
[32/66] Compiling SwiftSoup ParsingStrings.swift
[33/66] Compiling SwiftSoup Pattern.swift
[34/66] Compiling SwiftSoup QueryParser.swift
[35/66] Compiling SwiftSoup SerializationException.swift
[36/66] Compiling SwiftSoup Tag.swift
[37/66] Compiling SwiftSoup TextNode.swift
[38/66] Compiling SwiftSoup Token.swift
[39/66] Compiling SwiftSoup TokenQueue.swift
[40/66] Compiling SwiftSoup Tokeniser.swift
[41/66] Compiling SwiftSoup TokeniserState.swift
[42/66] Compiling SwiftSoup TreeBuilder.swift
[43/66] Compiling SwiftSoup HtmlTreeBuilderState.swift
[44/66] Compiling SwiftSoup HttpStatusException.swift
[45/66] Compiling SwiftSoup Mutex.swift
[46/66] Compiling SwiftSoup Node.swift
[47/66] Compiling SwiftSoup NodeTraversor.swift
[48/66] Compiling SwiftSoup NodeVisitor.swift
[49/66] Compiling SwiftSoup OrderedSet.swift
[50/66] Compiling SwiftSoup ParseError.swift
[51/66] Compiling SwiftSoup ArrayExt.swift
[52/66] Compiling SwiftSoup Attribute.swift
[53/66] Compiling SwiftSoup Attributes.swift
[54/66] Compiling SwiftSoup BinarySearch.swift
[55/66] Compiling SwiftSoup BooleanAttribute.swift
[56/66] Compiling SwiftSoup CharacterExt.swift
[57/66] Compiling SwiftSoup CharacterReader.swift
[58/66] Compiling SwiftSoup Cleaner.swift
[59/66] Compiling SwiftSoup DocumentType.swift
[60/66] Compiling SwiftSoup Element.swift
[61/66] Compiling SwiftSoup Elements.swift
[62/66] Compiling SwiftSoup Entities.swift
[63/66] Compiling SwiftSoup Evaluator.swift
[64/66] Compiling SwiftSoup Exception.swift
[65/66] Compiling SwiftSoup FormElement.swift
[66/66] Compiling SwiftSoup HtmlTreeBuilder.swift
[68/82] Compiling GoogleScholarSwift CoAuthor.swift
/host/spi-builder-workspace/Sources/GoogleScholarSwift/Models/GoogleScholarCacheConfig.swift:14:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'GoogleScholarCacheConfig' may have shared mutable state; this is an error in the Swift 6 language mode
 3 |
 4 | /// A configuration object for the cache settings in `GoogleScholarFetcher`.
 5 | public struct GoogleScholarCacheConfig {
   |               `- note: consider making struct 'GoogleScholarCacheConfig' conform to the 'Sendable' protocol
 6 |     public let publicationCountLimit: Int
 7 |     public let publicationTotalCostLimit: Int
   :
12 |
13 |     /// Default cache configuration.
14 |     public static let `default` = GoogleScholarCacheConfig(
   |                       |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'GoogleScholarCacheConfig' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 |         publicationCountLimit: 10000,
16 |         publicationTotalCostLimit: 1024 * 1024 * 10,
[69/82] Compiling GoogleScholarSwift GoogleScholarCacheConfig.swift
/host/spi-builder-workspace/Sources/GoogleScholarSwift/Models/GoogleScholarCacheConfig.swift:14:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'GoogleScholarCacheConfig' may have shared mutable state; this is an error in the Swift 6 language mode
 3 |
 4 | /// A configuration object for the cache settings in `GoogleScholarFetcher`.
 5 | public struct GoogleScholarCacheConfig {
   |               `- note: consider making struct 'GoogleScholarCacheConfig' conform to the 'Sendable' protocol
 6 |     public let publicationCountLimit: Int
 7 |     public let publicationTotalCostLimit: Int
   :
12 |
13 |     /// Default cache configuration.
14 |     public static let `default` = GoogleScholarCacheConfig(
   |                       |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'GoogleScholarCacheConfig' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 |         publicationCountLimit: 10000,
16 |         publicationTotalCostLimit: 1024 * 1024 * 10,
[70/84] Compiling GoogleScholarSwift Constants.swift
/host/spi-builder-workspace/Sources/GoogleScholarSwift/Constants/Constants.swift:27:23: warning: static property 'cookies' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
25 |     ]
26 |
27 |     public static var cookies: [String: String] = [
   |                       |- warning: static property 'cookies' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'cookies' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: add '@MainActor' to make static property 'cookies' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
28 |         "CONSENT": "PENDING+300"
29 |     ]
[71/84] Compiling GoogleScholarSwift FetchQuantity.swift
/host/spi-builder-workspace/Sources/GoogleScholarSwift/Constants/Constants.swift:27:23: warning: static property 'cookies' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
25 |     ]
26 |
27 |     public static var cookies: [String: String] = [
   |                       |- warning: static property 'cookies' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'cookies' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: add '@MainActor' to make static property 'cookies' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
28 |         "CONSENT": "PENDING+300"
29 |     ]
error: emit-module command failed with exit code 1 (use -v to see invocation)
[72/84] Emitting module GoogleScholarSwift
/host/spi-builder-workspace/Sources/GoogleScholarSwift/Constants/Constants.swift:27:23: warning: static property 'cookies' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
25 |     ]
26 |
27 |     public static var cookies: [String: String] = [
   |                       |- warning: static property 'cookies' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'cookies' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: add '@MainActor' to make static property 'cookies' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
28 |         "CONSENT": "PENDING+300"
29 |     ]
/host/spi-builder-workspace/Sources/GoogleScholarSwift/Impl/NetworkService.swift:8:40: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 6 |     private let session: URLSession
 7 |
 8 |     public init(session: URLSession = .shared) {
   |                                        `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 9 |         self.session = session
10 |     }
/host/spi-builder-workspace/Sources/GoogleScholarSwift/Impl/NetworkService.swift:6:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 4 | public class NetworkService {
 5 |
 6 |     private let session: URLSession
   |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 7 |
 8 |     public init(session: URLSession = .shared) {
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/GoogleScholarSwift/Impl/NetworkService.swift:8:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 6 |     private let session: URLSession
 7 |
 8 |     public init(session: URLSession = .shared) {
   |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 9 |         self.session = session
10 |     }
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/GoogleScholarSwift/Impl/NetworkService.swift:73:53: error: cannot find type 'URLRequest' in scope
71 |     }
72 |
73 |     private func configureRequest(with url: URL) -> URLRequest {
   |                                                     `- error: cannot find type 'URLRequest' in scope
74 |         var request = URLRequest(url: url)
75 |         request.addValue(Constants.randomUserAgent(), forHTTPHeaderField: "User-Agent")
/host/spi-builder-workspace/Sources/GoogleScholarSwift/Models/GoogleScholarCacheConfig.swift:14:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'GoogleScholarCacheConfig' may have shared mutable state; this is an error in the Swift 6 language mode
 3 |
 4 | /// A configuration object for the cache settings in `GoogleScholarFetcher`.
 5 | public struct GoogleScholarCacheConfig {
   |               `- note: consider making struct 'GoogleScholarCacheConfig' conform to the 'Sendable' protocol
 6 |     public let publicationCountLimit: Int
 7 |     public let publicationTotalCostLimit: Int
   :
12 |
13 |     /// Default cache configuration.
14 |     public static let `default` = GoogleScholarCacheConfig(
   |                       |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'GoogleScholarCacheConfig' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 |         publicationCountLimit: 10000,
16 |         publicationTotalCostLimit: 1024 * 1024 * 10,
[73/84] Compiling GoogleScholarSwift SortBy.swift
[74/84] Compiling GoogleScholarSwift CacheService.swift
[75/84] Compiling GoogleScholarSwift AuthorMetrics.swift
[76/84] Compiling GoogleScholarSwift CitationMetrics.swift
[77/84] Compiling GoogleScholarSwift GoogleScholarFetcher.swift
/host/spi-builder-workspace/Sources/GoogleScholarSwift/Impl/NetworkService.swift:8:40: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 6 |     private let session: URLSession
 7 |
 8 |     public init(session: URLSession = .shared) {
   |                                        `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 9 |         self.session = session
10 |     }
/host/spi-builder-workspace/Sources/GoogleScholarSwift/Impl/HTMLParser.swift:67:19: warning: immutable value 'totalPublications' was never used; consider replacing with '_' or removing it
 65 |
 66 |         guard let totalCitationsElement = try? doc.select("#gsc_rsb_st td.gsc_rsb_std").first()?.text(),
 67 |               let totalPublications = try? doc.select(".gsc_a_tr").count else {
    |                   `- warning: immutable value 'totalPublications' was never used; consider replacing with '_' or removing it
 68 |             throw NSError(domain: "Parsing Error", code: 0, userInfo: nil)
 69 |         }
[78/84] Compiling GoogleScholarSwift HTMLParser.swift
/host/spi-builder-workspace/Sources/GoogleScholarSwift/Impl/NetworkService.swift:8:40: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 6 |     private let session: URLSession
 7 |
 8 |     public init(session: URLSession = .shared) {
   |                                        `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 9 |         self.session = session
10 |     }
/host/spi-builder-workspace/Sources/GoogleScholarSwift/Impl/HTMLParser.swift:67:19: warning: immutable value 'totalPublications' was never used; consider replacing with '_' or removing it
 65 |
 66 |         guard let totalCitationsElement = try? doc.select("#gsc_rsb_st td.gsc_rsb_std").first()?.text(),
 67 |               let totalPublications = try? doc.select(".gsc_a_tr").count else {
    |                   `- warning: immutable value 'totalPublications' was never used; consider replacing with '_' or removing it
 68 |             throw NSError(domain: "Parsing Error", code: 0, userInfo: nil)
 69 |         }
[79/84] Compiling GoogleScholarSwift ArticleLink.swift
[80/84] Compiling GoogleScholarSwift Author.swift
[81/84] Compiling GoogleScholarSwift NetworkService.swift
/host/spi-builder-workspace/Sources/GoogleScholarSwift/Impl/NetworkService.swift:6:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 4 | public class NetworkService {
 5 |
 6 |     private let session: URLSession
   |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 7 |
 8 |     public init(session: URLSession = .shared) {
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/GoogleScholarSwift/Impl/NetworkService.swift:8:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 6 |     private let session: URLSession
 7 |
 8 |     public init(session: URLSession = .shared) {
   |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 9 |         self.session = session
10 |     }
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/GoogleScholarSwift/Impl/NetworkService.swift:8:40: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 6 |     private let session: URLSession
 7 |
 8 |     public init(session: URLSession = .shared) {
   |                                        `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 9 |         self.session = session
10 |     }
/host/spi-builder-workspace/Sources/GoogleScholarSwift/Impl/NetworkService.swift:73:53: error: cannot find type 'URLRequest' in scope
71 |     }
72 |
73 |     private func configureRequest(with url: URL) -> URLRequest {
   |                                                     `- error: cannot find type 'URLRequest' in scope
74 |         var request = URLRequest(url: url)
75 |         request.addValue(Constants.randomUserAgent(), forHTTPHeaderField: "User-Agent")
/host/spi-builder-workspace/Sources/GoogleScholarSwift/Impl/NetworkService.swift:37:43: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
35 |
36 |         let request = configureRequest(with: url)
37 |         let (data, _) = try await session.data(for: request)
   |                                           `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
38 |
39 |         guard let html = String(data: data, encoding: .utf8) else {
/host/spi-builder-workspace/Sources/GoogleScholarSwift/Impl/NetworkService.swift:56:43: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
54 |
55 |         let request = configureRequest(with: requestURL)
56 |         let (data, _) = try await session.data(for: request)
   |                                           `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
57 |
58 |         guard let html = String(data: data, encoding: .utf8) else {
/host/spi-builder-workspace/Sources/GoogleScholarSwift/Impl/NetworkService.swift:74:23: error: cannot find 'URLRequest' in scope
72 |
73 |     private func configureRequest(with url: URL) -> URLRequest {
74 |         var request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
75 |         request.addValue(Constants.randomUserAgent(), forHTTPHeaderField: "User-Agent")
76 |         request.addValue("https://scholar.google.com/", forHTTPHeaderField: "Referer")
[82/84] Compiling GoogleScholarSwift Article.swift
/host/spi-builder-workspace/Sources/GoogleScholarSwift/Impl/NetworkService.swift:6:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 4 | public class NetworkService {
 5 |
 6 |     private let session: URLSession
   |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 7 |
 8 |     public init(session: URLSession = .shared) {
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/GoogleScholarSwift/Impl/NetworkService.swift:8:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 6 |     private let session: URLSession
 7 |
 8 |     public init(session: URLSession = .shared) {
   |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 9 |         self.session = session
10 |     }
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/GoogleScholarSwift/Impl/NetworkService.swift:8:40: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 6 |     private let session: URLSession
 7 |
 8 |     public init(session: URLSession = .shared) {
   |                                        `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 9 |         self.session = session
10 |     }
/host/spi-builder-workspace/Sources/GoogleScholarSwift/Impl/NetworkService.swift:73:53: error: cannot find type 'URLRequest' in scope
71 |     }
72 |
73 |     private func configureRequest(with url: URL) -> URLRequest {
   |                                                     `- error: cannot find type 'URLRequest' in scope
74 |         var request = URLRequest(url: url)
75 |         request.addValue(Constants.randomUserAgent(), forHTTPHeaderField: "User-Agent")
/host/spi-builder-workspace/Sources/GoogleScholarSwift/Impl/NetworkService.swift:37:43: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
35 |
36 |         let request = configureRequest(with: url)
37 |         let (data, _) = try await session.data(for: request)
   |                                           `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
38 |
39 |         guard let html = String(data: data, encoding: .utf8) else {
/host/spi-builder-workspace/Sources/GoogleScholarSwift/Impl/NetworkService.swift:56:43: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
54 |
55 |         let request = configureRequest(with: requestURL)
56 |         let (data, _) = try await session.data(for: request)
   |                                           `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
57 |
58 |         guard let html = String(data: data, encoding: .utf8) else {
/host/spi-builder-workspace/Sources/GoogleScholarSwift/Impl/NetworkService.swift:74:23: error: cannot find 'URLRequest' in scope
72 |
73 |     private func configureRequest(with url: URL) -> URLRequest {
74 |         var request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
75 |         request.addValue(Constants.randomUserAgent(), forHTTPHeaderField: "User-Agent")
76 |         request.addValue("https://scholar.google.com/", forHTTPHeaderField: "Referer")
[83/84] Compiling GoogleScholarSwift GoogleScholarID.swift
[84/84] Compiling GoogleScholarSwift Publication.swift
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
[0/1] Planning build
[1/1] Compiling plugin Swift-DocC Preview
[2/2] Compiling plugin Swift-DocC
Building for debugging...
[2/3] Write swift-version-24593BA9C3E375BF.txt
[4/57] Compiling SwiftSoup ArrayExt.swift
[5/57] Compiling SwiftSoup Attribute.swift
[6/57] Compiling SwiftSoup Attributes.swift
[7/57] Compiling SwiftSoup BinarySearch.swift
[8/57] Compiling SwiftSoup BooleanAttribute.swift
[9/57] Compiling SwiftSoup CharacterExt.swift
[10/57] Compiling SwiftSoup CharacterReader.swift
[11/57] Compiling SwiftSoup Cleaner.swift
[12/64] Compiling SwiftSoup SimpleDictionary.swift
[13/64] Compiling SwiftSoup StreamReader.swift
[14/64] Compiling SwiftSoup String.swift
[15/64] Compiling SwiftSoup StringBuilder.swift
[16/64] Compiling SwiftSoup StringUtil.swift
[17/64] Compiling SwiftSoup StructuralEvaluator.swift
[18/64] Compiling SwiftSoup SwiftSoup.swift
[19/64] Emitting module SwiftSoup
[20/64] Compiling SwiftSoup UTF8Arrays.swift
[21/64] Compiling SwiftSoup UnfairLock.swift
[22/64] Compiling SwiftSoup UnicodeScalar.swift
[23/64] Compiling SwiftSoup Validate.swift
[24/64] Compiling SwiftSoup Whitelist.swift
[25/64] Compiling SwiftSoup XmlDeclaration.swift
[26/64] Compiling SwiftSoup XmlTreeBuilder.swift
[27/64] Compiling SwiftSoup ParseErrorList.swift
[28/64] Compiling SwiftSoup ParseSettings.swift
[29/64] Compiling SwiftSoup Parser.swift
[30/64] Compiling SwiftSoup ParsingStrings.swift
[31/64] Compiling SwiftSoup Pattern.swift
[32/64] Compiling SwiftSoup QueryParser.swift
[33/64] Compiling SwiftSoup SerializationException.swift
[34/64] Compiling SwiftSoup HtmlTreeBuilderState.swift
[35/64] Compiling SwiftSoup HttpStatusException.swift
[36/64] Compiling SwiftSoup Mutex.swift
[37/64] Compiling SwiftSoup Node.swift
[38/64] Compiling SwiftSoup NodeTraversor.swift
[39/64] Compiling SwiftSoup NodeVisitor.swift
[40/64] Compiling SwiftSoup OrderedSet.swift
[41/64] Compiling SwiftSoup ParseError.swift
[42/64] Compiling SwiftSoup Tag.swift
[43/64] Compiling SwiftSoup TextNode.swift
[44/64] Compiling SwiftSoup Token.swift
[45/64] Compiling SwiftSoup TokenQueue.swift
[46/64] Compiling SwiftSoup Tokeniser.swift
[47/64] Compiling SwiftSoup TokeniserState.swift
[48/64] Compiling SwiftSoup TreeBuilder.swift
[49/64] Compiling SwiftSoup Collector.swift
[50/64] Compiling SwiftSoup CombiningEvaluator.swift
[51/64] Compiling SwiftSoup Comment.swift
[52/64] Compiling SwiftSoup Connection.swift
[53/64] Compiling SwiftSoup CssSelector.swift
[54/64] Compiling SwiftSoup DataNode.swift
[55/64] Compiling SwiftSoup DataUtil.swift
[56/64] Compiling SwiftSoup Document.swift
[57/64] Compiling SwiftSoup DocumentType.swift
[58/64] Compiling SwiftSoup Element.swift
[59/64] Compiling SwiftSoup Elements.swift
[60/64] Compiling SwiftSoup Entities.swift
[61/64] Compiling SwiftSoup Evaluator.swift
[62/64] Compiling SwiftSoup Exception.swift
[63/64] Compiling SwiftSoup FormElement.swift
[64/64] Compiling SwiftSoup HtmlTreeBuilder.swift
[66/80] Compiling GoogleScholarSwift NetworkService.swift
/host/spi-builder-workspace/Sources/GoogleScholarSwift/Impl/NetworkService.swift:6:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 4 | public class NetworkService {
 5 |
 6 |     private let session: URLSession
   |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 7 |
 8 |     public init(session: URLSession = .shared) {
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/GoogleScholarSwift/Impl/NetworkService.swift:8:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 6 |     private let session: URLSession
 7 |
 8 |     public init(session: URLSession = .shared) {
   |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 9 |         self.session = session
10 |     }
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/GoogleScholarSwift/Impl/NetworkService.swift:8:40: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 6 |     private let session: URLSession
 7 |
 8 |     public init(session: URLSession = .shared) {
   |                                        `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 9 |         self.session = session
10 |     }
/host/spi-builder-workspace/Sources/GoogleScholarSwift/Impl/NetworkService.swift:73:53: error: cannot find type 'URLRequest' in scope
71 |     }
72 |
73 |     private func configureRequest(with url: URL) -> URLRequest {
   |                                                     `- error: cannot find type 'URLRequest' in scope
74 |         var request = URLRequest(url: url)
75 |         request.addValue(Constants.randomUserAgent(), forHTTPHeaderField: "User-Agent")
/host/spi-builder-workspace/Sources/GoogleScholarSwift/Impl/NetworkService.swift:37:43: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
35 |
36 |         let request = configureRequest(with: url)
37 |         let (data, _) = try await session.data(for: request)
   |                                           `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
38 |
39 |         guard let html = String(data: data, encoding: .utf8) else {
/host/spi-builder-workspace/Sources/GoogleScholarSwift/Impl/NetworkService.swift:56:43: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
54 |
55 |         let request = configureRequest(with: requestURL)
56 |         let (data, _) = try await session.data(for: request)
   |                                           `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
57 |
58 |         guard let html = String(data: data, encoding: .utf8) else {
/host/spi-builder-workspace/Sources/GoogleScholarSwift/Impl/NetworkService.swift:74:23: error: cannot find 'URLRequest' in scope
72 |
73 |     private func configureRequest(with url: URL) -> URLRequest {
74 |         var request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
75 |         request.addValue(Constants.randomUserAgent(), forHTTPHeaderField: "User-Agent")
76 |         request.addValue("https://scholar.google.com/", forHTTPHeaderField: "Referer")
[67/80] Compiling GoogleScholarSwift Article.swift
/host/spi-builder-workspace/Sources/GoogleScholarSwift/Impl/NetworkService.swift:6:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 4 | public class NetworkService {
 5 |
 6 |     private let session: URLSession
   |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 7 |
 8 |     public init(session: URLSession = .shared) {
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/GoogleScholarSwift/Impl/NetworkService.swift:8:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 6 |     private let session: URLSession
 7 |
 8 |     public init(session: URLSession = .shared) {
   |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 9 |         self.session = session
10 |     }
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/GoogleScholarSwift/Impl/NetworkService.swift:8:40: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 6 |     private let session: URLSession
 7 |
 8 |     public init(session: URLSession = .shared) {
   |                                        `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 9 |         self.session = session
10 |     }
/host/spi-builder-workspace/Sources/GoogleScholarSwift/Impl/NetworkService.swift:73:53: error: cannot find type 'URLRequest' in scope
71 |     }
72 |
73 |     private func configureRequest(with url: URL) -> URLRequest {
   |                                                     `- error: cannot find type 'URLRequest' in scope
74 |         var request = URLRequest(url: url)
75 |         request.addValue(Constants.randomUserAgent(), forHTTPHeaderField: "User-Agent")
/host/spi-builder-workspace/Sources/GoogleScholarSwift/Impl/NetworkService.swift:37:43: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
35 |
36 |         let request = configureRequest(with: url)
37 |         let (data, _) = try await session.data(for: request)
   |                                           `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
38 |
39 |         guard let html = String(data: data, encoding: .utf8) else {
/host/spi-builder-workspace/Sources/GoogleScholarSwift/Impl/NetworkService.swift:56:43: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
54 |
55 |         let request = configureRequest(with: requestURL)
56 |         let (data, _) = try await session.data(for: request)
   |                                           `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
57 |
58 |         guard let html = String(data: data, encoding: .utf8) else {
/host/spi-builder-workspace/Sources/GoogleScholarSwift/Impl/NetworkService.swift:74:23: error: cannot find 'URLRequest' in scope
72 |
73 |     private func configureRequest(with url: URL) -> URLRequest {
74 |         var request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
75 |         request.addValue(Constants.randomUserAgent(), forHTTPHeaderField: "User-Agent")
76 |         request.addValue("https://scholar.google.com/", forHTTPHeaderField: "Referer")
[68/82] Compiling GoogleScholarSwift CoAuthor.swift
[69/82] Compiling GoogleScholarSwift GoogleScholarCacheConfig.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[70/82] Compiling GoogleScholarSwift ArticleLink.swift
[71/82] Compiling GoogleScholarSwift Author.swift
[72/82] Compiling GoogleScholarSwift Constants.swift
[73/82] Compiling GoogleScholarSwift FetchQuantity.swift
[74/82] Emitting module GoogleScholarSwift
/host/spi-builder-workspace/Sources/GoogleScholarSwift/Impl/NetworkService.swift:8:40: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 6 |     private let session: URLSession
 7 |
 8 |     public init(session: URLSession = .shared) {
   |                                        `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 9 |         self.session = session
10 |     }
/host/spi-builder-workspace/Sources/GoogleScholarSwift/Impl/NetworkService.swift:6:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 4 | public class NetworkService {
 5 |
 6 |     private let session: URLSession
   |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 7 |
 8 |     public init(session: URLSession = .shared) {
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/GoogleScholarSwift/Impl/NetworkService.swift:8:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 6 |     private let session: URLSession
 7 |
 8 |     public init(session: URLSession = .shared) {
   |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 9 |         self.session = session
10 |     }
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/GoogleScholarSwift/Impl/NetworkService.swift:73:53: error: cannot find type 'URLRequest' in scope
71 |     }
72 |
73 |     private func configureRequest(with url: URL) -> URLRequest {
   |                                                     `- error: cannot find type 'URLRequest' in scope
74 |         var request = URLRequest(url: url)
75 |         request.addValue(Constants.randomUserAgent(), forHTTPHeaderField: "User-Agent")
[75/82] Compiling GoogleScholarSwift SortBy.swift
[76/82] Compiling GoogleScholarSwift CacheService.swift
[77/82] Compiling GoogleScholarSwift GoogleScholarFetcher.swift
/host/spi-builder-workspace/Sources/GoogleScholarSwift/Impl/NetworkService.swift:8:40: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 6 |     private let session: URLSession
 7 |
 8 |     public init(session: URLSession = .shared) {
   |                                        `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 9 |         self.session = session
10 |     }
/host/spi-builder-workspace/Sources/GoogleScholarSwift/Impl/HTMLParser.swift:67:19: warning: immutable value 'totalPublications' was never used; consider replacing with '_' or removing it
 65 |
 66 |         guard let totalCitationsElement = try? doc.select("#gsc_rsb_st td.gsc_rsb_std").first()?.text(),
 67 |               let totalPublications = try? doc.select(".gsc_a_tr").count else {
    |                   `- warning: immutable value 'totalPublications' was never used; consider replacing with '_' or removing it
 68 |             throw NSError(domain: "Parsing Error", code: 0, userInfo: nil)
 69 |         }
[78/82] Compiling GoogleScholarSwift HTMLParser.swift
/host/spi-builder-workspace/Sources/GoogleScholarSwift/Impl/NetworkService.swift:8:40: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 6 |     private let session: URLSession
 7 |
 8 |     public init(session: URLSession = .shared) {
   |                                        `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 9 |         self.session = session
10 |     }
/host/spi-builder-workspace/Sources/GoogleScholarSwift/Impl/HTMLParser.swift:67:19: warning: immutable value 'totalPublications' was never used; consider replacing with '_' or removing it
 65 |
 66 |         guard let totalCitationsElement = try? doc.select("#gsc_rsb_st td.gsc_rsb_std").first()?.text(),
 67 |               let totalPublications = try? doc.select(".gsc_a_tr").count else {
    |                   `- warning: immutable value 'totalPublications' was never used; consider replacing with '_' or removing it
 68 |             throw NSError(domain: "Parsing Error", code: 0, userInfo: nil)
 69 |         }
[79/82] Compiling GoogleScholarSwift AuthorMetrics.swift
[80/82] Compiling GoogleScholarSwift CitationMetrics.swift
[81/82] Compiling GoogleScholarSwift GoogleScholarID.swift
[82/82] Compiling GoogleScholarSwift Publication.swift
BUILD FAILURE 6.1 android