Build Information
Successful build of CropImage with Swift 6.0 for macOS (SPM).
Swift 6 data race errors: 2
Build Command
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/laosb/CropImage.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/laosb/CropImage
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 304a4c8 Remove back compat code from visionOS
Cloned https://github.com/laosb/CropImage.git
Revision (git rev-parse @):
304a4c8e7e4505884fac863b762f8bf993710f2b
SPI manifest file found: $workDir/.spi.yml
SUCCESS checkout https://github.com/laosb/CropImage.git at main
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $workDir
https://github.com/laosb/CropImage.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a 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-6F35C1178C84523A.txt
[3/10] Compiling CropImage UnderlyingImageView.swift
[4/10] Compiling CropImage PlatformImage.swift
[5/10] Emitting module CropImage
/Users/admin/builder/spi-builder-workspace/Sources/CropImage/CropImageView.swift:22:37: warning: generic parameter 'Controls' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
12 |
13 | /// A view that allows the user to crop an image.
14 | public struct CropImageView<Controls: View, CutHole: View>: View {
| `- note: 'Controls' previously declared here
15 | /// Defines a custom view overlaid on the image cropper.
16 | ///
:
20 | /// - rotation: The rotation binding of the image.
21 | /// - crop: An async function to trigger crop action. Result will be delivered via ``onCrop``.
22 | public typealias ControlClosure<Controls> = (
| `- warning: generic parameter 'Controls' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
23 | _ offset: Binding<CGSize>,
24 | _ scale: Binding<CGFloat>,
/Users/admin/builder/spi-builder-workspace/Sources/CropImage/CropImageView.swift:33:37: warning: generic parameter 'CutHole' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
12 |
13 | /// A view that allows the user to crop an image.
14 | public struct CropImageView<Controls: View, CutHole: View>: View {
| `- note: 'CutHole' previously declared here
15 | /// Defines a custom view overlaid on the image cropper.
16 | ///
:
31 | /// - Parameters:
32 | /// - targetSize: The size of the cut hole.
33 | public typealias CutHoleClosure<CutHole> = (_ targetSize: CGSize) -> CutHole
| `- warning: generic parameter 'CutHole' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
34 |
35 | /// Errors that could happen during the cropping process.
[6/10] Compiling CropImage Comparable+clamped.swift
[7/10] Compiling CropImage CropImageView.swift
/Users/admin/builder/spi-builder-workspace/Sources/CropImage/CropImageView.swift:22:37: warning: generic parameter 'Controls' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
12 |
13 | /// A view that allows the user to crop an image.
14 | public struct CropImageView<Controls: View, CutHole: View>: View {
| `- note: 'Controls' previously declared here
15 | /// Defines a custom view overlaid on the image cropper.
16 | ///
:
20 | /// - rotation: The rotation binding of the image.
21 | /// - crop: An async function to trigger crop action. Result will be delivered via ``onCrop``.
22 | public typealias ControlClosure<Controls> = (
| `- warning: generic parameter 'Controls' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
23 | _ offset: Binding<CGSize>,
24 | _ scale: Binding<CGFloat>,
/Users/admin/builder/spi-builder-workspace/Sources/CropImage/CropImageView.swift:33:37: warning: generic parameter 'CutHole' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
12 |
13 | /// A view that allows the user to crop an image.
14 | public struct CropImageView<Controls: View, CutHole: View>: View {
| `- note: 'CutHole' previously declared here
15 | /// Defines a custom view overlaid on the image cropper.
16 | ///
:
31 | /// - Parameters:
32 | /// - targetSize: The size of the cut hole.
33 | public typealias CutHoleClosure<CutHole> = (_ targetSize: CGSize) -> CutHole
| `- warning: generic parameter 'CutHole' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
34 |
35 | /// Errors that could happen during the cropping process.
[8/10] Compiling CropImage DefaultCutHoleShape.swift
[9/10] Compiling CropImage DefaultControlsView.swift
/Users/admin/builder/spi-builder-workspace/Sources/CropImage/DefaultControlsView.swift:59:19: warning: capture of 'self' with non-sendable type 'DefaultControlsView' in a `@Sendable` closure; this is an error in the Swift 6 language mode
11 | ///
12 | /// It provides basic controls to crop, reset to default cropping & rotation, and rotate the image.
13 | public struct DefaultControlsView: View {
| `- note: consider making struct 'DefaultControlsView' conform to the 'Sendable' protocol
14 | @Binding var offset: CGSize
15 | @Binding var scale: CGFloat
:
57 | var cropButton: some View {
58 | Button { Task {
59 | await crop()
| `- warning: capture of 'self' with non-sendable type 'DefaultControlsView' in a `@Sendable` closure; this is an error in the Swift 6 language mode
60 | } } label: {
61 | Label("Crop", systemImage: "checkmark.circle.fill")
[10/10] Compiling CropImage DefaultCutHoleView.swift
Build complete! (33.84s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "CropImage",
"name" : "CropImage",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "14.0"
},
{
"name" : "macos",
"version" : "13.0"
},
{
"name" : "visionos",
"version" : "1.0"
}
],
"products" : [
{
"name" : "CropImage",
"targets" : [
"CropImage"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "CropImage",
"module_type" : "SwiftTarget",
"name" : "CropImage",
"path" : "Sources/CropImage",
"product_memberships" : [
"CropImage"
],
"sources" : [
"Comparable+clamped.swift",
"CropImageView.swift",
"DefaultControlsView.swift",
"DefaultCutHoleShape.swift",
"DefaultCutHoleView.swift",
"PlatformImage.swift",
"UnderlyingImageView.swift"
],
"type" : "library"
}
],
"tools_version" : "5.10"
}
Done.