The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build WikipediaKit, reference 3.0.4 (09538e), with Swift 6.1 for Wasm on 28 May 2025 07:10:36 UTC.

Build Command

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

Build Log

/host/spi-builder-workspace/Sources/WikipediaNetworking.swift:59:12: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 57 |     func loadJSON(urlRequest: URLRequest,
 58 |                   completion: @escaping (JSONDictionary?, WikipediaError?) -> ())
 59 |         -> URLSessionDataTask {
    |            `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 60 |
 61 |         let startTime: Date
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/WikipediaNetworking.swift:156:53: error: cannot find 'kCFBundleExecutableKey' in scope
154 |         #if !os(Linux)
155 |             if let infoDictionary = Bundle.main.infoDictionary {
156 |                     let bundleName = infoDictionary[kCFBundleExecutableKey as String] as? String ?? "Unknown App"
    |                                                     `- error: cannot find 'kCFBundleExecutableKey' in scope
157 |                     let bundleID = infoDictionary[kCFBundleIdentifierKey as String] as? String ?? "Unkown Bundle ID"
158 |                     let marketingVersionString = infoDictionary["CFBundleShortVersionString"] as? String ?? "Unknown Version"
/host/spi-builder-workspace/Sources/WikipediaNetworking.swift:157:51: error: cannot find 'kCFBundleIdentifierKey' in scope
155 |             if let infoDictionary = Bundle.main.infoDictionary {
156 |                     let bundleName = infoDictionary[kCFBundleExecutableKey as String] as? String ?? "Unknown App"
157 |                     let bundleID = infoDictionary[kCFBundleIdentifierKey as String] as? String ?? "Unkown Bundle ID"
    |                                                   `- error: cannot find 'kCFBundleIdentifierKey' in scope
158 |                     let marketingVersionString = infoDictionary["CFBundleShortVersionString"] as? String ?? "Unknown Version"
159 |                     userAgent = "\(bundleName)/\(marketingVersionString) (\(bundleID); \(WikipediaNetworking.appAuthorEmailForAPI)) \(framework)"
/host/spi-builder-workspace/Sources/WikipediaNetworking.swift:93:21: error: cannot convert value of type '_' to type 'NSError' in coercion
 91 |             if let error = error {
 92 |                 var wikipediaError: WikipediaError
 93 |                 if (error as NSError).code == NSURLErrorCancelled {
    |                     `- error: cannot convert value of type '_' to type 'NSError' in coercion
 94 |                     wikipediaError = .cancelled
 95 |                 } else {
[4/27] Compiling WikipediaKit WikipediaNetworkingActivityDelegate.swift
/host/spi-builder-workspace/Sources/WikipediaNetworking.swift:55:19: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 53 |     public static weak var sharedActivityIndicatorDelegate: WikipediaNetworkingActivityDelegate?
 54 |
 55 |     let session = URLSession(configuration: URLSessionConfiguration.default)
    |                   `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 56 |
 57 |     func loadJSON(urlRequest: URLRequest,
/host/spi-builder-workspace/Sources/WikipediaNetworking.swift:55:69: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 53 |     public static weak var sharedActivityIndicatorDelegate: WikipediaNetworkingActivityDelegate?
 54 |
 55 |     let session = URLSession(configuration: URLSessionConfiguration.default)
    |                                                                     `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 56 |
 57 |     func loadJSON(urlRequest: URLRequest,
/host/spi-builder-workspace/Sources/WikipediaNetworking.swift:57:31: error: cannot find type 'URLRequest' in scope
 55 |     let session = URLSession(configuration: URLSessionConfiguration.default)
 56 |
 57 |     func loadJSON(urlRequest: URLRequest,
    |                               `- error: cannot find type 'URLRequest' in scope
 58 |                   completion: @escaping (JSONDictionary?, WikipediaError?) -> ())
 59 |         -> URLSessionDataTask {
/host/spi-builder-workspace/Sources/WikipediaNetworking.swift:59:12: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 57 |     func loadJSON(urlRequest: URLRequest,
 58 |                   completion: @escaping (JSONDictionary?, WikipediaError?) -> ())
 59 |         -> URLSessionDataTask {
    |            `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 60 |
 61 |         let startTime: Date
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/WikipediaNetworking.swift:156:53: error: cannot find 'kCFBundleExecutableKey' in scope
154 |         #if !os(Linux)
155 |             if let infoDictionary = Bundle.main.infoDictionary {
156 |                     let bundleName = infoDictionary[kCFBundleExecutableKey as String] as? String ?? "Unknown App"
    |                                                     `- error: cannot find 'kCFBundleExecutableKey' in scope
157 |                     let bundleID = infoDictionary[kCFBundleIdentifierKey as String] as? String ?? "Unkown Bundle ID"
158 |                     let marketingVersionString = infoDictionary["CFBundleShortVersionString"] as? String ?? "Unknown Version"
/host/spi-builder-workspace/Sources/WikipediaNetworking.swift:157:51: error: cannot find 'kCFBundleIdentifierKey' in scope
155 |             if let infoDictionary = Bundle.main.infoDictionary {
156 |                     let bundleName = infoDictionary[kCFBundleExecutableKey as String] as? String ?? "Unknown App"
157 |                     let bundleID = infoDictionary[kCFBundleIdentifierKey as String] as? String ?? "Unkown Bundle ID"
    |                                                   `- error: cannot find 'kCFBundleIdentifierKey' in scope
158 |                     let marketingVersionString = infoDictionary["CFBundleShortVersionString"] as? String ?? "Unknown Version"
159 |                     userAgent = "\(bundleName)/\(marketingVersionString) (\(bundleID); \(WikipediaNetworking.appAuthorEmailForAPI)) \(framework)"
/host/spi-builder-workspace/Sources/WikipediaNetworking.swift:93:21: error: cannot convert value of type '_' to type 'NSError' in coercion
 91 |             if let error = error {
 92 |                 var wikipediaError: WikipediaError
 93 |                 if (error as NSError).code == NSURLErrorCancelled {
    |                     `- error: cannot convert value of type '_' to type 'NSError' in coercion
 94 |                     wikipediaError = .cancelled
 95 |                 } else {
[5/30] Compiling WikipediaKit String+Wikipedia.swift
/host/spi-builder-workspace/Sources/Wikipedia+Article.swift:42:12: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 |                                imageWidth: Int,
41 |                                completion: @escaping (Result<WikipediaArticle, WikipediaError>)->())
42 |         -> URLSessionDataTask? {
   |            `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 |
44 |
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Wikipedia+Article.swift:46:13: error: cannot find 'DispatchQueue' in scope
44 |
45 |         if let cachedArticle = self.articleCache.get(language: language, title: title) {
46 |             DispatchQueue.main.async {
   |             `- error: cannot find 'DispatchQueue' in scope
47 |                 completion(.success(cachedArticle))
48 |             }
/host/spi-builder-workspace/Sources/Wikipedia+Article.swift:58:17: error: cannot find 'DispatchQueue' in scope
56 |         guard let url = URL(string: urlString)
57 |             else {
58 |                 DispatchQueue.main.async {
   |                 `- error: cannot find 'DispatchQueue' in scope
59 |                     completion(.failure(.other(nil)))
60 |                 }
/host/spi-builder-workspace/Sources/Wikipedia+Article.swift:64:23: error: cannot find 'URLRequest' in scope
62 |         }
63 |
64 |         let request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
65 |
66 |         return WikipediaNetworking.shared.loadJSON(urlRequest: request) { jsonDictionary, error in
/host/spi-builder-workspace/Sources/Wikipedia+Article.swift:69:17: error: cannot find 'DispatchQueue' in scope
67 |
68 |             guard error == nil else {
69 |                 DispatchQueue.main.async {
   |                 `- error: cannot find 'DispatchQueue' in scope
70 |                     completion (.failure(error!))
71 |                 }
/host/spi-builder-workspace/Sources/Wikipedia+Article.swift:76:17: error: cannot find 'DispatchQueue' in scope
74 |
75 |             guard let jsonDictionary = jsonDictionary  else {
76 |                 DispatchQueue.main.async {
   |                 `- error: cannot find 'DispatchQueue' in scope
77 |                     completion (.failure(.decodingError))
78 |                 }
/host/spi-builder-workspace/Sources/Wikipedia+Article.swift:84:17: error: cannot find 'DispatchQueue' in scope
82 |             if let article = WikipediaArticle(jsonDictionary: jsonDictionary, language: language, title: title, fragment: fragment, imageWidth: imageWidth) {
83 |                 self.articleCache.add(article)
84 |                 DispatchQueue.main.async {
   |                 `- error: cannot find 'DispatchQueue' in scope
85 |                     completion(.success(article))
86 |                 }
/host/spi-builder-workspace/Sources/Wikipedia+Article.swift:88:17: error: cannot find 'DispatchQueue' in scope
86 |                 }
87 |             } else {
88 |                 DispatchQueue.main.async {
   |                 `- error: cannot find 'DispatchQueue' in scope
89 |                     completion(.failure(.decodingError))
90 |                 }
/host/spi-builder-workspace/Sources/WikipediaNetworking.swift:57:31: error: cannot find type 'URLRequest' in scope
 55 |     let session = URLSession(configuration: URLSessionConfiguration.default)
 56 |
 57 |     func loadJSON(urlRequest: URLRequest,
    |                               `- error: cannot find type 'URLRequest' in scope
 58 |                   completion: @escaping (JSONDictionary?, WikipediaError?) -> ())
 59 |         -> URLSessionDataTask {
/host/spi-builder-workspace/Sources/Wikipedia+ArticleSummary.swift:40:12: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
38 |                                title: String,
39 |                                completion: @escaping (WikipediaArticlePreview?, WikipediaError?)->())
40 |         -> URLSessionDataTask? {
   |            `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 |
42 |             let title = title.wikipediaURLEncodedString(encodeSlashes: true)
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Wikipedia+ArticleSummary.swift:50:21: error: cannot find 'DispatchQueue' in scope
48 |             guard let url = URL(string: urlString)
49 |                 else {
50 |                     DispatchQueue.main.async {
   |                     `- error: cannot find 'DispatchQueue' in scope
51 |                         completion(nil, .other(nil))
52 |                     }
/host/spi-builder-workspace/Sources/Wikipedia+ArticleSummary.swift:56:27: error: cannot find 'URLRequest' in scope
54 |             }
55 |
56 |             let request = URLRequest(url: url)
   |                           `- error: cannot find 'URLRequest' in scope
57 |
58 |             return WikipediaNetworking.shared.loadJSON(urlRequest: request) { jsonDictionary, error in
/host/spi-builder-workspace/Sources/Wikipedia+ArticleSummary.swift:62:21: error: cannot find 'DispatchQueue' in scope
60 |                 guard error == nil else {
61 |                     // (also occurs when the request was cancelled programmatically)
62 |                     DispatchQueue.main.async {
   |                     `- error: cannot find 'DispatchQueue' in scope
63 |                         completion (nil, error)
64 |                     }
/host/spi-builder-workspace/Sources/Wikipedia+ArticleSummary.swift:69:21: error: cannot find 'DispatchQueue' in scope
67 |
68 |                 guard let jsonDictionary = jsonDictionary  else {
69 |                     DispatchQueue.main.async {
   |                     `- error: cannot find 'DispatchQueue' in scope
70 |                         completion (nil, .decodingError)
71 |                     }
/host/spi-builder-workspace/Sources/Wikipedia+ArticleSummary.swift:77:17: error: cannot find 'DispatchQueue' in scope
75 |                 let articlePreview = WikipediaArticlePreview(jsonDictionary: jsonDictionary, language: language)
76 |
77 |                 DispatchQueue.main.async {
   |                 `- error: cannot find 'DispatchQueue' in scope
78 |                     completion(articlePreview, error)
79 |                 }
[6/30] Compiling WikipediaKit URL+Wikipedia.swift
/host/spi-builder-workspace/Sources/Wikipedia+Article.swift:42:12: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 |                                imageWidth: Int,
41 |                                completion: @escaping (Result<WikipediaArticle, WikipediaError>)->())
42 |         -> URLSessionDataTask? {
   |            `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 |
44 |
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Wikipedia+Article.swift:46:13: error: cannot find 'DispatchQueue' in scope
44 |
45 |         if let cachedArticle = self.articleCache.get(language: language, title: title) {
46 |             DispatchQueue.main.async {
   |             `- error: cannot find 'DispatchQueue' in scope
47 |                 completion(.success(cachedArticle))
48 |             }
/host/spi-builder-workspace/Sources/Wikipedia+Article.swift:58:17: error: cannot find 'DispatchQueue' in scope
56 |         guard let url = URL(string: urlString)
57 |             else {
58 |                 DispatchQueue.main.async {
   |                 `- error: cannot find 'DispatchQueue' in scope
59 |                     completion(.failure(.other(nil)))
60 |                 }
/host/spi-builder-workspace/Sources/Wikipedia+Article.swift:64:23: error: cannot find 'URLRequest' in scope
62 |         }
63 |
64 |         let request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
65 |
66 |         return WikipediaNetworking.shared.loadJSON(urlRequest: request) { jsonDictionary, error in
/host/spi-builder-workspace/Sources/Wikipedia+Article.swift:69:17: error: cannot find 'DispatchQueue' in scope
67 |
68 |             guard error == nil else {
69 |                 DispatchQueue.main.async {
   |                 `- error: cannot find 'DispatchQueue' in scope
70 |                     completion (.failure(error!))
71 |                 }
/host/spi-builder-workspace/Sources/Wikipedia+Article.swift:76:17: error: cannot find 'DispatchQueue' in scope
74 |
75 |             guard let jsonDictionary = jsonDictionary  else {
76 |                 DispatchQueue.main.async {
   |                 `- error: cannot find 'DispatchQueue' in scope
77 |                     completion (.failure(.decodingError))
78 |                 }
/host/spi-builder-workspace/Sources/Wikipedia+Article.swift:84:17: error: cannot find 'DispatchQueue' in scope
82 |             if let article = WikipediaArticle(jsonDictionary: jsonDictionary, language: language, title: title, fragment: fragment, imageWidth: imageWidth) {
83 |                 self.articleCache.add(article)
84 |                 DispatchQueue.main.async {
   |                 `- error: cannot find 'DispatchQueue' in scope
85 |                     completion(.success(article))
86 |                 }
/host/spi-builder-workspace/Sources/Wikipedia+Article.swift:88:17: error: cannot find 'DispatchQueue' in scope
86 |                 }
87 |             } else {
88 |                 DispatchQueue.main.async {
   |                 `- error: cannot find 'DispatchQueue' in scope
89 |                     completion(.failure(.decodingError))
90 |                 }
/host/spi-builder-workspace/Sources/WikipediaNetworking.swift:57:31: error: cannot find type 'URLRequest' in scope
 55 |     let session = URLSession(configuration: URLSessionConfiguration.default)
 56 |
 57 |     func loadJSON(urlRequest: URLRequest,
    |                               `- error: cannot find type 'URLRequest' in scope
 58 |                   completion: @escaping (JSONDictionary?, WikipediaError?) -> ())
 59 |         -> URLSessionDataTask {
/host/spi-builder-workspace/Sources/Wikipedia+ArticleSummary.swift:40:12: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
38 |                                title: String,
39 |                                completion: @escaping (WikipediaArticlePreview?, WikipediaError?)->())
40 |         -> URLSessionDataTask? {
   |            `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 |
42 |             let title = title.wikipediaURLEncodedString(encodeSlashes: true)
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Wikipedia+ArticleSummary.swift:50:21: error: cannot find 'DispatchQueue' in scope
48 |             guard let url = URL(string: urlString)
49 |                 else {
50 |                     DispatchQueue.main.async {
   |                     `- error: cannot find 'DispatchQueue' in scope
51 |                         completion(nil, .other(nil))
52 |                     }
/host/spi-builder-workspace/Sources/Wikipedia+ArticleSummary.swift:56:27: error: cannot find 'URLRequest' in scope
54 |             }
55 |
56 |             let request = URLRequest(url: url)
   |                           `- error: cannot find 'URLRequest' in scope
57 |
58 |             return WikipediaNetworking.shared.loadJSON(urlRequest: request) { jsonDictionary, error in
/host/spi-builder-workspace/Sources/Wikipedia+ArticleSummary.swift:62:21: error: cannot find 'DispatchQueue' in scope
60 |                 guard error == nil else {
61 |                     // (also occurs when the request was cancelled programmatically)
62 |                     DispatchQueue.main.async {
   |                     `- error: cannot find 'DispatchQueue' in scope
63 |                         completion (nil, error)
64 |                     }
/host/spi-builder-workspace/Sources/Wikipedia+ArticleSummary.swift:69:21: error: cannot find 'DispatchQueue' in scope
67 |
68 |                 guard let jsonDictionary = jsonDictionary  else {
69 |                     DispatchQueue.main.async {
   |                     `- error: cannot find 'DispatchQueue' in scope
70 |                         completion (nil, .decodingError)
71 |                     }
/host/spi-builder-workspace/Sources/Wikipedia+ArticleSummary.swift:77:17: error: cannot find 'DispatchQueue' in scope
75 |                 let articlePreview = WikipediaArticlePreview(jsonDictionary: jsonDictionary, language: language)
76 |
77 |                 DispatchQueue.main.async {
   |                 `- error: cannot find 'DispatchQueue' in scope
78 |                     completion(articlePreview, error)
79 |                 }
[7/30] Compiling WikipediaKit Wikipedia+Article.swift
/host/spi-builder-workspace/Sources/Wikipedia+Article.swift:42:12: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 |                                imageWidth: Int,
41 |                                completion: @escaping (Result<WikipediaArticle, WikipediaError>)->())
42 |         -> URLSessionDataTask? {
   |            `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 |
44 |
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Wikipedia+Article.swift:46:13: error: cannot find 'DispatchQueue' in scope
44 |
45 |         if let cachedArticle = self.articleCache.get(language: language, title: title) {
46 |             DispatchQueue.main.async {
   |             `- error: cannot find 'DispatchQueue' in scope
47 |                 completion(.success(cachedArticle))
48 |             }
/host/spi-builder-workspace/Sources/Wikipedia+Article.swift:58:17: error: cannot find 'DispatchQueue' in scope
56 |         guard let url = URL(string: urlString)
57 |             else {
58 |                 DispatchQueue.main.async {
   |                 `- error: cannot find 'DispatchQueue' in scope
59 |                     completion(.failure(.other(nil)))
60 |                 }
/host/spi-builder-workspace/Sources/Wikipedia+Article.swift:64:23: error: cannot find 'URLRequest' in scope
62 |         }
63 |
64 |         let request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
65 |
66 |         return WikipediaNetworking.shared.loadJSON(urlRequest: request) { jsonDictionary, error in
/host/spi-builder-workspace/Sources/Wikipedia+Article.swift:69:17: error: cannot find 'DispatchQueue' in scope
67 |
68 |             guard error == nil else {
69 |                 DispatchQueue.main.async {
   |                 `- error: cannot find 'DispatchQueue' in scope
70 |                     completion (.failure(error!))
71 |                 }
/host/spi-builder-workspace/Sources/Wikipedia+Article.swift:76:17: error: cannot find 'DispatchQueue' in scope
74 |
75 |             guard let jsonDictionary = jsonDictionary  else {
76 |                 DispatchQueue.main.async {
   |                 `- error: cannot find 'DispatchQueue' in scope
77 |                     completion (.failure(.decodingError))
78 |                 }
/host/spi-builder-workspace/Sources/Wikipedia+Article.swift:84:17: error: cannot find 'DispatchQueue' in scope
82 |             if let article = WikipediaArticle(jsonDictionary: jsonDictionary, language: language, title: title, fragment: fragment, imageWidth: imageWidth) {
83 |                 self.articleCache.add(article)
84 |                 DispatchQueue.main.async {
   |                 `- error: cannot find 'DispatchQueue' in scope
85 |                     completion(.success(article))
86 |                 }
/host/spi-builder-workspace/Sources/Wikipedia+Article.swift:88:17: error: cannot find 'DispatchQueue' in scope
86 |                 }
87 |             } else {
88 |                 DispatchQueue.main.async {
   |                 `- error: cannot find 'DispatchQueue' in scope
89 |                     completion(.failure(.decodingError))
90 |                 }
/host/spi-builder-workspace/Sources/WikipediaNetworking.swift:57:31: error: cannot find type 'URLRequest' in scope
 55 |     let session = URLSession(configuration: URLSessionConfiguration.default)
 56 |
 57 |     func loadJSON(urlRequest: URLRequest,
    |                               `- error: cannot find type 'URLRequest' in scope
 58 |                   completion: @escaping (JSONDictionary?, WikipediaError?) -> ())
 59 |         -> URLSessionDataTask {
/host/spi-builder-workspace/Sources/Wikipedia+ArticleSummary.swift:40:12: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
38 |                                title: String,
39 |                                completion: @escaping (WikipediaArticlePreview?, WikipediaError?)->())
40 |         -> URLSessionDataTask? {
   |            `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 |
42 |             let title = title.wikipediaURLEncodedString(encodeSlashes: true)
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Wikipedia+ArticleSummary.swift:50:21: error: cannot find 'DispatchQueue' in scope
48 |             guard let url = URL(string: urlString)
49 |                 else {
50 |                     DispatchQueue.main.async {
   |                     `- error: cannot find 'DispatchQueue' in scope
51 |                         completion(nil, .other(nil))
52 |                     }
/host/spi-builder-workspace/Sources/Wikipedia+ArticleSummary.swift:56:27: error: cannot find 'URLRequest' in scope
54 |             }
55 |
56 |             let request = URLRequest(url: url)
   |                           `- error: cannot find 'URLRequest' in scope
57 |
58 |             return WikipediaNetworking.shared.loadJSON(urlRequest: request) { jsonDictionary, error in
/host/spi-builder-workspace/Sources/Wikipedia+ArticleSummary.swift:62:21: error: cannot find 'DispatchQueue' in scope
60 |                 guard error == nil else {
61 |                     // (also occurs when the request was cancelled programmatically)
62 |                     DispatchQueue.main.async {
   |                     `- error: cannot find 'DispatchQueue' in scope
63 |                         completion (nil, error)
64 |                     }
/host/spi-builder-workspace/Sources/Wikipedia+ArticleSummary.swift:69:21: error: cannot find 'DispatchQueue' in scope
67 |
68 |                 guard let jsonDictionary = jsonDictionary  else {
69 |                     DispatchQueue.main.async {
   |                     `- error: cannot find 'DispatchQueue' in scope
70 |                         completion (nil, .decodingError)
71 |                     }
/host/spi-builder-workspace/Sources/Wikipedia+ArticleSummary.swift:77:17: error: cannot find 'DispatchQueue' in scope
75 |                 let articlePreview = WikipediaArticlePreview(jsonDictionary: jsonDictionary, language: language)
76 |
77 |                 DispatchQueue.main.async {
   |                 `- error: cannot find 'DispatchQueue' in scope
78 |                     completion(articlePreview, error)
79 |                 }
[8/30] Compiling WikipediaKit Wikipedia+ArticleSummary.swift
/host/spi-builder-workspace/Sources/Wikipedia+Article.swift:42:12: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 |                                imageWidth: Int,
41 |                                completion: @escaping (Result<WikipediaArticle, WikipediaError>)->())
42 |         -> URLSessionDataTask? {
   |            `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 |
44 |
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Wikipedia+Article.swift:46:13: error: cannot find 'DispatchQueue' in scope
44 |
45 |         if let cachedArticle = self.articleCache.get(language: language, title: title) {
46 |             DispatchQueue.main.async {
   |             `- error: cannot find 'DispatchQueue' in scope
47 |                 completion(.success(cachedArticle))
48 |             }
/host/spi-builder-workspace/Sources/Wikipedia+Article.swift:58:17: error: cannot find 'DispatchQueue' in scope
56 |         guard let url = URL(string: urlString)
57 |             else {
58 |                 DispatchQueue.main.async {
   |                 `- error: cannot find 'DispatchQueue' in scope
59 |                     completion(.failure(.other(nil)))
60 |                 }
/host/spi-builder-workspace/Sources/Wikipedia+Article.swift:64:23: error: cannot find 'URLRequest' in scope
62 |         }
63 |
64 |         let request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
65 |
66 |         return WikipediaNetworking.shared.loadJSON(urlRequest: request) { jsonDictionary, error in
/host/spi-builder-workspace/Sources/Wikipedia+Article.swift:69:17: error: cannot find 'DispatchQueue' in scope
67 |
68 |             guard error == nil else {
69 |                 DispatchQueue.main.async {
   |                 `- error: cannot find 'DispatchQueue' in scope
70 |                     completion (.failure(error!))
71 |                 }
/host/spi-builder-workspace/Sources/Wikipedia+Article.swift:76:17: error: cannot find 'DispatchQueue' in scope
74 |
75 |             guard let jsonDictionary = jsonDictionary  else {
76 |                 DispatchQueue.main.async {
   |                 `- error: cannot find 'DispatchQueue' in scope
77 |                     completion (.failure(.decodingError))
78 |                 }
/host/spi-builder-workspace/Sources/Wikipedia+Article.swift:84:17: error: cannot find 'DispatchQueue' in scope
82 |             if let article = WikipediaArticle(jsonDictionary: jsonDictionary, language: language, title: title, fragment: fragment, imageWidth: imageWidth) {
83 |                 self.articleCache.add(article)
84 |                 DispatchQueue.main.async {
   |                 `- error: cannot find 'DispatchQueue' in scope
85 |                     completion(.success(article))
86 |                 }
/host/spi-builder-workspace/Sources/Wikipedia+Article.swift:88:17: error: cannot find 'DispatchQueue' in scope
86 |                 }
87 |             } else {
88 |                 DispatchQueue.main.async {
   |                 `- error: cannot find 'DispatchQueue' in scope
89 |                     completion(.failure(.decodingError))
90 |                 }
/host/spi-builder-workspace/Sources/WikipediaNetworking.swift:57:31: error: cannot find type 'URLRequest' in scope
 55 |     let session = URLSession(configuration: URLSessionConfiguration.default)
 56 |
 57 |     func loadJSON(urlRequest: URLRequest,
    |                               `- error: cannot find type 'URLRequest' in scope
 58 |                   completion: @escaping (JSONDictionary?, WikipediaError?) -> ())
 59 |         -> URLSessionDataTask {
/host/spi-builder-workspace/Sources/Wikipedia+ArticleSummary.swift:40:12: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
38 |                                title: String,
39 |                                completion: @escaping (WikipediaArticlePreview?, WikipediaError?)->())
40 |         -> URLSessionDataTask? {
   |            `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 |
42 |             let title = title.wikipediaURLEncodedString(encodeSlashes: true)
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Wikipedia+ArticleSummary.swift:50:21: error: cannot find 'DispatchQueue' in scope
48 |             guard let url = URL(string: urlString)
49 |                 else {
50 |                     DispatchQueue.main.async {
   |                     `- error: cannot find 'DispatchQueue' in scope
51 |                         completion(nil, .other(nil))
52 |                     }
/host/spi-builder-workspace/Sources/Wikipedia+ArticleSummary.swift:56:27: error: cannot find 'URLRequest' in scope
54 |             }
55 |
56 |             let request = URLRequest(url: url)
   |                           `- error: cannot find 'URLRequest' in scope
57 |
58 |             return WikipediaNetworking.shared.loadJSON(urlRequest: request) { jsonDictionary, error in
/host/spi-builder-workspace/Sources/Wikipedia+ArticleSummary.swift:62:21: error: cannot find 'DispatchQueue' in scope
60 |                 guard error == nil else {
61 |                     // (also occurs when the request was cancelled programmatically)
62 |                     DispatchQueue.main.async {
   |                     `- error: cannot find 'DispatchQueue' in scope
63 |                         completion (nil, error)
64 |                     }
/host/spi-builder-workspace/Sources/Wikipedia+ArticleSummary.swift:69:21: error: cannot find 'DispatchQueue' in scope
67 |
68 |                 guard let jsonDictionary = jsonDictionary  else {
69 |                     DispatchQueue.main.async {
   |                     `- error: cannot find 'DispatchQueue' in scope
70 |                         completion (nil, .decodingError)
71 |                     }
/host/spi-builder-workspace/Sources/Wikipedia+ArticleSummary.swift:77:17: error: cannot find 'DispatchQueue' in scope
75 |                 let articlePreview = WikipediaArticlePreview(jsonDictionary: jsonDictionary, language: language)
76 |
77 |                 DispatchQueue.main.async {
   |                 `- error: cannot find 'DispatchQueue' in scope
78 |                     completion(articlePreview, error)
79 |                 }
[9/30] Compiling WikipediaKit WikipediaRandomArticlesBuffer.swift
[10/30] Compiling WikipediaKit WikipediaSearchMethod.swift
[11/30] Compiling WikipediaKit WikipediaSearchResults.swift
[12/30] Compiling WikipediaKit Wikipedia+RandomArticles.swift
/host/spi-builder-workspace/Sources/Wikipedia+RandomArticles.swift:42:8: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 40 |                                       loadExtracts: Bool = false,
 41 |                                       completion: @escaping (WikipediaArticlePreview?, WikipediaLanguage, WikipediaError?)-> ())
 42 |     -> URLSessionDataTask? {
    |        `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 43 |         if WikipediaRandomArticlesBuffer.shared.language == language,
 44 |            let nextArticlePreview = WikipediaRandomArticlesBuffer.shared.nextArticlePreview() {
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Wikipedia+RandomArticles.swift:72:8: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 70 |                                       loadExtracts: Bool = false,
 71 |                                       completion: @escaping ([WikipediaArticlePreview]?, WikipediaLanguage, WikipediaError?)-> ())
 72 |     -> URLSessionDataTask? {
    |        `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 73 |
 74 |         if imageWidth == 0 {
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Wikipedia+RandomArticles.swift:51:21: error: cannot find 'DispatchQueue' in scope
 49 |
 50 |                 guard let articlePreviews = articlePreviews else {
 51 |                     DispatchQueue.main.async {
    |                     `- error: cannot find 'DispatchQueue' in scope
 52 |                         completion(nil, language, error)
 53 |                     }
/host/spi-builder-workspace/Sources/Wikipedia+RandomArticles.swift:60:17: error: cannot find 'DispatchQueue' in scope
 58 |
 59 |                 let articlePreview = WikipediaRandomArticlesBuffer.shared.nextArticlePreview()
 60 |                 DispatchQueue.main.async {
    |                 `- error: cannot find 'DispatchQueue' in scope
 61 |                     completion(articlePreview, language, error)
 62 |                 }
/host/spi-builder-workspace/Sources/Wikipedia.swift:69:94: error: cannot find type 'URLRequest' in scope
67 |     var mostReadArticleDetailsRequest: URLSessionDataTask?
68 |
69 |     static func buildURLRequest(language: WikipediaLanguage, parameters: [String:String]) -> URLRequest? {
   |                                                                                              `- error: cannot find type 'URLRequest' in scope
70 |         guard let baseUrl = self.baseURL(language: language) else { return nil }
71 |
/host/spi-builder-workspace/Sources/Wikipedia+RandomArticles.swift:109:17: error: cannot find 'DispatchQueue' in scope
107 |         guard let request = Wikipedia.buildURLRequest(language: language, parameters: parameters)
108 |             else {
109 |                 DispatchQueue.main.async {
    |                 `- error: cannot find 'DispatchQueue' in scope
110 |                     completion(nil, language, .other(nil))
111 |                 }
/host/spi-builder-workspace/Sources/Wikipedia+RandomArticles.swift:119:17: error: cannot find 'DispatchQueue' in scope
117 |             guard error == nil else {
118 |                 // (also occurs when the request was cancelled programmatically)
119 |                 DispatchQueue.main.async {
    |                 `- error: cannot find 'DispatchQueue' in scope
120 |                     completion (nil, language, error)
121 |                 }
/host/spi-builder-workspace/Sources/Wikipedia+RandomArticles.swift:126:17: error: cannot find 'DispatchQueue' in scope
124 |
125 |             guard let jsonDictionary = jsonDictionary else {
126 |                 DispatchQueue.main.async {
    |                 `- error: cannot find 'DispatchQueue' in scope
127 |                     completion (nil, language, .decodingError)
128 |                 }
/host/spi-builder-workspace/Sources/Wikipedia+RandomArticles.swift:133:17: error: cannot find 'DispatchQueue' in scope
131 |
132 |             guard let query = jsonDictionary["query"] as? JSONDictionary else {
133 |                 DispatchQueue.main.async {
    |                 `- error: cannot find 'DispatchQueue' in scope
134 |                     // If nothing is found,
135 |                     // there is no “query” key,
/host/spi-builder-workspace/Sources/Wikipedia+RandomArticles.swift:144:17: error: cannot find 'DispatchQueue' in scope
142 |             if let error = query["error"] as? JSONDictionary,
143 |                 let info = error["info"] as? String {
144 |                 DispatchQueue.main.async {
    |                 `- error: cannot find 'DispatchQueue' in scope
145 |                     completion (nil, language, .apiError(info))
146 |                 }
/host/spi-builder-workspace/Sources/Wikipedia+RandomArticles.swift:151:17: error: cannot find 'DispatchQueue' in scope
149 |
150 |             guard let pages = query["pages"] as? [JSONDictionary] else {
151 |                 DispatchQueue.main.async {
    |                 `- error: cannot find 'DispatchQueue' in scope
152 |                     completion (nil, language, .notFound)
153 |                 }
/host/spi-builder-workspace/Sources/Wikipedia+RandomArticles.swift:165:13: error: cannot find 'DispatchQueue' in scope
163 |             }
164 |
165 |             DispatchQueue.main.async {
    |             `- error: cannot find 'DispatchQueue' in scope
166 |                 completion(results, language, error)
167 |             }
/host/spi-builder-workspace/Sources/WikipediaNetworking.swift:57:31: error: cannot find type 'URLRequest' in scope
 55 |     let session = URLSession(configuration: URLSessionConfiguration.default)
 56 |
 57 |     func loadJSON(urlRequest: URLRequest,
    |                               `- error: cannot find type 'URLRequest' in scope
 58 |                   completion: @escaping (JSONDictionary?, WikipediaError?) -> ())
 59 |         -> URLSessionDataTask {
/host/spi-builder-workspace/Sources/Wikipedia+Search.swift:44:12: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 42 |                                               maxCount: Int = 15,
 43 |                                               completion: @escaping (WikipediaSearchResults?, WikipediaError?) -> ())
 44 |         -> URLSessionDataTask? {
    |            `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 45 |
 46 |         let searchMethod = existingSearchResults?.searchMethod ?? .prefix
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Wikipedia+Search.swift:90:12: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 88 |                               maxCount: Int = 15,
 89 |                               completion: @escaping (WikipediaSearchResults?, WikipediaError?) -> ())
 90 |         -> URLSessionDataTask? {
    |            `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 91 |
 92 |         var searchResults: WikipediaSearchResults
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Wikipedia+Search.swift:49:35: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'cancel'
 47 |         let minCount: Int? = searchMethod == .prefix ? minCount : nil // ignore the minCount for fullText search
 48 |
 49 |         self.secondSearchRequest?.cancel()
    |                                   `- error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'cancel'
 50 |
 51 |         return self.requestSearchResults(method: searchMethod, language: language, term: term, existingSearchResults: existingSearchResults, imageWidth: imageWidth, minCount: minCount, maxCount: maxCount) { searchResults, error in
/host/spi-builder-workspace/Sources/Wikipedia+Search.swift:64:25: error: cannot find 'DispatchQueue' in scope
 62 |                 self.secondSearchRequest = self.requestSearchResults(method: .fullText, language: language, term: term, existingSearchResults: nil, imageWidth: imageWidth, maxCount: maxCount) { fullTextSearchResults, error in
 63 |                     if (fullTextSearchResults?.items.count ?? 0) >= (prefixSearchResults?.items.count ?? 0) {
 64 |                         DispatchQueue.main.async {
    |                         `- error: cannot find 'DispatchQueue' in scope
 65 |                             completion(fullTextSearchResults, error)
 66 |                         }
/host/spi-builder-workspace/Sources/Wikipedia+Search.swift:68:25: error: cannot find 'DispatchQueue' in scope
 66 |                         }
 67 |                     } else {
 68 |                         DispatchQueue.main.async {
    |                         `- error: cannot find 'DispatchQueue' in scope
 69 |                             completion(prefixSearchResults, nil)
 70 |                         }
/host/spi-builder-workspace/Sources/Wikipedia+Search.swift:75:17: error: cannot find 'DispatchQueue' in scope
 73 |                 }
 74 |             } else {
 75 |                 DispatchQueue.main.async {
    |                 `- error: cannot find 'DispatchQueue' in scope
 76 |                     completion(searchResults, error)
 77 |                 }
/host/spi-builder-workspace/Sources/Wikipedia+Search.swift:98:21: error: cannot find 'DispatchQueue' in scope
 96 |             guard sr.language == language,
 97 |                 sr.term == term else {
 98 |                     DispatchQueue.main.async {
    |                     `- error: cannot find 'DispatchQueue' in scope
 99 |                         completion(nil, .other(nil))
100 |                     }
/host/spi-builder-workspace/Sources/Wikipedia+Search.swift:113:17: error: cannot find 'DispatchQueue' in scope
111 |         if let cachedSearchResults = self.searchResultsCache.get(method: method, language: language, term: term) {
112 |             if cachedSearchResults.items.count > searchResults.items.count {
113 |                 DispatchQueue.main.async {
    |                 `- error: cannot find 'DispatchQueue' in scope
114 |                     completion(cachedSearchResults, nil)
115 |                 }
/host/spi-builder-workspace/Sources/Wikipedia+Search.swift:199:17: error: cannot find 'DispatchQueue' in scope
197 |         guard let request = Wikipedia.buildURLRequest(language: language, parameters: parameters)
198 |             else {
199 |                 DispatchQueue.main.async {
    |                 `- error: cannot find 'DispatchQueue' in scope
200 |                     completion(nil, .other(nil))
201 |                 }
/host/spi-builder-workspace/Sources/Wikipedia+Search.swift:209:17: error: cannot find 'DispatchQueue' in scope
207 |             guard error == nil else {
208 |                 // (also occurs when the request was cancelled programmatically)
209 |                 DispatchQueue.main.async {
    |                 `- error: cannot find 'DispatchQueue' in scope
210 |                     completion (searchResults, error)
211 |                 }
/host/spi-builder-workspace/Sources/Wikipedia+Search.swift:216:17: error: cannot find 'DispatchQueue' in scope
214 |
215 |             guard let jsonDictionary = jsonDictionary else {
216 |                 DispatchQueue.main.async {
    |                 `- error: cannot find 'DispatchQueue' in scope
217 |                     completion (searchResults, .decodingError)
218 |                 }
/host/spi-builder-workspace/Sources/Wikipedia+Search.swift:223:17: error: cannot find 'DispatchQueue' in scope
221 |
222 |             guard let query = jsonDictionary["query"] as? JSONDictionary else {
223 |                 DispatchQueue.main.async {
    |                 `- error: cannot find 'DispatchQueue' in scope
224 |                     completion (searchResults, .notFound)
225 |                 }
/host/spi-builder-workspace/Sources/Wikipedia+Search.swift:260:21: error: cannot find 'DispatchQueue' in scope
258 |                     pages.count < minCount {
259 |
260 |                     DispatchQueue.main.async {
    |                     `- error: cannot find 'DispatchQueue' in scope
261 |                         completion (searchResults, .notEnoughResults)
262 |                     }
/host/spi-builder-workspace/Sources/Wikipedia+Search.swift:268:17: error: cannot find 'DispatchQueue' in scope
266 |                 self.searchResultsCache.add(searchResults)
267 |
268 |                 DispatchQueue.main.async {
    |                 `- error: cannot find 'DispatchQueue' in scope
269 |                     completion(searchResults, error)
270 |                 }
/host/spi-builder-workspace/Sources/Wikipedia+Search.swift:276:21: error: cannot find 'DispatchQueue' in scope
274 |                 // No pages and offset of 0; this means that there are no results for this query.
275 |                 if searchResults.offset == 0 {
276 |                     DispatchQueue.main.async {
    |                     `- error: cannot find 'DispatchQueue' in scope
277 |                         completion (searchResults, .notFound)
278 |                     }
/host/spi-builder-workspace/Sources/Wikipedia+Search.swift:283:21: error: cannot find 'DispatchQueue' in scope
281 |                     // No pages found but there are already search results; this means that there are no more results.
282 |                     searchResults.canLoadMore = false
283 |                     DispatchQueue.main.async {
    |                     `- error: cannot find 'DispatchQueue' in scope
284 |                         completion (searchResults, error)
285 |                     }
/host/spi-builder-workspace/Sources/Wikipedia.swift:66:30: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
64 |     // We need a way to cancel these nested requests before starting new ones.
65 |     // TODO: Find a more elegant solution than these properties
66 |     var secondSearchRequest: URLSessionDataTask?
   |                              `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
67 |     var mostReadArticleDetailsRequest: URLSessionDataTask?
68 |
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Wikipedia.swift:67:40: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
65 |     // TODO: Find a more elegant solution than these properties
66 |     var secondSearchRequest: URLSessionDataTask?
67 |     var mostReadArticleDetailsRequest: URLSessionDataTask?
   |                                        `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
68 |
69 |     static func buildURLRequest(language: WikipediaLanguage, parameters: [String:String]) -> URLRequest? {
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Wikipedia.swift:73:23: error: cannot find 'URLRequest' in scope
71 |
72 |         guard let url = Wikipedia.buildURL(baseUrl, queryParameters: parameters) else { return nil }
73 |         let request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
74 |
75 |         return request
[13/30] Compiling WikipediaKit Wikipedia+Search.swift
/host/spi-builder-workspace/Sources/Wikipedia+RandomArticles.swift:42:8: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 40 |                                       loadExtracts: Bool = false,
 41 |                                       completion: @escaping (WikipediaArticlePreview?, WikipediaLanguage, WikipediaError?)-> ())
 42 |     -> URLSessionDataTask? {
    |        `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 43 |         if WikipediaRandomArticlesBuffer.shared.language == language,
 44 |            let nextArticlePreview = WikipediaRandomArticlesBuffer.shared.nextArticlePreview() {
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Wikipedia+RandomArticles.swift:72:8: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 70 |                                       loadExtracts: Bool = false,
 71 |                                       completion: @escaping ([WikipediaArticlePreview]?, WikipediaLanguage, WikipediaError?)-> ())
 72 |     -> URLSessionDataTask? {
    |        `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 73 |
 74 |         if imageWidth == 0 {
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Wikipedia+RandomArticles.swift:51:21: error: cannot find 'DispatchQueue' in scope
 49 |
 50 |                 guard let articlePreviews = articlePreviews else {
 51 |                     DispatchQueue.main.async {
    |                     `- error: cannot find 'DispatchQueue' in scope
 52 |                         completion(nil, language, error)
 53 |                     }
/host/spi-builder-workspace/Sources/Wikipedia+RandomArticles.swift:60:17: error: cannot find 'DispatchQueue' in scope
 58 |
 59 |                 let articlePreview = WikipediaRandomArticlesBuffer.shared.nextArticlePreview()
 60 |                 DispatchQueue.main.async {
    |                 `- error: cannot find 'DispatchQueue' in scope
 61 |                     completion(articlePreview, language, error)
 62 |                 }
/host/spi-builder-workspace/Sources/Wikipedia.swift:69:94: error: cannot find type 'URLRequest' in scope
67 |     var mostReadArticleDetailsRequest: URLSessionDataTask?
68 |
69 |     static func buildURLRequest(language: WikipediaLanguage, parameters: [String:String]) -> URLRequest? {
   |                                                                                              `- error: cannot find type 'URLRequest' in scope
70 |         guard let baseUrl = self.baseURL(language: language) else { return nil }
71 |
/host/spi-builder-workspace/Sources/Wikipedia+RandomArticles.swift:109:17: error: cannot find 'DispatchQueue' in scope
107 |         guard let request = Wikipedia.buildURLRequest(language: language, parameters: parameters)
108 |             else {
109 |                 DispatchQueue.main.async {
    |                 `- error: cannot find 'DispatchQueue' in scope
110 |                     completion(nil, language, .other(nil))
111 |                 }
/host/spi-builder-workspace/Sources/Wikipedia+RandomArticles.swift:119:17: error: cannot find 'DispatchQueue' in scope
117 |             guard error == nil else {
118 |                 // (also occurs when the request was cancelled programmatically)
119 |                 DispatchQueue.main.async {
    |                 `- error: cannot find 'DispatchQueue' in scope
120 |                     completion (nil, language, error)
121 |                 }
/host/spi-builder-workspace/Sources/Wikipedia+RandomArticles.swift:126:17: error: cannot find 'DispatchQueue' in scope
124 |
125 |             guard let jsonDictionary = jsonDictionary else {
126 |                 DispatchQueue.main.async {
    |                 `- error: cannot find 'DispatchQueue' in scope
127 |                     completion (nil, language, .decodingError)
128 |                 }
/host/spi-builder-workspace/Sources/Wikipedia+RandomArticles.swift:133:17: error: cannot find 'DispatchQueue' in scope
131 |
132 |             guard let query = jsonDictionary["query"] as? JSONDictionary else {
133 |                 DispatchQueue.main.async {
    |                 `- error: cannot find 'DispatchQueue' in scope
134 |                     // If nothing is found,
135 |                     // there is no “query” key,
/host/spi-builder-workspace/Sources/Wikipedia+RandomArticles.swift:144:17: error: cannot find 'DispatchQueue' in scope
142 |             if let error = query["error"] as? JSONDictionary,
143 |                 let info = error["info"] as? String {
144 |                 DispatchQueue.main.async {
    |                 `- error: cannot find 'DispatchQueue' in scope
145 |                     completion (nil, language, .apiError(info))
146 |                 }
/host/spi-builder-workspace/Sources/Wikipedia+RandomArticles.swift:151:17: error: cannot find 'DispatchQueue' in scope
149 |
150 |             guard let pages = query["pages"] as? [JSONDictionary] else {
151 |                 DispatchQueue.main.async {
    |                 `- error: cannot find 'DispatchQueue' in scope
152 |                     completion (nil, language, .notFound)
153 |                 }
/host/spi-builder-workspace/Sources/Wikipedia+RandomArticles.swift:165:13: error: cannot find 'DispatchQueue' in scope
163 |             }
164 |
165 |             DispatchQueue.main.async {
    |             `- error: cannot find 'DispatchQueue' in scope
166 |                 completion(results, language, error)
167 |             }
/host/spi-builder-workspace/Sources/WikipediaNetworking.swift:57:31: error: cannot find type 'URLRequest' in scope
 55 |     let session = URLSession(configuration: URLSessionConfiguration.default)
 56 |
 57 |     func loadJSON(urlRequest: URLRequest,
    |                               `- error: cannot find type 'URLRequest' in scope
 58 |                   completion: @escaping (JSONDictionary?, WikipediaError?) -> ())
 59 |         -> URLSessionDataTask {
/host/spi-builder-workspace/Sources/Wikipedia+Search.swift:44:12: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 42 |                                               maxCount: Int = 15,
 43 |                                               completion: @escaping (WikipediaSearchResults?, WikipediaError?) -> ())
 44 |         -> URLSessionDataTask? {
    |            `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 45 |
 46 |         let searchMethod = existingSearchResults?.searchMethod ?? .prefix
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Wikipedia+Search.swift:90:12: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 88 |                               maxCount: Int = 15,
 89 |                               completion: @escaping (WikipediaSearchResults?, WikipediaError?) -> ())
 90 |         -> URLSessionDataTask? {
    |            `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 91 |
 92 |         var searchResults: WikipediaSearchResults
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Wikipedia+Search.swift:49:35: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'cancel'
 47 |         let minCount: Int? = searchMethod == .prefix ? minCount : nil // ignore the minCount for fullText search
 48 |
 49 |         self.secondSearchRequest?.cancel()
    |                                   `- error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'cancel'
 50 |
 51 |         return self.requestSearchResults(method: searchMethod, language: language, term: term, existingSearchResults: existingSearchResults, imageWidth: imageWidth, minCount: minCount, maxCount: maxCount) { searchResults, error in
/host/spi-builder-workspace/Sources/Wikipedia+Search.swift:64:25: error: cannot find 'DispatchQueue' in scope
 62 |                 self.secondSearchRequest = self.requestSearchResults(method: .fullText, language: language, term: term, existingSearchResults: nil, imageWidth: imageWidth, maxCount: maxCount) { fullTextSearchResults, error in
 63 |                     if (fullTextSearchResults?.items.count ?? 0) >= (prefixSearchResults?.items.count ?? 0) {
 64 |                         DispatchQueue.main.async {
    |                         `- error: cannot find 'DispatchQueue' in scope
 65 |                             completion(fullTextSearchResults, error)
 66 |                         }
/host/spi-builder-workspace/Sources/Wikipedia+Search.swift:68:25: error: cannot find 'DispatchQueue' in scope
 66 |                         }
 67 |                     } else {
 68 |                         DispatchQueue.main.async {
    |                         `- error: cannot find 'DispatchQueue' in scope
 69 |                             completion(prefixSearchResults, nil)
 70 |                         }
/host/spi-builder-workspace/Sources/Wikipedia+Search.swift:75:17: error: cannot find 'DispatchQueue' in scope
 73 |                 }
 74 |             } else {
 75 |                 DispatchQueue.main.async {
    |                 `- error: cannot find 'DispatchQueue' in scope
 76 |                     completion(searchResults, error)
 77 |                 }
/host/spi-builder-workspace/Sources/Wikipedia+Search.swift:98:21: error: cannot find 'DispatchQueue' in scope
 96 |             guard sr.language == language,
 97 |                 sr.term == term else {
 98 |                     DispatchQueue.main.async {
    |                     `- error: cannot find 'DispatchQueue' in scope
 99 |                         completion(nil, .other(nil))
100 |                     }
/host/spi-builder-workspace/Sources/Wikipedia+Search.swift:113:17: error: cannot find 'DispatchQueue' in scope
111 |         if let cachedSearchResults = self.searchResultsCache.get(method: method, language: language, term: term) {
112 |             if cachedSearchResults.items.count > searchResults.items.count {
113 |                 DispatchQueue.main.async {
    |                 `- error: cannot find 'DispatchQueue' in scope
114 |                     completion(cachedSearchResults, nil)
115 |                 }
/host/spi-builder-workspace/Sources/Wikipedia+Search.swift:199:17: error: cannot find 'DispatchQueue' in scope
197 |         guard let request = Wikipedia.buildURLRequest(language: language, parameters: parameters)
198 |             else {
199 |                 DispatchQueue.main.async {
    |                 `- error: cannot find 'DispatchQueue' in scope
200 |                     completion(nil, .other(nil))
201 |                 }
/host/spi-builder-workspace/Sources/Wikipedia+Search.swift:209:17: error: cannot find 'DispatchQueue' in scope
207 |             guard error == nil else {
208 |                 // (also occurs when the request was cancelled programmatically)
209 |                 DispatchQueue.main.async {
    |                 `- error: cannot find 'DispatchQueue' in scope
210 |                     completion (searchResults, error)
211 |                 }
/host/spi-builder-workspace/Sources/Wikipedia+Search.swift:216:17: error: cannot find 'DispatchQueue' in scope
214 |
215 |             guard let jsonDictionary = jsonDictionary else {
216 |                 DispatchQueue.main.async {
    |                 `- error: cannot find 'DispatchQueue' in scope
217 |                     completion (searchResults, .decodingError)
218 |                 }
/host/spi-builder-workspace/Sources/Wikipedia+Search.swift:223:17: error: cannot find 'DispatchQueue' in scope
221 |
222 |             guard let query = jsonDictionary["query"] as? JSONDictionary else {
223 |                 DispatchQueue.main.async {
    |                 `- error: cannot find 'DispatchQueue' in scope
224 |                     completion (searchResults, .notFound)
225 |                 }
/host/spi-builder-workspace/Sources/Wikipedia+Search.swift:260:21: error: cannot find 'DispatchQueue' in scope
258 |                     pages.count < minCount {
259 |
260 |                     DispatchQueue.main.async {
    |                     `- error: cannot find 'DispatchQueue' in scope
261 |                         completion (searchResults, .notEnoughResults)
262 |                     }
/host/spi-builder-workspace/Sources/Wikipedia+Search.swift:268:17: error: cannot find 'DispatchQueue' in scope
266 |                 self.searchResultsCache.add(searchResults)
267 |
268 |                 DispatchQueue.main.async {
    |                 `- error: cannot find 'DispatchQueue' in scope
269 |                     completion(searchResults, error)
270 |                 }
/host/spi-builder-workspace/Sources/Wikipedia+Search.swift:276:21: error: cannot find 'DispatchQueue' in scope
274 |                 // No pages and offset of 0; this means that there are no results for this query.
275 |                 if searchResults.offset == 0 {
276 |                     DispatchQueue.main.async {
    |                     `- error: cannot find 'DispatchQueue' in scope
277 |                         completion (searchResults, .notFound)
278 |                     }
/host/spi-builder-workspace/Sources/Wikipedia+Search.swift:283:21: error: cannot find 'DispatchQueue' in scope
281 |                     // No pages found but there are already search results; this means that there are no more results.
282 |                     searchResults.canLoadMore = false
283 |                     DispatchQueue.main.async {
    |                     `- error: cannot find 'DispatchQueue' in scope
284 |                         completion (searchResults, error)
285 |                     }
/host/spi-builder-workspace/Sources/Wikipedia.swift:66:30: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
64 |     // We need a way to cancel these nested requests before starting new ones.
65 |     // TODO: Find a more elegant solution than these properties
66 |     var secondSearchRequest: URLSessionDataTask?
   |                              `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
67 |     var mostReadArticleDetailsRequest: URLSessionDataTask?
68 |
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Wikipedia.swift:67:40: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
65 |     // TODO: Find a more elegant solution than these properties
66 |     var secondSearchRequest: URLSessionDataTask?
67 |     var mostReadArticleDetailsRequest: URLSessionDataTask?
   |                                        `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
68 |
69 |     static func buildURLRequest(language: WikipediaLanguage, parameters: [String:String]) -> URLRequest? {
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Wikipedia.swift:73:23: error: cannot find 'URLRequest' in scope
71 |
72 |         guard let url = Wikipedia.buildURL(baseUrl, queryParameters: parameters) else { return nil }
73 |         let request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
74 |
75 |         return request
[14/30] Compiling WikipediaKit Wikipedia.swift
/host/spi-builder-workspace/Sources/Wikipedia+RandomArticles.swift:42:8: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 40 |                                       loadExtracts: Bool = false,
 41 |                                       completion: @escaping (WikipediaArticlePreview?, WikipediaLanguage, WikipediaError?)-> ())
 42 |     -> URLSessionDataTask? {
    |        `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 43 |         if WikipediaRandomArticlesBuffer.shared.language == language,
 44 |            let nextArticlePreview = WikipediaRandomArticlesBuffer.shared.nextArticlePreview() {
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Wikipedia+RandomArticles.swift:72:8: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 70 |                                       loadExtracts: Bool = false,
 71 |                                       completion: @escaping ([WikipediaArticlePreview]?, WikipediaLanguage, WikipediaError?)-> ())
 72 |     -> URLSessionDataTask? {
    |        `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 73 |
 74 |         if imageWidth == 0 {
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Wikipedia+RandomArticles.swift:51:21: error: cannot find 'DispatchQueue' in scope
 49 |
 50 |                 guard let articlePreviews = articlePreviews else {
 51 |                     DispatchQueue.main.async {
    |                     `- error: cannot find 'DispatchQueue' in scope
 52 |                         completion(nil, language, error)
 53 |                     }
/host/spi-builder-workspace/Sources/Wikipedia+RandomArticles.swift:60:17: error: cannot find 'DispatchQueue' in scope
 58 |
 59 |                 let articlePreview = WikipediaRandomArticlesBuffer.shared.nextArticlePreview()
 60 |                 DispatchQueue.main.async {
    |                 `- error: cannot find 'DispatchQueue' in scope
 61 |                     completion(articlePreview, language, error)
 62 |                 }
/host/spi-builder-workspace/Sources/Wikipedia.swift:69:94: error: cannot find type 'URLRequest' in scope
67 |     var mostReadArticleDetailsRequest: URLSessionDataTask?
68 |
69 |     static func buildURLRequest(language: WikipediaLanguage, parameters: [String:String]) -> URLRequest? {
   |                                                                                              `- error: cannot find type 'URLRequest' in scope
70 |         guard let baseUrl = self.baseURL(language: language) else { return nil }
71 |
/host/spi-builder-workspace/Sources/Wikipedia+RandomArticles.swift:109:17: error: cannot find 'DispatchQueue' in scope
107 |         guard let request = Wikipedia.buildURLRequest(language: language, parameters: parameters)
108 |             else {
109 |                 DispatchQueue.main.async {
    |                 `- error: cannot find 'DispatchQueue' in scope
110 |                     completion(nil, language, .other(nil))
111 |                 }
/host/spi-builder-workspace/Sources/Wikipedia+RandomArticles.swift:119:17: error: cannot find 'DispatchQueue' in scope
117 |             guard error == nil else {
118 |                 // (also occurs when the request was cancelled programmatically)
119 |                 DispatchQueue.main.async {
    |                 `- error: cannot find 'DispatchQueue' in scope
120 |                     completion (nil, language, error)
121 |                 }
/host/spi-builder-workspace/Sources/Wikipedia+RandomArticles.swift:126:17: error: cannot find 'DispatchQueue' in scope
124 |
125 |             guard let jsonDictionary = jsonDictionary else {
126 |                 DispatchQueue.main.async {
    |                 `- error: cannot find 'DispatchQueue' in scope
127 |                     completion (nil, language, .decodingError)
128 |                 }
/host/spi-builder-workspace/Sources/Wikipedia+RandomArticles.swift:133:17: error: cannot find 'DispatchQueue' in scope
131 |
132 |             guard let query = jsonDictionary["query"] as? JSONDictionary else {
133 |                 DispatchQueue.main.async {
    |                 `- error: cannot find 'DispatchQueue' in scope
134 |                     // If nothing is found,
135 |                     // there is no “query” key,
/host/spi-builder-workspace/Sources/Wikipedia+RandomArticles.swift:144:17: error: cannot find 'DispatchQueue' in scope
142 |             if let error = query["error"] as? JSONDictionary,
143 |                 let info = error["info"] as? String {
144 |                 DispatchQueue.main.async {
    |                 `- error: cannot find 'DispatchQueue' in scope
145 |                     completion (nil, language, .apiError(info))
146 |                 }
/host/spi-builder-workspace/Sources/Wikipedia+RandomArticles.swift:151:17: error: cannot find 'DispatchQueue' in scope
149 |
150 |             guard let pages = query["pages"] as? [JSONDictionary] else {
151 |                 DispatchQueue.main.async {
    |                 `- error: cannot find 'DispatchQueue' in scope
152 |                     completion (nil, language, .notFound)
153 |                 }
/host/spi-builder-workspace/Sources/Wikipedia+RandomArticles.swift:165:13: error: cannot find 'DispatchQueue' in scope
163 |             }
164 |
165 |             DispatchQueue.main.async {
    |             `- error: cannot find 'DispatchQueue' in scope
166 |                 completion(results, language, error)
167 |             }
/host/spi-builder-workspace/Sources/WikipediaNetworking.swift:57:31: error: cannot find type 'URLRequest' in scope
 55 |     let session = URLSession(configuration: URLSessionConfiguration.default)
 56 |
 57 |     func loadJSON(urlRequest: URLRequest,
    |                               `- error: cannot find type 'URLRequest' in scope
 58 |                   completion: @escaping (JSONDictionary?, WikipediaError?) -> ())
 59 |         -> URLSessionDataTask {
/host/spi-builder-workspace/Sources/Wikipedia+Search.swift:44:12: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 42 |                                               maxCount: Int = 15,
 43 |                                               completion: @escaping (WikipediaSearchResults?, WikipediaError?) -> ())
 44 |         -> URLSessionDataTask? {
    |            `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 45 |
 46 |         let searchMethod = existingSearchResults?.searchMethod ?? .prefix
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Wikipedia+Search.swift:90:12: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 88 |                               maxCount: Int = 15,
 89 |                               completion: @escaping (WikipediaSearchResults?, WikipediaError?) -> ())
 90 |         -> URLSessionDataTask? {
    |            `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 91 |
 92 |         var searchResults: WikipediaSearchResults
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Wikipedia+Search.swift:49:35: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'cancel'
 47 |         let minCount: Int? = searchMethod == .prefix ? minCount : nil // ignore the minCount for fullText search
 48 |
 49 |         self.secondSearchRequest?.cancel()
    |                                   `- error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'cancel'
 50 |
 51 |         return self.requestSearchResults(method: searchMethod, language: language, term: term, existingSearchResults: existingSearchResults, imageWidth: imageWidth, minCount: minCount, maxCount: maxCount) { searchResults, error in
/host/spi-builder-workspace/Sources/Wikipedia+Search.swift:64:25: error: cannot find 'DispatchQueue' in scope
 62 |                 self.secondSearchRequest = self.requestSearchResults(method: .fullText, language: language, term: term, existingSearchResults: nil, imageWidth: imageWidth, maxCount: maxCount) { fullTextSearchResults, error in
 63 |                     if (fullTextSearchResults?.items.count ?? 0) >= (prefixSearchResults?.items.count ?? 0) {
 64 |                         DispatchQueue.main.async {
    |                         `- error: cannot find 'DispatchQueue' in scope
 65 |                             completion(fullTextSearchResults, error)
 66 |                         }
/host/spi-builder-workspace/Sources/Wikipedia+Search.swift:68:25: error: cannot find 'DispatchQueue' in scope
 66 |                         }
 67 |                     } else {
 68 |                         DispatchQueue.main.async {
    |                         `- error: cannot find 'DispatchQueue' in scope
 69 |                             completion(prefixSearchResults, nil)
 70 |                         }
/host/spi-builder-workspace/Sources/Wikipedia+Search.swift:75:17: error: cannot find 'DispatchQueue' in scope
 73 |                 }
 74 |             } else {
 75 |                 DispatchQueue.main.async {
    |                 `- error: cannot find 'DispatchQueue' in scope
 76 |                     completion(searchResults, error)
 77 |                 }
/host/spi-builder-workspace/Sources/Wikipedia+Search.swift:98:21: error: cannot find 'DispatchQueue' in scope
 96 |             guard sr.language == language,
 97 |                 sr.term == term else {
 98 |                     DispatchQueue.main.async {
    |                     `- error: cannot find 'DispatchQueue' in scope
 99 |                         completion(nil, .other(nil))
100 |                     }
/host/spi-builder-workspace/Sources/Wikipedia+Search.swift:113:17: error: cannot find 'DispatchQueue' in scope
111 |         if let cachedSearchResults = self.searchResultsCache.get(method: method, language: language, term: term) {
112 |             if cachedSearchResults.items.count > searchResults.items.count {
113 |                 DispatchQueue.main.async {
    |                 `- error: cannot find 'DispatchQueue' in scope
114 |                     completion(cachedSearchResults, nil)
115 |                 }
/host/spi-builder-workspace/Sources/Wikipedia+Search.swift:199:17: error: cannot find 'DispatchQueue' in scope
197 |         guard let request = Wikipedia.buildURLRequest(language: language, parameters: parameters)
198 |             else {
199 |                 DispatchQueue.main.async {
    |                 `- error: cannot find 'DispatchQueue' in scope
200 |                     completion(nil, .other(nil))
201 |                 }
/host/spi-builder-workspace/Sources/Wikipedia+Search.swift:209:17: error: cannot find 'DispatchQueue' in scope
207 |             guard error == nil else {
208 |                 // (also occurs when the request was cancelled programmatically)
209 |                 DispatchQueue.main.async {
    |                 `- error: cannot find 'DispatchQueue' in scope
210 |                     completion (searchResults, error)
211 |                 }
/host/spi-builder-workspace/Sources/Wikipedia+Search.swift:216:17: error: cannot find 'DispatchQueue' in scope
214 |
215 |             guard let jsonDictionary = jsonDictionary else {
216 |                 DispatchQueue.main.async {
    |                 `- error: cannot find 'DispatchQueue' in scope
217 |                     completion (searchResults, .decodingError)
218 |                 }
/host/spi-builder-workspace/Sources/Wikipedia+Search.swift:223:17: error: cannot find 'DispatchQueue' in scope
221 |
222 |             guard let query = jsonDictionary["query"] as? JSONDictionary else {
223 |                 DispatchQueue.main.async {
    |                 `- error: cannot find 'DispatchQueue' in scope
224 |                     completion (searchResults, .notFound)
225 |                 }
/host/spi-builder-workspace/Sources/Wikipedia+Search.swift:260:21: error: cannot find 'DispatchQueue' in scope
258 |                     pages.count < minCount {
259 |
260 |                     DispatchQueue.main.async {
    |                     `- error: cannot find 'DispatchQueue' in scope
261 |                         completion (searchResults, .notEnoughResults)
262 |                     }
/host/spi-builder-workspace/Sources/Wikipedia+Search.swift:268:17: error: cannot find 'DispatchQueue' in scope
266 |                 self.searchResultsCache.add(searchResults)
267 |
268 |                 DispatchQueue.main.async {
    |                 `- error: cannot find 'DispatchQueue' in scope
269 |                     completion(searchResults, error)
270 |                 }
/host/spi-builder-workspace/Sources/Wikipedia+Search.swift:276:21: error: cannot find 'DispatchQueue' in scope
274 |                 // No pages and offset of 0; this means that there are no results for this query.
275 |                 if searchResults.offset == 0 {
276 |                     DispatchQueue.main.async {
    |                     `- error: cannot find 'DispatchQueue' in scope
277 |                         completion (searchResults, .notFound)
278 |                     }
/host/spi-builder-workspace/Sources/Wikipedia+Search.swift:283:21: error: cannot find 'DispatchQueue' in scope
281 |                     // No pages found but there are already search results; this means that there are no more results.
282 |                     searchResults.canLoadMore = false
283 |                     DispatchQueue.main.async {
    |                     `- error: cannot find 'DispatchQueue' in scope
284 |                         completion (searchResults, error)
285 |                     }
/host/spi-builder-workspace/Sources/Wikipedia.swift:66:30: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
64 |     // We need a way to cancel these nested requests before starting new ones.
65 |     // TODO: Find a more elegant solution than these properties
66 |     var secondSearchRequest: URLSessionDataTask?
   |                              `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
67 |     var mostReadArticleDetailsRequest: URLSessionDataTask?
68 |
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Wikipedia.swift:67:40: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
65 |     // TODO: Find a more elegant solution than these properties
66 |     var secondSearchRequest: URLSessionDataTask?
67 |     var mostReadArticleDetailsRequest: URLSessionDataTask?
   |                                        `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
68 |
69 |     static func buildURLRequest(language: WikipediaLanguage, parameters: [String:String]) -> URLRequest? {
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Wikipedia.swift:73:23: error: cannot find 'URLRequest' in scope
71 |
72 |         guard let url = Wikipedia.buildURL(baseUrl, queryParameters: parameters) else { return nil }
73 |         let request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
74 |
75 |         return request
[15/30] Compiling WikipediaKit WikipediaArticle.swift
/host/spi-builder-workspace/Sources/Wikipedia+RandomArticles.swift:42:8: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 40 |                                       loadExtracts: Bool = false,
 41 |                                       completion: @escaping (WikipediaArticlePreview?, WikipediaLanguage, WikipediaError?)-> ())
 42 |     -> URLSessionDataTask? {
    |        `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 43 |         if WikipediaRandomArticlesBuffer.shared.language == language,
 44 |            let nextArticlePreview = WikipediaRandomArticlesBuffer.shared.nextArticlePreview() {
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Wikipedia+RandomArticles.swift:72:8: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 70 |                                       loadExtracts: Bool = false,
 71 |                                       completion: @escaping ([WikipediaArticlePreview]?, WikipediaLanguage, WikipediaError?)-> ())
 72 |     -> URLSessionDataTask? {
    |        `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 73 |
 74 |         if imageWidth == 0 {
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Wikipedia+RandomArticles.swift:51:21: error: cannot find 'DispatchQueue' in scope
 49 |
 50 |                 guard let articlePreviews = articlePreviews else {
 51 |                     DispatchQueue.main.async {
    |                     `- error: cannot find 'DispatchQueue' in scope
 52 |                         completion(nil, language, error)
 53 |                     }
/host/spi-builder-workspace/Sources/Wikipedia+RandomArticles.swift:60:17: error: cannot find 'DispatchQueue' in scope
 58 |
 59 |                 let articlePreview = WikipediaRandomArticlesBuffer.shared.nextArticlePreview()
 60 |                 DispatchQueue.main.async {
    |                 `- error: cannot find 'DispatchQueue' in scope
 61 |                     completion(articlePreview, language, error)
 62 |                 }
/host/spi-builder-workspace/Sources/Wikipedia.swift:69:94: error: cannot find type 'URLRequest' in scope
67 |     var mostReadArticleDetailsRequest: URLSessionDataTask?
68 |
69 |     static func buildURLRequest(language: WikipediaLanguage, parameters: [String:String]) -> URLRequest? {
   |                                                                                              `- error: cannot find type 'URLRequest' in scope
70 |         guard let baseUrl = self.baseURL(language: language) else { return nil }
71 |
/host/spi-builder-workspace/Sources/Wikipedia+RandomArticles.swift:109:17: error: cannot find 'DispatchQueue' in scope
107 |         guard let request = Wikipedia.buildURLRequest(language: language, parameters: parameters)
108 |             else {
109 |                 DispatchQueue.main.async {
    |                 `- error: cannot find 'DispatchQueue' in scope
110 |                     completion(nil, language, .other(nil))
111 |                 }
/host/spi-builder-workspace/Sources/Wikipedia+RandomArticles.swift:119:17: error: cannot find 'DispatchQueue' in scope
117 |             guard error == nil else {
118 |                 // (also occurs when the request was cancelled programmatically)
119 |                 DispatchQueue.main.async {
    |                 `- error: cannot find 'DispatchQueue' in scope
120 |                     completion (nil, language, error)
121 |                 }
/host/spi-builder-workspace/Sources/Wikipedia+RandomArticles.swift:126:17: error: cannot find 'DispatchQueue' in scope
124 |
125 |             guard let jsonDictionary = jsonDictionary else {
126 |                 DispatchQueue.main.async {
    |                 `- error: cannot find 'DispatchQueue' in scope
127 |                     completion (nil, language, .decodingError)
128 |                 }
/host/spi-builder-workspace/Sources/Wikipedia+RandomArticles.swift:133:17: error: cannot find 'DispatchQueue' in scope
131 |
132 |             guard let query = jsonDictionary["query"] as? JSONDictionary else {
133 |                 DispatchQueue.main.async {
    |                 `- error: cannot find 'DispatchQueue' in scope
134 |                     // If nothing is found,
135 |                     // there is no “query” key,
/host/spi-builder-workspace/Sources/Wikipedia+RandomArticles.swift:144:17: error: cannot find 'DispatchQueue' in scope
142 |             if let error = query["error"] as? JSONDictionary,
143 |                 let info = error["info"] as? String {
144 |                 DispatchQueue.main.async {
    |                 `- error: cannot find 'DispatchQueue' in scope
145 |                     completion (nil, language, .apiError(info))
146 |                 }
/host/spi-builder-workspace/Sources/Wikipedia+RandomArticles.swift:151:17: error: cannot find 'DispatchQueue' in scope
149 |
150 |             guard let pages = query["pages"] as? [JSONDictionary] else {
151 |                 DispatchQueue.main.async {
    |                 `- error: cannot find 'DispatchQueue' in scope
152 |                     completion (nil, language, .notFound)
153 |                 }
/host/spi-builder-workspace/Sources/Wikipedia+RandomArticles.swift:165:13: error: cannot find 'DispatchQueue' in scope
163 |             }
164 |
165 |             DispatchQueue.main.async {
    |             `- error: cannot find 'DispatchQueue' in scope
166 |                 completion(results, language, error)
167 |             }
/host/spi-builder-workspace/Sources/WikipediaNetworking.swift:57:31: error: cannot find type 'URLRequest' in scope
 55 |     let session = URLSession(configuration: URLSessionConfiguration.default)
 56 |
 57 |     func loadJSON(urlRequest: URLRequest,
    |                               `- error: cannot find type 'URLRequest' in scope
 58 |                   completion: @escaping (JSONDictionary?, WikipediaError?) -> ())
 59 |         -> URLSessionDataTask {
/host/spi-builder-workspace/Sources/Wikipedia+Search.swift:44:12: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 42 |                                               maxCount: Int = 15,
 43 |                                               completion: @escaping (WikipediaSearchResults?, WikipediaError?) -> ())
 44 |         -> URLSessionDataTask? {
    |            `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 45 |
 46 |         let searchMethod = existingSearchResults?.searchMethod ?? .prefix
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Wikipedia+Search.swift:90:12: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 88 |                               maxCount: Int = 15,
 89 |                               completion: @escaping (WikipediaSearchResults?, WikipediaError?) -> ())
 90 |         -> URLSessionDataTask? {
    |            `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 91 |
 92 |         var searchResults: WikipediaSearchResults
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Wikipedia+Search.swift:49:35: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'cancel'
 47 |         let minCount: Int? = searchMethod == .prefix ? minCount : nil // ignore the minCount for fullText search
 48 |
 49 |         self.secondSearchRequest?.cancel()
    |                                   `- error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'cancel'
 50 |
 51 |         return self.requestSearchResults(method: searchMethod, language: language, term: term, existingSearchResults: existingSearchResults, imageWidth: imageWidth, minCount: minCount, maxCount: maxCount) { searchResults, error in
/host/spi-builder-workspace/Sources/Wikipedia+Search.swift:64:25: error: cannot find 'DispatchQueue' in scope
 62 |                 self.secondSearchRequest = self.requestSearchResults(method: .fullText, language: language, term: term, existingSearchResults: nil, imageWidth: imageWidth, maxCount: maxCount) { fullTextSearchResults, error in
 63 |                     if (fullTextSearchResults?.items.count ?? 0) >= (prefixSearchResults?.items.count ?? 0) {
 64 |                         DispatchQueue.main.async {
    |                         `- error: cannot find 'DispatchQueue' in scope
 65 |                             completion(fullTextSearchResults, error)
 66 |                         }
/host/spi-builder-workspace/Sources/Wikipedia+Search.swift:68:25: error: cannot find 'DispatchQueue' in scope
 66 |                         }
 67 |                     } else {
 68 |                         DispatchQueue.main.async {
    |                         `- error: cannot find 'DispatchQueue' in scope
 69 |                             completion(prefixSearchResults, nil)
 70 |                         }
/host/spi-builder-workspace/Sources/Wikipedia+Search.swift:75:17: error: cannot find 'DispatchQueue' in scope
 73 |                 }
 74 |             } else {
 75 |                 DispatchQueue.main.async {
    |                 `- error: cannot find 'DispatchQueue' in scope
 76 |                     completion(searchResults, error)
 77 |                 }
/host/spi-builder-workspace/Sources/Wikipedia+Search.swift:98:21: error: cannot find 'DispatchQueue' in scope
 96 |             guard sr.language == language,
 97 |                 sr.term == term else {
 98 |                     DispatchQueue.main.async {
    |                     `- error: cannot find 'DispatchQueue' in scope
 99 |                         completion(nil, .other(nil))
100 |                     }
/host/spi-builder-workspace/Sources/Wikipedia+Search.swift:113:17: error: cannot find 'DispatchQueue' in scope
111 |         if let cachedSearchResults = self.searchResultsCache.get(method: method, language: language, term: term) {
112 |             if cachedSearchResults.items.count > searchResults.items.count {
113 |                 DispatchQueue.main.async {
    |                 `- error: cannot find 'DispatchQueue' in scope
114 |                     completion(cachedSearchResults, nil)
115 |                 }
/host/spi-builder-workspace/Sources/Wikipedia+Search.swift:199:17: error: cannot find 'DispatchQueue' in scope
197 |         guard let request = Wikipedia.buildURLRequest(language: language, parameters: parameters)
198 |             else {
199 |                 DispatchQueue.main.async {
    |                 `- error: cannot find 'DispatchQueue' in scope
200 |                     completion(nil, .other(nil))
201 |                 }
/host/spi-builder-workspace/Sources/Wikipedia+Search.swift:209:17: error: cannot find 'DispatchQueue' in scope
207 |             guard error == nil else {
208 |                 // (also occurs when the request was cancelled programmatically)
209 |                 DispatchQueue.main.async {
    |                 `- error: cannot find 'DispatchQueue' in scope
210 |                     completion (searchResults, error)
211 |                 }
/host/spi-builder-workspace/Sources/Wikipedia+Search.swift:216:17: error: cannot find 'DispatchQueue' in scope
214 |
215 |             guard let jsonDictionary = jsonDictionary else {
216 |                 DispatchQueue.main.async {
    |                 `- error: cannot find 'DispatchQueue' in scope
217 |                     completion (searchResults, .decodingError)
218 |                 }
/host/spi-builder-workspace/Sources/Wikipedia+Search.swift:223:17: error: cannot find 'DispatchQueue' in scope
221 |
222 |             guard let query = jsonDictionary["query"] as? JSONDictionary else {
223 |                 DispatchQueue.main.async {
    |                 `- error: cannot find 'DispatchQueue' in scope
224 |                     completion (searchResults, .notFound)
225 |                 }
/host/spi-builder-workspace/Sources/Wikipedia+Search.swift:260:21: error: cannot find 'DispatchQueue' in scope
258 |                     pages.count < minCount {
259 |
260 |                     DispatchQueue.main.async {
    |                     `- error: cannot find 'DispatchQueue' in scope
261 |                         completion (searchResults, .notEnoughResults)
262 |                     }
/host/spi-builder-workspace/Sources/Wikipedia+Search.swift:268:17: error: cannot find 'DispatchQueue' in scope
266 |                 self.searchResultsCache.add(searchResults)
267 |
268 |                 DispatchQueue.main.async {
    |                 `- error: cannot find 'DispatchQueue' in scope
269 |                     completion(searchResults, error)
270 |                 }
/host/spi-builder-workspace/Sources/Wikipedia+Search.swift:276:21: error: cannot find 'DispatchQueue' in scope
274 |                 // No pages and offset of 0; this means that there are no results for this query.
275 |                 if searchResults.offset == 0 {
276 |                     DispatchQueue.main.async {
    |                     `- error: cannot find 'DispatchQueue' in scope
277 |                         completion (searchResults, .notFound)
278 |                     }
/host/spi-builder-workspace/Sources/Wikipedia+Search.swift:283:21: error: cannot find 'DispatchQueue' in scope
281 |                     // No pages found but there are already search results; this means that there are no more results.
282 |                     searchResults.canLoadMore = false
283 |                     DispatchQueue.main.async {
    |                     `- error: cannot find 'DispatchQueue' in scope
284 |                         completion (searchResults, error)
285 |                     }
/host/spi-builder-workspace/Sources/Wikipedia.swift:66:30: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
64 |     // We need a way to cancel these nested requests before starting new ones.
65 |     // TODO: Find a more elegant solution than these properties
66 |     var secondSearchRequest: URLSessionDataTask?
   |                              `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
67 |     var mostReadArticleDetailsRequest: URLSessionDataTask?
68 |
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Wikipedia.swift:67:40: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
65 |     // TODO: Find a more elegant solution than these properties
66 |     var secondSearchRequest: URLSessionDataTask?
67 |     var mostReadArticleDetailsRequest: URLSessionDataTask?
   |                                        `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
68 |
69 |     static func buildURLRequest(language: WikipediaLanguage, parameters: [String:String]) -> URLRequest? {
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Wikipedia.swift:73:23: error: cannot find 'URLRequest' in scope
71 |
72 |         guard let url = Wikipedia.buildURL(baseUrl, queryParameters: parameters) else { return nil }
73 |         let request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
74 |
75 |         return request
error: emit-module command failed with exit code 1 (use -v to see invocation)
[16/30] Emitting module WikipediaKit
/host/spi-builder-workspace/Sources/Wikipedia+Article.swift:42:12: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 |                                imageWidth: Int,
41 |                                completion: @escaping (Result<WikipediaArticle, WikipediaError>)->())
42 |         -> URLSessionDataTask? {
   |            `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 |
44 |
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Wikipedia+ArticleSummary.swift:40:12: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
38 |                                title: String,
39 |                                completion: @escaping (WikipediaArticlePreview?, WikipediaError?)->())
40 |         -> URLSessionDataTask? {
   |            `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 |
42 |             let title = title.wikipediaURLEncodedString(encodeSlashes: true)
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Wikipedia+Featured.swift:40:12: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
38 |                                         date: Date,
39 |                                         completion: @escaping (Result<WikipediaFeatured, WikipediaError>) -> ())
40 |         -> URLSessionDataTask? {
   |            `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 |
42 |         let dateFormatter = DateFormatter()
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Wikipedia+ImageMeta.swift:41:12: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 39 |                                           width: Int? = nil,
 40 |                                           completion: @escaping ([WikipediaImage]?, WikipediaError?) -> ())
 41 |         -> URLSessionDataTask? {
    |            `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 42 |
 43 |         guard let firstURL = urls.first,
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Wikipedia+ImageMeta.swift:70:12: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 68 |                                           width: Int? = nil,
 69 |                                           completion: @escaping ([WikipediaImage]?, WikipediaError?) -> ())
 70 |         -> URLSessionDataTask? {
    |            `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 71 |
 72 |         let idsParameter = ids.joined(separator: "|")
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Wikipedia+Languages.swift:39:12: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 37 |     public func requestAvailableLanguages(for article: WikipediaArticle,
 38 |                                           completion: @escaping (WikipediaArticle, WikipediaError?)->())
 39 |         -> URLSessionDataTask? {
    |            `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 40 |
 41 |         guard article.languageLinks == nil, // has not been populated previously
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:46:12: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 44 |                                      loadExtracts: Bool = false,
 45 |                                      completion: @escaping ([WikipediaArticlePreview]?, WikipediaLanguage, WikipediaError?) -> ())
 46 |         -> URLSessionDataTask? {
    |            `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 47 |
 48 |             if imageWidth == 0 {
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Wikipedia+RandomArticles.swift:42:8: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 40 |                                       loadExtracts: Bool = false,
 41 |                                       completion: @escaping (WikipediaArticlePreview?, WikipediaLanguage, WikipediaError?)-> ())
 42 |     -> URLSessionDataTask? {
    |        `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 43 |         if WikipediaRandomArticlesBuffer.shared.language == language,
 44 |            let nextArticlePreview = WikipediaRandomArticlesBuffer.shared.nextArticlePreview() {
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Wikipedia+RandomArticles.swift:72:8: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 70 |                                       loadExtracts: Bool = false,
 71 |                                       completion: @escaping ([WikipediaArticlePreview]?, WikipediaLanguage, WikipediaError?)-> ())
 72 |     -> URLSessionDataTask? {
    |        `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 73 |
 74 |         if imageWidth == 0 {
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Wikipedia+Search.swift:44:12: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 42 |                                               maxCount: Int = 15,
 43 |                                               completion: @escaping (WikipediaSearchResults?, WikipediaError?) -> ())
 44 |         -> URLSessionDataTask? {
    |            `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 45 |
 46 |         let searchMethod = existingSearchResults?.searchMethod ?? .prefix
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Wikipedia+Search.swift:90:12: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 88 |                               maxCount: Int = 15,
 89 |                               completion: @escaping (WikipediaSearchResults?, WikipediaError?) -> ())
 90 |         -> URLSessionDataTask? {
    |            `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 91 |
 92 |         var searchResults: WikipediaSearchResults
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Wikipedia.swift:66:30: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
64 |     // We need a way to cancel these nested requests before starting new ones.
65 |     // TODO: Find a more elegant solution than these properties
66 |     var secondSearchRequest: URLSessionDataTask?
   |                              `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
67 |     var mostReadArticleDetailsRequest: URLSessionDataTask?
68 |
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Wikipedia.swift:67:40: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
65 |     // TODO: Find a more elegant solution than these properties
66 |     var secondSearchRequest: URLSessionDataTask?
67 |     var mostReadArticleDetailsRequest: URLSessionDataTask?
   |                                        `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
68 |
69 |     static func buildURLRequest(language: WikipediaLanguage, parameters: [String:String]) -> URLRequest? {
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Wikipedia.swift:69:94: error: cannot find type 'URLRequest' in scope
67 |     var mostReadArticleDetailsRequest: URLSessionDataTask?
68 |
69 |     static func buildURLRequest(language: WikipediaLanguage, parameters: [String:String]) -> URLRequest? {
   |                                                                                              `- error: cannot find type 'URLRequest' in scope
70 |         guard let baseUrl = self.baseURL(language: language) else { return nil }
71 |
/host/spi-builder-workspace/Sources/WikipediaLanguage.swift:98:41: warning: 'components(fromIdentifier:)' is deprecated: Use `Locale.Components(identifier:)` to access components
 96 |     public static var systemLanguageCode: String = {
 97 |         guard let preferredLanguage = Locale.preferredLanguages.first else { return "en" }
 98 |         let languageComponents = Locale.components(fromIdentifier: preferredLanguage)
    |                                         `- warning: 'components(fromIdentifier:)' is deprecated: Use `Locale.Components(identifier:)` to access components
 99 |         let languageCode = languageComponents[NSLocale.Key.languageCode.rawValue]
100 |         return languageCode ?? "en"
/host/spi-builder-workspace/Sources/WikipediaLanguage.swift:129:45: warning: 'components(fromIdentifier:)' is deprecated: Use `Locale.Components(identifier:)` to access components
127 |             guard language.hasPrefix("zh") else { continue }
128 |
129 |             let languageComponents = Locale.components(fromIdentifier: language)
    |                                             `- warning: 'components(fromIdentifier:)' is deprecated: Use `Locale.Components(identifier:)` to access components
130 |             let languageCode = languageComponents[NSLocale.Key.languageCode.rawValue]
131 |             guard let variant = languageComponents[NSLocale.Key.scriptCode.rawValue]?.lowercased(),
/host/spi-builder-workspace/Sources/WikipediaNetworking.swift:55:19: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 53 |     public static weak var sharedActivityIndicatorDelegate: WikipediaNetworkingActivityDelegate?
 54 |
 55 |     let session = URLSession(configuration: URLSessionConfiguration.default)
    |                   `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 56 |
 57 |     func loadJSON(urlRequest: URLRequest,
/host/spi-builder-workspace/Sources/WikipediaNetworking.swift:55:69: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 53 |     public static weak var sharedActivityIndicatorDelegate: WikipediaNetworkingActivityDelegate?
 54 |
 55 |     let session = URLSession(configuration: URLSessionConfiguration.default)
    |                                                                     `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 56 |
 57 |     func loadJSON(urlRequest: URLRequest,
/host/spi-builder-workspace/Sources/WikipediaNetworking.swift:57:31: error: cannot find type 'URLRequest' in scope
 55 |     let session = URLSession(configuration: URLSessionConfiguration.default)
 56 |
 57 |     func loadJSON(urlRequest: URLRequest,
    |                               `- error: cannot find type 'URLRequest' in scope
 58 |                   completion: @escaping (JSONDictionary?, WikipediaError?) -> ())
 59 |         -> URLSessionDataTask {
/host/spi-builder-workspace/Sources/WikipediaNetworking.swift:59:12: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 57 |     func loadJSON(urlRequest: URLRequest,
 58 |                   completion: @escaping (JSONDictionary?, WikipediaError?) -> ())
 59 |         -> URLSessionDataTask {
    |            `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 60 |
 61 |         let startTime: Date
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/WikipediaNetworking.swift:156:53: error: cannot find 'kCFBundleExecutableKey' in scope
154 |         #if !os(Linux)
155 |             if let infoDictionary = Bundle.main.infoDictionary {
156 |                     let bundleName = infoDictionary[kCFBundleExecutableKey as String] as? String ?? "Unknown App"
    |                                                     `- error: cannot find 'kCFBundleExecutableKey' in scope
157 |                     let bundleID = infoDictionary[kCFBundleIdentifierKey as String] as? String ?? "Unkown Bundle ID"
158 |                     let marketingVersionString = infoDictionary["CFBundleShortVersionString"] as? String ?? "Unknown Version"
/host/spi-builder-workspace/Sources/WikipediaNetworking.swift:157:51: error: cannot find 'kCFBundleIdentifierKey' in scope
155 |             if let infoDictionary = Bundle.main.infoDictionary {
156 |                     let bundleName = infoDictionary[kCFBundleExecutableKey as String] as? String ?? "Unknown App"
157 |                     let bundleID = infoDictionary[kCFBundleIdentifierKey as String] as? String ?? "Unkown Bundle ID"
    |                                                   `- error: cannot find 'kCFBundleIdentifierKey' in scope
158 |                     let marketingVersionString = infoDictionary["CFBundleShortVersionString"] as? String ?? "Unknown Version"
159 |                     userAgent = "\(bundleName)/\(marketingVersionString) (\(bundleID); \(WikipediaNetworking.appAuthorEmailForAPI)) \(framework)"
[17/30] Compiling WikipediaKit WikipediaSearchResultsCache.swift
[18/30] Compiling WikipediaKit WikipediaTOCItem.swift
[19/30] Compiling WikipediaKit WikipediaTextFormattingDelegate.swift
[20/30] Compiling WikipediaKit WikipediaArticleCache.swift
[21/30] Compiling WikipediaKit WikipediaArticleLanguageLink.swift
[22/30] Compiling WikipediaKit WikipediaArticlePreview.swift
[23/30] Compiling WikipediaKit WikipediaError.swift
[24/30] Compiling WikipediaKit WikipediaFeatured.swift
/host/spi-builder-workspace/Sources/WikipediaLanguage.swift:98:41: warning: 'components(fromIdentifier:)' is deprecated: Use `Locale.Components(identifier:)` to access components
 96 |     public static var systemLanguageCode: String = {
 97 |         guard let preferredLanguage = Locale.preferredLanguages.first else { return "en" }
 98 |         let languageComponents = Locale.components(fromIdentifier: preferredLanguage)
    |                                         `- warning: 'components(fromIdentifier:)' is deprecated: Use `Locale.Components(identifier:)` to access components
 99 |         let languageCode = languageComponents[NSLocale.Key.languageCode.rawValue]
100 |         return languageCode ?? "en"
/host/spi-builder-workspace/Sources/WikipediaLanguage.swift:129:45: warning: 'components(fromIdentifier:)' is deprecated: Use `Locale.Components(identifier:)` to access components
127 |             guard language.hasPrefix("zh") else { continue }
128 |
129 |             let languageComponents = Locale.components(fromIdentifier: language)
    |                                             `- warning: 'components(fromIdentifier:)' is deprecated: Use `Locale.Components(identifier:)` to access components
130 |             let languageCode = languageComponents[NSLocale.Key.languageCode.rawValue]
131 |             guard let variant = languageComponents[NSLocale.Key.scriptCode.rawValue]?.lowercased(),
[25/30] Compiling WikipediaKit WikipediaImage.swift
/host/spi-builder-workspace/Sources/WikipediaLanguage.swift:98:41: warning: 'components(fromIdentifier:)' is deprecated: Use `Locale.Components(identifier:)` to access components
 96 |     public static var systemLanguageCode: String = {
 97 |         guard let preferredLanguage = Locale.preferredLanguages.first else { return "en" }
 98 |         let languageComponents = Locale.components(fromIdentifier: preferredLanguage)
    |                                         `- warning: 'components(fromIdentifier:)' is deprecated: Use `Locale.Components(identifier:)` to access components
 99 |         let languageCode = languageComponents[NSLocale.Key.languageCode.rawValue]
100 |         return languageCode ?? "en"
/host/spi-builder-workspace/Sources/WikipediaLanguage.swift:129:45: warning: 'components(fromIdentifier:)' is deprecated: Use `Locale.Components(identifier:)` to access components
127 |             guard language.hasPrefix("zh") else { continue }
128 |
129 |             let languageComponents = Locale.components(fromIdentifier: language)
    |                                             `- warning: 'components(fromIdentifier:)' is deprecated: Use `Locale.Components(identifier:)` to access components
130 |             let languageCode = languageComponents[NSLocale.Key.languageCode.rawValue]
131 |             guard let variant = languageComponents[NSLocale.Key.scriptCode.rawValue]?.lowercased(),
[26/30] Compiling WikipediaKit WikipediaLanguage.swift
/host/spi-builder-workspace/Sources/WikipediaLanguage.swift:98:41: warning: 'components(fromIdentifier:)' is deprecated: Use `Locale.Components(identifier:)` to access components
 96 |     public static var systemLanguageCode: String = {
 97 |         guard let preferredLanguage = Locale.preferredLanguages.first else { return "en" }
 98 |         let languageComponents = Locale.components(fromIdentifier: preferredLanguage)
    |                                         `- warning: 'components(fromIdentifier:)' is deprecated: Use `Locale.Components(identifier:)` to access components
 99 |         let languageCode = languageComponents[NSLocale.Key.languageCode.rawValue]
100 |         return languageCode ?? "en"
/host/spi-builder-workspace/Sources/WikipediaLanguage.swift:129:45: warning: 'components(fromIdentifier:)' is deprecated: Use `Locale.Components(identifier:)` to access components
127 |             guard language.hasPrefix("zh") else { continue }
128 |
129 |             let languageComponents = Locale.components(fromIdentifier: language)
    |                                             `- warning: 'components(fromIdentifier:)' is deprecated: Use `Locale.Components(identifier:)` to access components
130 |             let languageCode = languageComponents[NSLocale.Key.languageCode.rawValue]
131 |             guard let variant = languageComponents[NSLocale.Key.scriptCode.rawValue]?.lowercased(),
[27/30] Compiling WikipediaKit Wikipedia+Featured.swift
/host/spi-builder-workspace/Sources/Wikipedia+Featured.swift:40:12: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
38 |                                         date: Date,
39 |                                         completion: @escaping (Result<WikipediaFeatured, WikipediaError>) -> ())
40 |         -> URLSessionDataTask? {
   |            `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 |
42 |         let dateFormatter = DateFormatter()
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Wikipedia+Featured.swift:51:17: error: cannot find 'DispatchQueue' in scope
49 |         guard let url = URL(string: urlString)
50 |             else {
51 |                 DispatchQueue.main.async {
   |                 `- error: cannot find 'DispatchQueue' in scope
52 |                     completion(.failure(.other(nil)))
53 |                 }
/host/spi-builder-workspace/Sources/Wikipedia+Featured.swift:57:23: error: cannot find 'URLRequest' in scope
55 |         }
56 |
57 |         let request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
58 |
59 |         return WikipediaNetworking.shared.loadJSON(urlRequest: request) { jsonDictionary, error in
/host/spi-builder-workspace/Sources/Wikipedia+Featured.swift:63:17: error: cannot find 'DispatchQueue' in scope
61 |             guard error == nil else {
62 |                 // (also occurs when the request was cancelled programmatically)
63 |                 DispatchQueue.main.async {
   |                 `- error: cannot find 'DispatchQueue' in scope
64 |                     completion(.failure(error!))
65 |                 }
/host/spi-builder-workspace/Sources/Wikipedia+Featured.swift:70:17: error: cannot find 'DispatchQueue' in scope
68 |
69 |             guard let jsonDictionary = jsonDictionary  else {
70 |                 DispatchQueue.main.async {
   |                 `- error: cannot find 'DispatchQueue' in scope
71 |                     completion(.failure(.decodingError))
72 |                 }
/host/spi-builder-workspace/Sources/Wikipedia+Featured.swift:77:17: error: cannot find 'DispatchQueue' in scope
75 |
76 |             if let featured = WikipediaFeatured(jsonDictionary: jsonDictionary, language: language) {
77 |                 DispatchQueue.main.async {
   |                 `- error: cannot find 'DispatchQueue' in scope
78 |                     completion(.success(featured))
79 |                 }
/host/spi-builder-workspace/Sources/Wikipedia+Featured.swift:81:17: error: cannot find 'DispatchQueue' in scope
79 |                 }
80 |             } else {
81 |                 DispatchQueue.main.async {
   |                 `- error: cannot find 'DispatchQueue' in scope
82 |                     completion(.failure(.noResults))
83 |                 }
/host/spi-builder-workspace/Sources/WikipediaNetworking.swift:57:31: error: cannot find type 'URLRequest' in scope
 55 |     let session = URLSession(configuration: URLSessionConfiguration.default)
 56 |
 57 |     func loadJSON(urlRequest: URLRequest,
    |                               `- error: cannot find type 'URLRequest' in scope
 58 |                   completion: @escaping (JSONDictionary?, WikipediaError?) -> ())
 59 |         -> URLSessionDataTask {
/host/spi-builder-workspace/Sources/Wikipedia+ImageMeta.swift:41:12: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 39 |                                           width: Int? = nil,
 40 |                                           completion: @escaping ([WikipediaImage]?, WikipediaError?) -> ())
 41 |         -> URLSessionDataTask? {
    |            `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 42 |
 43 |         guard let firstURL = urls.first,
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Wikipedia+ImageMeta.swift:70:12: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 68 |                                           width: Int? = nil,
 69 |                                           completion: @escaping ([WikipediaImage]?, WikipediaError?) -> ())
 70 |         -> URLSessionDataTask? {
    |            `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 71 |
 72 |         let idsParameter = ids.joined(separator: "|")
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Wikipedia+ImageMeta.swift:45:17: error: cannot find 'DispatchQueue' in scope
 43 |         guard let firstURL = urls.first,
 44 |                   firstURL.path != "" else {
 45 |                 DispatchQueue.main.async {
    |                 `- error: cannot find 'DispatchQueue' in scope
 46 |                     completion(nil, .other(nil))
 47 |                 }
/host/spi-builder-workspace/Sources/Wikipedia+ImageMeta.swift:60:17: error: cannot find 'DispatchQueue' in scope
 58 |
 59 |             return self.requestSizedImageMetadata(language: language, ids: imageIDs, width: width) { imageMetadata, error in
 60 |                 DispatchQueue.main.async {
    |                 `- error: cannot find 'DispatchQueue' in scope
 61 |                     completion(imageMetadata, error)
 62 |                 }
/host/spi-builder-workspace/Sources/Wikipedia.swift:69:94: error: cannot find type 'URLRequest' in scope
67 |     var mostReadArticleDetailsRequest: URLSessionDataTask?
68 |
69 |     static func buildURLRequest(language: WikipediaLanguage, parameters: [String:String]) -> URLRequest? {
   |                                                                                              `- error: cannot find type 'URLRequest' in scope
70 |         guard let baseUrl = self.baseURL(language: language) else { return nil }
71 |
/host/spi-builder-workspace/Sources/Wikipedia+ImageMeta.swift:99:17: error: cannot find 'DispatchQueue' in scope
 97 |         guard let request = Wikipedia.buildURLRequest(language: language, parameters: parameters)
 98 |             else {
 99 |                 DispatchQueue.main.async {
    |                 `- error: cannot find 'DispatchQueue' in scope
100 |                     completion(nil, .other(nil))
101 |                 }
/host/spi-builder-workspace/Sources/Wikipedia+ImageMeta.swift:108:17: error: cannot find 'DispatchQueue' in scope
106 |
107 |             guard error == nil else {
108 |                 DispatchQueue.main.async {
    |                 `- error: cannot find 'DispatchQueue' in scope
109 |                     completion (nil, error)
110 |                 }
/host/spi-builder-workspace/Sources/Wikipedia+ImageMeta.swift:118:17: error: cannot find 'DispatchQueue' in scope
116 |                 let pages = query["pages"] as? [JSONDictionary]
117 |                 else {
118 |                 DispatchQueue.main.async {
    |                 `- error: cannot find 'DispatchQueue' in scope
119 |                     completion (nil, .decodingError)
120 |                 }
/host/spi-builder-workspace/Sources/Wikipedia+ImageMeta.swift:130:13: error: cannot find 'DispatchQueue' in scope
128 |                 }
129 |             }
130 |             DispatchQueue.main.async {
    |             `- error: cannot find 'DispatchQueue' in scope
131 |                 completion(images, error)
132 |             }
/host/spi-builder-workspace/Sources/Wikipedia+Languages.swift:39:12: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 37 |     public func requestAvailableLanguages(for article: WikipediaArticle,
 38 |                                           completion: @escaping (WikipediaArticle, WikipediaError?)->())
 39 |         -> URLSessionDataTask? {
    |            `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 40 |
 41 |         guard article.languageLinks == nil, // has not been populated previously
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Wikipedia+Languages.swift:44:17: error: cannot find 'DispatchQueue' in scope
 42 |               article.areOtherLanguagesAvailable // other languages are available
 43 |               else {
 44 |                 DispatchQueue.main.async {
    |                 `- error: cannot find 'DispatchQueue' in scope
 45 |                     completion(article, nil)
 46 |                 }
/host/spi-builder-workspace/Sources/Wikipedia+Languages.swift:63:17: error: cannot find 'DispatchQueue' in scope
 61 |         guard let request = Wikipedia.buildURLRequest(language: article.language, parameters: parameters)
 62 |             else {
 63 |                 DispatchQueue.main.async {
    |                 `- error: cannot find 'DispatchQueue' in scope
 64 |                     completion(article, .other(nil))
 65 |                 }
/host/spi-builder-workspace/Sources/Wikipedia+Languages.swift:73:17: error: cannot find 'DispatchQueue' in scope
 71 |             guard error == nil else {
 72 |                 // (also occurs when the request was cancelled programmatically)
 73 |                 DispatchQueue.main.async {
    |                 `- error: cannot find 'DispatchQueue' in scope
 74 |                     completion (article, error)
 75 |                 }
/host/spi-builder-workspace/Sources/Wikipedia+Languages.swift:80:17: error: cannot find 'DispatchQueue' in scope
 78 |
 79 |             guard let jsonDictionary = jsonDictionary  else {
 80 |                 DispatchQueue.main.async {
    |                 `- error: cannot find 'DispatchQueue' in scope
 81 |                     completion (article, .decodingError)
 82 |                 }
/host/spi-builder-workspace/Sources/Wikipedia+Languages.swift:89:21: error: cannot find 'DispatchQueue' in scope
 87 |                 let langlinks = parse["langlinks"] as? [JSONDictionary]
 88 |                 else {
 89 |                     DispatchQueue.main.async {
    |                     `- error: cannot find 'DispatchQueue' in scope
 90 |                         completion (article, .decodingError)
 91 |                     }
/host/spi-builder-workspace/Sources/Wikipedia+Languages.swift:96:13: error: cannot find 'DispatchQueue' in scope
 94 |             let languages = langlinks.compactMap(WikipediaArticleLanguageLink.init)
 95 |             article.languageLinks = languages
 96 |             DispatchQueue.main.async {
    |             `- error: cannot find 'DispatchQueue' in scope
 97 |                 completion(article, error)
 98 |             }
/host/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:46:12: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 44 |                                      loadExtracts: Bool = false,
 45 |                                      completion: @escaping ([WikipediaArticlePreview]?, WikipediaLanguage, WikipediaError?) -> ())
 46 |         -> URLSessionDataTask? {
    |            `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 47 |
 48 |             if imageWidth == 0 {
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:87:21: error: cannot find 'DispatchQueue' in scope
 85 |             guard let request = Wikipedia.buildURLRequest(language: language, parameters: parameters)
 86 |                 else {
 87 |                     DispatchQueue.main.async {
    |                     `- error: cannot find 'DispatchQueue' in scope
 88 |                         completion(nil, language, .other(nil))
 89 |                     }
/host/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:97:21: error: cannot find 'DispatchQueue' in scope
 95 |                 guard error == nil else {
 96 |                     // (also occurs when the request was cancelled programmatically)
 97 |                     DispatchQueue.main.async {
    |                     `- error: cannot find 'DispatchQueue' in scope
 98 |                         completion (nil, language, error)
 99 |                     }
/host/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:104:21: error: cannot find 'DispatchQueue' in scope
102 |
103 |                 guard let jsonDictionary = jsonDictionary else {
104 |                     DispatchQueue.main.async {
    |                     `- error: cannot find 'DispatchQueue' in scope
105 |                         completion (nil, language, .decodingError)
106 |                     }
/host/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:111:21: error: cannot find 'DispatchQueue' in scope
109 |
110 |                 guard let query = jsonDictionary["query"] as? JSONDictionary else {
111 |                     DispatchQueue.main.async {
    |                     `- error: cannot find 'DispatchQueue' in scope
112 |                         // If nothing is found,
113 |                         // there is no “query” key,
/host/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:122:21: error: cannot find 'DispatchQueue' in scope
120 |                 if let error = query["error"] as? JSONDictionary,
121 |                     let info = error["info"] as? String {
122 |                     DispatchQueue.main.async {
    |                     `- error: cannot find 'DispatchQueue' in scope
123 |                         completion (nil, language, .apiError(info))
124 |                     }
/host/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:129:21: error: cannot find 'DispatchQueue' in scope
127 |
128 |                 guard let pages = query["pages"] as? [JSONDictionary] else {
129 |                     DispatchQueue.main.async {
    |                     `- error: cannot find 'DispatchQueue' in scope
130 |                         completion (nil, language, .notFound)
131 |                     }
/host/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:155:17: error: cannot find 'DispatchQueue' in scope
153 |                 results = Array(results.prefix(maxCount))
154 |
155 |                 DispatchQueue.main.async {
    |                 `- error: cannot find 'DispatchQueue' in scope
156 |                     completion(results, language, error)
157 |                 }
[28/30] Compiling WikipediaKit Wikipedia+ImageMeta.swift
/host/spi-builder-workspace/Sources/Wikipedia+Featured.swift:40:12: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
38 |                                         date: Date,
39 |                                         completion: @escaping (Result<WikipediaFeatured, WikipediaError>) -> ())
40 |         -> URLSessionDataTask? {
   |            `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 |
42 |         let dateFormatter = DateFormatter()
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Wikipedia+Featured.swift:51:17: error: cannot find 'DispatchQueue' in scope
49 |         guard let url = URL(string: urlString)
50 |             else {
51 |                 DispatchQueue.main.async {
   |                 `- error: cannot find 'DispatchQueue' in scope
52 |                     completion(.failure(.other(nil)))
53 |                 }
/host/spi-builder-workspace/Sources/Wikipedia+Featured.swift:57:23: error: cannot find 'URLRequest' in scope
55 |         }
56 |
57 |         let request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
58 |
59 |         return WikipediaNetworking.shared.loadJSON(urlRequest: request) { jsonDictionary, error in
/host/spi-builder-workspace/Sources/Wikipedia+Featured.swift:63:17: error: cannot find 'DispatchQueue' in scope
61 |             guard error == nil else {
62 |                 // (also occurs when the request was cancelled programmatically)
63 |                 DispatchQueue.main.async {
   |                 `- error: cannot find 'DispatchQueue' in scope
64 |                     completion(.failure(error!))
65 |                 }
/host/spi-builder-workspace/Sources/Wikipedia+Featured.swift:70:17: error: cannot find 'DispatchQueue' in scope
68 |
69 |             guard let jsonDictionary = jsonDictionary  else {
70 |                 DispatchQueue.main.async {
   |                 `- error: cannot find 'DispatchQueue' in scope
71 |                     completion(.failure(.decodingError))
72 |                 }
/host/spi-builder-workspace/Sources/Wikipedia+Featured.swift:77:17: error: cannot find 'DispatchQueue' in scope
75 |
76 |             if let featured = WikipediaFeatured(jsonDictionary: jsonDictionary, language: language) {
77 |                 DispatchQueue.main.async {
   |                 `- error: cannot find 'DispatchQueue' in scope
78 |                     completion(.success(featured))
79 |                 }
/host/spi-builder-workspace/Sources/Wikipedia+Featured.swift:81:17: error: cannot find 'DispatchQueue' in scope
79 |                 }
80 |             } else {
81 |                 DispatchQueue.main.async {
   |                 `- error: cannot find 'DispatchQueue' in scope
82 |                     completion(.failure(.noResults))
83 |                 }
/host/spi-builder-workspace/Sources/WikipediaNetworking.swift:57:31: error: cannot find type 'URLRequest' in scope
 55 |     let session = URLSession(configuration: URLSessionConfiguration.default)
 56 |
 57 |     func loadJSON(urlRequest: URLRequest,
    |                               `- error: cannot find type 'URLRequest' in scope
 58 |                   completion: @escaping (JSONDictionary?, WikipediaError?) -> ())
 59 |         -> URLSessionDataTask {
/host/spi-builder-workspace/Sources/Wikipedia+ImageMeta.swift:41:12: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 39 |                                           width: Int? = nil,
 40 |                                           completion: @escaping ([WikipediaImage]?, WikipediaError?) -> ())
 41 |         -> URLSessionDataTask? {
    |            `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 42 |
 43 |         guard let firstURL = urls.first,
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Wikipedia+ImageMeta.swift:70:12: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 68 |                                           width: Int? = nil,
 69 |                                           completion: @escaping ([WikipediaImage]?, WikipediaError?) -> ())
 70 |         -> URLSessionDataTask? {
    |            `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 71 |
 72 |         let idsParameter = ids.joined(separator: "|")
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Wikipedia+ImageMeta.swift:45:17: error: cannot find 'DispatchQueue' in scope
 43 |         guard let firstURL = urls.first,
 44 |                   firstURL.path != "" else {
 45 |                 DispatchQueue.main.async {
    |                 `- error: cannot find 'DispatchQueue' in scope
 46 |                     completion(nil, .other(nil))
 47 |                 }
/host/spi-builder-workspace/Sources/Wikipedia+ImageMeta.swift:60:17: error: cannot find 'DispatchQueue' in scope
 58 |
 59 |             return self.requestSizedImageMetadata(language: language, ids: imageIDs, width: width) { imageMetadata, error in
 60 |                 DispatchQueue.main.async {
    |                 `- error: cannot find 'DispatchQueue' in scope
 61 |                     completion(imageMetadata, error)
 62 |                 }
/host/spi-builder-workspace/Sources/Wikipedia.swift:69:94: error: cannot find type 'URLRequest' in scope
67 |     var mostReadArticleDetailsRequest: URLSessionDataTask?
68 |
69 |     static func buildURLRequest(language: WikipediaLanguage, parameters: [String:String]) -> URLRequest? {
   |                                                                                              `- error: cannot find type 'URLRequest' in scope
70 |         guard let baseUrl = self.baseURL(language: language) else { return nil }
71 |
/host/spi-builder-workspace/Sources/Wikipedia+ImageMeta.swift:99:17: error: cannot find 'DispatchQueue' in scope
 97 |         guard let request = Wikipedia.buildURLRequest(language: language, parameters: parameters)
 98 |             else {
 99 |                 DispatchQueue.main.async {
    |                 `- error: cannot find 'DispatchQueue' in scope
100 |                     completion(nil, .other(nil))
101 |                 }
/host/spi-builder-workspace/Sources/Wikipedia+ImageMeta.swift:108:17: error: cannot find 'DispatchQueue' in scope
106 |
107 |             guard error == nil else {
108 |                 DispatchQueue.main.async {
    |                 `- error: cannot find 'DispatchQueue' in scope
109 |                     completion (nil, error)
110 |                 }
/host/spi-builder-workspace/Sources/Wikipedia+ImageMeta.swift:118:17: error: cannot find 'DispatchQueue' in scope
116 |                 let pages = query["pages"] as? [JSONDictionary]
117 |                 else {
118 |                 DispatchQueue.main.async {
    |                 `- error: cannot find 'DispatchQueue' in scope
119 |                     completion (nil, .decodingError)
120 |                 }
/host/spi-builder-workspace/Sources/Wikipedia+ImageMeta.swift:130:13: error: cannot find 'DispatchQueue' in scope
128 |                 }
129 |             }
130 |             DispatchQueue.main.async {
    |             `- error: cannot find 'DispatchQueue' in scope
131 |                 completion(images, error)
132 |             }
/host/spi-builder-workspace/Sources/Wikipedia+Languages.swift:39:12: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 37 |     public func requestAvailableLanguages(for article: WikipediaArticle,
 38 |                                           completion: @escaping (WikipediaArticle, WikipediaError?)->())
 39 |         -> URLSessionDataTask? {
    |            `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 40 |
 41 |         guard article.languageLinks == nil, // has not been populated previously
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Wikipedia+Languages.swift:44:17: error: cannot find 'DispatchQueue' in scope
 42 |               article.areOtherLanguagesAvailable // other languages are available
 43 |               else {
 44 |                 DispatchQueue.main.async {
    |                 `- error: cannot find 'DispatchQueue' in scope
 45 |                     completion(article, nil)
 46 |                 }
/host/spi-builder-workspace/Sources/Wikipedia+Languages.swift:63:17: error: cannot find 'DispatchQueue' in scope
 61 |         guard let request = Wikipedia.buildURLRequest(language: article.language, parameters: parameters)
 62 |             else {
 63 |                 DispatchQueue.main.async {
    |                 `- error: cannot find 'DispatchQueue' in scope
 64 |                     completion(article, .other(nil))
 65 |                 }
/host/spi-builder-workspace/Sources/Wikipedia+Languages.swift:73:17: error: cannot find 'DispatchQueue' in scope
 71 |             guard error == nil else {
 72 |                 // (also occurs when the request was cancelled programmatically)
 73 |                 DispatchQueue.main.async {
    |                 `- error: cannot find 'DispatchQueue' in scope
 74 |                     completion (article, error)
 75 |                 }
/host/spi-builder-workspace/Sources/Wikipedia+Languages.swift:80:17: error: cannot find 'DispatchQueue' in scope
 78 |
 79 |             guard let jsonDictionary = jsonDictionary  else {
 80 |                 DispatchQueue.main.async {
    |                 `- error: cannot find 'DispatchQueue' in scope
 81 |                     completion (article, .decodingError)
 82 |                 }
/host/spi-builder-workspace/Sources/Wikipedia+Languages.swift:89:21: error: cannot find 'DispatchQueue' in scope
 87 |                 let langlinks = parse["langlinks"] as? [JSONDictionary]
 88 |                 else {
 89 |                     DispatchQueue.main.async {
    |                     `- error: cannot find 'DispatchQueue' in scope
 90 |                         completion (article, .decodingError)
 91 |                     }
/host/spi-builder-workspace/Sources/Wikipedia+Languages.swift:96:13: error: cannot find 'DispatchQueue' in scope
 94 |             let languages = langlinks.compactMap(WikipediaArticleLanguageLink.init)
 95 |             article.languageLinks = languages
 96 |             DispatchQueue.main.async {
    |             `- error: cannot find 'DispatchQueue' in scope
 97 |                 completion(article, error)
 98 |             }
/host/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:46:12: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 44 |                                      loadExtracts: Bool = false,
 45 |                                      completion: @escaping ([WikipediaArticlePreview]?, WikipediaLanguage, WikipediaError?) -> ())
 46 |         -> URLSessionDataTask? {
    |            `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 47 |
 48 |             if imageWidth == 0 {
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:87:21: error: cannot find 'DispatchQueue' in scope
 85 |             guard let request = Wikipedia.buildURLRequest(language: language, parameters: parameters)
 86 |                 else {
 87 |                     DispatchQueue.main.async {
    |                     `- error: cannot find 'DispatchQueue' in scope
 88 |                         completion(nil, language, .other(nil))
 89 |                     }
/host/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:97:21: error: cannot find 'DispatchQueue' in scope
 95 |                 guard error == nil else {
 96 |                     // (also occurs when the request was cancelled programmatically)
 97 |                     DispatchQueue.main.async {
    |                     `- error: cannot find 'DispatchQueue' in scope
 98 |                         completion (nil, language, error)
 99 |                     }
/host/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:104:21: error: cannot find 'DispatchQueue' in scope
102 |
103 |                 guard let jsonDictionary = jsonDictionary else {
104 |                     DispatchQueue.main.async {
    |                     `- error: cannot find 'DispatchQueue' in scope
105 |                         completion (nil, language, .decodingError)
106 |                     }
/host/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:111:21: error: cannot find 'DispatchQueue' in scope
109 |
110 |                 guard let query = jsonDictionary["query"] as? JSONDictionary else {
111 |                     DispatchQueue.main.async {
    |                     `- error: cannot find 'DispatchQueue' in scope
112 |                         // If nothing is found,
113 |                         // there is no “query” key,
/host/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:122:21: error: cannot find 'DispatchQueue' in scope
120 |                 if let error = query["error"] as? JSONDictionary,
121 |                     let info = error["info"] as? String {
122 |                     DispatchQueue.main.async {
    |                     `- error: cannot find 'DispatchQueue' in scope
123 |                         completion (nil, language, .apiError(info))
124 |                     }
/host/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:129:21: error: cannot find 'DispatchQueue' in scope
127 |
128 |                 guard let pages = query["pages"] as? [JSONDictionary] else {
129 |                     DispatchQueue.main.async {
    |                     `- error: cannot find 'DispatchQueue' in scope
130 |                         completion (nil, language, .notFound)
131 |                     }
/host/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:155:17: error: cannot find 'DispatchQueue' in scope
153 |                 results = Array(results.prefix(maxCount))
154 |
155 |                 DispatchQueue.main.async {
    |                 `- error: cannot find 'DispatchQueue' in scope
156 |                     completion(results, language, error)
157 |                 }
[29/30] Compiling WikipediaKit Wikipedia+Languages.swift
/host/spi-builder-workspace/Sources/Wikipedia+Featured.swift:40:12: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
38 |                                         date: Date,
39 |                                         completion: @escaping (Result<WikipediaFeatured, WikipediaError>) -> ())
40 |         -> URLSessionDataTask? {
   |            `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 |
42 |         let dateFormatter = DateFormatter()
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Wikipedia+Featured.swift:51:17: error: cannot find 'DispatchQueue' in scope
49 |         guard let url = URL(string: urlString)
50 |             else {
51 |                 DispatchQueue.main.async {
   |                 `- error: cannot find 'DispatchQueue' in scope
52 |                     completion(.failure(.other(nil)))
53 |                 }
/host/spi-builder-workspace/Sources/Wikipedia+Featured.swift:57:23: error: cannot find 'URLRequest' in scope
55 |         }
56 |
57 |         let request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
58 |
59 |         return WikipediaNetworking.shared.loadJSON(urlRequest: request) { jsonDictionary, error in
/host/spi-builder-workspace/Sources/Wikipedia+Featured.swift:63:17: error: cannot find 'DispatchQueue' in scope
61 |             guard error == nil else {
62 |                 // (also occurs when the request was cancelled programmatically)
63 |                 DispatchQueue.main.async {
   |                 `- error: cannot find 'DispatchQueue' in scope
64 |                     completion(.failure(error!))
65 |                 }
/host/spi-builder-workspace/Sources/Wikipedia+Featured.swift:70:17: error: cannot find 'DispatchQueue' in scope
68 |
69 |             guard let jsonDictionary = jsonDictionary  else {
70 |                 DispatchQueue.main.async {
   |                 `- error: cannot find 'DispatchQueue' in scope
71 |                     completion(.failure(.decodingError))
72 |                 }
/host/spi-builder-workspace/Sources/Wikipedia+Featured.swift:77:17: error: cannot find 'DispatchQueue' in scope
75 |
76 |             if let featured = WikipediaFeatured(jsonDictionary: jsonDictionary, language: language) {
77 |                 DispatchQueue.main.async {
   |                 `- error: cannot find 'DispatchQueue' in scope
78 |                     completion(.success(featured))
79 |                 }
/host/spi-builder-workspace/Sources/Wikipedia+Featured.swift:81:17: error: cannot find 'DispatchQueue' in scope
79 |                 }
80 |             } else {
81 |                 DispatchQueue.main.async {
   |                 `- error: cannot find 'DispatchQueue' in scope
82 |                     completion(.failure(.noResults))
83 |                 }
/host/spi-builder-workspace/Sources/WikipediaNetworking.swift:57:31: error: cannot find type 'URLRequest' in scope
 55 |     let session = URLSession(configuration: URLSessionConfiguration.default)
 56 |
 57 |     func loadJSON(urlRequest: URLRequest,
    |                               `- error: cannot find type 'URLRequest' in scope
 58 |                   completion: @escaping (JSONDictionary?, WikipediaError?) -> ())
 59 |         -> URLSessionDataTask {
/host/spi-builder-workspace/Sources/Wikipedia+ImageMeta.swift:41:12: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 39 |                                           width: Int? = nil,
 40 |                                           completion: @escaping ([WikipediaImage]?, WikipediaError?) -> ())
 41 |         -> URLSessionDataTask? {
    |            `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 42 |
 43 |         guard let firstURL = urls.first,
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Wikipedia+ImageMeta.swift:70:12: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 68 |                                           width: Int? = nil,
 69 |                                           completion: @escaping ([WikipediaImage]?, WikipediaError?) -> ())
 70 |         -> URLSessionDataTask? {
    |            `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 71 |
 72 |         let idsParameter = ids.joined(separator: "|")
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Wikipedia+ImageMeta.swift:45:17: error: cannot find 'DispatchQueue' in scope
 43 |         guard let firstURL = urls.first,
 44 |                   firstURL.path != "" else {
 45 |                 DispatchQueue.main.async {
    |                 `- error: cannot find 'DispatchQueue' in scope
 46 |                     completion(nil, .other(nil))
 47 |                 }
/host/spi-builder-workspace/Sources/Wikipedia+ImageMeta.swift:60:17: error: cannot find 'DispatchQueue' in scope
 58 |
 59 |             return self.requestSizedImageMetadata(language: language, ids: imageIDs, width: width) { imageMetadata, error in
 60 |                 DispatchQueue.main.async {
    |                 `- error: cannot find 'DispatchQueue' in scope
 61 |                     completion(imageMetadata, error)
 62 |                 }
/host/spi-builder-workspace/Sources/Wikipedia.swift:69:94: error: cannot find type 'URLRequest' in scope
67 |     var mostReadArticleDetailsRequest: URLSessionDataTask?
68 |
69 |     static func buildURLRequest(language: WikipediaLanguage, parameters: [String:String]) -> URLRequest? {
   |                                                                                              `- error: cannot find type 'URLRequest' in scope
70 |         guard let baseUrl = self.baseURL(language: language) else { return nil }
71 |
/host/spi-builder-workspace/Sources/Wikipedia+ImageMeta.swift:99:17: error: cannot find 'DispatchQueue' in scope
 97 |         guard let request = Wikipedia.buildURLRequest(language: language, parameters: parameters)
 98 |             else {
 99 |                 DispatchQueue.main.async {
    |                 `- error: cannot find 'DispatchQueue' in scope
100 |                     completion(nil, .other(nil))
101 |                 }
/host/spi-builder-workspace/Sources/Wikipedia+ImageMeta.swift:108:17: error: cannot find 'DispatchQueue' in scope
106 |
107 |             guard error == nil else {
108 |                 DispatchQueue.main.async {
    |                 `- error: cannot find 'DispatchQueue' in scope
109 |                     completion (nil, error)
110 |                 }
/host/spi-builder-workspace/Sources/Wikipedia+ImageMeta.swift:118:17: error: cannot find 'DispatchQueue' in scope
116 |                 let pages = query["pages"] as? [JSONDictionary]
117 |                 else {
118 |                 DispatchQueue.main.async {
    |                 `- error: cannot find 'DispatchQueue' in scope
119 |                     completion (nil, .decodingError)
120 |                 }
/host/spi-builder-workspace/Sources/Wikipedia+ImageMeta.swift:130:13: error: cannot find 'DispatchQueue' in scope
128 |                 }
129 |             }
130 |             DispatchQueue.main.async {
    |             `- error: cannot find 'DispatchQueue' in scope
131 |                 completion(images, error)
132 |             }
/host/spi-builder-workspace/Sources/Wikipedia+Languages.swift:39:12: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 37 |     public func requestAvailableLanguages(for article: WikipediaArticle,
 38 |                                           completion: @escaping (WikipediaArticle, WikipediaError?)->())
 39 |         -> URLSessionDataTask? {
    |            `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 40 |
 41 |         guard article.languageLinks == nil, // has not been populated previously
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Wikipedia+Languages.swift:44:17: error: cannot find 'DispatchQueue' in scope
 42 |               article.areOtherLanguagesAvailable // other languages are available
 43 |               else {
 44 |                 DispatchQueue.main.async {
    |                 `- error: cannot find 'DispatchQueue' in scope
 45 |                     completion(article, nil)
 46 |                 }
/host/spi-builder-workspace/Sources/Wikipedia+Languages.swift:63:17: error: cannot find 'DispatchQueue' in scope
 61 |         guard let request = Wikipedia.buildURLRequest(language: article.language, parameters: parameters)
 62 |             else {
 63 |                 DispatchQueue.main.async {
    |                 `- error: cannot find 'DispatchQueue' in scope
 64 |                     completion(article, .other(nil))
 65 |                 }
/host/spi-builder-workspace/Sources/Wikipedia+Languages.swift:73:17: error: cannot find 'DispatchQueue' in scope
 71 |             guard error == nil else {
 72 |                 // (also occurs when the request was cancelled programmatically)
 73 |                 DispatchQueue.main.async {
    |                 `- error: cannot find 'DispatchQueue' in scope
 74 |                     completion (article, error)
 75 |                 }
/host/spi-builder-workspace/Sources/Wikipedia+Languages.swift:80:17: error: cannot find 'DispatchQueue' in scope
 78 |
 79 |             guard let jsonDictionary = jsonDictionary  else {
 80 |                 DispatchQueue.main.async {
    |                 `- error: cannot find 'DispatchQueue' in scope
 81 |                     completion (article, .decodingError)
 82 |                 }
/host/spi-builder-workspace/Sources/Wikipedia+Languages.swift:89:21: error: cannot find 'DispatchQueue' in scope
 87 |                 let langlinks = parse["langlinks"] as? [JSONDictionary]
 88 |                 else {
 89 |                     DispatchQueue.main.async {
    |                     `- error: cannot find 'DispatchQueue' in scope
 90 |                         completion (article, .decodingError)
 91 |                     }
/host/spi-builder-workspace/Sources/Wikipedia+Languages.swift:96:13: error: cannot find 'DispatchQueue' in scope
 94 |             let languages = langlinks.compactMap(WikipediaArticleLanguageLink.init)
 95 |             article.languageLinks = languages
 96 |             DispatchQueue.main.async {
    |             `- error: cannot find 'DispatchQueue' in scope
 97 |                 completion(article, error)
 98 |             }
/host/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:46:12: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 44 |                                      loadExtracts: Bool = false,
 45 |                                      completion: @escaping ([WikipediaArticlePreview]?, WikipediaLanguage, WikipediaError?) -> ())
 46 |         -> URLSessionDataTask? {
    |            `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 47 |
 48 |             if imageWidth == 0 {
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:87:21: error: cannot find 'DispatchQueue' in scope
 85 |             guard let request = Wikipedia.buildURLRequest(language: language, parameters: parameters)
 86 |                 else {
 87 |                     DispatchQueue.main.async {
    |                     `- error: cannot find 'DispatchQueue' in scope
 88 |                         completion(nil, language, .other(nil))
 89 |                     }
/host/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:97:21: error: cannot find 'DispatchQueue' in scope
 95 |                 guard error == nil else {
 96 |                     // (also occurs when the request was cancelled programmatically)
 97 |                     DispatchQueue.main.async {
    |                     `- error: cannot find 'DispatchQueue' in scope
 98 |                         completion (nil, language, error)
 99 |                     }
/host/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:104:21: error: cannot find 'DispatchQueue' in scope
102 |
103 |                 guard let jsonDictionary = jsonDictionary else {
104 |                     DispatchQueue.main.async {
    |                     `- error: cannot find 'DispatchQueue' in scope
105 |                         completion (nil, language, .decodingError)
106 |                     }
/host/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:111:21: error: cannot find 'DispatchQueue' in scope
109 |
110 |                 guard let query = jsonDictionary["query"] as? JSONDictionary else {
111 |                     DispatchQueue.main.async {
    |                     `- error: cannot find 'DispatchQueue' in scope
112 |                         // If nothing is found,
113 |                         // there is no “query” key,
/host/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:122:21: error: cannot find 'DispatchQueue' in scope
120 |                 if let error = query["error"] as? JSONDictionary,
121 |                     let info = error["info"] as? String {
122 |                     DispatchQueue.main.async {
    |                     `- error: cannot find 'DispatchQueue' in scope
123 |                         completion (nil, language, .apiError(info))
124 |                     }
/host/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:129:21: error: cannot find 'DispatchQueue' in scope
127 |
128 |                 guard let pages = query["pages"] as? [JSONDictionary] else {
129 |                     DispatchQueue.main.async {
    |                     `- error: cannot find 'DispatchQueue' in scope
130 |                         completion (nil, language, .notFound)
131 |                     }
/host/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:155:17: error: cannot find 'DispatchQueue' in scope
153 |                 results = Array(results.prefix(maxCount))
154 |
155 |                 DispatchQueue.main.async {
    |                 `- error: cannot find 'DispatchQueue' in scope
156 |                     completion(results, language, error)
157 |                 }
[30/30] Compiling WikipediaKit Wikipedia+NearbySearch.swift
/host/spi-builder-workspace/Sources/Wikipedia+Featured.swift:40:12: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
38 |                                         date: Date,
39 |                                         completion: @escaping (Result<WikipediaFeatured, WikipediaError>) -> ())
40 |         -> URLSessionDataTask? {
   |            `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 |
42 |         let dateFormatter = DateFormatter()
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Wikipedia+Featured.swift:51:17: error: cannot find 'DispatchQueue' in scope
49 |         guard let url = URL(string: urlString)
50 |             else {
51 |                 DispatchQueue.main.async {
   |                 `- error: cannot find 'DispatchQueue' in scope
52 |                     completion(.failure(.other(nil)))
53 |                 }
/host/spi-builder-workspace/Sources/Wikipedia+Featured.swift:57:23: error: cannot find 'URLRequest' in scope
55 |         }
56 |
57 |         let request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
58 |
59 |         return WikipediaNetworking.shared.loadJSON(urlRequest: request) { jsonDictionary, error in
/host/spi-builder-workspace/Sources/Wikipedia+Featured.swift:63:17: error: cannot find 'DispatchQueue' in scope
61 |             guard error == nil else {
62 |                 // (also occurs when the request was cancelled programmatically)
63 |                 DispatchQueue.main.async {
   |                 `- error: cannot find 'DispatchQueue' in scope
64 |                     completion(.failure(error!))
65 |                 }
/host/spi-builder-workspace/Sources/Wikipedia+Featured.swift:70:17: error: cannot find 'DispatchQueue' in scope
68 |
69 |             guard let jsonDictionary = jsonDictionary  else {
70 |                 DispatchQueue.main.async {
   |                 `- error: cannot find 'DispatchQueue' in scope
71 |                     completion(.failure(.decodingError))
72 |                 }
/host/spi-builder-workspace/Sources/Wikipedia+Featured.swift:77:17: error: cannot find 'DispatchQueue' in scope
75 |
76 |             if let featured = WikipediaFeatured(jsonDictionary: jsonDictionary, language: language) {
77 |                 DispatchQueue.main.async {
   |                 `- error: cannot find 'DispatchQueue' in scope
78 |                     completion(.success(featured))
79 |                 }
/host/spi-builder-workspace/Sources/Wikipedia+Featured.swift:81:17: error: cannot find 'DispatchQueue' in scope
79 |                 }
80 |             } else {
81 |                 DispatchQueue.main.async {
   |                 `- error: cannot find 'DispatchQueue' in scope
82 |                     completion(.failure(.noResults))
83 |                 }
/host/spi-builder-workspace/Sources/WikipediaNetworking.swift:57:31: error: cannot find type 'URLRequest' in scope
 55 |     let session = URLSession(configuration: URLSessionConfiguration.default)
 56 |
 57 |     func loadJSON(urlRequest: URLRequest,
    |                               `- error: cannot find type 'URLRequest' in scope
 58 |                   completion: @escaping (JSONDictionary?, WikipediaError?) -> ())
 59 |         -> URLSessionDataTask {
/host/spi-builder-workspace/Sources/Wikipedia+ImageMeta.swift:41:12: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 39 |                                           width: Int? = nil,
 40 |                                           completion: @escaping ([WikipediaImage]?, WikipediaError?) -> ())
 41 |         -> URLSessionDataTask? {
    |            `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 42 |
 43 |         guard let firstURL = urls.first,
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Wikipedia+ImageMeta.swift:70:12: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 68 |                                           width: Int? = nil,
 69 |                                           completion: @escaping ([WikipediaImage]?, WikipediaError?) -> ())
 70 |         -> URLSessionDataTask? {
    |            `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 71 |
 72 |         let idsParameter = ids.joined(separator: "|")
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Wikipedia+ImageMeta.swift:45:17: error: cannot find 'DispatchQueue' in scope
 43 |         guard let firstURL = urls.first,
 44 |                   firstURL.path != "" else {
 45 |                 DispatchQueue.main.async {
    |                 `- error: cannot find 'DispatchQueue' in scope
 46 |                     completion(nil, .other(nil))
 47 |                 }
/host/spi-builder-workspace/Sources/Wikipedia+ImageMeta.swift:60:17: error: cannot find 'DispatchQueue' in scope
 58 |
 59 |             return self.requestSizedImageMetadata(language: language, ids: imageIDs, width: width) { imageMetadata, error in
 60 |                 DispatchQueue.main.async {
    |                 `- error: cannot find 'DispatchQueue' in scope
 61 |                     completion(imageMetadata, error)
 62 |                 }
/host/spi-builder-workspace/Sources/Wikipedia.swift:69:94: error: cannot find type 'URLRequest' in scope
67 |     var mostReadArticleDetailsRequest: URLSessionDataTask?
68 |
69 |     static func buildURLRequest(language: WikipediaLanguage, parameters: [String:String]) -> URLRequest? {
   |                                                                                              `- error: cannot find type 'URLRequest' in scope
70 |         guard let baseUrl = self.baseURL(language: language) else { return nil }
71 |
/host/spi-builder-workspace/Sources/Wikipedia+ImageMeta.swift:99:17: error: cannot find 'DispatchQueue' in scope
 97 |         guard let request = Wikipedia.buildURLRequest(language: language, parameters: parameters)
 98 |             else {
 99 |                 DispatchQueue.main.async {
    |                 `- error: cannot find 'DispatchQueue' in scope
100 |                     completion(nil, .other(nil))
101 |                 }
/host/spi-builder-workspace/Sources/Wikipedia+ImageMeta.swift:108:17: error: cannot find 'DispatchQueue' in scope
106 |
107 |             guard error == nil else {
108 |                 DispatchQueue.main.async {
    |                 `- error: cannot find 'DispatchQueue' in scope
109 |                     completion (nil, error)
110 |                 }
/host/spi-builder-workspace/Sources/Wikipedia+ImageMeta.swift:118:17: error: cannot find 'DispatchQueue' in scope
116 |                 let pages = query["pages"] as? [JSONDictionary]
117 |                 else {
118 |                 DispatchQueue.main.async {
    |                 `- error: cannot find 'DispatchQueue' in scope
119 |                     completion (nil, .decodingError)
120 |                 }
/host/spi-builder-workspace/Sources/Wikipedia+ImageMeta.swift:130:13: error: cannot find 'DispatchQueue' in scope
128 |                 }
129 |             }
130 |             DispatchQueue.main.async {
    |             `- error: cannot find 'DispatchQueue' in scope
131 |                 completion(images, error)
132 |             }
/host/spi-builder-workspace/Sources/Wikipedia+Languages.swift:39:12: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 37 |     public func requestAvailableLanguages(for article: WikipediaArticle,
 38 |                                           completion: @escaping (WikipediaArticle, WikipediaError?)->())
 39 |         -> URLSessionDataTask? {
    |            `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 40 |
 41 |         guard article.languageLinks == nil, // has not been populated previously
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Wikipedia+Languages.swift:44:17: error: cannot find 'DispatchQueue' in scope
 42 |               article.areOtherLanguagesAvailable // other languages are available
 43 |               else {
 44 |                 DispatchQueue.main.async {
    |                 `- error: cannot find 'DispatchQueue' in scope
 45 |                     completion(article, nil)
 46 |                 }
/host/spi-builder-workspace/Sources/Wikipedia+Languages.swift:63:17: error: cannot find 'DispatchQueue' in scope
 61 |         guard let request = Wikipedia.buildURLRequest(language: article.language, parameters: parameters)
 62 |             else {
 63 |                 DispatchQueue.main.async {
    |                 `- error: cannot find 'DispatchQueue' in scope
 64 |                     completion(article, .other(nil))
 65 |                 }
/host/spi-builder-workspace/Sources/Wikipedia+Languages.swift:73:17: error: cannot find 'DispatchQueue' in scope
 71 |             guard error == nil else {
 72 |                 // (also occurs when the request was cancelled programmatically)
 73 |                 DispatchQueue.main.async {
    |                 `- error: cannot find 'DispatchQueue' in scope
 74 |                     completion (article, error)
 75 |                 }
/host/spi-builder-workspace/Sources/Wikipedia+Languages.swift:80:17: error: cannot find 'DispatchQueue' in scope
 78 |
 79 |             guard let jsonDictionary = jsonDictionary  else {
 80 |                 DispatchQueue.main.async {
    |                 `- error: cannot find 'DispatchQueue' in scope
 81 |                     completion (article, .decodingError)
 82 |                 }
/host/spi-builder-workspace/Sources/Wikipedia+Languages.swift:89:21: error: cannot find 'DispatchQueue' in scope
 87 |                 let langlinks = parse["langlinks"] as? [JSONDictionary]
 88 |                 else {
 89 |                     DispatchQueue.main.async {
    |                     `- error: cannot find 'DispatchQueue' in scope
 90 |                         completion (article, .decodingError)
 91 |                     }
/host/spi-builder-workspace/Sources/Wikipedia+Languages.swift:96:13: error: cannot find 'DispatchQueue' in scope
 94 |             let languages = langlinks.compactMap(WikipediaArticleLanguageLink.init)
 95 |             article.languageLinks = languages
 96 |             DispatchQueue.main.async {
    |             `- error: cannot find 'DispatchQueue' in scope
 97 |                 completion(article, error)
 98 |             }
/host/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:46:12: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 44 |                                      loadExtracts: Bool = false,
 45 |                                      completion: @escaping ([WikipediaArticlePreview]?, WikipediaLanguage, WikipediaError?) -> ())
 46 |         -> URLSessionDataTask? {
    |            `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 47 |
 48 |             if imageWidth == 0 {
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:87:21: error: cannot find 'DispatchQueue' in scope
 85 |             guard let request = Wikipedia.buildURLRequest(language: language, parameters: parameters)
 86 |                 else {
 87 |                     DispatchQueue.main.async {
    |                     `- error: cannot find 'DispatchQueue' in scope
 88 |                         completion(nil, language, .other(nil))
 89 |                     }
/host/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:97:21: error: cannot find 'DispatchQueue' in scope
 95 |                 guard error == nil else {
 96 |                     // (also occurs when the request was cancelled programmatically)
 97 |                     DispatchQueue.main.async {
    |                     `- error: cannot find 'DispatchQueue' in scope
 98 |                         completion (nil, language, error)
 99 |                     }
/host/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:104:21: error: cannot find 'DispatchQueue' in scope
102 |
103 |                 guard let jsonDictionary = jsonDictionary else {
104 |                     DispatchQueue.main.async {
    |                     `- error: cannot find 'DispatchQueue' in scope
105 |                         completion (nil, language, .decodingError)
106 |                     }
/host/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:111:21: error: cannot find 'DispatchQueue' in scope
109 |
110 |                 guard let query = jsonDictionary["query"] as? JSONDictionary else {
111 |                     DispatchQueue.main.async {
    |                     `- error: cannot find 'DispatchQueue' in scope
112 |                         // If nothing is found,
113 |                         // there is no “query” key,
/host/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:122:21: error: cannot find 'DispatchQueue' in scope
120 |                 if let error = query["error"] as? JSONDictionary,
121 |                     let info = error["info"] as? String {
122 |                     DispatchQueue.main.async {
    |                     `- error: cannot find 'DispatchQueue' in scope
123 |                         completion (nil, language, .apiError(info))
124 |                     }
/host/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:129:21: error: cannot find 'DispatchQueue' in scope
127 |
128 |                 guard let pages = query["pages"] as? [JSONDictionary] else {
129 |                     DispatchQueue.main.async {
    |                     `- error: cannot find 'DispatchQueue' in scope
130 |                         completion (nil, language, .notFound)
131 |                     }
/host/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:155:17: error: cannot find 'DispatchQueue' in scope
153 |                 results = Array(results.prefix(maxCount))
154 |
155 |                 DispatchQueue.main.async {
    |                 `- error: cannot find 'DispatchQueue' in scope
156 |                     completion(results, language, error)
157 |                 }
BUILD FAILURE 6.1 wasm