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 NSIcon, reference main (f63d83), with Swift 6.1 for macOS (SPM) on 28 Apr 2025 06:21:32 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.61.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Stv-X/NSIcon.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/Stv-X/NSIcon
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at f63d83c Update README
Cloned https://github.com/Stv-X/NSIcon.git
Revision (git rev-parse @):
f63d83cf6592059ecb15a4cba9e48471640c75e1
SUCCESS checkout https://github.com/Stv-X/NSIcon.git at main
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
  "identity": ".resolve-product-dependencies",
  "name": "resolve-dependencies",
  "url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "version": "unspecified",
  "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "dependencies": [
    {
      "identity": "nsicon",
      "name": "NSIcon",
      "url": "https://github.com/Stv-X/NSIcon.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/NSIcon",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/Stv-X/NSIcon.git
[1/227] Fetching nsicon
Fetched https://github.com/Stv-X/NSIcon.git from cache (0.79s)
Creating working copy for https://github.com/Stv-X/NSIcon.git
Working copy of https://github.com/Stv-X/NSIcon.git resolved at main (f63d83c)
warning: '.resolve-product-dependencies': dependency 'nsicon' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/Stv-X/NSIcon.git
https://github.com/Stv-X/NSIcon.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "NSIcon",
  "name" : "NSIcon",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "16.0"
    },
    {
      "name" : "macos",
      "version" : "13.0"
    },
    {
      "name" : "watchos",
      "version" : "9.0"
    }
  ],
  "products" : [
    {
      "name" : "NSIcon",
      "targets" : [
        "NSIcon"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "NSIconTests",
      "module_type" : "SwiftTarget",
      "name" : "NSIconTests",
      "path" : "Tests/NSIconTests",
      "sources" : [
        "NSIconTests.swift"
      ],
      "target_dependencies" : [
        "NSIcon"
      ],
      "type" : "test"
    },
    {
      "c99name" : "NSIcon",
      "module_type" : "SwiftTarget",
      "name" : "NSIcon",
      "path" : "Sources/NSIcon",
      "product_memberships" : [
        "NSIcon"
      ],
      "sources" : [
        "AppPlatform.swift",
        "Extensions.swift",
        "Icon.swift",
        "ViewModels/AsyncIconVM.swift",
        "ViewModels/NSIconVM.swift",
        "Views/AppKit/NSAsyncIcon.swift",
        "Views/AppKit/NSIcon.swift",
        "Views/UIKit/UIAsyncIcon.swift",
        "Views/UIKit/UIIcon.swift",
        "iOS/UIExtensions.swift",
        "macOS/IconPlaceholderStyle.swift",
        "macOS/NSExtensions.swift",
        "visionOS/AppIconLayer.swift",
        "visionOS/VNExtensions.swift",
        "watchOS/WKExtensions.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.7"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-2F0A5646E1D333AE.txt
[3/17] Compiling NSIcon IconPlaceholderStyle.swift
/Users/admin/builder/spi-builder-workspace/Sources/NSIcon/macOS/IconPlaceholderStyle.swift:33:16: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'NSIconPlaceholderStyle' may have shared mutable state; this is an error in the Swift 6 language mode
10 | }
11 |
12 | public enum NSIconPlaceholderStyle {
   |             `- note: consider making enum 'NSIconPlaceholderStyle' conform to the 'Sendable' protocol
13 |     case `default`, classic
14 | }
   :
31 |
32 | struct IconPlaceholderStyleKey: EnvironmentKey {
33 |     static let defaultValue: NSIconPlaceholderStyle = .default
   |                |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'NSIconPlaceholderStyle' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
34 | }
35 |
[4/17] Compiling NSIcon NSExtensions.swift
/Users/admin/builder/spi-builder-workspace/Sources/NSIcon/macOS/NSExtensions.swift:4:1: warning: extension declares a conformance of imported type 'NSImage' to imported protocol 'Sendable'; this will not behave correctly if the owners of 'AppKit' introduce this conformance in the future
 2 |
 3 | #if os(macOS)
 4 | extension NSImage: @unchecked Sendable {}
   | |- warning: extension declares a conformance of imported type 'NSImage' to imported protocol 'Sendable'; this will not behave correctly if the owners of 'AppKit' introduce this conformance in the future
   | `- note: add '@retroactive' to silence this warning
 5 |
 6 | extension NSImage {
[5/17] Compiling NSIcon VNExtensions.swift
[6/17] Compiling NSIcon UIIcon.swift
[7/17] Compiling NSIcon UIExtensions.swift
[8/17] Compiling NSIcon Icon.swift
[9/17] Compiling NSIcon AsyncIconVM.swift
[10/17] Compiling NSIcon AppIconLayer.swift
[11/17] Compiling NSIcon NSIcon.swift
[12/17] Compiling NSIcon UIAsyncIcon.swift
[13/17] Emitting module NSIcon
/Users/admin/builder/spi-builder-workspace/Sources/NSIcon/macOS/IconPlaceholderStyle.swift:33:16: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'NSIconPlaceholderStyle' may have shared mutable state; this is an error in the Swift 6 language mode
10 | }
11 |
12 | public enum NSIconPlaceholderStyle {
   |             `- note: consider making enum 'NSIconPlaceholderStyle' conform to the 'Sendable' protocol
13 |     case `default`, classic
14 | }
   :
31 |
32 | struct IconPlaceholderStyleKey: EnvironmentKey {
33 |     static let defaultValue: NSIconPlaceholderStyle = .default
   |                |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'NSIconPlaceholderStyle' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
34 | }
35 |
/Users/admin/builder/spi-builder-workspace/Sources/NSIcon/macOS/NSExtensions.swift:4:1: warning: extension declares a conformance of imported type 'NSImage' to imported protocol 'Sendable'; this will not behave correctly if the owners of 'AppKit' introduce this conformance in the future
 2 |
 3 | #if os(macOS)
 4 | extension NSImage: @unchecked Sendable {}
   | |- warning: extension declares a conformance of imported type 'NSImage' to imported protocol 'Sendable'; this will not behave correctly if the owners of 'AppKit' introduce this conformance in the future
   | `- note: add '@retroactive' to silence this warning
 5 |
 6 | extension NSImage {
[14/17] Compiling NSIcon NSIconVM.swift
/Users/admin/builder/spi-builder-workspace/Sources/NSIcon/Views/AppKit/NSAsyncIcon.swift:55:57: error: type 'Bundle?' has no member 'module'
53 |             .overlay {
54 |                 if addMask && !containsTransparentPixel && platform == .iOS {
55 |                     Image("AppIconMaskBorder", bundle: .module)
   |                                                         `- error: type 'Bundle?' has no member 'module'
56 |                         .resizable()
57 |                 }
[15/17] Compiling NSIcon NSAsyncIcon.swift
/Users/admin/builder/spi-builder-workspace/Sources/NSIcon/Views/AppKit/NSAsyncIcon.swift:55:57: error: type 'Bundle?' has no member 'module'
53 |             .overlay {
54 |                 if addMask && !containsTransparentPixel && platform == .iOS {
55 |                     Image("AppIconMaskBorder", bundle: .module)
   |                                                         `- error: type 'Bundle?' has no member 'module'
56 |                         .resizable()
57 |                 }
[16/17] Compiling NSIcon AppPlatform.swift
/Users/admin/builder/spi-builder-workspace/Sources/NSIcon/AppPlatform.swift:27:47: error: type 'Bundle?' has no member 'module'
25 |         case .iOS:
26 |             return AnyView(
27 |                 Image("AppIconMask", bundle: .module)
   |                                               `- error: type 'Bundle?' has no member 'module'
28 |                     .resizable()
29 |             )
/Users/admin/builder/spi-builder-workspace/Sources/NSIcon/AppPlatform.swift:32:50: error: type 'Bundle?' has no member 'module'
30 |         case .macOS:
31 |             return AnyView(
32 |                 Image("MacAppIconMask", bundle: .module)
   |                                                  `- error: type 'Bundle?' has no member 'module'
33 |                     .resizable()
34 |             )
[17/17] Compiling NSIcon Extensions.swift
/Users/admin/builder/spi-builder-workspace/Sources/NSIcon/AppPlatform.swift:27:47: error: type 'Bundle?' has no member 'module'
25 |         case .iOS:
26 |             return AnyView(
27 |                 Image("AppIconMask", bundle: .module)
   |                                               `- error: type 'Bundle?' has no member 'module'
28 |                     .resizable()
29 |             )
/Users/admin/builder/spi-builder-workspace/Sources/NSIcon/AppPlatform.swift:32:50: error: type 'Bundle?' has no member 'module'
30 |         case .macOS:
31 |             return AnyView(
32 |                 Image("MacAppIconMask", bundle: .module)
   |                                                  `- error: type 'Bundle?' has no member 'module'
33 |                     .resizable()
34 |             )
[18/18] Compiling NSIcon WKExtensions.swift
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /Users/admin/builder/spi-builder-workspace/Sources/NSIcon/Media.xcassets
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-2F0A5646E1D333AE.txt
[2/16] Compiling NSIcon AppIconLayer.swift
[3/17] Compiling NSIcon IconPlaceholderStyle.swift
[4/17] Compiling NSIcon UIIcon.swift
[5/17] Compiling NSIcon UIExtensions.swift
[6/17] Compiling NSIcon NSIcon.swift
[7/17] Compiling NSIcon UIAsyncIcon.swift
[8/17] Compiling NSIcon NSExtensions.swift
/Users/admin/builder/spi-builder-workspace/Sources/NSIcon/macOS/NSExtensions.swift:4:1: warning: extension declares a conformance of imported type 'NSImage' to imported protocol 'Sendable'; this will not behave correctly if the owners of 'AppKit' introduce this conformance in the future
 2 |
 3 | #if os(macOS)
 4 | extension NSImage: @unchecked Sendable {}
   | |- warning: extension declares a conformance of imported type 'NSImage' to imported protocol 'Sendable'; this will not behave correctly if the owners of 'AppKit' introduce this conformance in the future
   | `- note: add '@retroactive' to silence this warning
 5 |
 6 | extension NSImage {
[9/17] Compiling NSIcon VNExtensions.swift
[10/17] Compiling NSIcon WKExtensions.swift
[11/17] Compiling NSIcon Icon.swift
[12/17] Compiling NSIcon AsyncIconVM.swift
[13/17] Emitting module NSIcon
/Users/admin/builder/spi-builder-workspace/Sources/NSIcon/macOS/NSExtensions.swift:4:1: warning: extension declares a conformance of imported type 'NSImage' to imported protocol 'Sendable'; this will not behave correctly if the owners of 'AppKit' introduce this conformance in the future
 2 |
 3 | #if os(macOS)
 4 | extension NSImage: @unchecked Sendable {}
   | |- warning: extension declares a conformance of imported type 'NSImage' to imported protocol 'Sendable'; this will not behave correctly if the owners of 'AppKit' introduce this conformance in the future
   | `- note: add '@retroactive' to silence this warning
 5 |
 6 | extension NSImage {
[14/17] Compiling NSIcon AppPlatform.swift
/Users/admin/builder/spi-builder-workspace/Sources/NSIcon/AppPlatform.swift:27:47: error: type 'Bundle?' has no member 'module'
25 |         case .iOS:
26 |             return AnyView(
27 |                 Image("AppIconMask", bundle: .module)
   |                                               `- error: type 'Bundle?' has no member 'module'
28 |                     .resizable()
29 |             )
/Users/admin/builder/spi-builder-workspace/Sources/NSIcon/AppPlatform.swift:32:50: error: type 'Bundle?' has no member 'module'
30 |         case .macOS:
31 |             return AnyView(
32 |                 Image("MacAppIconMask", bundle: .module)
   |                                                  `- error: type 'Bundle?' has no member 'module'
33 |                     .resizable()
34 |             )
[15/17] Compiling NSIcon Extensions.swift
/Users/admin/builder/spi-builder-workspace/Sources/NSIcon/AppPlatform.swift:27:47: error: type 'Bundle?' has no member 'module'
25 |         case .iOS:
26 |             return AnyView(
27 |                 Image("AppIconMask", bundle: .module)
   |                                               `- error: type 'Bundle?' has no member 'module'
28 |                     .resizable()
29 |             )
/Users/admin/builder/spi-builder-workspace/Sources/NSIcon/AppPlatform.swift:32:50: error: type 'Bundle?' has no member 'module'
30 |         case .macOS:
31 |             return AnyView(
32 |                 Image("MacAppIconMask", bundle: .module)
   |                                                  `- error: type 'Bundle?' has no member 'module'
33 |                     .resizable()
34 |             )
[16/17] Compiling NSIcon NSIconVM.swift
/Users/admin/builder/spi-builder-workspace/Sources/NSIcon/Views/AppKit/NSAsyncIcon.swift:55:57: error: type 'Bundle?' has no member 'module'
53 |             .overlay {
54 |                 if addMask && !containsTransparentPixel && platform == .iOS {
55 |                     Image("AppIconMaskBorder", bundle: .module)
   |                                                         `- error: type 'Bundle?' has no member 'module'
56 |                         .resizable()
57 |                 }
[17/17] Compiling NSIcon NSAsyncIcon.swift
/Users/admin/builder/spi-builder-workspace/Sources/NSIcon/Views/AppKit/NSAsyncIcon.swift:55:57: error: type 'Bundle?' has no member 'module'
53 |             .overlay {
54 |                 if addMask && !containsTransparentPixel && platform == .iOS {
55 |                     Image("AppIconMaskBorder", bundle: .module)
   |                                                         `- error: type 'Bundle?' has no member 'module'
56 |                         .resizable()
57 |                 }
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /Users/admin/builder/spi-builder-workspace/Sources/NSIcon/Media.xcassets
BUILD FAILURE 6.1 macosSpm