Build Information
Successful build of PexelsSwift, reference 1.0.1 (feef36
), with Swift 6.0 for macOS (SPM) on 1 Dec 2024 03:09:31 UTC.
Swift 6 data race errors: 2
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
========================================
RunAll
========================================
Builder version: 4.58.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/lukepistrol/Pexels-Swift.git
Reference: 1.0.1
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/lukepistrol/Pexels-Swift
* tag 1.0.1 -> FETCH_HEAD
HEAD is now at feef363 Merge pull request #16 from itzaks/main
Cloned https://github.com/lukepistrol/Pexels-Swift.git
Revision (git rev-parse @):
feef3637b92ea25baf9588a25578090b6a01d2af
SUCCESS checkout https://github.com/lukepistrol/Pexels-Swift.git at 1.0.1
Fetching https://github.com/apple/swift-docc-symbolkit
Fetching https://github.com/apple/swift-docc-plugin
[1/2038] Fetching swift-docc-plugin
[226/5226] Fetching swift-docc-plugin, swift-docc-symbolkit
Fetched https://github.com/apple/swift-docc-plugin from cache (1.31s)
Fetched https://github.com/apple/swift-docc-symbolkit from cache (1.31s)
Computing version for https://github.com/apple/swift-docc-plugin
Computed https://github.com/apple/swift-docc-plugin at 1.2.0 (0.55s)
Computing version for https://github.com/apple/swift-docc-symbolkit
Computed https://github.com/apple/swift-docc-symbolkit at 1.0.0 (0.60s)
Creating working copy for https://github.com/apple/swift-docc-plugin
Working copy of https://github.com/apple/swift-docc-plugin resolved at 1.2.0
Creating working copy for https://github.com/apple/swift-docc-symbolkit
Working copy of https://github.com/apple/swift-docc-symbolkit resolved at 1.0.0
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"dependencies": [
{
"identity": "pexels-swift",
"name": "PexelsSwift",
"url": "https://github.com/lukepistrol/Pexels-Swift.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Pexels-Swift",
"dependencies": [
]
}
]
}
Fetching https://github.com/lukepistrol/Pexels-Swift.git
[1/1500] Fetching pexels-swift
Fetched https://github.com/lukepistrol/Pexels-Swift.git from cache (1.13s)
Creating working copy for https://github.com/lukepistrol/Pexels-Swift.git
Working copy of https://github.com/lukepistrol/Pexels-Swift.git resolved at 1.0.1 (feef363)
warning: '.resolve-product-dependencies': dependency 'pexels-swift' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/lukepistrol/Pexels-Swift.git
{
"dependencies" : [
{
"identity" : "swift-docc-plugin",
"requirement" : {
"range" : [
{
"lower_bound" : "1.2.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-docc-plugin"
}
],
"manifest_display_name" : "PexelsSwift",
"name" : "PexelsSwift",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "13.0"
},
{
"name" : "macos",
"version" : "10.15"
},
{
"name" : "tvos",
"version" : "13.0"
},
{
"name" : "watchos",
"version" : "6.0"
}
],
"products" : [
{
"name" : "PexelsSwift",
"targets" : [
"PexelsSwift"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "PexelsSwiftTests",
"module_type" : "SwiftTarget",
"name" : "PexelsSwiftTests",
"path" : "Tests/PexelsSwiftTests",
"sources" : [
"InternalTests.swift",
"PexelsSwiftTests+MockData.swift",
"PexelsSwiftTests.swift"
],
"target_dependencies" : [
"PexelsSwift"
],
"type" : "test"
},
{
"c99name" : "PexelsSwift",
"module_type" : "SwiftTarget",
"name" : "PexelsSwift",
"path" : "Sources/PexelsSwift",
"product_memberships" : [
"PexelsSwift"
],
"sources" : [
"Errors/PSError.swift",
"Extensions/Data+PrettyJSON.swift",
"Extensions/HTTPURLResponse+.swift",
"Extensions/Int+String.swift",
"Logger/PSLogLevel.swift",
"Logger/PSLogger.swift",
"MockURLProtocol/MockURLProtocol.swift",
"PexelsSwift+Collections.swift",
"PexelsSwift+Extensions/PexelsSwift+API.swift",
"PexelsSwift+Extensions/PexelsSwift+Color.swift",
"PexelsSwift+Extensions/PexelsSwift+Orientation+Size+Locale.swift",
"PexelsSwift+Extensions/PexelsSwift+QueryParameter.swift",
"PexelsSwift+Extensions/PexelsSwift+RateLimit.swift",
"PexelsSwift+Extensions/PexelsSwift+Results.swift",
"PexelsSwift+Photos.swift",
"PexelsSwift+Videos.swift",
"PexelsSwift.swift",
"Resources/PSCollection.swift",
"Resources/PSPagingInfo.swift",
"Resources/PSPhoto.swift",
"Resources/PSVideo.swift",
"_Deprecated/URLSession+DataForRequest.swift"
],
"type" : "library"
}
],
"tools_version" : "5.7"
}
Running build ...
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
[1/1] Compiling plugin Swift-DocC
[2/2] Compiling plugin Swift-DocC Preview
Building for debugging...
[2/4] Write sources
[3/4] Write swift-version--7754E27361AE5C74.txt
[5/25] Emitting module PexelsSwift
/Users/admin/builder/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:21:16: warning: static property 'requestHandler' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
19 | }
20 |
21 | static var requestHandler: ((URLRequest) throws -> (HTTPURLResponse, Data?))?
| |- warning: static property 'requestHandler' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'requestHandler' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'requestHandler' 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
22 |
23 | override func startLoading() {
/Users/admin/builder/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift.swift:59:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'PexelsSwift' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | /// A singleton class for making API calls to the Pexels.com REST API.
11 | public class PexelsSwift {
| `- note: class 'PexelsSwift' does not conform to the 'Sendable' protocol
12 |
13 | let urlSession: URLSession
:
57 |
58 | /// The singleton instance of ``PexelsSwift``
59 | public static let shared: PexelsSwift = .init()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'PexelsSwift' 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
60 |
61 | /// The HTTP-Header field for the API Key
[6/27] Compiling PexelsSwift PSVideo.swift
[7/27] Compiling PexelsSwift URLSession+DataForRequest.swift
[8/27] Compiling PexelsSwift PexelsSwift+RateLimit.swift
[9/27] Compiling PexelsSwift PexelsSwift+Results.swift
[10/27] Compiling PexelsSwift PSPagingInfo.swift
[11/27] Compiling PexelsSwift PSPhoto.swift
[12/27] Compiling PexelsSwift MockURLProtocol.swift
/Users/admin/builder/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:21:16: warning: static property 'requestHandler' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
19 | }
20 |
21 | static var requestHandler: ((URLRequest) throws -> (HTTPURLResponse, Data?))?
| |- warning: static property 'requestHandler' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'requestHandler' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'requestHandler' 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
22 |
23 | override func startLoading() {
/Users/admin/builder/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift+Collections.swift:64:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
62 | completion: @escaping (CollectionResult) -> Void
63 | ) {
64 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
65 | completion(await getCollections(page: page, count: count))
| `- note: closure captures 'self' which is accessible to code in the current task
66 | }
67 | }
[13/27] Compiling PexelsSwift PexelsSwift+Collections.swift
/Users/admin/builder/spi-builder-workspace/Sources/PexelsSwift/MockURLProtocol/MockURLProtocol.swift:21:16: warning: static property 'requestHandler' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
19 | }
20 |
21 | static var requestHandler: ((URLRequest) throws -> (HTTPURLResponse, Data?))?
| |- warning: static property 'requestHandler' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'requestHandler' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'requestHandler' 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
22 |
23 | override func startLoading() {
/Users/admin/builder/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift+Collections.swift:64:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
62 | completion: @escaping (CollectionResult) -> Void
63 | ) {
64 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
65 | completion(await getCollections(page: page, count: count))
| `- note: closure captures 'self' which is accessible to code in the current task
66 | }
67 | }
[14/27] Compiling PexelsSwift PexelsSwift+API.swift
[15/27] Compiling PexelsSwift PexelsSwift+Color.swift
[16/27] Compiling PexelsSwift PexelsSwift.swift
/Users/admin/builder/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift.swift:59:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'PexelsSwift' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | /// A singleton class for making API calls to the Pexels.com REST API.
11 | public class PexelsSwift {
| `- note: class 'PexelsSwift' does not conform to the 'Sendable' protocol
12 |
13 | let urlSession: URLSession
:
57 |
58 | /// The singleton instance of ``PexelsSwift``
59 | public static let shared: PexelsSwift = .init()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'PexelsSwift' 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
60 |
61 | /// The HTTP-Header field for the API Key
[17/27] Compiling PexelsSwift PSCollection.swift
/Users/admin/builder/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift.swift:59:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'PexelsSwift' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | /// A singleton class for making API calls to the Pexels.com REST API.
11 | public class PexelsSwift {
| `- note: class 'PexelsSwift' does not conform to the 'Sendable' protocol
12 |
13 | let urlSession: URLSession
:
57 |
58 | /// The singleton instance of ``PexelsSwift``
59 | public static let shared: PexelsSwift = .init()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'PexelsSwift' 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
60 |
61 | /// The HTTP-Header field for the API Key
[18/27] Compiling PexelsSwift PSError.swift
[19/27] Compiling PexelsSwift Data+PrettyJSON.swift
[20/27] Compiling PexelsSwift HTTPURLResponse+.swift
[21/27] Compiling PexelsSwift PexelsSwift+Photos.swift
/Users/admin/builder/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift+Photos.swift:43:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
41 | /// - completion: A result type of ``PhotoResult``
42 | func getPhoto(by id: Int, completion: @escaping (PhotoResult) -> Void) {
43 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
44 | completion(await getPhoto(by: id))
| `- note: closure captures 'self' which is accessible to code in the current task
45 | }
46 | }
/Users/admin/builder/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift+Photos.swift:83:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
81 | completion: @escaping (PhotosResult) -> Void
82 | ) {
83 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
84 | completion(await getCuratedPhotos(page: page, count: count))
| `- note: closure captures 'self' which is accessible to code in the current task
85 | }
86 | }
/Users/admin/builder/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift+Photos.swift:157:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
155 | completion: @escaping (PhotosResult) -> Void
156 | ) {
157 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
158 | completion(await searchPhotos(
| `- note: closure captures 'self' which is accessible to code in the current task
159 | query, orientation: orientation, size: size, color: color, locale: locale, page: page, count: count
160 | ))
/Users/admin/builder/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift+Photos.swift:204:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
202 | completion: @escaping (PhotosResult) -> Void
203 | ) {
204 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
205 | completion(await getPhotos(for: categoryID, page: page, count: count))
| `- note: closure captures 'self' which is accessible to code in the current task
206 | }
207 | }
/Users/admin/builder/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift+Videos.swift:42:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
40 | /// - completion: A result type of ``VideoResult``
41 | func getVideo(by id: Int, completion: @escaping (VideoResult) -> Void) {
42 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
43 | completion(await getVideo(by: id))
| `- note: closure captures 'self' which is accessible to code in the current task
44 | }
45 | }
/Users/admin/builder/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift+Videos.swift:110:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
108 | completion: @escaping (VideosResult) -> Void
109 | ) {
110 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
111 | completion(await getPopularVideos(
| `- note: closure captures 'self' which is accessible to code in the current task
112 | minimumWidth: minimumWidth,
113 | minimumHeight: minimumHeight,
/Users/admin/builder/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift+Videos.swift:183:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
181 | completion: @escaping (VideosResult) -> Void
182 | ) {
183 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
184 | completion(await searchVideos(
| `- note: closure captures 'self' which is accessible to code in the current task
185 | query,
186 | orientation: orientation,
/Users/admin/builder/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift+Videos.swift:235:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
233 | completion: @escaping (VideosResult) -> Void
234 | ) {
235 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
236 | completion(await getVideos(for: categoryID, page: page, count: count))
| `- note: closure captures 'self' which is accessible to code in the current task
237 | }
238 | }
[22/27] Compiling PexelsSwift PexelsSwift+Videos.swift
/Users/admin/builder/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift+Photos.swift:43:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
41 | /// - completion: A result type of ``PhotoResult``
42 | func getPhoto(by id: Int, completion: @escaping (PhotoResult) -> Void) {
43 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
44 | completion(await getPhoto(by: id))
| `- note: closure captures 'self' which is accessible to code in the current task
45 | }
46 | }
/Users/admin/builder/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift+Photos.swift:83:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
81 | completion: @escaping (PhotosResult) -> Void
82 | ) {
83 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
84 | completion(await getCuratedPhotos(page: page, count: count))
| `- note: closure captures 'self' which is accessible to code in the current task
85 | }
86 | }
/Users/admin/builder/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift+Photos.swift:157:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
155 | completion: @escaping (PhotosResult) -> Void
156 | ) {
157 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
158 | completion(await searchPhotos(
| `- note: closure captures 'self' which is accessible to code in the current task
159 | query, orientation: orientation, size: size, color: color, locale: locale, page: page, count: count
160 | ))
/Users/admin/builder/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift+Photos.swift:204:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
202 | completion: @escaping (PhotosResult) -> Void
203 | ) {
204 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
205 | completion(await getPhotos(for: categoryID, page: page, count: count))
| `- note: closure captures 'self' which is accessible to code in the current task
206 | }
207 | }
/Users/admin/builder/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift+Videos.swift:42:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
40 | /// - completion: A result type of ``VideoResult``
41 | func getVideo(by id: Int, completion: @escaping (VideoResult) -> Void) {
42 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
43 | completion(await getVideo(by: id))
| `- note: closure captures 'self' which is accessible to code in the current task
44 | }
45 | }
/Users/admin/builder/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift+Videos.swift:110:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
108 | completion: @escaping (VideosResult) -> Void
109 | ) {
110 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
111 | completion(await getPopularVideos(
| `- note: closure captures 'self' which is accessible to code in the current task
112 | minimumWidth: minimumWidth,
113 | minimumHeight: minimumHeight,
/Users/admin/builder/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift+Videos.swift:183:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
181 | completion: @escaping (VideosResult) -> Void
182 | ) {
183 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
184 | completion(await searchVideos(
| `- note: closure captures 'self' which is accessible to code in the current task
185 | query,
186 | orientation: orientation,
/Users/admin/builder/spi-builder-workspace/Sources/PexelsSwift/PexelsSwift+Videos.swift:235:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
233 | completion: @escaping (VideosResult) -> Void
234 | ) {
235 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
236 | completion(await getVideos(for: categoryID, page: page, count: count))
| `- note: closure captures 'self' which is accessible to code in the current task
237 | }
238 | }
[23/27] Compiling PexelsSwift PexelsSwift+Orientation+Size+Locale.swift
[24/27] Compiling PexelsSwift PexelsSwift+QueryParameter.swift
[25/27] Compiling PexelsSwift Int+String.swift
[26/27] Compiling PexelsSwift PSLogLevel.swift
[27/27] Compiling PexelsSwift PSLogger.swift
Build complete! (30.01s)
Build complete.
{
"dependencies" : [
{
"identity" : "swift-docc-plugin",
"requirement" : {
"range" : [
{
"lower_bound" : "1.2.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-docc-plugin"
}
],
"manifest_display_name" : "PexelsSwift",
"name" : "PexelsSwift",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "13.0"
},
{
"name" : "macos",
"version" : "10.15"
},
{
"name" : "tvos",
"version" : "13.0"
},
{
"name" : "watchos",
"version" : "6.0"
}
],
"products" : [
{
"name" : "PexelsSwift",
"targets" : [
"PexelsSwift"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "PexelsSwiftTests",
"module_type" : "SwiftTarget",
"name" : "PexelsSwiftTests",
"path" : "Tests/PexelsSwiftTests",
"sources" : [
"InternalTests.swift",
"PexelsSwiftTests+MockData.swift",
"PexelsSwiftTests.swift"
],
"target_dependencies" : [
"PexelsSwift"
],
"type" : "test"
},
{
"c99name" : "PexelsSwift",
"module_type" : "SwiftTarget",
"name" : "PexelsSwift",
"path" : "Sources/PexelsSwift",
"product_memberships" : [
"PexelsSwift"
],
"sources" : [
"Errors/PSError.swift",
"Extensions/Data+PrettyJSON.swift",
"Extensions/HTTPURLResponse+.swift",
"Extensions/Int+String.swift",
"Logger/PSLogLevel.swift",
"Logger/PSLogger.swift",
"MockURLProtocol/MockURLProtocol.swift",
"PexelsSwift+Collections.swift",
"PexelsSwift+Extensions/PexelsSwift+API.swift",
"PexelsSwift+Extensions/PexelsSwift+Color.swift",
"PexelsSwift+Extensions/PexelsSwift+Orientation+Size+Locale.swift",
"PexelsSwift+Extensions/PexelsSwift+QueryParameter.swift",
"PexelsSwift+Extensions/PexelsSwift+RateLimit.swift",
"PexelsSwift+Extensions/PexelsSwift+Results.swift",
"PexelsSwift+Photos.swift",
"PexelsSwift+Videos.swift",
"PexelsSwift.swift",
"Resources/PSCollection.swift",
"Resources/PSPagingInfo.swift",
"Resources/PSPhoto.swift",
"Resources/PSVideo.swift",
"_Deprecated/URLSession+DataForRequest.swift"
],
"type" : "library"
}
],
"tools_version" : "5.7"
}
Done.