Build Information
Failed to build AsyncDownSamplingImage, reference 1.1.0 (05700f
), with Swift 5.9 for macOS (SPM) on 16 Oct 2024 19:07:07 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-15.2.0.app xcrun swift build --arch arm64
Build Log
========================================
RunAll
========================================
Builder version: 4.55.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/fummicc1/AsyncDownSamplingImage.git
Reference: 1.1.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/fummicc1/AsyncDownSamplingImage
* tag 1.1.0 -> FETCH_HEAD
HEAD is now at 05700f0 Merge pull request #14 from fummicc1/docs/update-docc
Cloned https://github.com/fummicc1/AsyncDownSamplingImage.git
Revision (git rev-parse @):
05700f0b0bb4b3e736f0c13d5fafd37656fac094
SUCCESS checkout https://github.com/fummicc1/AsyncDownSamplingImage.git at 1.1.0
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 5.9
Building package at path: $PWD
https://github.com/fummicc1/AsyncDownSamplingImage.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.2.0.app xcrun swift build --arch arm64
[1/1] Compiling plugin Swift-DocC
[2/2] Compiling plugin Swift-DocC Preview
Building for debugging...
[3/8] Compiling AsyncDownSamplingImage AsyncDownSamplingImage.swift
/Users/admin/builder/spi-builder-workspace/Sources/AsyncDownSamplingImage/AsyncDownSamplingImage.swift:205: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:189:38: warning: no 'async' operations occur within 'await' expression
let downsampleSize = await self.downsampleSize
^
[4/8] Emitting module AsyncDownSamplingImage
[5/8] Compiling AsyncDownSamplingImage Incremental.swift
[6/8] Compiling AsyncDownSamplingImage TypeCompatibility.swift
[7/8] Compiling AsyncDownSamplingImage Downsampling.swift
[8/8] 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-symbolkit
Fetching https://github.com/apple/swift-docc-plugin
[1/2038] Fetching swift-docc-plugin
[226/5188] Fetching swift-docc-plugin, swift-docc-symbolkit
Fetched https://github.com/apple/swift-docc-plugin (1.88s)
Fetched https://github.com/apple/swift-docc-symbolkit (1.88s)
Computing version for https://github.com/apple/swift-docc-plugin
Computed https://github.com/apple/swift-docc-plugin at 1.3.0 (0.62s)
Computing version for https://github.com/apple/swift-docc-symbolkit
Computed https://github.com/apple/swift-docc-symbolkit at 1.0.0 (0.74s)
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
Creating working copy for https://github.com/apple/swift-docc-plugin
Working copy of https://github.com/apple/swift-docc-plugin resolved at 1.3.0
BUILD FAILURE 5.9 macosSpm