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 NSIcon, reference 2.1.0 (bf32e6), with Swift 6.2 (beta) for macOS (SPM) on 21 Jun 2025 00:44:50 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/Stv-X/NSIcon.git
Reference: 2.1.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/Stv-X/NSIcon
 * tag               2.1.0      -> FETCH_HEAD
HEAD is now at bf32e65 Fix an error that Mac app icon with a mask will be scaled to an inappropriate size
Cloned https://github.com/Stv-X/NSIcon.git
Revision (git rev-parse @):
bf32e65def0883a99409ced2136a1c279f90b6d8
SUCCESS checkout https://github.com/Stv-X/NSIcon.git at 2.1.0
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/Stv-X/NSIcon.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
[3/17] Compiling NSIcon VNExtensions.swift
[4/18] Compiling NSIcon Icon.swift
[5/18] Compiling NSIcon AsyncIconVM.swift
[6/18] Compiling NSIcon NSIcon.swift
[7/18] Compiling NSIcon UIAsyncIcon.swift
[8/18] Compiling NSIcon IconPlaceholderStyle.swift
[9/18] Compiling NSIcon UIIcon.swift
[10/18] Compiling NSIcon UIExtensions.swift
[11/18] Compiling NSIcon AppIconLayer.swift
[12/18] 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 {
[13/18] 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/18] 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/18] 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/18] 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/18] 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 |                 }
[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
BUILD FAILURE 6.2 macosSpm