Build Information
Failed to build AsyncDownSamplingImage, reference main (f1d659
), with Swift 5.10 for macOS (SPM) on 2 Feb 2025 06:32:12 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-15.4.0.app xcrun swift build --arch arm64
Build Log
========================================
RunAll
========================================
Builder version: 4.60.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/fummicc1/AsyncDownSamplingImage.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/fummicc1/AsyncDownSamplingImage
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at f1d659c Merge pull request #16 from fummicc1/feature/improve-loading-view-size
Cloned https://github.com/fummicc1/AsyncDownSamplingImage.git
Revision (git rev-parse @):
f1d659cbc58d0ae6bc541ab4ea3187ad00e54253
SUCCESS checkout https://github.com/fummicc1/AsyncDownSamplingImage.git at main
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 5.10
Building package at path: $PWD
https://github.com/fummicc1/AsyncDownSamplingImage.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.4.0.app xcrun swift build --arch arm64
[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-33747A42983211AE.txt
[5/10] Compiling AsyncDownSamplingImage Incremental.swift
[6/10] Compiling AsyncDownSamplingImage Downsampling.swift
[7/10] Compiling AsyncDownSamplingImage AsyncDownSamplingImage.swift
/Users/admin/builder/spi-builder-workspace/Sources/AsyncDownSamplingImage/AsyncDownSamplingImage.swift:206:55: warning: capture of 'image' with non-sendable type 'ImageType' (aka 'NSImage') in a `@Sendable` closure
status = .loaded(Image(imageType: image))
^
AppKit.NSImage:1:12: note: class 'NSImage' does not conform to the 'Sendable' protocol
open class NSImage : NSObject {
^
/Users/admin/builder/spi-builder-workspace/Sources/AsyncDownSamplingImage/AsyncDownSamplingImage.swift:190:38: warning: no 'async' operations occur within 'await' expression
let downsampleSize = await self.downsampleSize
^
[8/10] Emitting module AsyncDownSamplingImage
[9/10] Compiling AsyncDownSamplingImage TypeCompatibility.swift
[10/10] Compiling AsyncDownSamplingImage IncrementalImage.swift
/Users/admin/builder/spi-builder-workspace/Sources/AsyncDownSamplingImage/IncrementalImage.swift:102:22: error: main actor-isolated property 'image' can not be mutated from a non-isolated context
self.image = newImage
^
/Users/admin/builder/spi-builder-workspace/Sources/AsyncDownSamplingImage/IncrementalImage.swift:43:35: note: mutation of this property is only permitted within the actor
@MainActor @State private var image: CGImage?
^
/Users/admin/builder/spi-builder-workspace/Sources/AsyncDownSamplingImage/IncrementalImage.swift:105:18: error: main actor-isolated property 'image' can not be mutated from a non-isolated context
self.image = newImage
^
/Users/admin/builder/spi-builder-workspace/Sources/AsyncDownSamplingImage/IncrementalImage.swift:43:35: note: mutation of this property is only permitted within the actor
@MainActor @State private var image: CGImage?
^
/Users/admin/builder/spi-builder-workspace/Sources/AsyncDownSamplingImage/IncrementalImage.swift:99:18: note: add '@MainActor' to make instance method 'performUpdate' part of global actor 'MainActor'
private func performUpdate(_ newImage: CGImage) {
^
@MainActor
error: fatalError
Fetching https://github.com/apple/swift-docc-plugin
[1/2048] Fetching swift-docc-plugin
Fetched https://github.com/apple/swift-docc-plugin from cache (1.71s)
Computing version for https://github.com/apple/swift-docc-plugin
Computed https://github.com/apple/swift-docc-plugin at 1.4.3 (0.49s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3279] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (1.25s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (0.50s)
Creating working copy for https://github.com/apple/swift-docc-plugin
Working copy of https://github.com/apple/swift-docc-plugin resolved at 1.4.3
Creating working copy for https://github.com/swiftlang/swift-docc-symbolkit
Working copy of https://github.com/swiftlang/swift-docc-symbolkit resolved at 1.0.0
BUILD FAILURE 5.10 macosSpm