Build Information
Failed to build AsyncDownSamplingImage, reference 1.1.0 (05700f
), with Swift 5.8 for macOS (SPM) on 16 Oct 2024 19:05:13 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-14.3.1.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.8
Building package at path: $PWD
https://github.com/fummicc1/AsyncDownSamplingImage.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-14.3.1.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 TypeCompatibility.swift
[4/8] Compiling AsyncDownSamplingImage Incremental.swift
[5/8] Emitting module AsyncDownSamplingImage
[6/8] Compiling AsyncDownSamplingImage AsyncDownSamplingImage.swift
/Users/admin/builder/spi-builder-workspace/Sources/AsyncDownSamplingImage/AsyncDownSamplingImage.swift:55:31: error: expected initial value after '='
let width: CGFloat? = if let width {
^
/Users/admin/builder/spi-builder-workspace/Sources/AsyncDownSamplingImage/AsyncDownSamplingImage.swift:55:30: error: consecutive statements on a line must be separated by ';'
let width: CGFloat? = if let width {
^
;
/Users/admin/builder/spi-builder-workspace/Sources/AsyncDownSamplingImage/AsyncDownSamplingImage.swift:60:32: error: expected initial value after '='
let height: CGFloat? = if let height {
^
/Users/admin/builder/spi-builder-workspace/Sources/AsyncDownSamplingImage/AsyncDownSamplingImage.swift:60:31: error: consecutive statements on a line must be separated by ';'
let height: CGFloat? = if let height {
^
;
/Users/admin/builder/spi-builder-workspace/Sources/AsyncDownSamplingImage/AsyncDownSamplingImage.swift:35:20: warning: expression of type 'CGFloat' is unused
cGSize.width
~~~~~~~^~~~~
/Users/admin/builder/spi-builder-workspace/Sources/AsyncDownSamplingImage/AsyncDownSamplingImage.swift:37:13: warning: expression of type 'Double' is unused
double
^~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/AsyncDownSamplingImage/AsyncDownSamplingImage.swift:39:13: error: 'nil' requires a contextual type
nil
^
/Users/admin/builder/spi-builder-workspace/Sources/AsyncDownSamplingImage/AsyncDownSamplingImage.swift:46:20: warning: expression of type 'CGFloat' is unused
cGSize.height
~~~~~~~^~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/AsyncDownSamplingImage/AsyncDownSamplingImage.swift:48:13: error: 'nil' requires a contextual type
nil
^
/Users/admin/builder/spi-builder-workspace/Sources/AsyncDownSamplingImage/AsyncDownSamplingImage.swift:50:13: warning: expression of type 'Double' is unused
double
^~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/AsyncDownSamplingImage/AsyncDownSamplingImage.swift:56:13: warning: expression of type 'CGFloat' is unused
width
^~~~~
/Users/admin/builder/spi-builder-workspace/Sources/AsyncDownSamplingImage/AsyncDownSamplingImage.swift:58:13: error: 'nil' requires a contextual type
nil
^
/Users/admin/builder/spi-builder-workspace/Sources/AsyncDownSamplingImage/AsyncDownSamplingImage.swift:61:13: warning: expression of type 'CGFloat' is unused
height
^~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/AsyncDownSamplingImage/AsyncDownSamplingImage.swift:63:13: error: 'nil' requires a contextual type
nil
^
/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
^
[7/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
[8/8] Compiling AsyncDownSamplingImage Downsampling.swift
/Users/admin/builder/spi-builder-workspace/Sources/AsyncDownSamplingImage/Downsampling.swift:21:34: warning: heterogeneous collection literal could only be inferred to '[CFString : Any]'; add explicit type annotation if this is intentional
let downsampledOptions = [
^
/Users/admin/builder/spi-builder-workspace/Sources/AsyncDownSamplingImage/Downsampling.swift:42:46: warning: result of operator '*' is unused
max(cGSize.width, cGSize.height) * scale
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/AsyncDownSamplingImage/Downsampling.swift:44:20: warning: result of operator '*' is unused
double * scale
~~~~~~ ^ ~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/AsyncDownSamplingImage/Downsampling.swift:46:20: warning: result of operator '*' is unused
double * scale
~~~~~~ ^ ~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/AsyncDownSamplingImage/Downsampling.swift:48:5: error: missing return in getter expected to return 'Double'
}
^
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-symbolkit (1.87s)
Fetched https://github.com/apple/swift-docc-plugin (1.87s)
Computing version for https://github.com/apple/swift-docc-plugin
Computed https://github.com/apple/swift-docc-plugin at 1.3.0 (0.70s)
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.8 macosSpm