Build Information
Successful build of ImageScout, reference master (bf0826
), with Swift 6.0 for macOS (SPM) on 31 Oct 2024 03:38:26 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
Build Log
========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/kaishin/ImageScout.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/kaishin/ImageScout
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at bf08266 Add SPM instructions
Cloned https://github.com/kaishin/ImageScout.git
Revision (git rev-parse @):
bf082663f1f19ca2d56358ef102fccff78ee131a
SUCCESS checkout https://github.com/kaishin/ImageScout.git at master
========================================
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": "imagescout",
"name": "ImageScout",
"url": "https://github.com/kaishin/ImageScout.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/ImageScout",
"dependencies": [
]
}
]
}
Fetching https://github.com/kaishin/ImageScout.git
[18/597] Fetching imagescout
Fetched https://github.com/kaishin/ImageScout.git from cache (1.19s)
Creating working copy for https://github.com/kaishin/ImageScout.git
Working copy of https://github.com/kaishin/ImageScout.git resolved at master (bf08266)
warning: '.resolve-product-dependencies': dependency 'imagescout' 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/kaishin/ImageScout.git
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
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/7] Compiling ImageScout SessionDelegate.swift
/Users/admin/builder/spi-builder-workspace/Sources/ImageScout/SessionDelegate.swift:3:7: warning: non-final class 'SessionDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | class SessionDelegate: NSObject, URLSessionDataDelegate {
| `- warning: non-final class 'SessionDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
4 | weak var scout: ImageScout?
5 |
/Users/admin/builder/spi-builder-workspace/Sources/ImageScout/SessionDelegate.swift:4:12: warning: stored property 'scout' of 'Sendable'-conforming class 'SessionDelegate' is mutable; this is an error in the Swift 6 language mode
2 |
3 | class SessionDelegate: NSObject, URLSessionDataDelegate {
4 | weak var scout: ImageScout?
| `- warning: stored property 'scout' of 'Sendable'-conforming class 'SessionDelegate' is mutable; this is an error in the Swift 6 language mode
5 |
6 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
[4/7] Compiling ImageScout ImageScout.swift
/Users/admin/builder/spi-builder-workspace/Sources/ImageScout/ImageScout.swift:42:7: warning: capture of 'completion' with non-sendable type 'ScoutCompletionBlock' (aka '(Optional<NSError>, CGSize, ScoutedImageType) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
40 |
41 | operation.completionBlock = { [weak self] in
42 | completion(operation.error, operation.size, operation.type)
| |- warning: capture of 'completion' with non-sendable type 'ScoutCompletionBlock' (aka '(Optional<NSError>, CGSize, ScoutedImageType) -> ()') 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'
43 | self?.operations[urlString] = nil
44 | }
/Users/admin/builder/spi-builder-workspace/Sources/ImageScout/ImageScout.swift:43:7: warning: capture of 'self' with non-sendable type 'ImageScout?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
18 |
19 | /// The class you interact with in order to perform image scouting operations. You should maintain reference to an instance of this class until the callback completes. If reference is lost, your completion handler will never be executed.
20 | public class ImageScout {
| `- note: class 'ImageScout' does not conform to the 'Sendable' protocol
21 | private var session: URLSession
22 | private var sessionDelegate = SessionDelegate()
:
41 | operation.completionBlock = { [weak self] in
42 | completion(operation.error, operation.size, operation.type)
43 | self?.operations[urlString] = nil
| `- warning: capture of 'self' with non-sendable type 'ImageScout?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
44 | }
45 |
[5/7] Emitting module ImageScout
/Users/admin/builder/spi-builder-workspace/Sources/ImageScout/ScoutOperation.swift:3:7: warning: class 'ScoutOperation' must restate inherited '@unchecked Sendable' conformance
1 | import QuartzCore
2 |
3 | class ScoutOperation: Operation {
| `- warning: class 'ScoutOperation' must restate inherited '@unchecked Sendable' conformance
4 | var size = CGSize.zero
5 | var type = ScoutedImageType.unsupported
/Users/admin/builder/spi-builder-workspace/Sources/ImageScout/SessionDelegate.swift:3:7: warning: non-final class 'SessionDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | class SessionDelegate: NSObject, URLSessionDataDelegate {
| `- warning: non-final class 'SessionDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
4 | weak var scout: ImageScout?
5 |
/Users/admin/builder/spi-builder-workspace/Sources/ImageScout/SessionDelegate.swift:4:12: warning: stored property 'scout' of 'Sendable'-conforming class 'SessionDelegate' is mutable; this is an error in the Swift 6 language mode
2 |
3 | class SessionDelegate: NSObject, URLSessionDataDelegate {
4 | weak var scout: ImageScout?
| `- warning: stored property 'scout' of 'Sendable'-conforming class 'SessionDelegate' is mutable; this is an error in the Swift 6 language mode
5 |
6 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
[6/7] Compiling ImageScout ScoutOperation.swift
/Users/admin/builder/spi-builder-workspace/Sources/ImageScout/ScoutOperation.swift:3:7: warning: class 'ScoutOperation' must restate inherited '@unchecked Sendable' conformance
1 | import QuartzCore
2 |
3 | class ScoutOperation: Operation {
| `- warning: class 'ScoutOperation' must restate inherited '@unchecked Sendable' conformance
4 | var size = CGSize.zero
5 | var type = ScoutedImageType.unsupported
[7/7] Compiling ImageScout ImageParser.swift
Build complete! (8.84s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "ImageScout",
"name" : "ImageScout",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "ImageScout",
"targets" : [
"ImageScout"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "ImageScout",
"module_type" : "SwiftTarget",
"name" : "ImageScout",
"path" : "Sources/ImageScout",
"product_memberships" : [
"ImageScout"
],
"sources" : [
"ImageParser.swift",
"ImageScout.swift",
"ScoutOperation.swift",
"SessionDelegate.swift"
],
"type" : "library"
}
],
"tools_version" : "5.0"
}
Done.