The Swift Package Index logo.Swift Package Index

Build Information

Failed to build ScreenCaptureRedaction, reference 1.1.1 (0ec5d2), with Swift 6.4 for macOS (SPM) on 19 Sep 2026 17:26:35 UTC.

Build Command

env DEVELOPER_DIR=/Applications/Xcode-27.0.0-Release.Candidate.app xcrun swift build --arch arm64

Build Log

========================================
RunAll
========================================
Builder version: 5.1.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/jiachenyee/ScreenCaptureRedaction.git
Reference: 1.1.1
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/jiachenyee/ScreenCaptureRedaction
 * tag               1.1.1      -> FETCH_HEAD
HEAD is now at 0ec5d21 fix: make initialisers public
Cloned https://github.com/jiachenyee/ScreenCaptureRedaction.git
Revision (git rev-parse @):
0ec5d21872778de55f32cd873a159cff56ec304f
SUCCESS checkout https://github.com/jiachenyee/ScreenCaptureRedaction.git at 1.1.1
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.4
Building package at path:  $PWD
https://github.com/jiachenyee/ScreenCaptureRedaction.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-27.0.0-Release.Candidate.app xcrun swift build --arch arm64
Building for debugging...
[Planning deferred tasks]
[19 / 28]
[20 / 29] ScreenCaptureRedaction
[30 / 97]
[33 / 97]
[41 / 97]
[43 / 97]
[44 / 97]
[49 / 97]
[51 / 97]
[53 / 97]
[56 / 97]
[61 / 97]
[64 / 97]
[66 / 97]
[67 / 97]
[77 / 97]
[79 / 97]
[80 / 97]
[83 / 97]
[85 / 97]
error: SwiftCompile normal arm64 failed with a nonzero exit code. Command line:     cd /Users/admin/builder

