The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build HeadingIndicator, reference main (550c7f), with Swift 6.2 (beta) for macOS (SPM) on 20 Jun 2025 02:11:16 UTC.

Build Command

env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64

Build Log

========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/kiliankoe/HeadingIndicator.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/kiliankoe/HeadingIndicator
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 550c7f7 fix example indentation
Cloned https://github.com/kiliankoe/HeadingIndicator.git
Revision (git rev-parse @):
550c7f7a4636f4fae276939706b040a7294f520a
SUCCESS checkout https://github.com/kiliankoe/HeadingIndicator.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/kiliankoe/HeadingIndicator.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-1EA4D86E10B52AF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/5] Emitting module HeadingIndicator
/Users/admin/builder/spi-builder-workspace/Sources/HeadingIndicator/HeadingIndicator.swift:48:27: error: 'View' is only available in macOS 10.15 or newer
 2 | import SwiftUI
 3 |
 4 | public struct HeadingIndicator<Content: View>: View {
   |               `- note: add @available attribute to enclosing generic struct
 5 |     let currentLocation: CLLocationCoordinate2D
 6 |     let currentHeading: CLHeading
   :
46 |     }
47 |
48 |     public var body: some View {
   |                |          `- error: 'View' is only available in macOS 10.15 or newer
   |                `- note: add @available attribute to enclosing property
49 |         content
50 |             .rotationEffect(.degrees(self.targetHeading))
/Users/admin/builder/spi-builder-workspace/Sources/HeadingIndicator/HeadingIndicator.swift:4:41: error: 'View' is only available in macOS 10.15 or newer
 2 | import SwiftUI
 3 |
 4 | public struct HeadingIndicator<Content: View>: View {
   |               |                         `- error: 'View' is only available in macOS 10.15 or newer
   |               `- note: add @available attribute to enclosing generic struct
 5 |     let currentLocation: CLLocationCoordinate2D
 6 |     let currentHeading: CLHeading
[4/5] Compiling HeadingIndicator Double+ext.swift
[5/5] Compiling HeadingIndicator HeadingIndicator.swift
/Users/admin/builder/spi-builder-workspace/Sources/HeadingIndicator/HeadingIndicator.swift:48:27: error: 'View' is only available in macOS 10.15 or newer
 2 | import SwiftUI
 3 |
 4 | public struct HeadingIndicator<Content: View>: View {
   |               `- note: add @available attribute to enclosing generic struct
 5 |     let currentLocation: CLLocationCoordinate2D
 6 |     let currentHeading: CLHeading
   :
46 |     }
47 |
48 |     public var body: some View {
   |                |          `- error: 'View' is only available in macOS 10.15 or newer
   |                `- note: add @available attribute to enclosing property
49 |         content
50 |             .rotationEffect(.degrees(self.targetHeading))
/Users/admin/builder/spi-builder-workspace/Sources/HeadingIndicator/HeadingIndicator.swift:4:41: error: 'View' is only available in macOS 10.15 or newer
 2 | import SwiftUI
 3 |
 4 | public struct HeadingIndicator<Content: View>: View {
   |               |                         `- error: 'View' is only available in macOS 10.15 or newer
   |               `- note: add @available attribute to enclosing generic struct
 5 |     let currentLocation: CLLocationCoordinate2D
 6 |     let currentHeading: CLHeading
/Users/admin/builder/spi-builder-workspace/Sources/HeadingIndicator/HeadingIndicator.swift:50:14: error: 'rotationEffect(_:anchor:)' is only available in macOS 10.15 or newer
 2 | import SwiftUI
 3 |
 4 | public struct HeadingIndicator<Content: View>: View {
   |               `- note: add @available attribute to enclosing generic struct
 5 |     let currentLocation: CLLocationCoordinate2D
 6 |     let currentHeading: CLHeading
   :
46 |     }
47 |
48 |     public var body: some View {
   |                `- note: add @available attribute to enclosing property
49 |         content
50 |             .rotationEffect(.degrees(self.targetHeading))
   |              |- error: 'rotationEffect(_:anchor:)' is only available in macOS 10.15 or newer
   |              `- note: add 'if #available' version check
51 |     }
52 | }
BUILD FAILURE 6.2 macosSpm