The Swift Package Index logo.Swift Package Index

Build Information

Failed to build AllConstants, reference main (8ffa11), with Swift 6.2 for macOS (SPM) on 20 Jun 2025 04:34:01 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/edsonlima19/Constants.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/edsonlima19/Constants
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 8ffa11a first version
Cloned https://github.com/edsonlima19/Constants.git
Revision (git rev-parse @):
8ffa11a149439bd7b488d365d86d0341afbb340f
SUCCESS checkout https://github.com/edsonlima19/Constants.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/edsonlima19/Constants.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/4] Emitting module AllConstants
/Users/admin/builder/spi-builder-workspace/Sources/AllConstants/AllConstants.swift:90:48: error: 'View' is only available in macOS 10.15 or newer
 86 |     - Example:  .modifier(AllPadding())
 87 |  */
 88 | public struct AllPadding: ViewModifier {
    |               `- note: add @available attribute to enclosing struct
 89 |     public init() {}
 90 |     public func body(content: Content) -> some View {
    |                 |                              `- error: 'View' is only available in macOS 10.15 or newer
    |                 `- note: add @available attribute to enclosing instance method
 91 |         content
 92 |             .padding(.top, DesignConstant.Padding.topPadding)
[4/4] Compiling AllConstants AllConstants.swift
/Users/admin/builder/spi-builder-workspace/Sources/AllConstants/AllConstants.swift:90:48: error: 'View' is only available in macOS 10.15 or newer
 86 |     - Example:  .modifier(AllPadding())
 87 |  */
 88 | public struct AllPadding: ViewModifier {
    |               `- note: add @available attribute to enclosing struct
 89 |     public init() {}
 90 |     public func body(content: Content) -> some View {
    |                 |                              `- error: 'View' is only available in macOS 10.15 or newer
    |                 `- note: add @available attribute to enclosing instance method
 91 |         content
 92 |             .padding(.top, DesignConstant.Padding.topPadding)
/Users/admin/builder/spi-builder-workspace/Sources/AllConstants/AllConstants.swift:92:14: error: 'padding' is only available in macOS 10.15 or newer
 86 |     - Example:  .modifier(AllPadding())
 87 |  */
 88 | public struct AllPadding: ViewModifier {
    |               `- note: add @available attribute to enclosing struct
 89 |     public init() {}
 90 |     public func body(content: Content) -> some View {
    |                 `- note: add @available attribute to enclosing instance method
 91 |         content
 92 |             .padding(.top, DesignConstant.Padding.topPadding)
    |              |- error: 'padding' is only available in macOS 10.15 or newer
    |              `- note: add 'if #available' version check
 93 |             .padding(.bottom, DesignConstant.Padding.bottomPadding)
 94 |             .padding(.leading, DesignConstant.Padding.leadingPadding)
/Users/admin/builder/spi-builder-workspace/Sources/AllConstants/AllConstants.swift:93:14: error: 'padding' is only available in macOS 10.15 or newer
 86 |     - Example:  .modifier(AllPadding())
 87 |  */
 88 | public struct AllPadding: ViewModifier {
    |               `- note: add @available attribute to enclosing struct
 89 |     public init() {}
 90 |     public func body(content: Content) -> some View {
    |                 `- note: add @available attribute to enclosing instance method
 91 |         content
 92 |             .padding(.top, DesignConstant.Padding.topPadding)
 93 |             .padding(.bottom, DesignConstant.Padding.bottomPadding)
    |              |- error: 'padding' is only available in macOS 10.15 or newer
    |              `- note: add 'if #available' version check
 94 |             .padding(.leading, DesignConstant.Padding.leadingPadding)
 95 |             .padding(.trailing, DesignConstant.Padding.trailingPadding)
/Users/admin/builder/spi-builder-workspace/Sources/AllConstants/AllConstants.swift:94:14: error: 'padding' is only available in macOS 10.15 or newer
 86 |     - Example:  .modifier(AllPadding())
 87 |  */
 88 | public struct AllPadding: ViewModifier {
    |               `- note: add @available attribute to enclosing struct
 89 |     public init() {}
 90 |     public func body(content: Content) -> some View {
    |                 `- note: add @available attribute to enclosing instance method
 91 |         content
 92 |             .padding(.top, DesignConstant.Padding.topPadding)
 93 |             .padding(.bottom, DesignConstant.Padding.bottomPadding)
 94 |             .padding(.leading, DesignConstant.Padding.leadingPadding)
    |              |- error: 'padding' is only available in macOS 10.15 or newer
    |              `- note: add 'if #available' version check
 95 |             .padding(.trailing, DesignConstant.Padding.trailingPadding)
 96 |     }
/Users/admin/builder/spi-builder-workspace/Sources/AllConstants/AllConstants.swift:95:14: error: 'padding' is only available in macOS 10.15 or newer
 86 |     - Example:  .modifier(AllPadding())
 87 |  */
 88 | public struct AllPadding: ViewModifier {
    |               `- note: add @available attribute to enclosing struct
 89 |     public init() {}
 90 |     public func body(content: Content) -> some View {
    |                 `- note: add @available attribute to enclosing instance method
 91 |         content
 92 |             .padding(.top, DesignConstant.Padding.topPadding)
 93 |             .padding(.bottom, DesignConstant.Padding.bottomPadding)
 94 |             .padding(.leading, DesignConstant.Padding.leadingPadding)
 95 |             .padding(.trailing, DesignConstant.Padding.trailingPadding)
    |              |- error: 'padding' is only available in macOS 10.15 or newer
    |              `- note: add 'if #available' version check
 96 |     }
 97 | }
BUILD FAILURE 6.2 macosSpm