/Users/admin/builder/spi-builder-workspace/Sources/ScreenCaptureRedaction/ScreenCaptureRedaction.swift:45:20: error: 'isSceneCaptured' is unavailable in macOS
 43 | struct ScreenCaptureRedactionViewNew<Content: View, ReplacementView: View>: View {
 44 |
 45 |     @Environment(\.isSceneCaptured) var isSceneCaptured
    |                    `- error: 'isSceneCaptured' is unavailable in macOS
 46 |     @Environment(\.scenePhase) var scenePhase
 47 |
SwiftUI.EnvironmentValues.isSceneCaptured:2:12: note: 'isSceneCaptured' has been explicitly marked unavailable here
1 | struct EnvironmentValues {
2 | public var isSceneCaptured: Bool { get set }}
  |            `- note: 'isSceneCaptured' has been explicitly marked unavailable here
3 |
/Users/admin/builder/spi-builder-workspace/Sources/ScreenCaptureRedaction/ScreenCaptureRedaction.swift:73:42: error: cannot find 'UIScreen' in scope
 71 | struct ScreenCaptureRedactionViewOld<Content: View, ReplacementView: View>: View {
 72 |
 73 |     @State private var isSceneCaptured = UIScreen.main.isCaptured
    |                                          `- error: cannot find 'UIScreen' in scope
 74 |     @Environment(\.scenePhase) var scenePhase
 75 |
macro expansion @State:2:9: error: cannot find 'UIScreen' in scope
`- /Users/admin/builder/spi-builder-workspace/Sources/ScreenCaptureRedaction/ScreenCaptureRedaction.swift:73:66: note: expanded code originates here
 71 | struct ScreenCaptureRedactionViewOld<Content: View, ReplacementView: View>: View {
 72 |
 73 |     @State private var isSceneCaptured = UIScreen.main.isCaptured
    |     `- note: in expansion of macro 'State' on property 'isSceneCaptured' here
    +--- macro expansion @State ----------------------------------------
    | 1 | private var __isSceneCaptured = SwiftUICore.State._makeStorage({
    | 2 |         UIScreen.main.isCaptured
    |   |         `- error: cannot find 'UIScreen' in scope
    | 3 |     })
    | 4 |
    +-------------------------------------------------------------------
 74 |     @Environment(\.scenePhase) var scenePhase
 75 |
macro expansion @State:7:41: error: cannot find 'UIScreen' in scope
`- /Users/admin/builder/spi-builder-workspace/Sources/ScreenCaptureRedaction/ScreenCaptureRedaction.swift:73:66: note: expanded code originates here
 71 | struct ScreenCaptureRedactionViewOld<Content: View, ReplacementView: View>: View {
 72 |
 73 |     @State private var isSceneCaptured = UIScreen.main.isCaptured
    |     `- note: in expansion of macro 'State' on property 'isSceneCaptured' here
    +--- macro expansion @State ----------------------------------------
    | 5 | @SwiftUICore._StatePropertyWrapperStorage(initialValue: "JHMyMlNjcmVlbkNhcHR1cmVSZWRhY3Rpb24wYWJDN1ZpZXdPbGRWMTVpc1NjZW5lQ2FwdHVyZWQzM18yRkVGQzIzRTY5ODdGRDUzNzA4RTRERkUyNDM5MDdFRExMNVN0YXRlZk1wXzIwX2luaXRpYWxTdG9yZWRWYWx1ZV9mTXVf")
    | 6 | private var _isSceneCaptured: SwiftUICore.State<_>! = SwiftUICore._stateNil(of: {
    | 7 |         SwiftUICore.State(initialValue: UIScreen.main.isCaptured)
    |   |                                         `- error: cannot find 'UIScreen' in scope
    | 8 |     })
    | 9 |
    +-------------------------------------------------------------------
 74 |     @Environment(\.scenePhase) var scenePhase
 75 |
macro expansion @State:11:64: error: cannot find 'UIScreen' in scope
`- /Users/admin/builder/spi-builder-workspace/Sources/ScreenCaptureRedaction/ScreenCaptureRedaction.swift:73:66: note: expanded code originates here
 71 | struct ScreenCaptureRedactionViewOld<Content: View, ReplacementView: View>: View {
 72 |
 73 |     @State private var isSceneCaptured = UIScreen.main.isCaptured
    |     `- note: in expansion of macro 'State' on property 'isSceneCaptured' here
    +--- macro expansion @State ----------------------------------------
    | 9 |
    |10 | @SwiftUICore._StateProjectedValue
    |11 | private var $isSceneCaptured = SwiftUICore.State(initialValue: UIScreen.main.isCaptured).projectedValue
    |   |                                                                `- error: cannot find 'UIScreen' in scope
    |12 |
    |13 | @SwiftUICore._StateInitialStoredValue("U3dpZnRVSUNvcmUuU3RhdGUuX21ha2VTdG9yYWdlKHsgVUlTY3JlZW4ubWFpbi5pc0NhcHR1cmVkIH0p")
    +-------------------------------------------------------------------
 74 |     @Environment(\.scenePhase) var scenePhase
 75 |
macro expansion @State:14:198: error: cannot find 'UIScreen' in scope
`- /Users/admin/builder/spi-builder-workspace/Sources/ScreenCaptureRedaction/ScreenCaptureRedaction.swift:73:66: note: expanded code originates here
 71 | struct ScreenCaptureRedactionViewOld<Content: View, ReplacementView: View>: View {
 72 |
 73 |     @State private var isSceneCaptured = UIScreen.main.isCaptured
    |     `- note: in expansion of macro 'State' on property 'isSceneCaptured' here
    +--- macro expansion @State ----------------------------------------
    |12 |
    |13 | @SwiftUICore._StateInitialStoredValue("U3dpZnRVSUNvcmUuU3RhdGUuX21ha2VTdG9yYWdlKHsgVUlTY3JlZW4ubWFpbi5pc0NhcHR1cmVkIH0p")
    |14 | private static var $s22ScreenCaptureRedaction0abC7ViewOldV15isSceneCaptured33_2FEFC23E6987FD53708E4DFE243907EDLL5StatefMp_20_initialStoredValue_fMu_ = (SwiftUICore.State._makeStorage(initialValue: UIScreen.main.isCaptured))
    |   |                                                                                                                                                                                                      `- error: cannot find 'UIScreen' in scope
    +-------------------------------------------------------------------
 74 |     @Environment(\.scenePhase) var scenePhase
 75 |
Failed frontend command:
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-frontend -frontend -emit-module -experimental-skip-non-inlinable-function-bodies-without-types /Users/admin/builder/spi-builder-workspace/Sources/ScreenCaptureRedaction/ScreenCaptureRedaction.swift -target arm64-apple-macos12.0 -disable-cross-import-overlay-search -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/lib/swift/host/plugins/libFoundationMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/bin/swift-plugin-server\#FoundationMacros -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/lib/swift/host/plugins/libObservationMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/bin/swift-plugin-server\#ObservationMacros -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/lib/swift/host/plugins/libPreviewsMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/bin/swift-plugin-server\#PreviewsMacros -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/lib/swift/host/plugins/libSwiftMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/bin/swift-plugin-server\#SwiftMacros -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/lib/swift/host/plugins/libSwiftUIMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/bin/swift-plugin-server\#SwiftUIMacros -disable-implicit-swift-modules -Xcc -fno-implicit-modules -Xcc -fno-implicit-module-maps -explicit-swift-module-map-file /Users/admin/builder/spi-builder-workspace/.build/out/Intermediates.noindex/ScreenCaptureRedaction.build/Debug/ScreenCaptureRedaction-t.build/Objects-normal/arm64/ScreenCaptureRedaction-dependencies-1.json -Xllvm -aarch64-use-tbi -enable-objc-interop -stack-check -sdk /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX27.0.sdk -I /Users/admin/builder/spi-builder-workspace/.build/out/Products/Debug -Isystem /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/lib -F /Users/admin/builder/spi-builder-workspace/.build/out/Products/Debug -F /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks -module-cache-path /Users/admin/builder/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftExplicitPrecompiledModules -color-diagnostics -Xcc -fcolor-diagnostics -enable-testing -g -debug-info-format\=dwarf -dwarf-version\=4 -swift-version 5 -Onone -D SWIFT_PACKAGE -D DEBUG -D SWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE -D Xcode -serialize-debugging-options -enable-experimental-feature DebugDescriptionMacro -empty-abi-descriptor -validate-clang-modules-once -clang-build-session-file /Users/admin/builder/spi-builder-workspace/.build/out/ModuleCache.noindex/Session.modulevalidation -Xcc -working-directory -Xcc /Users/admin/builder -enable-anonymous-context-mangled-names -file-compilation-dir /Users/admin/builder -Xcc -D_LIBCPP_HARDENING_MODE\=_LIBCPP_HARDENING_MODE_DEBUG -Xcc -ivfsstatcache -Xcc /Users/admin/builder/spi-builder-workspace/.build/out/SDKStatCaches.noindex/macosx27.0-26A425-80c5bbf1d171475443272936d42f90a36a22442a12e9d48fe1a705f55a1adfc4.sdkstatcache -Xcc -fmodules-prune-interval\=86400 -Xcc -fmodules-prune-after\=345600 -Xcc -I/Users/admin/builder/spi-builder-workspace/.build/out/Products/Debug/include -Xcc -I/Users/admin/builder/spi-builder-workspace/.build/out/Intermediates.noindex/ScreenCaptureRedaction.build/Debug/ScreenCaptureRedaction-t.build/DerivedSources-normal/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.build/out/Intermediates.noindex/ScreenCaptureRedaction.build/Debug/ScreenCaptureRedaction-t.build/DerivedSources/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.build/out/Intermediates.noindex/ScreenCaptureRedaction.build/Debug/ScreenCaptureRedaction-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name ScreenCaptureRedaction -package-name spi_builder_workspace -const-gather-protocols-file /Users/admin/builder/spi-builder-workspace/.build/out/Intermediates.noindex/ScreenCaptureRedaction.build/Debug/ScreenCaptureRedaction-t.build/Objects-normal/arm64/ScreenCaptureRedaction_const_extract_protocols.json -disable-clang-spi -clang-target arm64-apple-macos27.0 -target-sdk-version 27.0 -target-sdk-name macosx27.0 -in-process-plugin-server-path /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host/libSwiftInProcPluginServer.dylib -emit-module-doc-path /Users/admin/builder/spi-builder-workspace/.build/out/Intermediates.noindex/ScreenCaptureRedaction.build/Debug/ScreenCaptureRedaction-t.build/Objects-normal/arm64/ScreenCaptureRedaction.swiftdoc -emit-module-source-info-path /Users/admin/builder/spi-builder-workspace/.build/out/Intermediates.noindex/ScreenCaptureRedaction.build/Debug/ScreenCaptureRedaction-t.build/Objects-normal/arm64/ScreenCaptureRedaction.swiftsourceinfo -emit-objc-header-path /Users/admin/builder/spi-builder-workspace/.build/out/Intermediates.noindex/ScreenCaptureRedaction.build/Debug/ScreenCaptureRedaction-t.build/Objects-normal/arm64/ScreenCaptureRedaction-Swift.h -serialize-diagnostics-path /Users/admin/builder/spi-builder-workspace/.build/out/Intermediates.noindex/ScreenCaptureRedaction.build/Debug/ScreenCaptureRedaction-t.build/Objects-normal/arm64/ScreenCaptureRedaction-primary-emit-module.dia -emit-dependencies-path /Users/admin/builder/spi-builder-workspace/.build/out/Intermediates.noindex/ScreenCaptureRedaction.build/Debug/ScreenCaptureRedaction-t.build/Objects-normal/arm64/ScreenCaptureRedaction-primary-emit-module.d -parse-as-library -o /Users/admin/builder/spi-builder-workspace/.build/out/Intermediates.noindex/ScreenCaptureRedaction.build/Debug/ScreenCaptureRedaction-t.build/Objects-normal/arm64/ScreenCaptureRedaction.swiftmodule -emit-abi-descriptor-path /Users/admin/builder/spi-builder-workspace/.build/out/Intermediates.noindex/ScreenCaptureRedaction.build/Debug/ScreenCaptureRedaction-t.build/Objects-normal/arm64/ScreenCaptureRedaction.abi.json
error: Build failed
BUILD FAILURE 6.4 macosSpm