Build Information
Failed to build CircularSpinner with Swift 5.8 for macOS (SPM).
Build Command
env DEVELOPER_DIR=/Applications/Xcode-14.3.1.app xcrun swift build --arch arm64
Build Log
========================================
RunAll
========================================
Builder version: 4.34.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/johnnewman/CircularSpinner.git
Reference: main
Initialized empty Git repository in /Users/builder/builds/o86TiJKT/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/.git/
From https://github.com/johnnewman/CircularSpinner
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 7a7b536 Merge pull request #3 from johnnewman/jn-shields
Cloned https://github.com/johnnewman/CircularSpinner.git
Revision (git rev-parse @):
7a7b536e9681afd2409b0fbc6140531eeb358311
SUCCESS checkout https://github.com/johnnewman/CircularSpinner.git at main
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 5.8
Building package at path: $workDir
https://github.com/johnnewman/CircularSpinner.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-14.3.1.app xcrun swift build --arch arm64
Building for debugging...
[0/1] Copying PrivacyInfo.xcprivacy
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/7] Emitting module CircularSpinner
/Users/builder/builds/o86TiJKT/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/CircularSpinner/CircularSpinner.swift:101:1: error: use of unknown directive '#Preview'
#Preview("Diameter") {
^
[3/7] Compiling CircularSpinner CircularSpinner.swift
/Users/builder/builds/o86TiJKT/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/CircularSpinner/CircularSpinner.swift:101:1: error: use of unknown directive '#Preview'
#Preview("Diameter") {
^
/Users/builder/builds/o86TiJKT/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/CircularSpinner/CircularSpinner.swift:53:61: error: extra argument 'duration' in call
self.spinAnimation = .interpolatingSpring(duration: animationDuration)
~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
/Users/builder/builds/o86TiJKT/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/CircularSpinner/CircularSpinner.swift:53:50: error: missing arguments for parameters 'stiffness', 'damping' in call
self.spinAnimation = .interpolatingSpring(duration: animationDuration)
^
SwiftUI.Animation:3:24: note: 'interpolatingSpring(mass:stiffness:damping:initialVelocity:)' declared here
public static func interpolatingSpring(mass: Double = 1.0, stiffness: Double, damping: Double, initialVelocity: Double = 0.0) -> Animation
^
[4/7] Compiling CircularSpinner Length.swift
/Users/builder/builds/o86TiJKT/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/CircularSpinner/CircularSpinner.swift:101:1: error: use of unknown directive '#Preview'
#Preview("Diameter") {
^
[5/7] Compiling CircularSpinner resource_bundle_accessor.swift
/Users/builder/builds/o86TiJKT/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/CircularSpinner/CircularSpinner.swift:101:1: error: use of unknown directive '#Preview'
#Preview("Diameter") {
^
[6/7] Compiling CircularSpinner SpinnerStyle.swift
/Users/builder/builds/o86TiJKT/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/CircularSpinner/CircularSpinner.swift:101:1: error: use of unknown directive '#Preview'
#Preview("Diameter") {
^
[7/7] Compiling CircularSpinner SwiftUIExtensions.swift
/Users/builder/builds/o86TiJKT/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/CircularSpinner/CircularSpinner.swift:101:1: error: use of unknown directive '#Preview'
#Preview("Diameter") {
^
[0/1] Planning build
Building for debugging...
[1/6] Compiling CircularSpinner Length.swift
/Users/builder/builds/o86TiJKT/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/CircularSpinner/CircularSpinner.swift:101:1: error: use of unknown directive '#Preview'
#Preview("Diameter") {
^
[2/6] Compiling CircularSpinner SwiftUIExtensions.swift
/Users/builder/builds/o86TiJKT/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/CircularSpinner/CircularSpinner.swift:101:1: error: use of unknown directive '#Preview'
#Preview("Diameter") {
^
[3/6] Compiling CircularSpinner SpinnerStyle.swift
/Users/builder/builds/o86TiJKT/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/CircularSpinner/CircularSpinner.swift:101:1: error: use of unknown directive '#Preview'
#Preview("Diameter") {
^
[4/6] Compiling CircularSpinner resource_bundle_accessor.swift
/Users/builder/builds/o86TiJKT/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/CircularSpinner/CircularSpinner.swift:101:1: error: use of unknown directive '#Preview'
#Preview("Diameter") {
^
error: emit-module command failed with exit code 1 (use -v to see invocation)
[5/6] Emitting module CircularSpinner
/Users/builder/builds/o86TiJKT/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/CircularSpinner/CircularSpinner.swift:101:1: error: use of unknown directive '#Preview'
#Preview("Diameter") {
^
[6/6] Compiling CircularSpinner CircularSpinner.swift
/Users/builder/builds/o86TiJKT/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/CircularSpinner/CircularSpinner.swift:101:1: error: use of unknown directive '#Preview'
#Preview("Diameter") {
^
/Users/builder/builds/o86TiJKT/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/CircularSpinner/CircularSpinner.swift:53:61: error: extra argument 'duration' in call
self.spinAnimation = .interpolatingSpring(duration: animationDuration)
~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
/Users/builder/builds/o86TiJKT/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/CircularSpinner/CircularSpinner.swift:53:50: error: missing arguments for parameters 'stiffness', 'damping' in call
self.spinAnimation = .interpolatingSpring(duration: animationDuration)
^
SwiftUI.Animation:3:24: note: 'interpolatingSpring(mass:stiffness:damping:initialVelocity:)' declared here
public static func interpolatingSpring(mass: Double = 1.0, stiffness: Double, damping: Double, initialVelocity: Double = 0.0) -> Animation
^
BUILD FAILURE 5.8 macosSpm