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 AllConstants, reference main (8ffa11), with Swift 6.0 for macOS (SPM) on 14 Sep 2024 03:52:22 UTC.

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.0.0-Release.Candidate.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

Build Log

========================================
RunAll
========================================
Builder version: 4.53.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.0
Building package at path:  $PWD
https://github.com/edsonlima19/Constants.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.0.0-Release.Candidate.app xcrun 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-117DEE11B69C53C9.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.0 macosSpm