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

Successful build of WikipediaKit, reference main (a601bf), with Swift 6.0 for macOS (SPM) on 28 Nov 2024 18:53:11 UTC.

Swift 6 data race errors: 13

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures

Build Log

115 |                 }
116 |                 return nil
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+Search.swift:114:32: warning: sending 'cachedSearchResults' risks causing data races; this is an error in the Swift 6 language mode
112 |             if cachedSearchResults.items.count > searchResults.items.count {
113 |                 DispatchQueue.main.async {
114 |                     completion(cachedSearchResults, nil)
    |                                |- warning: sending 'cachedSearchResults' risks causing data races; this is an error in the Swift 6 language mode
    |                                `- note: task-isolated 'cachedSearchResults' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
115 |                 }
116 |                 return nil
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+Search.swift:200:21: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
198 |             else {
199 |                 DispatchQueue.main.async {
200 |                     completion(nil, .other(nil))
    |                     |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
    |                     `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
201 |                 }
202 |                 return nil
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+Search.swift:76:21: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
 74 |             } else {
 75 |                 DispatchQueue.main.async {
 76 |                     completion(searchResults, error)
    |                     |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
    |                     `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 77 |                 }
 78 |             }
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+Search.swift:76:32: warning: sending 'searchResults' risks causing data races; this is an error in the Swift 6 language mode
 74 |             } else {
 75 |                 DispatchQueue.main.async {
 76 |                     completion(searchResults, error)
    |                                |- warning: sending 'searchResults' risks causing data races; this is an error in the Swift 6 language mode
    |                                `- note: task-isolated 'searchResults' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 77 |                 }
 78 |             }
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+Search.swift:65:29: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
 63 |                     if (fullTextSearchResults?.items.count ?? 0) >= (prefixSearchResults?.items.count ?? 0) {
 64 |                         DispatchQueue.main.async {
 65 |                             completion(fullTextSearchResults, error)
    |                             |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
    |                             `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 66 |                         }
 67 |                     } else {
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+Search.swift:65:40: warning: sending 'fullTextSearchResults' risks causing data races; this is an error in the Swift 6 language mode
 63 |                     if (fullTextSearchResults?.items.count ?? 0) >= (prefixSearchResults?.items.count ?? 0) {
 64 |                         DispatchQueue.main.async {
 65 |                             completion(fullTextSearchResults, error)
    |                                        |- warning: sending 'fullTextSearchResults' risks causing data races; this is an error in the Swift 6 language mode
    |                                        `- note: task-isolated 'fullTextSearchResults' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 66 |                         }
 67 |                     } else {
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+Search.swift:69:29: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
 67 |                     } else {
 68 |                         DispatchQueue.main.async {
 69 |                             completion(prefixSearchResults, nil)
    |                             |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
    |                             `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 70 |                         }
 71 |                     }
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+Search.swift:69:40: warning: sending 'prefixSearchResults' risks causing data races; this is an error in the Swift 6 language mode
 67 |                     } else {
 68 |                         DispatchQueue.main.async {
 69 |                             completion(prefixSearchResults, nil)
    |                                        |- warning: sending 'prefixSearchResults' risks causing data races; this is an error in the Swift 6 language mode
    |                                        `- note: task-isolated 'prefixSearchResults' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 70 |                         }
 71 |                     }
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+Search.swift:261:25: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
259 |
260 |                     DispatchQueue.main.async {
261 |                         completion (searchResults, .notEnoughResults)
    |                         |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
    |                         `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
262 |                     }
263 |                     return
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+Search.swift:261:37: warning: sending 'searchResults' risks causing data races; this is an error in the Swift 6 language mode
259 |
260 |                     DispatchQueue.main.async {
261 |                         completion (searchResults, .notEnoughResults)
    |                                     |- warning: sending 'searchResults' risks causing data races; this is an error in the Swift 6 language mode
    |                                     `- note: task-isolated 'searchResults' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
262 |                     }
263 |                     return
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+Search.swift:269:21: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
267 |
268 |                 DispatchQueue.main.async {
269 |                     completion(searchResults, error)
    |                     |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
    |                     `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
270 |                 }
271 |
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+Search.swift:269:32: warning: sending 'searchResults' risks causing data races; this is an error in the Swift 6 language mode
267 |
268 |                 DispatchQueue.main.async {
269 |                     completion(searchResults, error)
    |                                |- warning: sending 'searchResults' risks causing data races; this is an error in the Swift 6 language mode
    |                                `- note: task-isolated 'searchResults' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
270 |                 }
271 |
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+Search.swift:277:25: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
275 |                 if searchResults.offset == 0 {
276 |                     DispatchQueue.main.async {
277 |                         completion (searchResults, .notFound)
    |                         |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
    |                         `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
278 |                     }
279 |                     return
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+Search.swift:277:37: warning: sending 'searchResults' risks causing data races; this is an error in the Swift 6 language mode
275 |                 if searchResults.offset == 0 {
276 |                     DispatchQueue.main.async {
277 |                         completion (searchResults, .notFound)
    |                                     |- warning: sending 'searchResults' risks causing data races; this is an error in the Swift 6 language mode
    |                                     `- note: task-isolated 'searchResults' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
278 |                     }
279 |                     return
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+Search.swift:284:25: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
282 |                     searchResults.canLoadMore = false
283 |                     DispatchQueue.main.async {
284 |                         completion (searchResults, error)
    |                         |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
    |                         `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
285 |                     }
286 |                     return
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+Search.swift:284:37: warning: sending 'searchResults' risks causing data races; this is an error in the Swift 6 language mode
282 |                     searchResults.canLoadMore = false
283 |                     DispatchQueue.main.async {
284 |                         completion (searchResults, error)
    |                                     |- warning: sending 'searchResults' risks causing data races; this is an error in the Swift 6 language mode
    |                                     `- note: task-isolated 'searchResults' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
285 |                     }
286 |                     return
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+Search.swift:224:21: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
222 |             guard let query = jsonDictionary["query"] as? JSONDictionary else {
223 |                 DispatchQueue.main.async {
224 |                     completion (searchResults, .notFound)
    |                     |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
    |                     `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
225 |                 }
226 |                 return
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+Search.swift:224:33: warning: sending 'searchResults' risks causing data races; this is an error in the Swift 6 language mode
222 |             guard let query = jsonDictionary["query"] as? JSONDictionary else {
223 |                 DispatchQueue.main.async {
224 |                     completion (searchResults, .notFound)
    |                                 |- warning: sending 'searchResults' risks causing data races; this is an error in the Swift 6 language mode
    |                                 `- note: task-isolated 'searchResults' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
225 |                 }
226 |                 return
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+Search.swift:217:21: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
215 |             guard let jsonDictionary = jsonDictionary else {
216 |                 DispatchQueue.main.async {
217 |                     completion (searchResults, .decodingError)
    |                     |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
    |                     `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
218 |                 }
219 |                 return
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+Search.swift:217:33: warning: sending 'searchResults' risks causing data races; this is an error in the Swift 6 language mode
215 |             guard let jsonDictionary = jsonDictionary else {
216 |                 DispatchQueue.main.async {
217 |                     completion (searchResults, .decodingError)
    |                                 |- warning: sending 'searchResults' risks causing data races; this is an error in the Swift 6 language mode
    |                                 `- note: task-isolated 'searchResults' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
218 |                 }
219 |                 return
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+Search.swift:210:21: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
208 |                 // (also occurs when the request was cancelled programmatically)
209 |                 DispatchQueue.main.async {
210 |                     completion (searchResults, error)
    |                     |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
    |                     `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
211 |                 }
212 |                 return
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+Search.swift:210:33: warning: sending 'searchResults' risks causing data races; this is an error in the Swift 6 language mode
208 |                 // (also occurs when the request was cancelled programmatically)
209 |                 DispatchQueue.main.async {
210 |                     completion (searchResults, error)
    |                                 |- warning: sending 'searchResults' risks causing data races; this is an error in the Swift 6 language mode
    |                                 `- note: task-isolated 'searchResults' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
211 |                 }
212 |                 return
/Users/admin/builder/spi-builder-workspace/Sources/WikipediaNetworking.swift:37:23: warning: static property 'appAuthorEmailForAPI' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 35 | public class WikipediaNetworking {
 36 |
 37 |     public static var appAuthorEmailForAPI = ""
    |                       |- warning: static property 'appAuthorEmailForAPI' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'appAuthorEmailForAPI' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'appAuthorEmailForAPI' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 38 |
 39 |     public static let shared: WikipediaNetworking = {
[20/31] Compiling WikipediaKit WikipediaError.swift
[21/31] Compiling WikipediaKit WikipediaFeatured.swift
[22/31] Compiling WikipediaKit WikipediaImage.swift
[23/31] Compiling WikipediaKit String+Wikipedia.swift
/Users/admin/builder/spi-builder-workspace/Sources/WikipediaNetworking.swift:39:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'WikipediaNetworking' may have shared mutable state; this is an error in the Swift 6 language mode
 33 | #endif
 34 |
 35 | public class WikipediaNetworking {
    |              `- note: class 'WikipediaNetworking' does not conform to the 'Sendable' protocol
 36 |
 37 |     public static var appAuthorEmailForAPI = ""
 38 |
 39 |     public static let shared: WikipediaNetworking = {
    |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'WikipediaNetworking' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 40 |         return WikipediaNetworking()
 41 |     }()
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+Article.swift:47:17: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
45 |         if let cachedArticle = self.articleCache.get(language: language, title: title) {
46 |             DispatchQueue.main.async {
47 |                 completion(.success(cachedArticle))
   |                 |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
   |                 `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
48 |             }
49 |             return nil
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+Article.swift:47:37: warning: sending 'cachedArticle' risks causing data races; this is an error in the Swift 6 language mode
45 |         if let cachedArticle = self.articleCache.get(language: language, title: title) {
46 |             DispatchQueue.main.async {
47 |                 completion(.success(cachedArticle))
   |                                     |- warning: sending 'cachedArticle' risks causing data races; this is an error in the Swift 6 language mode
   |                                     `- note: task-isolated 'cachedArticle' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
48 |             }
49 |             return nil
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+Article.swift:59:21: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
57 |             else {
58 |                 DispatchQueue.main.async {
59 |                     completion(.failure(.other(nil)))
   |                     |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
   |                     `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
60 |                 }
61 |                 return nil
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+Article.swift:85:21: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
83 |                 self.articleCache.add(article)
84 |                 DispatchQueue.main.async {
85 |                     completion(.success(article))
   |                     |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
   |                     `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
86 |                 }
87 |             } else {
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+Article.swift:85:41: warning: sending 'article' risks causing data races; this is an error in the Swift 6 language mode
83 |                 self.articleCache.add(article)
84 |                 DispatchQueue.main.async {
85 |                     completion(.success(article))
   |                                         |- warning: sending 'article' risks causing data races; this is an error in the Swift 6 language mode
   |                                         `- note: task-isolated 'article' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
86 |                 }
87 |             } else {
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+Article.swift:89:21: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
87 |             } else {
88 |                 DispatchQueue.main.async {
89 |                     completion(.failure(.decodingError))
   |                     |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
   |                     `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
90 |                 }
91 |             }
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+Article.swift:77:21: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
75 |             guard let jsonDictionary = jsonDictionary  else {
76 |                 DispatchQueue.main.async {
77 |                     completion (.failure(.decodingError))
   |                     |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
   |                     `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
78 |                 }
79 |                 return
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+Article.swift:70:21: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
68 |             guard error == nil else {
69 |                 DispatchQueue.main.async {
70 |                     completion (.failure(error!))
   |                     |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
   |                     `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
71 |                 }
72 |                 return
/Users/admin/builder/spi-builder-workspace/Sources/WikipediaNetworking.swift:37:23: warning: static property 'appAuthorEmailForAPI' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 35 | public class WikipediaNetworking {
 36 |
 37 |     public static var appAuthorEmailForAPI = ""
    |                       |- warning: static property 'appAuthorEmailForAPI' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'appAuthorEmailForAPI' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'appAuthorEmailForAPI' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 38 |
 39 |     public static let shared: WikipediaNetworking = {
[24/31] Compiling WikipediaKit URL+Wikipedia.swift
/Users/admin/builder/spi-builder-workspace/Sources/WikipediaNetworking.swift:39:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'WikipediaNetworking' may have shared mutable state; this is an error in the Swift 6 language mode
 33 | #endif
 34 |
 35 | public class WikipediaNetworking {
    |              `- note: class 'WikipediaNetworking' does not conform to the 'Sendable' protocol
 36 |
 37 |     public static var appAuthorEmailForAPI = ""
 38 |
 39 |     public static let shared: WikipediaNetworking = {
    |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'WikipediaNetworking' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 40 |         return WikipediaNetworking()
 41 |     }()
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+Article.swift:47:17: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
45 |         if let cachedArticle = self.articleCache.get(language: language, title: title) {
46 |             DispatchQueue.main.async {
47 |                 completion(.success(cachedArticle))
   |                 |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
   |                 `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
48 |             }
49 |             return nil
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+Article.swift:47:37: warning: sending 'cachedArticle' risks causing data races; this is an error in the Swift 6 language mode
45 |         if let cachedArticle = self.articleCache.get(language: language, title: title) {
46 |             DispatchQueue.main.async {
47 |                 completion(.success(cachedArticle))
   |                                     |- warning: sending 'cachedArticle' risks causing data races; this is an error in the Swift 6 language mode
   |                                     `- note: task-isolated 'cachedArticle' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
48 |             }
49 |             return nil
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+Article.swift:59:21: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
57 |             else {
58 |                 DispatchQueue.main.async {
59 |                     completion(.failure(.other(nil)))
   |                     |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
   |                     `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
60 |                 }
61 |                 return nil
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+Article.swift:85:21: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
83 |                 self.articleCache.add(article)
84 |                 DispatchQueue.main.async {
85 |                     completion(.success(article))
   |                     |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
   |                     `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
86 |                 }
87 |             } else {
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+Article.swift:85:41: warning: sending 'article' risks causing data races; this is an error in the Swift 6 language mode
83 |                 self.articleCache.add(article)
84 |                 DispatchQueue.main.async {
85 |                     completion(.success(article))
   |                                         |- warning: sending 'article' risks causing data races; this is an error in the Swift 6 language mode
   |                                         `- note: task-isolated 'article' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
86 |                 }
87 |             } else {
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+Article.swift:89:21: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
87 |             } else {
88 |                 DispatchQueue.main.async {
89 |                     completion(.failure(.decodingError))
   |                     |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
   |                     `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
90 |                 }
91 |             }
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+Article.swift:77:21: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
75 |             guard let jsonDictionary = jsonDictionary  else {
76 |                 DispatchQueue.main.async {
77 |                     completion (.failure(.decodingError))
   |                     |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
   |                     `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
78 |                 }
79 |                 return
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+Article.swift:70:21: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
68 |             guard error == nil else {
69 |                 DispatchQueue.main.async {
70 |                     completion (.failure(error!))
   |                     |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
   |                     `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
71 |                 }
72 |                 return
/Users/admin/builder/spi-builder-workspace/Sources/WikipediaNetworking.swift:37:23: warning: static property 'appAuthorEmailForAPI' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 35 | public class WikipediaNetworking {
 36 |
 37 |     public static var appAuthorEmailForAPI = ""
    |                       |- warning: static property 'appAuthorEmailForAPI' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'appAuthorEmailForAPI' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'appAuthorEmailForAPI' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 38 |
 39 |     public static let shared: WikipediaNetworking = {
[25/31] Compiling WikipediaKit Wikipedia+Article.swift
/Users/admin/builder/spi-builder-workspace/Sources/WikipediaNetworking.swift:39:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'WikipediaNetworking' may have shared mutable state; this is an error in the Swift 6 language mode
 33 | #endif
 34 |
 35 | public class WikipediaNetworking {
    |              `- note: class 'WikipediaNetworking' does not conform to the 'Sendable' protocol
 36 |
 37 |     public static var appAuthorEmailForAPI = ""
 38 |
 39 |     public static let shared: WikipediaNetworking = {
    |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'WikipediaNetworking' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 40 |         return WikipediaNetworking()
 41 |     }()
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+Article.swift:47:17: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
45 |         if let cachedArticle = self.articleCache.get(language: language, title: title) {
46 |             DispatchQueue.main.async {
47 |                 completion(.success(cachedArticle))
   |                 |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
   |                 `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
48 |             }
49 |             return nil
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+Article.swift:47:37: warning: sending 'cachedArticle' risks causing data races; this is an error in the Swift 6 language mode
45 |         if let cachedArticle = self.articleCache.get(language: language, title: title) {
46 |             DispatchQueue.main.async {
47 |                 completion(.success(cachedArticle))
   |                                     |- warning: sending 'cachedArticle' risks causing data races; this is an error in the Swift 6 language mode
   |                                     `- note: task-isolated 'cachedArticle' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
48 |             }
49 |             return nil
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+Article.swift:59:21: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
57 |             else {
58 |                 DispatchQueue.main.async {
59 |                     completion(.failure(.other(nil)))
   |                     |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
   |                     `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
60 |                 }
61 |                 return nil
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+Article.swift:85:21: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
83 |                 self.articleCache.add(article)
84 |                 DispatchQueue.main.async {
85 |                     completion(.success(article))
   |                     |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
   |                     `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
86 |                 }
87 |             } else {
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+Article.swift:85:41: warning: sending 'article' risks causing data races; this is an error in the Swift 6 language mode
83 |                 self.articleCache.add(article)
84 |                 DispatchQueue.main.async {
85 |                     completion(.success(article))
   |                                         |- warning: sending 'article' risks causing data races; this is an error in the Swift 6 language mode
   |                                         `- note: task-isolated 'article' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
86 |                 }
87 |             } else {
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+Article.swift:89:21: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
87 |             } else {
88 |                 DispatchQueue.main.async {
89 |                     completion(.failure(.decodingError))
   |                     |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
   |                     `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
90 |                 }
91 |             }
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+Article.swift:77:21: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
75 |             guard let jsonDictionary = jsonDictionary  else {
76 |                 DispatchQueue.main.async {
77 |                     completion (.failure(.decodingError))
   |                     |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
   |                     `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
78 |                 }
79 |                 return
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+Article.swift:70:21: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
68 |             guard error == nil else {
69 |                 DispatchQueue.main.async {
70 |                     completion (.failure(error!))
   |                     |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
   |                     `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
71 |                 }
72 |                 return
/Users/admin/builder/spi-builder-workspace/Sources/WikipediaNetworking.swift:37:23: warning: static property 'appAuthorEmailForAPI' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 35 | public class WikipediaNetworking {
 36 |
 37 |     public static var appAuthorEmailForAPI = ""
    |                       |- warning: static property 'appAuthorEmailForAPI' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'appAuthorEmailForAPI' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'appAuthorEmailForAPI' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 38 |
 39 |     public static let shared: WikipediaNetworking = {
[26/31] Compiling WikipediaKit Wikipedia+Languages.swift
/Users/admin/builder/spi-builder-workspace/Sources/WikipediaLanguage.swift:103:23: warning: static property 'systemLanguage' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
101 |     }()
102 |
103 |     public static var systemLanguage: WikipediaLanguage = {
    |                       |- warning: static property 'systemLanguage' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'systemLanguage' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'systemLanguage' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
104 |         return WikipediaLanguage(systemLanguageCode)
105 |     }()
/Users/admin/builder/spi-builder-workspace/Sources/WikipediaNetworking.swift:39:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'WikipediaNetworking' may have shared mutable state; this is an error in the Swift 6 language mode
 33 | #endif
 34 |
 35 | public class WikipediaNetworking {
    |              `- note: class 'WikipediaNetworking' does not conform to the 'Sendable' protocol
 36 |
 37 |     public static var appAuthorEmailForAPI = ""
 38 |
 39 |     public static let shared: WikipediaNetworking = {
    |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'WikipediaNetworking' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 40 |         return WikipediaNetworking()
 41 |     }()
/Users/admin/builder/spi-builder-workspace/Sources/WikipediaRandomArticlesBuffer.swift:34:16: warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
32 | class WikipediaRandomArticlesBuffer {
33 |
34 |     static var shared: WikipediaRandomArticlesBuffer = {
   |                |- warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'shared' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
35 |         return WikipediaRandomArticlesBuffer()
36 |     }()
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia.swift:42:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Wikipedia' may have shared mutable state; this is an error in the Swift 6 language mode
35 | typealias JSONDictionary = [String:AnyObject]
36 |
37 | public class Wikipedia {
   |              `- note: class 'Wikipedia' does not conform to the 'Sendable' protocol
38 |
39 |     // Public initializer is required if we don’t use the shared singleton
40 |     public init() {}
41 |
42 |     public static let shared: Wikipedia = {
   |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Wikipedia' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
43 |         return Wikipedia()
44 |     }()
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+Languages.swift:64:21: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
 62 |             else {
 63 |                 DispatchQueue.main.async {
 64 |                     completion(article, .other(nil))
    |                     |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
    |                     `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 65 |                 }
 66 |                 return nil
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+Languages.swift:64:32: warning: sending 'article' risks causing data races; this is an error in the Swift 6 language mode
 62 |             else {
 63 |                 DispatchQueue.main.async {
 64 |                     completion(article, .other(nil))
    |                                |- warning: sending 'article' risks causing data races; this is an error in the Swift 6 language mode
    |                                `- note: task-isolated 'article' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 65 |                 }
 66 |                 return nil
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+Languages.swift:45:21: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
 43 |               else {
 44 |                 DispatchQueue.main.async {
 45 |                     completion(article, nil)
    |                     |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
    |                     `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 46 |                 }
 47 |                 return nil
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+Languages.swift:45:32: warning: sending 'article' risks causing data races; this is an error in the Swift 6 language mode
 43 |               else {
 44 |                 DispatchQueue.main.async {
 45 |                     completion(article, nil)
    |                                |- warning: sending 'article' risks causing data races; this is an error in the Swift 6 language mode
    |                                `- note: task-isolated 'article' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 46 |                 }
 47 |                 return nil
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+Languages.swift:97:17: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
 95 |             article.languageLinks = languages
 96 |             DispatchQueue.main.async {
 97 |                 completion(article, error)
    |                 |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
    |                 `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 98 |             }
 99 |         }
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+Languages.swift:97:28: warning: sending 'article' risks causing data races; this is an error in the Swift 6 language mode
 95 |             article.languageLinks = languages
 96 |             DispatchQueue.main.async {
 97 |                 completion(article, error)
    |                            |- warning: sending 'article' risks causing data races; this is an error in the Swift 6 language mode
    |                            `- note: task-isolated 'article' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 98 |             }
 99 |         }
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+Languages.swift:90:25: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
 88 |                 else {
 89 |                     DispatchQueue.main.async {
 90 |                         completion (article, .decodingError)
    |                         |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
    |                         `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 91 |                     }
 92 |                     return
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+Languages.swift:90:37: warning: sending 'article' risks causing data races; this is an error in the Swift 6 language mode
 88 |                 else {
 89 |                     DispatchQueue.main.async {
 90 |                         completion (article, .decodingError)
    |                                     |- warning: sending 'article' risks causing data races; this is an error in the Swift 6 language mode
    |                                     `- note: task-isolated 'article' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 91 |                     }
 92 |                     return
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+Languages.swift:81:21: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
 79 |             guard let jsonDictionary = jsonDictionary  else {
 80 |                 DispatchQueue.main.async {
 81 |                     completion (article, .decodingError)
    |                     |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
    |                     `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 82 |                 }
 83 |                 return
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+Languages.swift:81:33: warning: sending 'article' risks causing data races; this is an error in the Swift 6 language mode
 79 |             guard let jsonDictionary = jsonDictionary  else {
 80 |                 DispatchQueue.main.async {
 81 |                     completion (article, .decodingError)
    |                                 |- warning: sending 'article' risks causing data races; this is an error in the Swift 6 language mode
    |                                 `- note: task-isolated 'article' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 82 |                 }
 83 |                 return
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+Languages.swift:74:21: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
 72 |                 // (also occurs when the request was cancelled programmatically)
 73 |                 DispatchQueue.main.async {
 74 |                     completion (article, error)
    |                     |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
    |                     `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 75 |                 }
 76 |                 return
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+Languages.swift:74:33: warning: sending 'article' risks causing data races; this is an error in the Swift 6 language mode
 72 |                 // (also occurs when the request was cancelled programmatically)
 73 |                 DispatchQueue.main.async {
 74 |                     completion (article, error)
    |                                 |- warning: sending 'article' risks causing data races; this is an error in the Swift 6 language mode
    |                                 `- note: task-isolated 'article' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 75 |                 }
 76 |                 return
/Users/admin/builder/spi-builder-workspace/Sources/WikipediaNetworking.swift:37:23: warning: static property 'appAuthorEmailForAPI' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 35 | public class WikipediaNetworking {
 36 |
 37 |     public static var appAuthorEmailForAPI = ""
    |                       |- warning: static property 'appAuthorEmailForAPI' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'appAuthorEmailForAPI' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'appAuthorEmailForAPI' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 38 |
 39 |     public static let shared: WikipediaNetworking = {
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:88:25: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
 86 |                 else {
 87 |                     DispatchQueue.main.async {
 88 |                         completion(nil, language, .other(nil))
    |                         |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
    |                         `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 89 |                     }
 90 |                     return nil
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:88:41: warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
 86 |                 else {
 87 |                     DispatchQueue.main.async {
 88 |                         completion(nil, language, .other(nil))
    |                                         |- warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
    |                                         `- note: task-isolated 'language' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 89 |                     }
 90 |                     return nil
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:123:25: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
121 |                     let info = error["info"] as? String {
122 |                     DispatchQueue.main.async {
123 |                         completion (nil, language, .apiError(info))
    |                         |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
    |                         `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
124 |                     }
125 |                     return
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:123:42: warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
121 |                     let info = error["info"] as? String {
122 |                     DispatchQueue.main.async {
123 |                         completion (nil, language, .apiError(info))
    |                                          |- warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
    |                                          `- note: task-isolated 'language' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
124 |                     }
125 |                     return
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:156:21: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
154 |
155 |                 DispatchQueue.main.async {
156 |                     completion(results, language, error)
    |                     |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
    |                     `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
157 |                 }
158 |
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:156:32: warning: sending 'results' risks causing data races; this is an error in the Swift 6 language mode
154 |
155 |                 DispatchQueue.main.async {
156 |                     completion(results, language, error)
    |                                |- warning: sending 'results' risks causing data races; this is an error in the Swift 6 language mode
    |                                `- note: task-isolated 'results' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
157 |                 }
158 |
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:156:41: warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
154 |
155 |                 DispatchQueue.main.async {
156 |                     completion(results, language, error)
    |                                         |- warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
    |                                         `- note: task-isolated 'language' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
157 |                 }
158 |
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:130:25: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
128 |                 guard let pages = query["pages"] as? [JSONDictionary] else {
129 |                     DispatchQueue.main.async {
130 |                         completion (nil, language, .notFound)
    |                         |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
    |                         `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
131 |                     }
132 |                     return
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:130:42: warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
128 |                 guard let pages = query["pages"] as? [JSONDictionary] else {
129 |                     DispatchQueue.main.async {
130 |                         completion (nil, language, .notFound)
    |                                          |- warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
    |                                          `- note: task-isolated 'language' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
131 |                     }
132 |                     return
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:115:25: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
113 |                         // there is no “query” key,
114 |                         // but unfortunately no error message either
115 |                         completion (nil, language, .notFound)
    |                         |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
    |                         `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
116 |                     }
117 |                     return
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:115:42: warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
113 |                         // there is no “query” key,
114 |                         // but unfortunately no error message either
115 |                         completion (nil, language, .notFound)
    |                                          |- warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
    |                                          `- note: task-isolated 'language' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
116 |                     }
117 |                     return
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:105:25: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
103 |                 guard let jsonDictionary = jsonDictionary else {
104 |                     DispatchQueue.main.async {
105 |                         completion (nil, language, .decodingError)
    |                         |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
    |                         `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
106 |                     }
107 |                     return
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:105:42: warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
103 |                 guard let jsonDictionary = jsonDictionary else {
104 |                     DispatchQueue.main.async {
105 |                         completion (nil, language, .decodingError)
    |                                          |- warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
    |                                          `- note: task-isolated 'language' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
106 |                     }
107 |                     return
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:98:25: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
 96 |                     // (also occurs when the request was cancelled programmatically)
 97 |                     DispatchQueue.main.async {
 98 |                         completion (nil, language, error)
    |                         |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
    |                         `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 99 |                     }
100 |                     return
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:98:42: warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
 96 |                     // (also occurs when the request was cancelled programmatically)
 97 |                     DispatchQueue.main.async {
 98 |                         completion (nil, language, error)
    |                                          |- warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
    |                                          `- note: task-isolated 'language' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 99 |                     }
100 |                     return
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+RandomArticles.swift:110:21: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
108 |             else {
109 |                 DispatchQueue.main.async {
110 |                     completion(nil, language, .other(nil))
    |                     |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
    |                     `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
111 |                 }
112 |                 return nil
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+RandomArticles.swift:110:37: warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
108 |             else {
109 |                 DispatchQueue.main.async {
110 |                     completion(nil, language, .other(nil))
    |                                     |- warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
    |                                     `- note: task-isolated 'language' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
111 |                 }
112 |                 return nil
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+RandomArticles.swift:61:21: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
 59 |                 let articlePreview = WikipediaRandomArticlesBuffer.shared.nextArticlePreview()
 60 |                 DispatchQueue.main.async {
 61 |                     completion(articlePreview, language, error)
    |                     |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
    |                     `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 62 |                 }
 63 |             }
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+RandomArticles.swift:61:48: warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
 59 |                 let articlePreview = WikipediaRandomArticlesBuffer.shared.nextArticlePreview()
 60 |                 DispatchQueue.main.async {
 61 |                     completion(articlePreview, language, error)
    |                                                |- warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
    |                                                `- note: task-isolated 'language' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 62 |                 }
 63 |             }
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+RandomArticles.swift:52:25: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
 50 |                 guard let articlePreviews = articlePreviews else {
 51 |                     DispatchQueue.main.async {
 52 |                         completion(nil, language, error)
    |                         |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
    |                         `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 53 |                     }
 54 |                     return
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+RandomArticles.swift:52:41: warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
 50 |                 guard let articlePreviews = articlePreviews else {
 51 |                     DispatchQueue.main.async {
 52 |                         completion(nil, language, error)
    |                                         |- warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
    |                                         `- note: task-isolated 'language' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 53 |                     }
 54 |                     return
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+RandomArticles.swift:145:21: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
143 |                 let info = error["info"] as? String {
144 |                 DispatchQueue.main.async {
145 |                     completion (nil, language, .apiError(info))
    |                     |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
    |                     `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
146 |                 }
147 |                 return
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+RandomArticles.swift:145:38: warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
143 |                 let info = error["info"] as? String {
144 |                 DispatchQueue.main.async {
145 |                     completion (nil, language, .apiError(info))
    |                                      |- warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
    |                                      `- note: task-isolated 'language' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
146 |                 }
147 |                 return
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+RandomArticles.swift:166:17: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
164 |
165 |             DispatchQueue.main.async {
166 |                 completion(results, language, error)
    |                 |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
    |                 `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
167 |             }
168 |         }
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+RandomArticles.swift:166:28: warning: sending 'results' risks causing data races; this is an error in the Swift 6 language mode
164 |
165 |             DispatchQueue.main.async {
166 |                 completion(results, language, error)
    |                            |- warning: sending 'results' risks causing data races; this is an error in the Swift 6 language mode
    |                            `- note: task-isolated 'results' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
167 |             }
168 |         }
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+RandomArticles.swift:166:37: warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
164 |
165 |             DispatchQueue.main.async {
166 |                 completion(results, language, error)
    |                                     |- warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
    |                                     `- note: task-isolated 'language' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
167 |             }
168 |         }
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+RandomArticles.swift:152:21: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
150 |             guard let pages = query["pages"] as? [JSONDictionary] else {
151 |                 DispatchQueue.main.async {
152 |                     completion (nil, language, .notFound)
    |                     |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
    |                     `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
153 |                 }
154 |                 return
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+RandomArticles.swift:152:38: warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
150 |             guard let pages = query["pages"] as? [JSONDictionary] else {
151 |                 DispatchQueue.main.async {
152 |                     completion (nil, language, .notFound)
    |                                      |- warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
    |                                      `- note: task-isolated 'language' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
153 |                 }
154 |                 return
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+RandomArticles.swift:137:21: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
135 |                     // there is no “query” key,
136 |                     // but unfortunately no error message either
137 |                     completion (nil, language, .notFound)
    |                     |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
    |                     `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
138 |                 }
139 |                 return
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+RandomArticles.swift:137:38: warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
135 |                     // there is no “query” key,
136 |                     // but unfortunately no error message either
137 |                     completion (nil, language, .notFound)
    |                                      |- warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
    |                                      `- note: task-isolated 'language' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
138 |                 }
139 |                 return
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+RandomArticles.swift:127:21: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
125 |             guard let jsonDictionary = jsonDictionary else {
126 |                 DispatchQueue.main.async {
127 |                     completion (nil, language, .decodingError)
    |                     |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
    |                     `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
128 |                 }
129 |                 return
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+RandomArticles.swift:127:38: warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
125 |             guard let jsonDictionary = jsonDictionary else {
126 |                 DispatchQueue.main.async {
127 |                     completion (nil, language, .decodingError)
    |                                      |- warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
    |                                      `- note: task-isolated 'language' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
128 |                 }
129 |                 return
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+RandomArticles.swift:120:21: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
118 |                 // (also occurs when the request was cancelled programmatically)
119 |                 DispatchQueue.main.async {
120 |                     completion (nil, language, error)
    |                     |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
    |                     `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
121 |                 }
122 |                 return
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+RandomArticles.swift:120:38: warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
118 |                 // (also occurs when the request was cancelled programmatically)
119 |                 DispatchQueue.main.async {
120 |                     completion (nil, language, error)
    |                                      |- warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
    |                                      `- note: task-isolated 'language' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
121 |                 }
122 |                 return
[27/31] Compiling WikipediaKit Wikipedia+NearbySearch.swift
/Users/admin/builder/spi-builder-workspace/Sources/WikipediaLanguage.swift:103:23: warning: static property 'systemLanguage' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
101 |     }()
102 |
103 |     public static var systemLanguage: WikipediaLanguage = {
    |                       |- warning: static property 'systemLanguage' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'systemLanguage' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'systemLanguage' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
104 |         return WikipediaLanguage(systemLanguageCode)
105 |     }()
/Users/admin/builder/spi-builder-workspace/Sources/WikipediaNetworking.swift:39:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'WikipediaNetworking' may have shared mutable state; this is an error in the Swift 6 language mode
 33 | #endif
 34 |
 35 | public class WikipediaNetworking {
    |              `- note: class 'WikipediaNetworking' does not conform to the 'Sendable' protocol
 36 |
 37 |     public static var appAuthorEmailForAPI = ""
 38 |
 39 |     public static let shared: WikipediaNetworking = {
    |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'WikipediaNetworking' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 40 |         return WikipediaNetworking()
 41 |     }()
/Users/admin/builder/spi-builder-workspace/Sources/WikipediaRandomArticlesBuffer.swift:34:16: warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
32 | class WikipediaRandomArticlesBuffer {
33 |
34 |     static var shared: WikipediaRandomArticlesBuffer = {
   |                |- warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'shared' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
35 |         return WikipediaRandomArticlesBuffer()
36 |     }()
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia.swift:42:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Wikipedia' may have shared mutable state; this is an error in the Swift 6 language mode
35 | typealias JSONDictionary = [String:AnyObject]
36 |
37 | public class Wikipedia {
   |              `- note: class 'Wikipedia' does not conform to the 'Sendable' protocol
38 |
39 |     // Public initializer is required if we don’t use the shared singleton
40 |     public init() {}
41 |
42 |     public static let shared: Wikipedia = {
   |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Wikipedia' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
43 |         return Wikipedia()
44 |     }()
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+Languages.swift:64:21: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
 62 |             else {
 63 |                 DispatchQueue.main.async {
 64 |                     completion(article, .other(nil))
    |                     |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
    |                     `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 65 |                 }
 66 |                 return nil
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+Languages.swift:64:32: warning: sending 'article' risks causing data races; this is an error in the Swift 6 language mode
 62 |             else {
 63 |                 DispatchQueue.main.async {
 64 |                     completion(article, .other(nil))
    |                                |- warning: sending 'article' risks causing data races; this is an error in the Swift 6 language mode
    |                                `- note: task-isolated 'article' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 65 |                 }
 66 |                 return nil
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+Languages.swift:45:21: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
 43 |               else {
 44 |                 DispatchQueue.main.async {
 45 |                     completion(article, nil)
    |                     |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
    |                     `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 46 |                 }
 47 |                 return nil
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+Languages.swift:45:32: warning: sending 'article' risks causing data races; this is an error in the Swift 6 language mode
 43 |               else {
 44 |                 DispatchQueue.main.async {
 45 |                     completion(article, nil)
    |                                |- warning: sending 'article' risks causing data races; this is an error in the Swift 6 language mode
    |                                `- note: task-isolated 'article' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 46 |                 }
 47 |                 return nil
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+Languages.swift:97:17: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
 95 |             article.languageLinks = languages
 96 |             DispatchQueue.main.async {
 97 |                 completion(article, error)
    |                 |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
    |                 `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 98 |             }
 99 |         }
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+Languages.swift:97:28: warning: sending 'article' risks causing data races; this is an error in the Swift 6 language mode
 95 |             article.languageLinks = languages
 96 |             DispatchQueue.main.async {
 97 |                 completion(article, error)
    |                            |- warning: sending 'article' risks causing data races; this is an error in the Swift 6 language mode
    |                            `- note: task-isolated 'article' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 98 |             }
 99 |         }
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+Languages.swift:90:25: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
 88 |                 else {
 89 |                     DispatchQueue.main.async {
 90 |                         completion (article, .decodingError)
    |                         |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
    |                         `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 91 |                     }
 92 |                     return
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+Languages.swift:90:37: warning: sending 'article' risks causing data races; this is an error in the Swift 6 language mode
 88 |                 else {
 89 |                     DispatchQueue.main.async {
 90 |                         completion (article, .decodingError)
    |                                     |- warning: sending 'article' risks causing data races; this is an error in the Swift 6 language mode
    |                                     `- note: task-isolated 'article' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 91 |                     }
 92 |                     return
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+Languages.swift:81:21: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
 79 |             guard let jsonDictionary = jsonDictionary  else {
 80 |                 DispatchQueue.main.async {
 81 |                     completion (article, .decodingError)
    |                     |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
    |                     `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 82 |                 }
 83 |                 return
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+Languages.swift:81:33: warning: sending 'article' risks causing data races; this is an error in the Swift 6 language mode
 79 |             guard let jsonDictionary = jsonDictionary  else {
 80 |                 DispatchQueue.main.async {
 81 |                     completion (article, .decodingError)
    |                                 |- warning: sending 'article' risks causing data races; this is an error in the Swift 6 language mode
    |                                 `- note: task-isolated 'article' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 82 |                 }
 83 |                 return
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+Languages.swift:74:21: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
 72 |                 // (also occurs when the request was cancelled programmatically)
 73 |                 DispatchQueue.main.async {
 74 |                     completion (article, error)
    |                     |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
    |                     `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 75 |                 }
 76 |                 return
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+Languages.swift:74:33: warning: sending 'article' risks causing data races; this is an error in the Swift 6 language mode
 72 |                 // (also occurs when the request was cancelled programmatically)
 73 |                 DispatchQueue.main.async {
 74 |                     completion (article, error)
    |                                 |- warning: sending 'article' risks causing data races; this is an error in the Swift 6 language mode
    |                                 `- note: task-isolated 'article' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 75 |                 }
 76 |                 return
/Users/admin/builder/spi-builder-workspace/Sources/WikipediaNetworking.swift:37:23: warning: static property 'appAuthorEmailForAPI' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 35 | public class WikipediaNetworking {
 36 |
 37 |     public static var appAuthorEmailForAPI = ""
    |                       |- warning: static property 'appAuthorEmailForAPI' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'appAuthorEmailForAPI' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'appAuthorEmailForAPI' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 38 |
 39 |     public static let shared: WikipediaNetworking = {
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:88:25: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
 86 |                 else {
 87 |                     DispatchQueue.main.async {
 88 |                         completion(nil, language, .other(nil))
    |                         |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
    |                         `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 89 |                     }
 90 |                     return nil
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:88:41: warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
 86 |                 else {
 87 |                     DispatchQueue.main.async {
 88 |                         completion(nil, language, .other(nil))
    |                                         |- warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
    |                                         `- note: task-isolated 'language' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 89 |                     }
 90 |                     return nil
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:123:25: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
121 |                     let info = error["info"] as? String {
122 |                     DispatchQueue.main.async {
123 |                         completion (nil, language, .apiError(info))
    |                         |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
    |                         `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
124 |                     }
125 |                     return
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:123:42: warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
121 |                     let info = error["info"] as? String {
122 |                     DispatchQueue.main.async {
123 |                         completion (nil, language, .apiError(info))
    |                                          |- warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
    |                                          `- note: task-isolated 'language' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
124 |                     }
125 |                     return
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:156:21: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
154 |
155 |                 DispatchQueue.main.async {
156 |                     completion(results, language, error)
    |                     |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
    |                     `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
157 |                 }
158 |
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:156:32: warning: sending 'results' risks causing data races; this is an error in the Swift 6 language mode
154 |
155 |                 DispatchQueue.main.async {
156 |                     completion(results, language, error)
    |                                |- warning: sending 'results' risks causing data races; this is an error in the Swift 6 language mode
    |                                `- note: task-isolated 'results' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
157 |                 }
158 |
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:156:41: warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
154 |
155 |                 DispatchQueue.main.async {
156 |                     completion(results, language, error)
    |                                         |- warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
    |                                         `- note: task-isolated 'language' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
157 |                 }
158 |
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:130:25: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
128 |                 guard let pages = query["pages"] as? [JSONDictionary] else {
129 |                     DispatchQueue.main.async {
130 |                         completion (nil, language, .notFound)
    |                         |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
    |                         `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
131 |                     }
132 |                     return
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:130:42: warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
128 |                 guard let pages = query["pages"] as? [JSONDictionary] else {
129 |                     DispatchQueue.main.async {
130 |                         completion (nil, language, .notFound)
    |                                          |- warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
    |                                          `- note: task-isolated 'language' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
131 |                     }
132 |                     return
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:115:25: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
113 |                         // there is no “query” key,
114 |                         // but unfortunately no error message either
115 |                         completion (nil, language, .notFound)
    |                         |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
    |                         `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
116 |                     }
117 |                     return
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:115:42: warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
113 |                         // there is no “query” key,
114 |                         // but unfortunately no error message either
115 |                         completion (nil, language, .notFound)
    |                                          |- warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
    |                                          `- note: task-isolated 'language' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
116 |                     }
117 |                     return
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:105:25: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
103 |                 guard let jsonDictionary = jsonDictionary else {
104 |                     DispatchQueue.main.async {
105 |                         completion (nil, language, .decodingError)
    |                         |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
    |                         `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
106 |                     }
107 |                     return
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:105:42: warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
103 |                 guard let jsonDictionary = jsonDictionary else {
104 |                     DispatchQueue.main.async {
105 |                         completion (nil, language, .decodingError)
    |                                          |- warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
    |                                          `- note: task-isolated 'language' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
106 |                     }
107 |                     return
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:98:25: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
 96 |                     // (also occurs when the request was cancelled programmatically)
 97 |                     DispatchQueue.main.async {
 98 |                         completion (nil, language, error)
    |                         |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
    |                         `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 99 |                     }
100 |                     return
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:98:42: warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
 96 |                     // (also occurs when the request was cancelled programmatically)
 97 |                     DispatchQueue.main.async {
 98 |                         completion (nil, language, error)
    |                                          |- warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
    |                                          `- note: task-isolated 'language' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 99 |                     }
100 |                     return
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+RandomArticles.swift:110:21: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
108 |             else {
109 |                 DispatchQueue.main.async {
110 |                     completion(nil, language, .other(nil))
    |                     |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
    |                     `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
111 |                 }
112 |                 return nil
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+RandomArticles.swift:110:37: warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
108 |             else {
109 |                 DispatchQueue.main.async {
110 |                     completion(nil, language, .other(nil))
    |                                     |- warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
    |                                     `- note: task-isolated 'language' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
111 |                 }
112 |                 return nil
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+RandomArticles.swift:61:21: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
 59 |                 let articlePreview = WikipediaRandomArticlesBuffer.shared.nextArticlePreview()
 60 |                 DispatchQueue.main.async {
 61 |                     completion(articlePreview, language, error)
    |                     |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
    |                     `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 62 |                 }
 63 |             }
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+RandomArticles.swift:61:48: warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
 59 |                 let articlePreview = WikipediaRandomArticlesBuffer.shared.nextArticlePreview()
 60 |                 DispatchQueue.main.async {
 61 |                     completion(articlePreview, language, error)
    |                                                |- warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
    |                                                `- note: task-isolated 'language' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 62 |                 }
 63 |             }
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+RandomArticles.swift:52:25: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
 50 |                 guard let articlePreviews = articlePreviews else {
 51 |                     DispatchQueue.main.async {
 52 |                         completion(nil, language, error)
    |                         |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
    |                         `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 53 |                     }
 54 |                     return
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+RandomArticles.swift:52:41: warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
 50 |                 guard let articlePreviews = articlePreviews else {
 51 |                     DispatchQueue.main.async {
 52 |                         completion(nil, language, error)
    |                                         |- warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
    |                                         `- note: task-isolated 'language' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 53 |                     }
 54 |                     return
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+RandomArticles.swift:145:21: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
143 |                 let info = error["info"] as? String {
144 |                 DispatchQueue.main.async {
145 |                     completion (nil, language, .apiError(info))
    |                     |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
    |                     `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
146 |                 }
147 |                 return
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+RandomArticles.swift:145:38: warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
143 |                 let info = error["info"] as? String {
144 |                 DispatchQueue.main.async {
145 |                     completion (nil, language, .apiError(info))
    |                                      |- warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
    |                                      `- note: task-isolated 'language' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
146 |                 }
147 |                 return
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+RandomArticles.swift:166:17: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
164 |
165 |             DispatchQueue.main.async {
166 |                 completion(results, language, error)
    |                 |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
    |                 `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
167 |             }
168 |         }
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+RandomArticles.swift:166:28: warning: sending 'results' risks causing data races; this is an error in the Swift 6 language mode
164 |
165 |             DispatchQueue.main.async {
166 |                 completion(results, language, error)
    |                            |- warning: sending 'results' risks causing data races; this is an error in the Swift 6 language mode
    |                            `- note: task-isolated 'results' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
167 |             }
168 |         }
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+RandomArticles.swift:166:37: warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
164 |
165 |             DispatchQueue.main.async {
166 |                 completion(results, language, error)
    |                                     |- warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
    |                                     `- note: task-isolated 'language' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
167 |             }
168 |         }
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+RandomArticles.swift:152:21: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
150 |             guard let pages = query["pages"] as? [JSONDictionary] else {
151 |                 DispatchQueue.main.async {
152 |                     completion (nil, language, .notFound)
    |                     |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
    |                     `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
153 |                 }
154 |                 return
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+RandomArticles.swift:152:38: warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
150 |             guard let pages = query["pages"] as? [JSONDictionary] else {
151 |                 DispatchQueue.main.async {
152 |                     completion (nil, language, .notFound)
    |                                      |- warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
    |                                      `- note: task-isolated 'language' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
153 |                 }
154 |                 return
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+RandomArticles.swift:137:21: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
135 |                     // there is no “query” key,
136 |                     // but unfortunately no error message either
137 |                     completion (nil, language, .notFound)
    |                     |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
    |                     `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
138 |                 }
139 |                 return
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+RandomArticles.swift:137:38: warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
135 |                     // there is no “query” key,
136 |                     // but unfortunately no error message either
137 |                     completion (nil, language, .notFound)
    |                                      |- warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
    |                                      `- note: task-isolated 'language' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
138 |                 }
139 |                 return
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+RandomArticles.swift:127:21: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
125 |             guard let jsonDictionary = jsonDictionary else {
126 |                 DispatchQueue.main.async {
127 |                     completion (nil, language, .decodingError)
    |                     |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
    |                     `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
128 |                 }
129 |                 return
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+RandomArticles.swift:127:38: warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
125 |             guard let jsonDictionary = jsonDictionary else {
126 |                 DispatchQueue.main.async {
127 |                     completion (nil, language, .decodingError)
    |                                      |- warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
    |                                      `- note: task-isolated 'language' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
128 |                 }
129 |                 return
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+RandomArticles.swift:120:21: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
118 |                 // (also occurs when the request was cancelled programmatically)
119 |                 DispatchQueue.main.async {
120 |                     completion (nil, language, error)
    |                     |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
    |                     `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
121 |                 }
122 |                 return
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+RandomArticles.swift:120:38: warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
118 |                 // (also occurs when the request was cancelled programmatically)
119 |                 DispatchQueue.main.async {
120 |                     completion (nil, language, error)
    |                                      |- warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
    |                                      `- note: task-isolated 'language' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
121 |                 }
122 |                 return
[28/31] Compiling WikipediaKit Wikipedia+RandomArticles.swift
/Users/admin/builder/spi-builder-workspace/Sources/WikipediaLanguage.swift:103:23: warning: static property 'systemLanguage' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
101 |     }()
102 |
103 |     public static var systemLanguage: WikipediaLanguage = {
    |                       |- warning: static property 'systemLanguage' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'systemLanguage' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'systemLanguage' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
104 |         return WikipediaLanguage(systemLanguageCode)
105 |     }()
/Users/admin/builder/spi-builder-workspace/Sources/WikipediaNetworking.swift:39:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'WikipediaNetworking' may have shared mutable state; this is an error in the Swift 6 language mode
 33 | #endif
 34 |
 35 | public class WikipediaNetworking {
    |              `- note: class 'WikipediaNetworking' does not conform to the 'Sendable' protocol
 36 |
 37 |     public static var appAuthorEmailForAPI = ""
 38 |
 39 |     public static let shared: WikipediaNetworking = {
    |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'WikipediaNetworking' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 40 |         return WikipediaNetworking()
 41 |     }()
/Users/admin/builder/spi-builder-workspace/Sources/WikipediaRandomArticlesBuffer.swift:34:16: warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
32 | class WikipediaRandomArticlesBuffer {
33 |
34 |     static var shared: WikipediaRandomArticlesBuffer = {
   |                |- warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'shared' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
35 |         return WikipediaRandomArticlesBuffer()
36 |     }()
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia.swift:42:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Wikipedia' may have shared mutable state; this is an error in the Swift 6 language mode
35 | typealias JSONDictionary = [String:AnyObject]
36 |
37 | public class Wikipedia {
   |              `- note: class 'Wikipedia' does not conform to the 'Sendable' protocol
38 |
39 |     // Public initializer is required if we don’t use the shared singleton
40 |     public init() {}
41 |
42 |     public static let shared: Wikipedia = {
   |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Wikipedia' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
43 |         return Wikipedia()
44 |     }()
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+Languages.swift:64:21: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
 62 |             else {
 63 |                 DispatchQueue.main.async {
 64 |                     completion(article, .other(nil))
    |                     |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
    |                     `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 65 |                 }
 66 |                 return nil
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+Languages.swift:64:32: warning: sending 'article' risks causing data races; this is an error in the Swift 6 language mode
 62 |             else {
 63 |                 DispatchQueue.main.async {
 64 |                     completion(article, .other(nil))
    |                                |- warning: sending 'article' risks causing data races; this is an error in the Swift 6 language mode
    |                                `- note: task-isolated 'article' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 65 |                 }
 66 |                 return nil
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+Languages.swift:45:21: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
 43 |               else {
 44 |                 DispatchQueue.main.async {
 45 |                     completion(article, nil)
    |                     |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
    |                     `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 46 |                 }
 47 |                 return nil
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+Languages.swift:45:32: warning: sending 'article' risks causing data races; this is an error in the Swift 6 language mode
 43 |               else {
 44 |                 DispatchQueue.main.async {
 45 |                     completion(article, nil)
    |                                |- warning: sending 'article' risks causing data races; this is an error in the Swift 6 language mode
    |                                `- note: task-isolated 'article' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 46 |                 }
 47 |                 return nil
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+Languages.swift:97:17: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
 95 |             article.languageLinks = languages
 96 |             DispatchQueue.main.async {
 97 |                 completion(article, error)
    |                 |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
    |                 `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 98 |             }
 99 |         }
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+Languages.swift:97:28: warning: sending 'article' risks causing data races; this is an error in the Swift 6 language mode
 95 |             article.languageLinks = languages
 96 |             DispatchQueue.main.async {
 97 |                 completion(article, error)
    |                            |- warning: sending 'article' risks causing data races; this is an error in the Swift 6 language mode
    |                            `- note: task-isolated 'article' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 98 |             }
 99 |         }
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+Languages.swift:90:25: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
 88 |                 else {
 89 |                     DispatchQueue.main.async {
 90 |                         completion (article, .decodingError)
    |                         |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
    |                         `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 91 |                     }
 92 |                     return
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+Languages.swift:90:37: warning: sending 'article' risks causing data races; this is an error in the Swift 6 language mode
 88 |                 else {
 89 |                     DispatchQueue.main.async {
 90 |                         completion (article, .decodingError)
    |                                     |- warning: sending 'article' risks causing data races; this is an error in the Swift 6 language mode
    |                                     `- note: task-isolated 'article' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 91 |                     }
 92 |                     return
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+Languages.swift:81:21: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
 79 |             guard let jsonDictionary = jsonDictionary  else {
 80 |                 DispatchQueue.main.async {
 81 |                     completion (article, .decodingError)
    |                     |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
    |                     `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 82 |                 }
 83 |                 return
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+Languages.swift:81:33: warning: sending 'article' risks causing data races; this is an error in the Swift 6 language mode
 79 |             guard let jsonDictionary = jsonDictionary  else {
 80 |                 DispatchQueue.main.async {
 81 |                     completion (article, .decodingError)
    |                                 |- warning: sending 'article' risks causing data races; this is an error in the Swift 6 language mode
    |                                 `- note: task-isolated 'article' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 82 |                 }
 83 |                 return
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+Languages.swift:74:21: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
 72 |                 // (also occurs when the request was cancelled programmatically)
 73 |                 DispatchQueue.main.async {
 74 |                     completion (article, error)
    |                     |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
    |                     `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 75 |                 }
 76 |                 return
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+Languages.swift:74:33: warning: sending 'article' risks causing data races; this is an error in the Swift 6 language mode
 72 |                 // (also occurs when the request was cancelled programmatically)
 73 |                 DispatchQueue.main.async {
 74 |                     completion (article, error)
    |                                 |- warning: sending 'article' risks causing data races; this is an error in the Swift 6 language mode
    |                                 `- note: task-isolated 'article' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 75 |                 }
 76 |                 return
/Users/admin/builder/spi-builder-workspace/Sources/WikipediaNetworking.swift:37:23: warning: static property 'appAuthorEmailForAPI' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 35 | public class WikipediaNetworking {
 36 |
 37 |     public static var appAuthorEmailForAPI = ""
    |                       |- warning: static property 'appAuthorEmailForAPI' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'appAuthorEmailForAPI' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'appAuthorEmailForAPI' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 38 |
 39 |     public static let shared: WikipediaNetworking = {
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:88:25: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
 86 |                 else {
 87 |                     DispatchQueue.main.async {
 88 |                         completion(nil, language, .other(nil))
    |                         |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
    |                         `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 89 |                     }
 90 |                     return nil
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:88:41: warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
 86 |                 else {
 87 |                     DispatchQueue.main.async {
 88 |                         completion(nil, language, .other(nil))
    |                                         |- warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
    |                                         `- note: task-isolated 'language' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 89 |                     }
 90 |                     return nil
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:123:25: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
121 |                     let info = error["info"] as? String {
122 |                     DispatchQueue.main.async {
123 |                         completion (nil, language, .apiError(info))
    |                         |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
    |                         `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
124 |                     }
125 |                     return
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:123:42: warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
121 |                     let info = error["info"] as? String {
122 |                     DispatchQueue.main.async {
123 |                         completion (nil, language, .apiError(info))
    |                                          |- warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
    |                                          `- note: task-isolated 'language' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
124 |                     }
125 |                     return
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:156:21: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
154 |
155 |                 DispatchQueue.main.async {
156 |                     completion(results, language, error)
    |                     |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
    |                     `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
157 |                 }
158 |
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:156:32: warning: sending 'results' risks causing data races; this is an error in the Swift 6 language mode
154 |
155 |                 DispatchQueue.main.async {
156 |                     completion(results, language, error)
    |                                |- warning: sending 'results' risks causing data races; this is an error in the Swift 6 language mode
    |                                `- note: task-isolated 'results' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
157 |                 }
158 |
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:156:41: warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
154 |
155 |                 DispatchQueue.main.async {
156 |                     completion(results, language, error)
    |                                         |- warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
    |                                         `- note: task-isolated 'language' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
157 |                 }
158 |
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:130:25: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
128 |                 guard let pages = query["pages"] as? [JSONDictionary] else {
129 |                     DispatchQueue.main.async {
130 |                         completion (nil, language, .notFound)
    |                         |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
    |                         `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
131 |                     }
132 |                     return
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:130:42: warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
128 |                 guard let pages = query["pages"] as? [JSONDictionary] else {
129 |                     DispatchQueue.main.async {
130 |                         completion (nil, language, .notFound)
    |                                          |- warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
    |                                          `- note: task-isolated 'language' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
131 |                     }
132 |                     return
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:115:25: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
113 |                         // there is no “query” key,
114 |                         // but unfortunately no error message either
115 |                         completion (nil, language, .notFound)
    |                         |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
    |                         `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
116 |                     }
117 |                     return
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:115:42: warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
113 |                         // there is no “query” key,
114 |                         // but unfortunately no error message either
115 |                         completion (nil, language, .notFound)
    |                                          |- warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
    |                                          `- note: task-isolated 'language' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
116 |                     }
117 |                     return
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:105:25: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
103 |                 guard let jsonDictionary = jsonDictionary else {
104 |                     DispatchQueue.main.async {
105 |                         completion (nil, language, .decodingError)
    |                         |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
    |                         `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
106 |                     }
107 |                     return
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:105:42: warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
103 |                 guard let jsonDictionary = jsonDictionary else {
104 |                     DispatchQueue.main.async {
105 |                         completion (nil, language, .decodingError)
    |                                          |- warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
    |                                          `- note: task-isolated 'language' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
106 |                     }
107 |                     return
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:98:25: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
 96 |                     // (also occurs when the request was cancelled programmatically)
 97 |                     DispatchQueue.main.async {
 98 |                         completion (nil, language, error)
    |                         |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
    |                         `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 99 |                     }
100 |                     return
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:98:42: warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
 96 |                     // (also occurs when the request was cancelled programmatically)
 97 |                     DispatchQueue.main.async {
 98 |                         completion (nil, language, error)
    |                                          |- warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
    |                                          `- note: task-isolated 'language' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 99 |                     }
100 |                     return
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+RandomArticles.swift:110:21: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
108 |             else {
109 |                 DispatchQueue.main.async {
110 |                     completion(nil, language, .other(nil))
    |                     |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
    |                     `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
111 |                 }
112 |                 return nil
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+RandomArticles.swift:110:37: warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
108 |             else {
109 |                 DispatchQueue.main.async {
110 |                     completion(nil, language, .other(nil))
    |                                     |- warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
    |                                     `- note: task-isolated 'language' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
111 |                 }
112 |                 return nil
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+RandomArticles.swift:61:21: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
 59 |                 let articlePreview = WikipediaRandomArticlesBuffer.shared.nextArticlePreview()
 60 |                 DispatchQueue.main.async {
 61 |                     completion(articlePreview, language, error)
    |                     |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
    |                     `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 62 |                 }
 63 |             }
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+RandomArticles.swift:61:48: warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
 59 |                 let articlePreview = WikipediaRandomArticlesBuffer.shared.nextArticlePreview()
 60 |                 DispatchQueue.main.async {
 61 |                     completion(articlePreview, language, error)
    |                                                |- warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
    |                                                `- note: task-isolated 'language' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 62 |                 }
 63 |             }
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+RandomArticles.swift:52:25: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
 50 |                 guard let articlePreviews = articlePreviews else {
 51 |                     DispatchQueue.main.async {
 52 |                         completion(nil, language, error)
    |                         |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
    |                         `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 53 |                     }
 54 |                     return
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+RandomArticles.swift:52:41: warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
 50 |                 guard let articlePreviews = articlePreviews else {
 51 |                     DispatchQueue.main.async {
 52 |                         completion(nil, language, error)
    |                                         |- warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
    |                                         `- note: task-isolated 'language' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 53 |                     }
 54 |                     return
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+RandomArticles.swift:145:21: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
143 |                 let info = error["info"] as? String {
144 |                 DispatchQueue.main.async {
145 |                     completion (nil, language, .apiError(info))
    |                     |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
    |                     `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
146 |                 }
147 |                 return
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+RandomArticles.swift:145:38: warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
143 |                 let info = error["info"] as? String {
144 |                 DispatchQueue.main.async {
145 |                     completion (nil, language, .apiError(info))
    |                                      |- warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
    |                                      `- note: task-isolated 'language' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
146 |                 }
147 |                 return
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+RandomArticles.swift:166:17: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
164 |
165 |             DispatchQueue.main.async {
166 |                 completion(results, language, error)
    |                 |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
    |                 `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
167 |             }
168 |         }
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+RandomArticles.swift:166:28: warning: sending 'results' risks causing data races; this is an error in the Swift 6 language mode
164 |
165 |             DispatchQueue.main.async {
166 |                 completion(results, language, error)
    |                            |- warning: sending 'results' risks causing data races; this is an error in the Swift 6 language mode
    |                            `- note: task-isolated 'results' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
167 |             }
168 |         }
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+RandomArticles.swift:166:37: warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
164 |
165 |             DispatchQueue.main.async {
166 |                 completion(results, language, error)
    |                                     |- warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
    |                                     `- note: task-isolated 'language' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
167 |             }
168 |         }
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+RandomArticles.swift:152:21: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
150 |             guard let pages = query["pages"] as? [JSONDictionary] else {
151 |                 DispatchQueue.main.async {
152 |                     completion (nil, language, .notFound)
    |                     |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
    |                     `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
153 |                 }
154 |                 return
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+RandomArticles.swift:152:38: warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
150 |             guard let pages = query["pages"] as? [JSONDictionary] else {
151 |                 DispatchQueue.main.async {
152 |                     completion (nil, language, .notFound)
    |                                      |- warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
    |                                      `- note: task-isolated 'language' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
153 |                 }
154 |                 return
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+RandomArticles.swift:137:21: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
135 |                     // there is no “query” key,
136 |                     // but unfortunately no error message either
137 |                     completion (nil, language, .notFound)
    |                     |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
    |                     `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
138 |                 }
139 |                 return
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+RandomArticles.swift:137:38: warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
135 |                     // there is no “query” key,
136 |                     // but unfortunately no error message either
137 |                     completion (nil, language, .notFound)
    |                                      |- warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
    |                                      `- note: task-isolated 'language' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
138 |                 }
139 |                 return
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+RandomArticles.swift:127:21: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
125 |             guard let jsonDictionary = jsonDictionary else {
126 |                 DispatchQueue.main.async {
127 |                     completion (nil, language, .decodingError)
    |                     |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
    |                     `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
128 |                 }
129 |                 return
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+RandomArticles.swift:127:38: warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
125 |             guard let jsonDictionary = jsonDictionary else {
126 |                 DispatchQueue.main.async {
127 |                     completion (nil, language, .decodingError)
    |                                      |- warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
    |                                      `- note: task-isolated 'language' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
128 |                 }
129 |                 return
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+RandomArticles.swift:120:21: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
118 |                 // (also occurs when the request was cancelled programmatically)
119 |                 DispatchQueue.main.async {
120 |                     completion (nil, language, error)
    |                     |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
    |                     `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
121 |                 }
122 |                 return
/Users/admin/builder/spi-builder-workspace/Sources/Wikipedia+RandomArticles.swift:120:38: warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
118 |                 // (also occurs when the request was cancelled programmatically)
119 |                 DispatchQueue.main.async {
120 |                     completion (nil, language, error)
    |                                      |- warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
    |                                      `- note: task-isolated 'language' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
121 |                 }
122 |                 return
[29/31] Compiling WikipediaKit WikipediaLanguage.swift
/Users/admin/builder/spi-builder-workspace/Sources/WikipediaLanguage.swift:96:23: warning: static property 'systemLanguageCode' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 94 |     }
 95 |
 96 |     public static var systemLanguageCode: String = {
    |                       |- warning: static property 'systemLanguageCode' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'systemLanguageCode' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'systemLanguageCode' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 97 |         guard let preferredLanguage = Locale.preferredLanguages.first else { return "en" }
 98 |         let languageComponents = Locale.components(fromIdentifier: preferredLanguage)
/Users/admin/builder/spi-builder-workspace/Sources/WikipediaLanguage.swift:103:23: warning: static property 'systemLanguage' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
101 |     }()
102 |
103 |     public static var systemLanguage: WikipediaLanguage = {
    |                       |- warning: static property 'systemLanguage' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'systemLanguage' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'systemLanguage' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
104 |         return WikipediaLanguage(systemLanguageCode)
105 |     }()
/Users/admin/builder/spi-builder-workspace/Sources/WikipediaLanguage.swift:107:23: warning: static property 'supportedSystemLanguage' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
105 |     }()
106 |
107 |     public static var supportedSystemLanguage: WikipediaLanguage = {
    |                       |- warning: static property 'supportedSystemLanguage' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'supportedSystemLanguage' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'supportedSystemLanguage' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
108 |         if defaultLanguages.keys.contains(systemLanguageCode) {
109 |             return WikipediaLanguage(systemLanguageCode)
/Users/admin/builder/spi-builder-workspace/Sources/WikipediaLanguage.swift:120:16: warning: static property 'supportedChineseLocaleVariants' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
118 |     // https://meta.wikimedia.org/wiki/Automatic_conversion_between_simplified_and_traditional_Chinese
119 |
120 |     static var supportedChineseLocaleVariants = ["cn", "hk", "mo", "my", "sg", "tw"]
    |                |- warning: static property 'supportedChineseLocaleVariants' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'supportedChineseLocaleVariants' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: annotate 'supportedChineseLocaleVariants' with '@MainActor' if property should only be accessed from the main actor
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
121 |
122 |     public static var preferredChineseVariant: String? = {
/Users/admin/builder/spi-builder-workspace/Sources/WikipediaLanguage.swift:122:23: warning: static property 'preferredChineseVariant' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
120 |     static var supportedChineseLocaleVariants = ["cn", "hk", "mo", "my", "sg", "tw"]
121 |
122 |     public static var preferredChineseVariant: String? = {
    |                       |- warning: static property 'preferredChineseVariant' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'preferredChineseVariant' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'preferredChineseVariant' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
123 |
124 |         let preferredLanguages = Locale.preferredLanguages
/Users/admin/builder/spi-builder-workspace/Sources/WikipediaLanguage.swift:147:23: warning: static property 'rightToLeftLanguageCodes' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
145 |     }()
146 |
147 |     public static var rightToLeftLanguageCodes = [
    |                       |- warning: static property 'rightToLeftLanguageCodes' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'rightToLeftLanguageCodes' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'rightToLeftLanguageCodes' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
148 |         "ar",
149 |         "arc",
/Users/admin/builder/spi-builder-workspace/Sources/WikipediaNetworking.swift:37:23: warning: static property 'appAuthorEmailForAPI' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 35 | public class WikipediaNetworking {
 36 |
 37 |     public static var appAuthorEmailForAPI = ""
    |                       |- warning: static property 'appAuthorEmailForAPI' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'appAuthorEmailForAPI' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'appAuthorEmailForAPI' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 38 |
 39 |     public static let shared: WikipediaNetworking = {
/Users/admin/builder/spi-builder-workspace/Sources/WikipediaNetworking.swift:39:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'WikipediaNetworking' may have shared mutable state; this is an error in the Swift 6 language mode
 33 | #endif
 34 |
 35 | public class WikipediaNetworking {
    |              `- note: class 'WikipediaNetworking' does not conform to the 'Sendable' protocol
 36 |
 37 |     public static var appAuthorEmailForAPI = ""
 38 |
 39 |     public static let shared: WikipediaNetworking = {
    |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'WikipediaNetworking' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 40 |         return WikipediaNetworking()
 41 |     }()
/Users/admin/builder/spi-builder-workspace/Sources/WikipediaNetworking.swift:43:23: warning: static property 'debugPerformance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 41 |     }()
 42 |
 43 |     public static var debugPerformance = false
    |                       |- warning: static property 'debugPerformance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'debugPerformance' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'debugPerformance' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 44 |
 45 |     private func logMessage(_ message: String) {
/Users/admin/builder/spi-builder-workspace/Sources/WikipediaNetworking.swift:53:28: warning: static property 'sharedActivityIndicatorDelegate' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 51 |     }
 52 |
 53 |     public static weak var sharedActivityIndicatorDelegate: WikipediaNetworkingActivityDelegate?
    |                            |- warning: static property 'sharedActivityIndicatorDelegate' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                            |- note: convert 'sharedActivityIndicatorDelegate' to a 'let' constant to make 'Sendable' shared state immutable
    |                            |- note: annotate 'sharedActivityIndicatorDelegate' with '@MainActor' if property should only be accessed from the main actor
    |                            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 54 |
 55 |     let session = URLSession(configuration: URLSessionConfiguration.default)
/Users/admin/builder/spi-builder-workspace/Sources/WikipediaNetworking.swift:88:17: warning: capture of 'self' with non-sendable type 'WikipediaNetworking' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 33 | #endif
 34 |
 35 | public class WikipediaNetworking {
    |              `- note: class 'WikipediaNetworking' does not conform to the 'Sendable' protocol
 36 |
 37 |     public static var appAuthorEmailForAPI = ""
    :
 86 |                 let endNetworkingTime = Date()
 87 |                 let totalNetworkingTime: Double = endNetworkingTime.timeIntervalSince(startTime)
 88 |                 self.logMessage("\(totalNetworkingTime) seconds for network retrieval")
    |                 `- warning: capture of 'self' with non-sendable type 'WikipediaNetworking' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 89 |             #endif
 90 |
/Users/admin/builder/spi-builder-workspace/Sources/WikipediaNetworking.swift:113:17: warning: capture of 'completion' with non-sendable type '(JSONDictionary?, WikipediaError?) -> ()' (aka '(Optional<Dictionary<String, AnyObject>>, Optional<WikipediaError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
111 |                     }
112 |                 }
113 |                 completion(nil, wikipediaError)
    |                 |- warning: capture of 'completion' with non-sendable type '(JSONDictionary?, WikipediaError?) -> ()' (aka '(Optional<Dictionary<String, AnyObject>>, Optional<WikipediaError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
114 |                 return
115 |             }
[30/31] Compiling WikipediaKit WikipediaNamespace.swift
/Users/admin/builder/spi-builder-workspace/Sources/WikipediaLanguage.swift:96:23: warning: static property 'systemLanguageCode' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 94 |     }
 95 |
 96 |     public static var systemLanguageCode: String = {
    |                       |- warning: static property 'systemLanguageCode' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'systemLanguageCode' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'systemLanguageCode' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 97 |         guard let preferredLanguage = Locale.preferredLanguages.first else { return "en" }
 98 |         let languageComponents = Locale.components(fromIdentifier: preferredLanguage)
/Users/admin/builder/spi-builder-workspace/Sources/WikipediaLanguage.swift:103:23: warning: static property 'systemLanguage' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
101 |     }()
102 |
103 |     public static var systemLanguage: WikipediaLanguage = {
    |                       |- warning: static property 'systemLanguage' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'systemLanguage' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'systemLanguage' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
104 |         return WikipediaLanguage(systemLanguageCode)
105 |     }()
/Users/admin/builder/spi-builder-workspace/Sources/WikipediaLanguage.swift:107:23: warning: static property 'supportedSystemLanguage' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
105 |     }()
106 |
107 |     public static var supportedSystemLanguage: WikipediaLanguage = {
    |                       |- warning: static property 'supportedSystemLanguage' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'supportedSystemLanguage' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'supportedSystemLanguage' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
108 |         if defaultLanguages.keys.contains(systemLanguageCode) {
109 |             return WikipediaLanguage(systemLanguageCode)
/Users/admin/builder/spi-builder-workspace/Sources/WikipediaLanguage.swift:120:16: warning: static property 'supportedChineseLocaleVariants' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
118 |     // https://meta.wikimedia.org/wiki/Automatic_conversion_between_simplified_and_traditional_Chinese
119 |
120 |     static var supportedChineseLocaleVariants = ["cn", "hk", "mo", "my", "sg", "tw"]
    |                |- warning: static property 'supportedChineseLocaleVariants' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'supportedChineseLocaleVariants' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: annotate 'supportedChineseLocaleVariants' with '@MainActor' if property should only be accessed from the main actor
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
121 |
122 |     public static var preferredChineseVariant: String? = {
/Users/admin/builder/spi-builder-workspace/Sources/WikipediaLanguage.swift:122:23: warning: static property 'preferredChineseVariant' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
120 |     static var supportedChineseLocaleVariants = ["cn", "hk", "mo", "my", "sg", "tw"]
121 |
122 |     public static var preferredChineseVariant: String? = {
    |                       |- warning: static property 'preferredChineseVariant' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'preferredChineseVariant' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'preferredChineseVariant' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
123 |
124 |         let preferredLanguages = Locale.preferredLanguages
/Users/admin/builder/spi-builder-workspace/Sources/WikipediaLanguage.swift:147:23: warning: static property 'rightToLeftLanguageCodes' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
145 |     }()
146 |
147 |     public static var rightToLeftLanguageCodes = [
    |                       |- warning: static property 'rightToLeftLanguageCodes' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'rightToLeftLanguageCodes' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'rightToLeftLanguageCodes' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
148 |         "ar",
149 |         "arc",
/Users/admin/builder/spi-builder-workspace/Sources/WikipediaNetworking.swift:37:23: warning: static property 'appAuthorEmailForAPI' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 35 | public class WikipediaNetworking {
 36 |
 37 |     public static var appAuthorEmailForAPI = ""
    |                       |- warning: static property 'appAuthorEmailForAPI' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'appAuthorEmailForAPI' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'appAuthorEmailForAPI' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 38 |
 39 |     public static let shared: WikipediaNetworking = {
/Users/admin/builder/spi-builder-workspace/Sources/WikipediaNetworking.swift:39:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'WikipediaNetworking' may have shared mutable state; this is an error in the Swift 6 language mode
 33 | #endif
 34 |
 35 | public class WikipediaNetworking {
    |              `- note: class 'WikipediaNetworking' does not conform to the 'Sendable' protocol
 36 |
 37 |     public static var appAuthorEmailForAPI = ""
 38 |
 39 |     public static let shared: WikipediaNetworking = {
    |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'WikipediaNetworking' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 40 |         return WikipediaNetworking()
 41 |     }()
/Users/admin/builder/spi-builder-workspace/Sources/WikipediaNetworking.swift:43:23: warning: static property 'debugPerformance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 41 |     }()
 42 |
 43 |     public static var debugPerformance = false
    |                       |- warning: static property 'debugPerformance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'debugPerformance' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'debugPerformance' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 44 |
 45 |     private func logMessage(_ message: String) {
/Users/admin/builder/spi-builder-workspace/Sources/WikipediaNetworking.swift:53:28: warning: static property 'sharedActivityIndicatorDelegate' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 51 |     }
 52 |
 53 |     public static weak var sharedActivityIndicatorDelegate: WikipediaNetworkingActivityDelegate?
    |                            |- warning: static property 'sharedActivityIndicatorDelegate' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                            |- note: convert 'sharedActivityIndicatorDelegate' to a 'let' constant to make 'Sendable' shared state immutable
    |                            |- note: annotate 'sharedActivityIndicatorDelegate' with '@MainActor' if property should only be accessed from the main actor
    |                            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 54 |
 55 |     let session = URLSession(configuration: URLSessionConfiguration.default)
/Users/admin/builder/spi-builder-workspace/Sources/WikipediaNetworking.swift:88:17: warning: capture of 'self' with non-sendable type 'WikipediaNetworking' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 33 | #endif
 34 |
 35 | public class WikipediaNetworking {
    |              `- note: class 'WikipediaNetworking' does not conform to the 'Sendable' protocol
 36 |
 37 |     public static var appAuthorEmailForAPI = ""
    :
 86 |                 let endNetworkingTime = Date()
 87 |                 let totalNetworkingTime: Double = endNetworkingTime.timeIntervalSince(startTime)
 88 |                 self.logMessage("\(totalNetworkingTime) seconds for network retrieval")
    |                 `- warning: capture of 'self' with non-sendable type 'WikipediaNetworking' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 89 |             #endif
 90 |
/Users/admin/builder/spi-builder-workspace/Sources/WikipediaNetworking.swift:113:17: warning: capture of 'completion' with non-sendable type '(JSONDictionary?, WikipediaError?) -> ()' (aka '(Optional<Dictionary<String, AnyObject>>, Optional<WikipediaError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
111 |                     }
112 |                 }
113 |                 completion(nil, wikipediaError)
    |                 |- warning: capture of 'completion' with non-sendable type '(JSONDictionary?, WikipediaError?) -> ()' (aka '(Optional<Dictionary<String, AnyObject>>, Optional<WikipediaError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
114 |                 return
115 |             }
[31/31] Compiling WikipediaKit WikipediaNetworking.swift
/Users/admin/builder/spi-builder-workspace/Sources/WikipediaLanguage.swift:96:23: warning: static property 'systemLanguageCode' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 94 |     }
 95 |
 96 |     public static var systemLanguageCode: String = {
    |                       |- warning: static property 'systemLanguageCode' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'systemLanguageCode' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'systemLanguageCode' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 97 |         guard let preferredLanguage = Locale.preferredLanguages.first else { return "en" }
 98 |         let languageComponents = Locale.components(fromIdentifier: preferredLanguage)
/Users/admin/builder/spi-builder-workspace/Sources/WikipediaLanguage.swift:103:23: warning: static property 'systemLanguage' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
101 |     }()
102 |
103 |     public static var systemLanguage: WikipediaLanguage = {
    |                       |- warning: static property 'systemLanguage' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'systemLanguage' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'systemLanguage' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
104 |         return WikipediaLanguage(systemLanguageCode)
105 |     }()
/Users/admin/builder/spi-builder-workspace/Sources/WikipediaLanguage.swift:107:23: warning: static property 'supportedSystemLanguage' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
105 |     }()
106 |
107 |     public static var supportedSystemLanguage: WikipediaLanguage = {
    |                       |- warning: static property 'supportedSystemLanguage' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'supportedSystemLanguage' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'supportedSystemLanguage' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
108 |         if defaultLanguages.keys.contains(systemLanguageCode) {
109 |             return WikipediaLanguage(systemLanguageCode)
/Users/admin/builder/spi-builder-workspace/Sources/WikipediaLanguage.swift:120:16: warning: static property 'supportedChineseLocaleVariants' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
118 |     // https://meta.wikimedia.org/wiki/Automatic_conversion_between_simplified_and_traditional_Chinese
119 |
120 |     static var supportedChineseLocaleVariants = ["cn", "hk", "mo", "my", "sg", "tw"]
    |                |- warning: static property 'supportedChineseLocaleVariants' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'supportedChineseLocaleVariants' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: annotate 'supportedChineseLocaleVariants' with '@MainActor' if property should only be accessed from the main actor
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
121 |
122 |     public static var preferredChineseVariant: String? = {
/Users/admin/builder/spi-builder-workspace/Sources/WikipediaLanguage.swift:122:23: warning: static property 'preferredChineseVariant' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
120 |     static var supportedChineseLocaleVariants = ["cn", "hk", "mo", "my", "sg", "tw"]
121 |
122 |     public static var preferredChineseVariant: String? = {
    |                       |- warning: static property 'preferredChineseVariant' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'preferredChineseVariant' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'preferredChineseVariant' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
123 |
124 |         let preferredLanguages = Locale.preferredLanguages
/Users/admin/builder/spi-builder-workspace/Sources/WikipediaLanguage.swift:147:23: warning: static property 'rightToLeftLanguageCodes' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
145 |     }()
146 |
147 |     public static var rightToLeftLanguageCodes = [
    |                       |- warning: static property 'rightToLeftLanguageCodes' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'rightToLeftLanguageCodes' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'rightToLeftLanguageCodes' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
148 |         "ar",
149 |         "arc",
/Users/admin/builder/spi-builder-workspace/Sources/WikipediaNetworking.swift:37:23: warning: static property 'appAuthorEmailForAPI' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 35 | public class WikipediaNetworking {
 36 |
 37 |     public static var appAuthorEmailForAPI = ""
    |                       |- warning: static property 'appAuthorEmailForAPI' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'appAuthorEmailForAPI' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'appAuthorEmailForAPI' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 38 |
 39 |     public static let shared: WikipediaNetworking = {
/Users/admin/builder/spi-builder-workspace/Sources/WikipediaNetworking.swift:39:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'WikipediaNetworking' may have shared mutable state; this is an error in the Swift 6 language mode
 33 | #endif
 34 |
 35 | public class WikipediaNetworking {
    |              `- note: class 'WikipediaNetworking' does not conform to the 'Sendable' protocol
 36 |
 37 |     public static var appAuthorEmailForAPI = ""
 38 |
 39 |     public static let shared: WikipediaNetworking = {
    |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'WikipediaNetworking' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 40 |         return WikipediaNetworking()
 41 |     }()
/Users/admin/builder/spi-builder-workspace/Sources/WikipediaNetworking.swift:43:23: warning: static property 'debugPerformance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 41 |     }()
 42 |
 43 |     public static var debugPerformance = false
    |                       |- warning: static property 'debugPerformance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'debugPerformance' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'debugPerformance' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 44 |
 45 |     private func logMessage(_ message: String) {
/Users/admin/builder/spi-builder-workspace/Sources/WikipediaNetworking.swift:53:28: warning: static property 'sharedActivityIndicatorDelegate' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 51 |     }
 52 |
 53 |     public static weak var sharedActivityIndicatorDelegate: WikipediaNetworkingActivityDelegate?
    |                            |- warning: static property 'sharedActivityIndicatorDelegate' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                            |- note: convert 'sharedActivityIndicatorDelegate' to a 'let' constant to make 'Sendable' shared state immutable
    |                            |- note: annotate 'sharedActivityIndicatorDelegate' with '@MainActor' if property should only be accessed from the main actor
    |                            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 54 |
 55 |     let session = URLSession(configuration: URLSessionConfiguration.default)
/Users/admin/builder/spi-builder-workspace/Sources/WikipediaNetworking.swift:88:17: warning: capture of 'self' with non-sendable type 'WikipediaNetworking' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 33 | #endif
 34 |
 35 | public class WikipediaNetworking {
    |              `- note: class 'WikipediaNetworking' does not conform to the 'Sendable' protocol
 36 |
 37 |     public static var appAuthorEmailForAPI = ""
    :
 86 |                 let endNetworkingTime = Date()
 87 |                 let totalNetworkingTime: Double = endNetworkingTime.timeIntervalSince(startTime)
 88 |                 self.logMessage("\(totalNetworkingTime) seconds for network retrieval")
    |                 `- warning: capture of 'self' with non-sendable type 'WikipediaNetworking' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 89 |             #endif
 90 |
/Users/admin/builder/spi-builder-workspace/Sources/WikipediaNetworking.swift:113:17: warning: capture of 'completion' with non-sendable type '(JSONDictionary?, WikipediaError?) -> ()' (aka '(Optional<Dictionary<String, AnyObject>>, Optional<WikipediaError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
111 |                     }
112 |                 }
113 |                 completion(nil, wikipediaError)
    |                 |- warning: capture of 'completion' with non-sendable type '(JSONDictionary?, WikipediaError?) -> ()' (aka '(Optional<Dictionary<String, AnyObject>>, Optional<WikipediaError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
114 |                 return
115 |             }
Build complete! (16.67s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "WikipediaKit",
  "name" : "WikipediaKit",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "12.0"
    },
    {
      "name" : "macos",
      "version" : "10.12"
    },
    {
      "name" : "watchos",
      "version" : "3.0"
    },
    {
      "name" : "tvos",
      "version" : "12.0"
    }
  ],
  "products" : [
    {
      "name" : "WikipediaKit",
      "targets" : [
        "WikipediaKit"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "WikipediaKitTests",
      "module_type" : "SwiftTarget",
      "name" : "WikipediaKitTests",
      "path" : "Tests/WikipediaKitTests",
      "sources" : [
        "WikipediaKitTests.swift"
      ],
      "target_dependencies" : [
        "WikipediaKit"
      ],
      "type" : "test"
    },
    {
      "c99name" : "WikipediaKit",
      "module_type" : "SwiftTarget",
      "name" : "WikipediaKit",
      "path" : "Sources",
      "product_memberships" : [
        "WikipediaKit"
      ],
      "sources" : [
        "String+Wikipedia.swift",
        "URL+Wikipedia.swift",
        "Wikipedia+Article.swift",
        "Wikipedia+ArticleSummary.swift",
        "Wikipedia+Featured.swift",
        "Wikipedia+ImageMeta.swift",
        "Wikipedia+Languages.swift",
        "Wikipedia+NearbySearch.swift",
        "Wikipedia+RandomArticles.swift",
        "Wikipedia+Search.swift",
        "Wikipedia.swift",
        "WikipediaArticle.swift",
        "WikipediaArticleCache.swift",
        "WikipediaArticleLanguageLink.swift",
        "WikipediaArticlePreview.swift",
        "WikipediaError.swift",
        "WikipediaFeatured.swift",
        "WikipediaImage.swift",
        "WikipediaLanguage.swift",
        "WikipediaNamespace.swift",
        "WikipediaNetworking.swift",
        "WikipediaNetworkingActivityDelegate.swift",
        "WikipediaRandomArticlesBuffer.swift",
        "WikipediaSearchMethod.swift",
        "WikipediaSearchResults.swift",
        "WikipediaSearchResultsCache.swift",
        "WikipediaTOCItem.swift",
        "WikipediaTextFormattingDelegate.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.1"
}
Done.