This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.

The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Failed to build RKProgressBar with Swift 6.0 for macOS (SPM).

Build Command

env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

Build Log

========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/maxxfrazer/RKProgressBar.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/maxxfrazer/RKProgressBar
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at bd45a50 added MIT license
Cloned https://github.com/maxxfrazer/RKProgressBar.git
Revision (git rev-parse @):
bd45a5056f441d79298e1271fa90dc14b407e3cb
SUCCESS checkout https://github.com/maxxfrazer/RKProgressBar.git at master
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/maxxfrazer/RKProgressBar.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-6F35C1178C84523A.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/4] Emitting module RKProgressBar
<unknown>:0: note: add '@preconcurrency' to the 'Hashable' conformance to defer isolation checking to run time
RealityFoundation.Entity:3:28: warning: main actor-isolated instance method 'hash(into:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
1 | @available(macOS 10.15, iOS 13.0, *)
2 | extension Entity : Hashable {
3 |     @MainActor public func hash(into hasher: inout Hasher)
  |                            `- warning: main actor-isolated instance method 'hash(into:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
4 |     @MainActor public static func == (lhs: Entity, rhs: Entity) -> Bool
5 |     nonisolated open var hashValue: Int { get }
Swift.Hashable:3:10: note: 'hash(into:)' declared here
1 | public protocol Hashable : Equatable {
2 |     var hashValue: Int { get }
3 |     func hash(into hasher: inout Hasher)
  |          `- note: 'hash(into:)' declared here
4 |     func _rawHashValue(seed: Int) -> Int
5 | }
<unknown>:0: note: add '@preconcurrency' to the 'Equatable' conformance to defer isolation checking to run time
RealityFoundation.Entity:4:35: warning: main actor-isolated operator function '==' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
2 | extension Entity : Hashable {
3 |     @MainActor public func hash(into hasher: inout Hasher)
4 |     @MainActor public static func == (lhs: Entity, rhs: Entity) -> Bool
  |                                   `- warning: main actor-isolated operator function '==' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
5 |     nonisolated open var hashValue: Int { get }
6 | }
Swift.Equatable:2:17: note: '==' declared here
1 | public protocol Equatable {
2 |     static func == (lhs: Self, rhs: Self) -> Bool
  |                 `- note: '==' declared here
3 | }
<unknown>:0: note: add '@preconcurrency' to the 'Identifiable' conformance to defer isolation checking to run time
RealityFoundation.Entity:3:27: warning: main actor-isolated property 'id' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
1 | @available(macOS 10.15, iOS 13.0, *)
2 | extension Entity : Identifiable {
3 |     @MainActor public var id: UInt64 { get }
  |                           `- warning: main actor-isolated property 'id' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
4 |     public typealias ID = UInt64
5 | }
Swift.Identifiable:4:9: note: 'id' declared here
2 | public protocol Identifiable<ID> {
3 |     associatedtype ID : Hashable
4 |     var id: Self.ID { get }
  |         `- note: 'id' declared here
5 | }
/Users/admin/builder/spi-builder-workspace/Sources/RKProgressBar/RKProgressBar.swift:15:28: error: 'ModelEntity' is only available in macOS 10.15 or newer
 12 |
 13 | /// A capsule shaped geometry for showing progress in RealityKit 􀘸
 14 | public class RKProgressBar: Entity {
    |              `- note: add @available attribute to enclosing class
 15 |   private let innerModel = ModelEntity()
    |                            `- error: 'ModelEntity' is only available in macOS 10.15 or newer
 16 |   private let outerModel = ModelEntity()
 17 |   internal var innerMargin: Float = 0.25
/Users/admin/builder/spi-builder-workspace/Sources/RKProgressBar/RKProgressBar.swift:16:28: error: 'ModelEntity' is only available in macOS 10.15 or newer
 12 |
 13 | /// A capsule shaped geometry for showing progress in RealityKit 􀘸
 14 | public class RKProgressBar: Entity {
    |              `- note: add @available attribute to enclosing class
 15 |   private let innerModel = ModelEntity()
 16 |   private let outerModel = ModelEntity()
    |                            `- error: 'ModelEntity' is only available in macOS 10.15 or newer
 17 |   internal var innerMargin: Float = 0.25
 18 |
/Users/admin/builder/spi-builder-workspace/Sources/RKProgressBar/RKProgressBar.swift:31:17: error: 'SimpleMaterial' is only available in macOS 10.15 or newer
 12 |
 13 | /// A capsule shaped geometry for showing progress in RealityKit 􀘸
 14 | public class RKProgressBar: Entity {
    |              `- note: add @available attribute to enclosing class
 15 |   private let innerModel = ModelEntity()
 16 |   private let outerModel = ModelEntity()
    :
 28 |   ///   - innerMargin: distance between the internal capsule and the edge of the external.
 29 |   ///   - startAt: Position to start the capsule at (0...1)
 30 |   required public init(
    |                   `- note: add @available attribute to enclosing initializer
 31 |     innerColor: SimpleMaterial.Color = .green,
    |                 `- error: 'SimpleMaterial' is only available in macOS 10.15 or newer
 32 |     outerColor: SimpleMaterial.Color = .black,
 33 |     innerMargin: Float = 0.25,
/Users/admin/builder/spi-builder-workspace/Sources/RKProgressBar/RKProgressBar.swift:32:17: error: 'SimpleMaterial' is only available in macOS 10.15 or newer
 12 |
 13 | /// A capsule shaped geometry for showing progress in RealityKit 􀘸
 14 | public class RKProgressBar: Entity {
    |              `- note: add @available attribute to enclosing class
 15 |   private let innerModel = ModelEntity()
 16 |   private let outerModel = ModelEntity()
    :
 28 |   ///   - innerMargin: distance between the internal capsule and the edge of the external.
 29 |   ///   - startAt: Position to start the capsule at (0...1)
 30 |   required public init(
    |                   `- note: add @available attribute to enclosing initializer
 31 |     innerColor: SimpleMaterial.Color = .green,
 32 |     outerColor: SimpleMaterial.Color = .black,
    |                 `- error: 'SimpleMaterial' is only available in macOS 10.15 or newer
 33 |     innerMargin: Float = 0.25,
 34 |     startAt: Float = 1
/Users/admin/builder/spi-builder-workspace/Sources/RKProgressBar/RKProgressBar.swift:31:41: warning: class property 'green' cannot be used in a default argument value because 'AppKit' was not imported by this file; this is an error in the Swift 6 language mode
 29 |   ///   - startAt: Position to start the capsule at (0...1)
 30 |   required public init(
 31 |     innerColor: SimpleMaterial.Color = .green,
    |                                         |- warning: class property 'green' cannot be used in a default argument value because 'AppKit' was not imported by this file; this is an error in the Swift 6 language mode
    |                                         `- note: The missing import of module 'AppKit' will be added implicitly
 32 |     outerColor: SimpleMaterial.Color = .black,
 33 |     innerMargin: Float = 0.25,
/Users/admin/builder/spi-builder-workspace/Sources/RKProgressBar/RKProgressBar.swift:32:41: warning: class property 'black' cannot be used in a default argument value because 'AppKit' was not imported by this file; this is an error in the Swift 6 language mode
 30 |   required public init(
 31 |     innerColor: SimpleMaterial.Color = .green,
 32 |     outerColor: SimpleMaterial.Color = .black,
    |                                         |- warning: class property 'black' cannot be used in a default argument value because 'AppKit' was not imported by this file; this is an error in the Swift 6 language mode
    |                                         `- note: The missing import of module 'AppKit' will be added implicitly
 33 |     innerMargin: Float = 0.25,
 34 |     startAt: Float = 1
/Users/admin/builder/spi-builder-workspace/Sources/RKProgressBar/RKProgressBar.swift:72:92: error: 'AnimationTimingFunction' is only available in macOS 10.15 or newer
 12 |
 13 | /// A capsule shaped geometry for showing progress in RealityKit 􀘸
 14 | public class RKProgressBar: Entity {
    |              `- note: add @available attribute to enclosing class
 15 |   private let innerModel = ModelEntity()
 16 |   private let outerModel = ModelEntity()
    :
 70 |   ///   - progress: Desired value, between 0 and 1 only.
 71 |   ///   - duration: Time taken to animate to desired value, default 1.
 72 |   public func moveProgress(to progress: Float, duration: TimeInterval = 1, timingFunction: AnimationTimingFunction = .linear) {
    |               |                                                                            `- error: 'AnimationTimingFunction' is only available in macOS 10.15 or newer
    |               `- note: add @available attribute to enclosing instance method
 73 |     self.innerModel.isEnabled = true
 74 |     assert((0.0...1.0).contains(progress), "Health value must be between 0 and 1")
/Users/admin/builder/spi-builder-workspace/Sources/RKProgressBar/RKProgressBar.swift:14:29: error: 'Entity' is only available in macOS 10.15 or newer
 12 |
 13 | /// A capsule shaped geometry for showing progress in RealityKit 􀘸
 14 | public class RKProgressBar: Entity {
    |              |              `- error: 'Entity' is only available in macOS 10.15 or newer
    |              `- note: add @available attribute to enclosing class
 15 |   private let innerModel = ModelEntity()
 16 |   private let outerModel = ModelEntity()
[4/4] Compiling RKProgressBar RKProgressBar.swift
<unknown>:0: note: add '@preconcurrency' to the 'Hashable' conformance to defer isolation checking to run time
RealityFoundation.Entity:3:28: warning: main actor-isolated instance method 'hash(into:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
1 | @available(macOS 10.15, iOS 13.0, *)
2 | extension Entity : Hashable {
3 |     @MainActor public func hash(into hasher: inout Hasher)
  |                            `- warning: main actor-isolated instance method 'hash(into:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
4 |     @MainActor public static func == (lhs: Entity, rhs: Entity) -> Bool
5 |     nonisolated open var hashValue: Int { get }
Swift.Hashable:3:10: note: 'hash(into:)' declared here
1 | public protocol Hashable : Equatable {
2 |     var hashValue: Int { get }
3 |     func hash(into hasher: inout Hasher)
  |          `- note: 'hash(into:)' declared here
4 |     func _rawHashValue(seed: Int) -> Int
5 | }
<unknown>:0: note: add '@preconcurrency' to the 'Equatable' conformance to defer isolation checking to run time
RealityFoundation.Entity:4:35: warning: main actor-isolated operator function '==' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
2 | extension Entity : Hashable {
3 |     @MainActor public func hash(into hasher: inout Hasher)
4 |     @MainActor public static func == (lhs: Entity, rhs: Entity) -> Bool
  |                                   `- warning: main actor-isolated operator function '==' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
5 |     nonisolated open var hashValue: Int { get }
6 | }
Swift.Equatable:2:17: note: '==' declared here
1 | public protocol Equatable {
2 |     static func == (lhs: Self, rhs: Self) -> Bool
  |                 `- note: '==' declared here
3 | }
<unknown>:0: note: add '@preconcurrency' to the 'Identifiable' conformance to defer isolation checking to run time
RealityFoundation.Entity:3:27: warning: main actor-isolated property 'id' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
1 | @available(macOS 10.15, iOS 13.0, *)
2 | extension Entity : Identifiable {
3 |     @MainActor public var id: UInt64 { get }
  |                           `- warning: main actor-isolated property 'id' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
4 |     public typealias ID = UInt64
5 | }
Swift.Identifiable:4:9: note: 'id' declared here
2 | public protocol Identifiable<ID> {
3 |     associatedtype ID : Hashable
4 |     var id: Self.ID { get }
  |         `- note: 'id' declared here
5 | }
/Users/admin/builder/spi-builder-workspace/Sources/RKProgressBar/RKProgressBar.swift:15:28: error: 'ModelEntity' is only available in macOS 10.15 or newer
 12 |
 13 | /// A capsule shaped geometry for showing progress in RealityKit 􀘸
 14 | public class RKProgressBar: Entity {
    |              `- note: add @available attribute to enclosing class
 15 |   private let innerModel = ModelEntity()
    |                            `- error: 'ModelEntity' is only available in macOS 10.15 or newer
 16 |   private let outerModel = ModelEntity()
 17 |   internal var innerMargin: Float = 0.25
/Users/admin/builder/spi-builder-workspace/Sources/RKProgressBar/RKProgressBar.swift:16:28: error: 'ModelEntity' is only available in macOS 10.15 or newer
 12 |
 13 | /// A capsule shaped geometry for showing progress in RealityKit 􀘸
 14 | public class RKProgressBar: Entity {
    |              `- note: add @available attribute to enclosing class
 15 |   private let innerModel = ModelEntity()
 16 |   private let outerModel = ModelEntity()
    |                            `- error: 'ModelEntity' is only available in macOS 10.15 or newer
 17 |   internal var innerMargin: Float = 0.25
 18 |
/Users/admin/builder/spi-builder-workspace/Sources/RKProgressBar/RKProgressBar.swift:31:17: error: 'SimpleMaterial' is only available in macOS 10.15 or newer
 12 |
 13 | /// A capsule shaped geometry for showing progress in RealityKit 􀘸
 14 | public class RKProgressBar: Entity {
    |              `- note: add @available attribute to enclosing class
 15 |   private let innerModel = ModelEntity()
 16 |   private let outerModel = ModelEntity()
    :
 28 |   ///   - innerMargin: distance between the internal capsule and the edge of the external.
 29 |   ///   - startAt: Position to start the capsule at (0...1)
 30 |   required public init(
    |                   `- note: add @available attribute to enclosing initializer
 31 |     innerColor: SimpleMaterial.Color = .green,
    |                 `- error: 'SimpleMaterial' is only available in macOS 10.15 or newer
 32 |     outerColor: SimpleMaterial.Color = .black,
 33 |     innerMargin: Float = 0.25,
/Users/admin/builder/spi-builder-workspace/Sources/RKProgressBar/RKProgressBar.swift:32:17: error: 'SimpleMaterial' is only available in macOS 10.15 or newer
 12 |
 13 | /// A capsule shaped geometry for showing progress in RealityKit 􀘸
 14 | public class RKProgressBar: Entity {
    |              `- note: add @available attribute to enclosing class
 15 |   private let innerModel = ModelEntity()
 16 |   private let outerModel = ModelEntity()
    :
 28 |   ///   - innerMargin: distance between the internal capsule and the edge of the external.
 29 |   ///   - startAt: Position to start the capsule at (0...1)
 30 |   required public init(
    |                   `- note: add @available attribute to enclosing initializer
 31 |     innerColor: SimpleMaterial.Color = .green,
 32 |     outerColor: SimpleMaterial.Color = .black,
    |                 `- error: 'SimpleMaterial' is only available in macOS 10.15 or newer
 33 |     innerMargin: Float = 0.25,
 34 |     startAt: Float = 1
/Users/admin/builder/spi-builder-workspace/Sources/RKProgressBar/RKProgressBar.swift:31:41: warning: class property 'green' cannot be used in a default argument value because 'AppKit' was not imported by this file; this is an error in the Swift 6 language mode
 29 |   ///   - startAt: Position to start the capsule at (0...1)
 30 |   required public init(
 31 |     innerColor: SimpleMaterial.Color = .green,
    |                                         |- warning: class property 'green' cannot be used in a default argument value because 'AppKit' was not imported by this file; this is an error in the Swift 6 language mode
    |                                         `- note: The missing import of module 'AppKit' will be added implicitly
 32 |     outerColor: SimpleMaterial.Color = .black,
 33 |     innerMargin: Float = 0.25,
/Users/admin/builder/spi-builder-workspace/Sources/RKProgressBar/RKProgressBar.swift:32:41: warning: class property 'black' cannot be used in a default argument value because 'AppKit' was not imported by this file; this is an error in the Swift 6 language mode
 30 |   required public init(
 31 |     innerColor: SimpleMaterial.Color = .green,
 32 |     outerColor: SimpleMaterial.Color = .black,
    |                                         |- warning: class property 'black' cannot be used in a default argument value because 'AppKit' was not imported by this file; this is an error in the Swift 6 language mode
    |                                         `- note: The missing import of module 'AppKit' will be added implicitly
 33 |     innerMargin: Float = 0.25,
 34 |     startAt: Float = 1
/Users/admin/builder/spi-builder-workspace/Sources/RKProgressBar/RKProgressBar.swift:72:92: error: 'AnimationTimingFunction' is only available in macOS 10.15 or newer
 12 |
 13 | /// A capsule shaped geometry for showing progress in RealityKit 􀘸
 14 | public class RKProgressBar: Entity {
    |              `- note: add @available attribute to enclosing class
 15 |   private let innerModel = ModelEntity()
 16 |   private let outerModel = ModelEntity()
    :
 70 |   ///   - progress: Desired value, between 0 and 1 only.
 71 |   ///   - duration: Time taken to animate to desired value, default 1.
 72 |   public func moveProgress(to progress: Float, duration: TimeInterval = 1, timingFunction: AnimationTimingFunction = .linear) {
    |               |                                                                            `- error: 'AnimationTimingFunction' is only available in macOS 10.15 or newer
    |               `- note: add @available attribute to enclosing instance method
 73 |     self.innerModel.isEnabled = true
 74 |     assert((0.0...1.0).contains(progress), "Health value must be between 0 and 1")
/Users/admin/builder/spi-builder-workspace/Sources/RKProgressBar/RKProgressBar.swift:14:29: error: 'Entity' is only available in macOS 10.15 or newer
 12 |
 13 | /// A capsule shaped geometry for showing progress in RealityKit 􀘸
 14 | public class RKProgressBar: Entity {
    |              |              `- error: 'Entity' is only available in macOS 10.15 or newer
    |              `- note: add @available attribute to enclosing class
 15 |   private let innerModel = ModelEntity()
 16 |   private let outerModel = ModelEntity()
/Users/admin/builder/spi-builder-workspace/Sources/RKProgressBar/RKProgressBar.swift:21:16: error: 'transform' is only available in macOS 10.15 or newer
 12 |
 13 | /// A capsule shaped geometry for showing progress in RealityKit 􀘸
 14 | public class RKProgressBar: Entity {
    |              `- note: add @available attribute to enclosing class
 15 |   private let innerModel = ModelEntity()
 16 |   private let outerModel = ModelEntity()
    :
 18 |
 19 |   /// Get the current progress of the RKProgressBar
 20 |   public var progress: Float {
    |              `- note: add @available attribute to enclosing property
 21 |     innerModel.transform.scale.x
    |                |- error: 'transform' is only available in macOS 10.15 or newer
    |                `- note: add 'if #available' version check
 22 |   }
 23 |
/Users/admin/builder/spi-builder-workspace/Sources/RKProgressBar/RKProgressBar.swift:38:20: error: 'MeshResource' is only available in macOS 10.15 or newer
 12 |
 13 | /// A capsule shaped geometry for showing progress in RealityKit 􀘸
 14 | public class RKProgressBar: Entity {
    |              `- note: add @available attribute to enclosing class
 15 |   private let innerModel = ModelEntity()
 16 |   private let outerModel = ModelEntity()
    :
 28 |   ///   - innerMargin: distance between the internal capsule and the edge of the external.
 29 |   ///   - startAt: Position to start the capsule at (0...1)
 30 |   required public init(
    |                   `- note: add @available attribute to enclosing initializer
 31 |     innerColor: SimpleMaterial.Color = .green,
 32 |     outerColor: SimpleMaterial.Color = .black,
    :
 36 |     self.innerMargin = innerMargin
 37 |     super.init()
 38 |     let innerBar = MeshResource.generateBox(width: 10, height: 1, depth: 1, cornerRadius: 0.5, splitFaces: false)
    |                    |- error: 'MeshResource' is only available in macOS 10.15 or newer
    |                    `- note: add 'if #available' version check
 39 |     let outerBar = MeshResource.generateBox(
 40 |       width: 10 + self.innerMargin * 2,
/Users/admin/builder/spi-builder-workspace/Sources/RKProgressBar/RKProgressBar.swift:39:20: error: 'MeshResource' is only available in macOS 10.15 or newer
 12 |
 13 | /// A capsule shaped geometry for showing progress in RealityKit 􀘸
 14 | public class RKProgressBar: Entity {
    |              `- note: add @available attribute to enclosing class
 15 |   private let innerModel = ModelEntity()
 16 |   private let outerModel = ModelEntity()
    :
 28 |   ///   - innerMargin: distance between the internal capsule and the edge of the external.
 29 |   ///   - startAt: Position to start the capsule at (0...1)
 30 |   required public init(
    |                   `- note: add @available attribute to enclosing initializer
 31 |     innerColor: SimpleMaterial.Color = .green,
 32 |     outerColor: SimpleMaterial.Color = .black,
    :
 37 |     super.init()
 38 |     let innerBar = MeshResource.generateBox(width: 10, height: 1, depth: 1, cornerRadius: 0.5, splitFaces: false)
 39 |     let outerBar = MeshResource.generateBox(
    |                    |- error: 'MeshResource' is only available in macOS 10.15 or newer
    |                    `- note: add 'if #available' version check
 40 |       width: 10 + self.innerMargin * 2,
 41 |       height: 1 + self.innerMargin * 2,
/Users/admin/builder/spi-builder-workspace/Sources/RKProgressBar/RKProgressBar.swift:45:21: error: 'model' is only available in macOS 10.15 or newer
 12 |
 13 | /// A capsule shaped geometry for showing progress in RealityKit 􀘸
 14 | public class RKProgressBar: Entity {
    |              `- note: add @available attribute to enclosing class
 15 |   private let innerModel = ModelEntity()
 16 |   private let outerModel = ModelEntity()
    :
 28 |   ///   - innerMargin: distance between the internal capsule and the edge of the external.
 29 |   ///   - startAt: Position to start the capsule at (0...1)
 30 |   required public init(
    |                   `- note: add @available attribute to enclosing initializer
 31 |     innerColor: SimpleMaterial.Color = .green,
 32 |     outerColor: SimpleMaterial.Color = .black,
    :
 43 |       cornerRadius: 0.5 + self.innerMargin, splitFaces: false
 44 |     )
 45 |     self.innerModel.model = ModelComponent(
    |                     |- error: 'model' is only available in macOS 10.15 or newer
    |                     `- note: add 'if #available' version check
 46 |       mesh: innerBar,
 47 |       materials: [SimpleMaterial(color: innerColor, isMetallic: false)]
/Users/admin/builder/spi-builder-workspace/Sources/RKProgressBar/RKProgressBar.swift:45:29: error: 'ModelComponent' is only available in macOS 10.15 or newer
 12 |
 13 | /// A capsule shaped geometry for showing progress in RealityKit 􀘸
 14 | public class RKProgressBar: Entity {
    |              `- note: add @available attribute to enclosing class
 15 |   private let innerModel = ModelEntity()
 16 |   private let outerModel = ModelEntity()
    :
 28 |   ///   - innerMargin: distance between the internal capsule and the edge of the external.
 29 |   ///   - startAt: Position to start the capsule at (0...1)
 30 |   required public init(
    |                   `- note: add @available attribute to enclosing initializer
 31 |     innerColor: SimpleMaterial.Color = .green,
 32 |     outerColor: SimpleMaterial.Color = .black,
    :
 43 |       cornerRadius: 0.5 + self.innerMargin, splitFaces: false
 44 |     )
 45 |     self.innerModel.model = ModelComponent(
    |                             |- error: 'ModelComponent' is only available in macOS 10.15 or newer
    |                             `- note: add 'if #available' version check
 46 |       mesh: innerBar,
 47 |       materials: [SimpleMaterial(color: innerColor, isMetallic: false)]
/Users/admin/builder/spi-builder-workspace/Sources/RKProgressBar/RKProgressBar.swift:47:19: error: 'SimpleMaterial' is only available in macOS 10.15 or newer
 12 |
 13 | /// A capsule shaped geometry for showing progress in RealityKit 􀘸
 14 | public class RKProgressBar: Entity {
    |              `- note: add @available attribute to enclosing class
 15 |   private let innerModel = ModelEntity()
 16 |   private let outerModel = ModelEntity()
    :
 28 |   ///   - innerMargin: distance between the internal capsule and the edge of the external.
 29 |   ///   - startAt: Position to start the capsule at (0...1)
 30 |   required public init(
    |                   `- note: add @available attribute to enclosing initializer
 31 |     innerColor: SimpleMaterial.Color = .green,
 32 |     outerColor: SimpleMaterial.Color = .black,
    :
 45 |     self.innerModel.model = ModelComponent(
 46 |       mesh: innerBar,
 47 |       materials: [SimpleMaterial(color: innerColor, isMetallic: false)]
    |                   |- error: 'SimpleMaterial' is only available in macOS 10.15 or newer
    |                   `- note: add 'if #available' version check
 48 |     )
 49 |     outerModel.model = ModelComponent(
/Users/admin/builder/spi-builder-workspace/Sources/RKProgressBar/RKProgressBar.swift:47:19: error: 'init(color:roughness:isMetallic:)' is only available in macOS 10.15 or newer
 12 |
 13 | /// A capsule shaped geometry for showing progress in RealityKit 􀘸
 14 | public class RKProgressBar: Entity {
    |              `- note: add @available attribute to enclosing class
 15 |   private let innerModel = ModelEntity()
 16 |   private let outerModel = ModelEntity()
    :
 28 |   ///   - innerMargin: distance between the internal capsule and the edge of the external.
 29 |   ///   - startAt: Position to start the capsule at (0...1)
 30 |   required public init(
    |                   `- note: add @available attribute to enclosing initializer
 31 |     innerColor: SimpleMaterial.Color = .green,
 32 |     outerColor: SimpleMaterial.Color = .black,
    :
 45 |     self.innerModel.model = ModelComponent(
 46 |       mesh: innerBar,
 47 |       materials: [SimpleMaterial(color: innerColor, isMetallic: false)]
    |                   |- error: 'init(color:roughness:isMetallic:)' is only available in macOS 10.15 or newer
    |                   `- note: add 'if #available' version check
 48 |     )
 49 |     outerModel.model = ModelComponent(
/Users/admin/builder/spi-builder-workspace/Sources/RKProgressBar/RKProgressBar.swift:49:16: error: 'model' is only available in macOS 10.15 or newer
 12 |
 13 | /// A capsule shaped geometry for showing progress in RealityKit 􀘸
 14 | public class RKProgressBar: Entity {
    |              `- note: add @available attribute to enclosing class
 15 |   private let innerModel = ModelEntity()
 16 |   private let outerModel = ModelEntity()
    :
 28 |   ///   - innerMargin: distance between the internal capsule and the edge of the external.
 29 |   ///   - startAt: Position to start the capsule at (0...1)
 30 |   required public init(
    |                   `- note: add @available attribute to enclosing initializer
 31 |     innerColor: SimpleMaterial.Color = .green,
 32 |     outerColor: SimpleMaterial.Color = .black,
    :
 47 |       materials: [SimpleMaterial(color: innerColor, isMetallic: false)]
 48 |     )
 49 |     outerModel.model = ModelComponent(
    |                |- error: 'model' is only available in macOS 10.15 or newer
    |                `- note: add 'if #available' version check
 50 |       mesh: outerBar,
 51 |       materials: [SimpleMaterial(color: outerColor, isMetallic: false)]
/Users/admin/builder/spi-builder-workspace/Sources/RKProgressBar/RKProgressBar.swift:49:24: error: 'ModelComponent' is only available in macOS 10.15 or newer
 12 |
 13 | /// A capsule shaped geometry for showing progress in RealityKit 􀘸
 14 | public class RKProgressBar: Entity {
    |              `- note: add @available attribute to enclosing class
 15 |   private let innerModel = ModelEntity()
 16 |   private let outerModel = ModelEntity()
    :
 28 |   ///   - innerMargin: distance between the internal capsule and the edge of the external.
 29 |   ///   - startAt: Position to start the capsule at (0...1)
 30 |   required public init(
    |                   `- note: add @available attribute to enclosing initializer
 31 |     innerColor: SimpleMaterial.Color = .green,
 32 |     outerColor: SimpleMaterial.Color = .black,
    :
 47 |       materials: [SimpleMaterial(color: innerColor, isMetallic: false)]
 48 |     )
 49 |     outerModel.model = ModelComponent(
    |                        |- error: 'ModelComponent' is only available in macOS 10.15 or newer
    |                        `- note: add 'if #available' version check
 50 |       mesh: outerBar,
 51 |       materials: [SimpleMaterial(color: outerColor, isMetallic: false)]
/Users/admin/builder/spi-builder-workspace/Sources/RKProgressBar/RKProgressBar.swift:51:19: error: 'SimpleMaterial' is only available in macOS 10.15 or newer
 12 |
 13 | /// A capsule shaped geometry for showing progress in RealityKit 􀘸
 14 | public class RKProgressBar: Entity {
    |              `- note: add @available attribute to enclosing class
 15 |   private let innerModel = ModelEntity()
 16 |   private let outerModel = ModelEntity()
    :
 28 |   ///   - innerMargin: distance between the internal capsule and the edge of the external.
 29 |   ///   - startAt: Position to start the capsule at (0...1)
 30 |   required public init(
    |                   `- note: add @available attribute to enclosing initializer
 31 |     innerColor: SimpleMaterial.Color = .green,
 32 |     outerColor: SimpleMaterial.Color = .black,
    :
 49 |     outerModel.model = ModelComponent(
 50 |       mesh: outerBar,
 51 |       materials: [SimpleMaterial(color: outerColor, isMetallic: false)]
    |                   |- error: 'SimpleMaterial' is only available in macOS 10.15 or newer
    |                   `- note: add 'if #available' version check
 52 |     )
 53 |     outerModel.scale = .init(repeating: -1)
/Users/admin/builder/spi-builder-workspace/Sources/RKProgressBar/RKProgressBar.swift:51:19: error: 'init(color:roughness:isMetallic:)' is only available in macOS 10.15 or newer
 12 |
 13 | /// A capsule shaped geometry for showing progress in RealityKit 􀘸
 14 | public class RKProgressBar: Entity {
    |              `- note: add @available attribute to enclosing class
 15 |   private let innerModel = ModelEntity()
 16 |   private let outerModel = ModelEntity()
    :
 28 |   ///   - innerMargin: distance between the internal capsule and the edge of the external.
 29 |   ///   - startAt: Position to start the capsule at (0...1)
 30 |   required public init(
    |                   `- note: add @available attribute to enclosing initializer
 31 |     innerColor: SimpleMaterial.Color = .green,
 32 |     outerColor: SimpleMaterial.Color = .black,
    :
 49 |     outerModel.model = ModelComponent(
 50 |       mesh: outerBar,
 51 |       materials: [SimpleMaterial(color: outerColor, isMetallic: false)]
    |                   |- error: 'init(color:roughness:isMetallic:)' is only available in macOS 10.15 or newer
    |                   `- note: add 'if #available' version check
 52 |     )
 53 |     outerModel.scale = .init(repeating: -1)
/Users/admin/builder/spi-builder-workspace/Sources/RKProgressBar/RKProgressBar.swift:53:16: error: 'scale' is only available in macOS 10.15 or newer
 12 |
 13 | /// A capsule shaped geometry for showing progress in RealityKit 􀘸
 14 | public class RKProgressBar: Entity {
    |              `- note: add @available attribute to enclosing class
 15 |   private let innerModel = ModelEntity()
 16 |   private let outerModel = ModelEntity()
    :
 28 |   ///   - innerMargin: distance between the internal capsule and the edge of the external.
 29 |   ///   - startAt: Position to start the capsule at (0...1)
 30 |   required public init(
    |                   `- note: add @available attribute to enclosing initializer
 31 |     innerColor: SimpleMaterial.Color = .green,
 32 |     outerColor: SimpleMaterial.Color = .black,
    :
 51 |       materials: [SimpleMaterial(color: outerColor, isMetallic: false)]
 52 |     )
 53 |     outerModel.scale = .init(repeating: -1)
    |                |- error: 'scale' is only available in macOS 10.15 or newer
    |                `- note: add 'if #available' version check
 54 |     self.addChild(outerModel)
 55 |     self.addChild(innerModel)
/Users/admin/builder/spi-builder-workspace/Sources/RKProgressBar/RKProgressBar.swift:54:10: error: 'addChild(_:preservingWorldTransform:)' is only available in macOS 10.15 or newer
 12 |
 13 | /// A capsule shaped geometry for showing progress in RealityKit 􀘸
 14 | public class RKProgressBar: Entity {
    |              `- note: add @available attribute to enclosing class
 15 |   private let innerModel = ModelEntity()
 16 |   private let outerModel = ModelEntity()
    :
 28 |   ///   - innerMargin: distance between the internal capsule and the edge of the external.
 29 |   ///   - startAt: Position to start the capsule at (0...1)
 30 |   required public init(
    |                   `- note: add @available attribute to enclosing initializer
 31 |     innerColor: SimpleMaterial.Color = .green,
 32 |     outerColor: SimpleMaterial.Color = .black,
    :
 52 |     )
 53 |     outerModel.scale = .init(repeating: -1)
 54 |     self.addChild(outerModel)
    |          |- error: 'addChild(_:preservingWorldTransform:)' is only available in macOS 10.15 or newer
    |          `- note: add 'if #available' version check
 55 |     self.addChild(innerModel)
 56 |     self.setProgress(to: startAt)
/Users/admin/builder/spi-builder-workspace/Sources/RKProgressBar/RKProgressBar.swift:55:10: error: 'addChild(_:preservingWorldTransform:)' is only available in macOS 10.15 or newer
 12 |
 13 | /// A capsule shaped geometry for showing progress in RealityKit 􀘸
 14 | public class RKProgressBar: Entity {
    |              `- note: add @available attribute to enclosing class
 15 |   private let innerModel = ModelEntity()
 16 |   private let outerModel = ModelEntity()
    :
 28 |   ///   - innerMargin: distance between the internal capsule and the edge of the external.
 29 |   ///   - startAt: Position to start the capsule at (0...1)
 30 |   required public init(
    |                   `- note: add @available attribute to enclosing initializer
 31 |     innerColor: SimpleMaterial.Color = .green,
 32 |     outerColor: SimpleMaterial.Color = .black,
    :
 53 |     outerModel.scale = .init(repeating: -1)
 54 |     self.addChild(outerModel)
 55 |     self.addChild(innerModel)
    |          |- error: 'addChild(_:preservingWorldTransform:)' is only available in macOS 10.15 or newer
    |          `- note: add 'if #available' version check
 56 |     self.setProgress(to: startAt)
 57 |   }
/Users/admin/builder/spi-builder-workspace/Sources/RKProgressBar/RKProgressBar.swift:64:21: error: 'scale' is only available in macOS 10.15 or newer
 12 |
 13 | /// A capsule shaped geometry for showing progress in RealityKit 􀘸
 14 | public class RKProgressBar: Entity {
    |              `- note: add @available attribute to enclosing class
 15 |   private let innerModel = ModelEntity()
 16 |   private let outerModel = ModelEntity()
    :
 59 |   /// Set the progress value for the RKProgressBar, no animation.
 60 |   /// - Parameter progress: Desired value, between 0 and 1 only.
 61 |   public func setProgress(to progress: Float) {
    |               `- note: add @available attribute to enclosing instance method
 62 |     assert((0.0...1.0).contains(progress), "Health value must be between 0 and 1")
 63 |     self.innerModel.isEnabled = progress > 0
 64 |     self.innerModel.scale.x = progress
    |                     |- error: 'scale' is only available in macOS 10.15 or newer
    |                     `- note: add 'if #available' version check
 65 |     self.innerModel.position.x = (5 - self.innerMargin) * (progress - 1)
 66 |   }
/Users/admin/builder/spi-builder-workspace/Sources/RKProgressBar/RKProgressBar.swift:65:21: error: 'position' is only available in macOS 10.15 or newer
 12 |
 13 | /// A capsule shaped geometry for showing progress in RealityKit 􀘸
 14 | public class RKProgressBar: Entity {
    |              `- note: add @available attribute to enclosing class
 15 |   private let innerModel = ModelEntity()
 16 |   private let outerModel = ModelEntity()
    :
 59 |   /// Set the progress value for the RKProgressBar, no animation.
 60 |   /// - Parameter progress: Desired value, between 0 and 1 only.
 61 |   public func setProgress(to progress: Float) {
    |               `- note: add @available attribute to enclosing instance method
 62 |     assert((0.0...1.0).contains(progress), "Health value must be between 0 and 1")
 63 |     self.innerModel.isEnabled = progress > 0
 64 |     self.innerModel.scale.x = progress
 65 |     self.innerModel.position.x = (5 - self.innerMargin) * (progress - 1)
    |                     |- error: 'position' is only available in macOS 10.15 or newer
    |                     `- note: add 'if #available' version check
 66 |   }
 67 |
/Users/admin/builder/spi-builder-workspace/Sources/RKProgressBar/RKProgressBar.swift:79:21: error: 'stopAllAnimations(recursive:)' is only available in macOS 10.15 or newer
 12 |
 13 | /// A capsule shaped geometry for showing progress in RealityKit 􀘸
 14 | public class RKProgressBar: Entity {
    |              `- note: add @available attribute to enclosing class
 15 |   private let innerModel = ModelEntity()
 16 |   private let outerModel = ModelEntity()
    :
 70 |   ///   - progress: Desired value, between 0 and 1 only.
 71 |   ///   - duration: Time taken to animate to desired value, default 1.
 72 |   public func moveProgress(to progress: Float, duration: TimeInterval = 1, timingFunction: AnimationTimingFunction = .linear) {
    |               `- note: add @available attribute to enclosing instance method
 73 |     self.innerModel.isEnabled = true
 74 |     assert((0.0...1.0).contains(progress), "Health value must be between 0 and 1")
    :
 77 |       return
 78 |     }
 79 |     self.innerModel.stopAllAnimations()
    |                     |- error: 'stopAllAnimations(recursive:)' is only available in macOS 10.15 or newer
    |                     `- note: add 'if #available' version check
 80 |     var endTransform = innerModel.transform
 81 |     endTransform.scale.x = progress
/Users/admin/builder/spi-builder-workspace/Sources/RKProgressBar/RKProgressBar.swift:80:35: error: 'transform' is only available in macOS 10.15 or newer
 12 |
 13 | /// A capsule shaped geometry for showing progress in RealityKit 􀘸
 14 | public class RKProgressBar: Entity {
    |              `- note: add @available attribute to enclosing class
 15 |   private let innerModel = ModelEntity()
 16 |   private let outerModel = ModelEntity()
    :
 70 |   ///   - progress: Desired value, between 0 and 1 only.
 71 |   ///   - duration: Time taken to animate to desired value, default 1.
 72 |   public func moveProgress(to progress: Float, duration: TimeInterval = 1, timingFunction: AnimationTimingFunction = .linear) {
    |               `- note: add @available attribute to enclosing instance method
 73 |     self.innerModel.isEnabled = true
 74 |     assert((0.0...1.0).contains(progress), "Health value must be between 0 and 1")
    :
 78 |     }
 79 |     self.innerModel.stopAllAnimations()
 80 |     var endTransform = innerModel.transform
    |                                   |- error: 'transform' is only available in macOS 10.15 or newer
    |                                   `- note: add 'if #available' version check
 81 |     endTransform.scale.x = progress
 82 |     endTransform.translation.x = (5 - self.innerMargin) * (progress - 1)
/Users/admin/builder/spi-builder-workspace/Sources/RKProgressBar/RKProgressBar.swift:84:21: error: 'move(to:relativeTo:duration:timingFunction:)' is only available in macOS 10.15 or newer
 12 |
 13 | /// A capsule shaped geometry for showing progress in RealityKit 􀘸
 14 | public class RKProgressBar: Entity {
    |              `- note: add @available attribute to enclosing class
 15 |   private let innerModel = ModelEntity()
 16 |   private let outerModel = ModelEntity()
    :
 70 |   ///   - progress: Desired value, between 0 and 1 only.
 71 |   ///   - duration: Time taken to animate to desired value, default 1.
 72 |   public func moveProgress(to progress: Float, duration: TimeInterval = 1, timingFunction: AnimationTimingFunction = .linear) {
    |               `- note: add @available attribute to enclosing instance method
 73 |     self.innerModel.isEnabled = true
 74 |     assert((0.0...1.0).contains(progress), "Health value must be between 0 and 1")
    :
 82 |     endTransform.translation.x = (5 - self.innerMargin) * (progress - 1)
 83 |
 84 |     self.innerModel.move(
    |                     |- error: 'move(to:relativeTo:duration:timingFunction:)' is only available in macOS 10.15 or newer
    |                     `- note: add 'if #available' version check
 85 |       to: endTransform, relativeTo: self,
 86 |       duration: duration, timingFunction: timingFunction
/Users/admin/builder/spi-builder-workspace/Sources/RKProgressBar/RKProgressBar.swift:92:28: error: 'Cancellable' is only available in macOS 10.15 or newer
 12 |
 13 | /// A capsule shaped geometry for showing progress in RealityKit 􀘸
 14 | public class RKProgressBar: Entity {
    |              `- note: add @available attribute to enclosing class
 15 |   private let innerModel = ModelEntity()
 16 |   private let outerModel = ModelEntity()
    :
 70 |   ///   - progress: Desired value, between 0 and 1 only.
 71 |   ///   - duration: Time taken to animate to desired value, default 1.
 72 |   public func moveProgress(to progress: Float, duration: TimeInterval = 1, timingFunction: AnimationTimingFunction = .linear) {
    |               `- note: add @available attribute to enclosing instance method
 73 |     self.innerModel.isEnabled = true
 74 |     assert((0.0...1.0).contains(progress), "Health value must be between 0 and 1")
    :
 90 |     // so I'm just going to hide it for now
 91 |     if progress == 0 {
 92 |       var endAnimCallback: Cancellable?
    |                            |- error: 'Cancellable' is only available in macOS 10.15 or newer
    |                            `- note: add 'if #available' version check
 93 |       endAnimCallback = self.scene?.subscribe(
 94 |         to: AnimationEvents.PlaybackCompleted.self,
/Users/admin/builder/spi-builder-workspace/Sources/RKProgressBar/RKProgressBar.swift:93:37: error: 'subscribe(to:on:_:)' is only available in macOS 10.15 or newer
 12 |
 13 | /// A capsule shaped geometry for showing progress in RealityKit 􀘸
 14 | public class RKProgressBar: Entity {
    |              `- note: add @available attribute to enclosing class
 15 |   private let innerModel = ModelEntity()
 16 |   private let outerModel = ModelEntity()
    :
 70 |   ///   - progress: Desired value, between 0 and 1 only.
 71 |   ///   - duration: Time taken to animate to desired value, default 1.
 72 |   public func moveProgress(to progress: Float, duration: TimeInterval = 1, timingFunction: AnimationTimingFunction = .linear) {
    |               `- note: add @available attribute to enclosing instance method
 73 |     self.innerModel.isEnabled = true
 74 |     assert((0.0...1.0).contains(progress), "Health value must be between 0 and 1")
    :
 91 |     if progress == 0 {
 92 |       var endAnimCallback: Cancellable?
 93 |       endAnimCallback = self.scene?.subscribe(
    |                                     |- error: 'subscribe(to:on:_:)' is only available in macOS 10.15 or newer
    |                                     `- note: add 'if #available' version check
 94 |         to: AnimationEvents.PlaybackCompleted.self,
 95 |         on: self.innerModel,
/Users/admin/builder/spi-builder-workspace/Sources/RKProgressBar/RKProgressBar.swift:94:13: error: 'AnimationEvents' is only available in macOS 10.15 or newer
 12 |
 13 | /// A capsule shaped geometry for showing progress in RealityKit 􀘸
 14 | public class RKProgressBar: Entity {
    |              `- note: add @available attribute to enclosing class
 15 |   private let innerModel = ModelEntity()
 16 |   private let outerModel = ModelEntity()
    :
 70 |   ///   - progress: Desired value, between 0 and 1 only.
 71 |   ///   - duration: Time taken to animate to desired value, default 1.
 72 |   public func moveProgress(to progress: Float, duration: TimeInterval = 1, timingFunction: AnimationTimingFunction = .linear) {
    |               `- note: add @available attribute to enclosing instance method
 73 |     self.innerModel.isEnabled = true
 74 |     assert((0.0...1.0).contains(progress), "Health value must be between 0 and 1")
    :
 92 |       var endAnimCallback: Cancellable?
 93 |       endAnimCallback = self.scene?.subscribe(
 94 |         to: AnimationEvents.PlaybackCompleted.self,
    |             |- error: 'AnimationEvents' is only available in macOS 10.15 or newer
    |             `- note: add 'if #available' version check
 95 |         on: self.innerModel,
 96 |         { _ in
/Users/admin/builder/spi-builder-workspace/Sources/RKProgressBar/RKProgressBar.swift:95:18: warning: conformance of 'Entity' to 'EventSource' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
 12 |
 13 | /// A capsule shaped geometry for showing progress in RealityKit 􀘸
 14 | public class RKProgressBar: Entity {
    |              `- note: add @available attribute to enclosing class
 15 |   private let innerModel = ModelEntity()
 16 |   private let outerModel = ModelEntity()
    :
 70 |   ///   - progress: Desired value, between 0 and 1 only.
 71 |   ///   - duration: Time taken to animate to desired value, default 1.
 72 |   public func moveProgress(to progress: Float, duration: TimeInterval = 1, timingFunction: AnimationTimingFunction = .linear) {
    |               `- note: add @available attribute to enclosing instance method
 73 |     self.innerModel.isEnabled = true
 74 |     assert((0.0...1.0).contains(progress), "Health value must be between 0 and 1")
    :
 93 |       endAnimCallback = self.scene?.subscribe(
 94 |         to: AnimationEvents.PlaybackCompleted.self,
 95 |         on: self.innerModel,
    |                  |- warning: conformance of 'Entity' to 'EventSource' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
    |                  `- note: add 'if #available' version check
 96 |         { _ in
 97 |           endAnimCallback?.cancel()
BUILD FAILURE 6.0 macosSpm
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.