Build Information
Failed to build ScreenProtectorKit, reference main (f6f55d), with Swift 6.1 for visionOS using Xcode 16.3 on 14 Dec 2025 10:03:47 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun xcodebuild -IDEClonedSourcePackagesDirPathOverride=$PWD/.dependencies -skipMacroValidation -skipPackagePluginValidation -derivedDataPath $PWD/.derivedData build -scheme ScreenProtectorKit -destination generic/platform=xrOSBuild Log
========================================
RunAll
========================================
Builder version: 4.68.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/prongbang/ScreenProtectorKit.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/prongbang/ScreenProtectorKit
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at f6f55d6 docs: update version to 1.4.5
Cloned https://github.com/prongbang/ScreenProtectorKit.git
Revision (git rev-parse @):
f6f55d68afae03e7c2caede0698b5f8d78f17173
SUCCESS checkout https://github.com/prongbang/ScreenProtectorKit.git at main
========================================
Build
========================================
Selected platform: visionOS
Swift version: 6.1
Building package at path: $PWD
https://github.com/prongbang/ScreenProtectorKit.git
https://github.com/prongbang/ScreenProtectorKit.git
{
"dependencies" : [
],
"manifest_display_name" : "ScreenProtectorKit",
"name" : "ScreenProtectorKit",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "11.0"
}
],
"products" : [
{
"name" : "ScreenProtectorKit",
"targets" : [
"ScreenProtectorKit"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "ScreenProtectorKitTests",
"module_type" : "SwiftTarget",
"name" : "ScreenProtectorKitTests",
"path" : "Tests/ScreenProtectorKitTests",
"sources" : [
"ScreenProtectorKitTests.swift"
],
"target_dependencies" : [
"ScreenProtectorKit"
],
"type" : "test"
},
{
"c99name" : "ScreenProtectorKit",
"module_type" : "SwiftTarget",
"name" : "ScreenProtectorKit",
"path" : "Sources/ScreenProtectorKit",
"product_memberships" : [
"ScreenProtectorKit"
],
"sources" : [
"ScreenProtectorKit.swift",
"ScreenProtectorKitManager.swift",
"UIColor+Extension.swift",
"WindowManager.swift"
],
"type" : "library"
}
],
"tools_version" : "5.5"
}
Command line invocation:
/Applications/Xcode-16.3.0.app/Contents/Developer/usr/bin/xcodebuild -IDEClonedSourcePackagesDirPathOverride=/Users/admin/builder/spi-builder-workspace/.dependencies -resolvePackageDependencies
Resolve Package Graph
Resolved source packages:
ScreenProtectorKit: /Users/admin/builder/spi-builder-workspace
resolved source packages: ScreenProtectorKit
{
"dependencies" : [
],
"manifest_display_name" : "ScreenProtectorKit",
"name" : "ScreenProtectorKit",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "11.0"
}
],
"products" : [
{
"name" : "ScreenProtectorKit",
"targets" : [
"ScreenProtectorKit"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "ScreenProtectorKitTests",
"module_type" : "SwiftTarget",
"name" : "ScreenProtectorKitTests",
"path" : "Tests/ScreenProtectorKitTests",
"sources" : [
"ScreenProtectorKitTests.swift"
],
"target_dependencies" : [
"ScreenProtectorKit"
],
"type" : "test"
},
{
"c99name" : "ScreenProtectorKit",
"module_type" : "SwiftTarget",
"name" : "ScreenProtectorKit",
"path" : "Sources/ScreenProtectorKit",
"product_memberships" : [
"ScreenProtectorKit"
],
"sources" : [
"ScreenProtectorKit.swift",
"ScreenProtectorKitManager.swift",
"UIColor+Extension.swift",
"WindowManager.swift"
],
"type" : "library"
}
],
"tools_version" : "5.5"
}
{
"workspace" : {
"name" : "spi-builder-workspace",
"schemes" : [
"ScreenProtectorKit"
]
}
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun xcodebuild -IDEClonedSourcePackagesDirPathOverride=$PWD/.dependencies -skipMacroValidation -skipPackagePluginValidation -derivedDataPath $PWD/.derivedData build -scheme ScreenProtectorKit -destination generic/platform=xrOS OTHER_SWIFT_FLAGS=-stats-output-dir .stats -strict-concurrency=complete -enable-upcoming-feature StrictConcurrency -enable-upcoming-feature DisableOutwardActorInference -enable-upcoming-feature GlobalActorIsolatedTypesUsability -enable-upcoming-feature InferSendableFromCaptures
Command line invocation:
/Applications/Xcode-16.3.0.app/Contents/Developer/usr/bin/xcodebuild -IDEClonedSourcePackagesDirPathOverride=/Users/admin/builder/spi-builder-workspace/.dependencies -skipMacroValidation -skipPackagePluginValidation -derivedDataPath /Users/admin/builder/spi-builder-workspace/.derivedData build -scheme ScreenProtectorKit -destination generic/platform=xrOS "OTHER_SWIFT_FLAGS=-stats-output-dir .stats -strict-concurrency=complete -enable-upcoming-feature StrictConcurrency -enable-upcoming-feature DisableOutwardActorInference -enable-upcoming-feature GlobalActorIsolatedTypesUsability -enable-upcoming-feature InferSendableFromCaptures"
Build settings from command line:
OTHER_SWIFT_FLAGS = -stats-output-dir .stats -strict-concurrency=complete -enable-upcoming-feature StrictConcurrency -enable-upcoming-feature DisableOutwardActorInference -enable-upcoming-feature GlobalActorIsolatedTypesUsability -enable-upcoming-feature InferSendableFromCaptures
Resolve Package Graph
Resolved source packages:
ScreenProtectorKit: /Users/admin/builder/spi-builder-workspace
ComputePackagePrebuildTargetDependencyGraph
Prepare packages
CreateBuildRequest
SendProjectDescription
CreateBuildOperation
ComputeTargetDependencyGraph
note: Building targets in dependency order
note: Target dependency graph (2 targets)
Target 'ScreenProtectorKit' in project 'ScreenProtectorKit'
➜ Explicit dependency on target 'ScreenProtectorKit' in project 'ScreenProtectorKit'
Target 'ScreenProtectorKit' in project 'ScreenProtectorKit' (no dependencies)
GatherProvisioningInputs
CreateBuildDescription
ExecuteExternalTool /Applications/Xcode-16.3.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -v -E -dM -isysroot /Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk -x c -c /dev/null
ExecuteExternalTool /Applications/Xcode-16.3.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc --version
ExecuteExternalTool /Applications/Xcode-16.3.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld -version_details
Build description signature: 539fa6662547ec0d30ad76dfcfef8c13
Build description path: /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/XCBuildData/539fa6662547ec0d30ad76dfcfef8c13.xcbuilddata
CreateBuildDirectory /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-create-build-directory /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex
CreateBuildDirectory /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-create-build-directory /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products
ClangStatCache /Applications/Xcode-16.3.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang-stat-cache /Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/xros2.4-22O233-407b76dbb837030756cbe1ab3f0b01b6.sdkstatcache
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
/Applications/Xcode-16.3.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang-stat-cache /Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk -o /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/xros2.4-22O233-407b76dbb837030756cbe1ab3f0b01b6.sdkstatcache
CreateBuildDirectory /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/EagerLinkingTBDs/Debug-xros
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-create-build-directory /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/EagerLinkingTBDs/Debug-xros
CreateBuildDirectory /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-xros
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-create-build-directory /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-xros
CreateBuildDirectory /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-xros/PackageFrameworks
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-create-build-directory /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-xros/PackageFrameworks
WriteAuxiliaryFile /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ScreenProtectorKit.build/Debug-xros/ScreenProtectorKit.build/ScreenProtectorKit.modulemap (in target 'ScreenProtectorKit' from project 'ScreenProtectorKit')
cd /Users/admin/builder/spi-builder-workspace
write-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ScreenProtectorKit.build/Debug-xros/ScreenProtectorKit.build/ScreenProtectorKit.modulemap
WriteAuxiliaryFile /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ScreenProtectorKit.build/Debug-xros/ScreenProtectorKit.build/ScreenProtectorKit.DependencyMetadataFileList (in target 'ScreenProtectorKit' from project 'ScreenProtectorKit')
cd /Users/admin/builder/spi-builder-workspace
write-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ScreenProtectorKit.build/Debug-xros/ScreenProtectorKit.build/ScreenProtectorKit.DependencyMetadataFileList
WriteAuxiliaryFile /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ScreenProtectorKit.build/Debug-xros/ScreenProtectorKit.build/Objects-normal/arm64/ScreenProtectorKit.SwiftConstValuesFileList (in target 'ScreenProtectorKit' from project 'ScreenProtectorKit')
cd /Users/admin/builder/spi-builder-workspace
write-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ScreenProtectorKit.build/Debug-xros/ScreenProtectorKit.build/Objects-normal/arm64/ScreenProtectorKit.SwiftConstValuesFileList
WriteAuxiliaryFile /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ScreenProtectorKit.build/Debug-xros/ScreenProtectorKit.build/Objects-normal/arm64/ScreenProtectorKit.SwiftFileList (in target 'ScreenProtectorKit' from project 'ScreenProtectorKit')
cd /Users/admin/builder/spi-builder-workspace
write-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ScreenProtectorKit.build/Debug-xros/ScreenProtectorKit.build/Objects-normal/arm64/ScreenProtectorKit.SwiftFileList
WriteAuxiliaryFile /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ScreenProtectorKit.build/Debug-xros/ScreenProtectorKit.build/Objects-normal/arm64/ScreenProtectorKit_const_extract_protocols.json (in target 'ScreenProtectorKit' from project 'ScreenProtectorKit')
cd /Users/admin/builder/spi-builder-workspace
write-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ScreenProtectorKit.build/Debug-xros/ScreenProtectorKit.build/Objects-normal/arm64/ScreenProtectorKit_const_extract_protocols.json
WriteAuxiliaryFile /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ScreenProtectorKit.build/Debug-xros/ScreenProtectorKit.build/Objects-normal/arm64/ScreenProtectorKit-OutputFileMap.json (in target 'ScreenProtectorKit' from project 'ScreenProtectorKit')
cd /Users/admin/builder/spi-builder-workspace
write-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ScreenProtectorKit.build/Debug-xros/ScreenProtectorKit.build/Objects-normal/arm64/ScreenProtectorKit-OutputFileMap.json
WriteAuxiliaryFile /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ScreenProtectorKit.build/Debug-xros/ScreenProtectorKit.build/Objects-normal/arm64/ScreenProtectorKit.LinkFileList (in target 'ScreenProtectorKit' from project 'ScreenProtectorKit')
cd /Users/admin/builder/spi-builder-workspace
write-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ScreenProtectorKit.build/Debug-xros/ScreenProtectorKit.build/Objects-normal/arm64/ScreenProtectorKit.LinkFileList
WriteAuxiliaryFile /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ScreenProtectorKit.build/Debug-xros/ScreenProtectorKit.build/ScreenProtectorKit.DependencyStaticMetadataFileList (in target 'ScreenProtectorKit' from project 'ScreenProtectorKit')
cd /Users/admin/builder/spi-builder-workspace
write-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ScreenProtectorKit.build/Debug-xros/ScreenProtectorKit.build/ScreenProtectorKit.DependencyStaticMetadataFileList
Copy /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/GeneratedModuleMaps-xros/ScreenProtectorKit.modulemap /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ScreenProtectorKit.build/Debug-xros/ScreenProtectorKit.build/ScreenProtectorKit.modulemap (in target 'ScreenProtectorKit' from project 'ScreenProtectorKit')
cd /Users/admin/builder/spi-builder-workspace
builtin-copy -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -exclude .hg -resolve-src-symlinks /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ScreenProtectorKit.build/Debug-xros/ScreenProtectorKit.build/ScreenProtectorKit.modulemap /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/GeneratedModuleMaps-xros
SwiftDriver ScreenProtectorKit normal arm64 com.apple.xcode.tools.swift.compiler (in target 'ScreenProtectorKit' from project 'ScreenProtectorKit')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftDriver -- /Applications/Xcode-16.3.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc -module-name ScreenProtectorKit -Onone -enforce-exclusivity\=checked @/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ScreenProtectorKit.build/Debug-xros/ScreenProtectorKit.build/Objects-normal/arm64/ScreenProtectorKit.SwiftFileList -DSWIFT_PACKAGE -DDEBUG -stats-output-dir .stats -strict-concurrency\=complete -enable-upcoming-feature StrictConcurrency -enable-upcoming-feature DisableOutwardActorInference -enable-upcoming-feature GlobalActorIsolatedTypesUsability -enable-upcoming-feature InferSendableFromCaptures -plugin-path /Applications/Xcode-16.3.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host/plugins/testing -enable-experimental-feature DebugDescriptionMacro -sdk /Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk -target arm64-apple-xros1.0 -g -module-cache-path /Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex -Xfrontend -serialize-debugging-options -profile-coverage-mapping -profile-generate -enable-testing -index-store-path /Users/admin/builder/spi-builder-workspace/.derivedData/Index.noindex/DataStore -swift-version 5 -I /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-xros -I /Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/usr/lib -F /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-xros -F /Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/Library/Frameworks -F /Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk/Developer/Library/Frameworks -c -j10 -enable-batch-mode -incremental -Xcc -ivfsstatcache -Xcc /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/xros2.4-22O233-407b76dbb837030756cbe1ab3f0b01b6.sdkstatcache -output-file-map /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ScreenProtectorKit.build/Debug-xros/ScreenProtectorKit.build/Objects-normal/arm64/ScreenProtectorKit-OutputFileMap.json -use-frontend-parseable-output -save-temps -no-color-diagnostics -serialize-diagnostics -emit-dependencies -emit-module -emit-module-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ScreenProtectorKit.build/Debug-xros/ScreenProtectorKit.build/Objects-normal/arm64/ScreenProtectorKit.swiftmodule -validate-clang-modules-once -clang-build-session-file /Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex/Session.modulevalidation -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ScreenProtectorKit.build/Debug-xros/ScreenProtectorKit.build/swift-overrides.hmap -emit-const-values -Xfrontend -const-gather-protocols-file -Xfrontend /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ScreenProtectorKit.build/Debug-xros/ScreenProtectorKit.build/Objects-normal/arm64/ScreenProtectorKit_const_extract_protocols.json -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-xros/include -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ScreenProtectorKit.build/Debug-xros/ScreenProtectorKit.build/DerivedSources-normal/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ScreenProtectorKit.build/Debug-xros/ScreenProtectorKit.build/DerivedSources/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ScreenProtectorKit.build/Debug-xros/ScreenProtectorKit.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -emit-objc-header -emit-objc-header-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ScreenProtectorKit.build/Debug-xros/ScreenProtectorKit.build/Objects-normal/arm64/ScreenProtectorKit-Swift.h -working-directory /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode -experimental-emit-module-separately -disable-cmo
SwiftCompile normal arm64 Compiling\ ScreenProtectorKit.swift /Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKit.swift (in target 'ScreenProtectorKit' from project 'ScreenProtectorKit')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKit.swift (in target 'ScreenProtectorKit' from project 'ScreenProtectorKit')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKit.swift:24:17: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
private var screenPrevent = UITextField()
^
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKit.swift:46:16: warning: main actor-isolated property 'subviews' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
if (!w.subviews.contains(screenPrevent)) {
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:222:64: note: property declared here
@property(nonatomic,readonly,copy) NSArray<__kindof UIView *> *subviews;
^
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKit.swift:43:17: note: add '@MainActor' to make instance method 'configurePreventionScreenshot()' part of global actor 'MainActor'
public func configurePreventionScreenshot() {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKit.swift:47:15: warning: call to main actor-isolated instance method 'addSubview' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
w.addSubview(screenPrevent)
^
UIKit.UIView.addSubview:2:22: note: calls to instance method 'addSubview' from outside of its actor context are implicitly asynchronous
@MainActor open func addSubview(_ view: UIView)}
^
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKit.swift:43:17: note: add '@MainActor' to make instance method 'configurePreventionScreenshot()' part of global actor 'MainActor'
public func configurePreventionScreenshot() {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKit.swift:48:78: warning: main actor-isolated property 'isActive' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
screenPrevent.centerYAnchor.constraint(equalTo: w.centerYAnchor).isActive = true
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/NSLayoutConstraint.h:181:34: note: mutation of this property is only permitted within the actor
@property (getter=isActive) BOOL active API_AVAILABLE(macos(10.10), ios(8.0));
^
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKit.swift:43:17: note: add '@MainActor' to make instance method 'configurePreventionScreenshot()' part of global actor 'MainActor'
public func configurePreventionScreenshot() {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKit.swift:48:41: warning: call to main actor-isolated instance method 'constraint(equalTo:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
screenPrevent.centerYAnchor.constraint(equalTo: w.centerYAnchor).isActive = true
^
UIKit.NSLayoutAnchor.constraint:2:22: note: calls to instance method 'constraint(equalTo:)' from outside of its actor context are implicitly asynchronous
@MainActor open func constraint(equalTo anchor: NSLayoutAnchor<AnchorType>) -> NSLayoutConstraint}
^
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKit.swift:43:17: note: add '@MainActor' to make instance method 'configurePreventionScreenshot()' part of global actor 'MainActor'
public func configurePreventionScreenshot() {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKit.swift:48:27: warning: main actor-isolated property 'centerYAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
screenPrevent.centerYAnchor.constraint(equalTo: w.centerYAnchor).isActive = true
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:581:59: note: property declared here
@property(nonatomic,readonly,strong) NSLayoutYAxisAnchor *centerYAnchor API_AVAILABLE(ios(9.0));
^
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKit.swift:43:17: note: add '@MainActor' to make instance method 'configurePreventionScreenshot()' part of global actor 'MainActor'
public func configurePreventionScreenshot() {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKit.swift:48:63: warning: main actor-isolated property 'centerYAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
screenPrevent.centerYAnchor.constraint(equalTo: w.centerYAnchor).isActive = true
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:581:59: note: property declared here
@property(nonatomic,readonly,strong) NSLayoutYAxisAnchor *centerYAnchor API_AVAILABLE(ios(9.0));
^
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKit.swift:43:17: note: add '@MainActor' to make instance method 'configurePreventionScreenshot()' part of global actor 'MainActor'
public func configurePreventionScreenshot() {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKit.swift:49:78: warning: main actor-isolated property 'isActive' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
screenPrevent.centerXAnchor.constraint(equalTo: w.centerXAnchor).isActive = true
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/NSLayoutConstraint.h:181:34: note: mutation of this property is only permitted within the actor
@property (getter=isActive) BOOL active API_AVAILABLE(macos(10.10), ios(8.0));
^
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKit.swift:43:17: note: add '@MainActor' to make instance method 'configurePreventionScreenshot()' part of global actor 'MainActor'
public func configurePreventionScreenshot() {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKit.swift:49:41: warning: call to main actor-isolated instance method 'constraint(equalTo:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
screenPrevent.centerXAnchor.constraint(equalTo: w.centerXAnchor).isActive = true
^
UIKit.NSLayoutAnchor.constraint:2:22: note: calls to instance method 'constraint(equalTo:)' from outside of its actor context are implicitly asynchronous
@MainActor open func constraint(equalTo anchor: NSLayoutAnchor<AnchorType>) -> NSLayoutConstraint}
^
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKit.swift:43:17: note: add '@MainActor' to make instance method 'configurePreventionScreenshot()' part of global actor 'MainActor'
public func configurePreventionScreenshot() {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKit.swift:49:27: warning: main actor-isolated property 'centerXAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
screenPrevent.centerXAnchor.constraint(equalTo: w.centerXAnchor).isActive = true
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:580:59: note: property declared here
@property(nonatomic,readonly,strong) NSLayoutXAxisAnchor *centerXAnchor API_AVAILABLE(ios(9.0));
^
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKit.swift:43:17: note: add '@MainActor' to make instance method 'configurePreventionScreenshot()' part of global actor 'MainActor'
public func configurePreventionScreenshot() {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKit.swift:49:63: warning: main actor-isolated property 'centerXAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
screenPrevent.centerXAnchor.constraint(equalTo: w.centerXAnchor).isActive = true
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:580:59: note: property declared here
@property(nonatomic,readonly,strong) NSLayoutXAxisAnchor *centerXAnchor API_AVAILABLE(ios(9.0));
^
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKit.swift:43:17: note: add '@MainActor' to make instance method 'configurePreventionScreenshot()' part of global actor 'MainActor'
public func configurePreventionScreenshot() {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKit.swift:50:15: warning: main actor-isolated property 'layer' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
w.layer.superlayer?.addSublayer(screenPrevent.layer)
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:154:64: note: property declared here
@property(nonatomic,readonly,strong) CALayer *layer; // returns view's layer. Will always return a non-nil value. view is layer's delegate
^
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKit.swift:43:17: note: add '@MainActor' to make instance method 'configurePreventionScreenshot()' part of global actor 'MainActor'
public func configurePreventionScreenshot() {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKit.swift:50:59: warning: main actor-isolated property 'layer' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
w.layer.superlayer?.addSublayer(screenPrevent.layer)
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:154:64: note: property declared here
@property(nonatomic,readonly,strong) CALayer *layer; // returns view's layer. Will always return a non-nil value. view is layer's delegate
^
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKit.swift:43:17: note: add '@MainActor' to make instance method 'configurePreventionScreenshot()' part of global actor 'MainActor'
public func configurePreventionScreenshot() {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKit.swift:52:31: warning: main actor-isolated property 'layer' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
screenPrevent.layer.sublayers?.last?.addSublayer(w.layer)
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:154:64: note: property declared here
@property(nonatomic,readonly,strong) CALayer *layer; // returns view's layer. Will always return a non-nil value. view is layer's delegate
^
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKit.swift:43:17: note: add '@MainActor' to make instance method 'configurePreventionScreenshot()' part of global actor 'MainActor'
public func configurePreventionScreenshot() {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKit.swift:52:68: warning: main actor-isolated property 'layer' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
screenPrevent.layer.sublayers?.last?.addSublayer(w.layer)
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:154:64: note: property declared here
@property(nonatomic,readonly,strong) CALayer *layer; // returns view's layer. Will always return a non-nil value. view is layer's delegate
^
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKit.swift:43:17: note: add '@MainActor' to make instance method 'configurePreventionScreenshot()' part of global actor 'MainActor'
public func configurePreventionScreenshot() {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKit.swift:54:31: warning: main actor-isolated property 'layer' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
screenPrevent.layer.sublayers?.first?.addSublayer(w.layer)
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:154:64: note: property declared here
@property(nonatomic,readonly,strong) CALayer *layer; // returns view's layer. Will always return a non-nil value. view is layer's delegate
^
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKit.swift:43:17: note: add '@MainActor' to make instance method 'configurePreventionScreenshot()' part of global actor 'MainActor'
public func configurePreventionScreenshot() {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKit.swift:54:69: warning: main actor-isolated property 'layer' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
screenPrevent.layer.sublayers?.first?.addSublayer(w.layer)
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:154:64: note: property declared here
@property(nonatomic,readonly,strong) CALayer *layer; // returns view's layer. Will always return a non-nil value. view is layer's delegate
^
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKit.swift:43:17: note: add '@MainActor' to make instance method 'configurePreventionScreenshot()' part of global actor 'MainActor'
public func configurePreventionScreenshot() {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKit.swift:65:23: warning: main actor-isolated property 'isSecureTextEntry' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
screenPrevent.isSecureTextEntry = true
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UITextInputTraits.h:254:52: note: mutation of this property is only permitted within the actor
@property(nonatomic,getter=isSecureTextEntry) BOOL secureTextEntry; // default is NO
^
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKit.swift:64:17: note: add '@MainActor' to make instance method 'enabledPreventScreenshot()' part of global actor 'MainActor'
public func enabledPreventScreenshot() {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKit.swift:74:23: warning: main actor-isolated property 'isSecureTextEntry' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
screenPrevent.isSecureTextEntry = false
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UITextInputTraits.h:254:52: note: mutation of this property is only permitted within the actor
@property(nonatomic,getter=isSecureTextEntry) BOOL secureTextEntry; // default is NO
^
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKit.swift:73:17: note: add '@MainActor' to make instance method 'disablePreventScreenshot()' part of global actor 'MainActor'
public func disablePreventScreenshot() {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKit.swift:86:30: warning: call to main actor-isolated initializer 'init(style:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
let blurEffect = UIBlurEffect(style: style)
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIBlurEffect.h:63:1: note: calls to initializer 'init(style:)' from outside of its actor context are implicitly asynchronous
+ (UIBlurEffect *)effectWithStyle:(UIBlurEffectStyle)style;
^
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKit.swift:82:17: note: add '@MainActor' to make instance method 'enabledBlurScreen(style:)' part of global actor 'MainActor'
public func enabledBlurScreen(style: UIBlurEffect.Style = UIBlurEffect.Style.light) {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKit.swift:87:28: warning: call to main actor-isolated initializer 'init(effect:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
let blurView = UIVisualEffectView(effect: blurEffect)
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIVisualEffectView.h:34:1: note: calls to initializer 'init(effect:)' from outside of its actor context are implicitly asynchronous
- (instancetype)initWithEffect:(nullable UIVisualEffect *)effect NS_DESIGNATED_INITIALIZER;
^
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKit.swift:82:17: note: add '@MainActor' to make instance method 'enabledBlurScreen(style:)' part of global actor 'MainActor'
public func enabledBlurScreen(style: UIBlurEffect.Style = UIBlurEffect.Style.light) {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKit.swift:88:22: warning: main actor-isolated property 'frame' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
blurView.frame = w.bounds
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:185:40: note: mutation of this property is only permitted within the actor
@property(nonatomic) CGRect frame;
^
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKit.swift:82:17: note: add '@MainActor' to make instance method 'enabledBlurScreen(style:)' part of global actor 'MainActor'
public func enabledBlurScreen(style: UIBlurEffect.Style = UIBlurEffect.Style.light) {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKit.swift:88:32: warning: main actor-isolated property 'bounds' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
blurView.frame = w.bounds
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:188:40: note: property declared here
@property(nonatomic) CGRect bounds; // default bounds is zero origin, frame size. animatable
^
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKit.swift:82:17: note: add '@MainActor' to make instance method 'enabledBlurScreen(style:)' part of global actor 'MainActor'
public func enabledBlurScreen(style: UIBlurEffect.Style = UIBlurEffect.Style.light) {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKit.swift:89:22: warning: main actor-isolated property 'autoresizingMask' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
blurView.autoresizingMask = [.flexibleWidth, .flexibleHeight]
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:212:41: note: mutation of this property is only permitted within the actor
@property(nonatomic) UIViewAutoresizing autoresizingMask; // simple resize. default is UIViewAutoresizingNone
^
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKit.swift:82:17: note: add '@MainActor' to make instance method 'enabledBlurScreen(style:)' part of global actor 'MainActor'
public func enabledBlurScreen(style: UIBlurEffect.Style = UIBlurEffect.Style.light) {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKit.swift:90:22: warning: main actor-isolated property 'isUserInteractionEnabled' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
blurView.isUserInteractionEnabled = false
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:152:59: note: mutation of this property is only permitted within the actor
@property(nonatomic,getter=isUserInteractionEnabled) BOOL userInteractionEnabled; // default is YES. if set to NO, user events (touch, keys) are ignored and removed from the event queue.
^
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKit.swift:82:17: note: add '@MainActor' to make instance method 'enabledBlurScreen(style:)' part of global actor 'MainActor'
public func enabledBlurScreen(style: UIBlurEffect.Style = UIBlurEffect.Style.light) {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKit.swift:92:15: warning: call to main actor-isolated instance method 'addSubview' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
w.addSubview(blurView)
^
UIKit.UIView.addSubview:2:22: note: calls to instance method 'addSubview' from outside of its actor context are implicitly asynchronous
@MainActor open func addSubview(_ view: UIView)}
^
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKit.swift:82:17: note: add '@MainActor' to make instance method 'enabledBlurScreen(style:)' part of global actor 'MainActor'
public func enabledBlurScreen(style: UIBlurEffect.Style = UIBlurEffect.Style.light) {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKit.swift:95:21: warning: main actor-isolated property 'isHidden' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
screenBlur?.isHidden = false
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:307:56: note: mutation of this property is only permitted within the actor
@property(nonatomic,getter=isHidden) BOOL hidden; // default is NO. doesn't check superviews
^
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKit.swift:82:17: note: add '@MainActor' to make instance method 'enabledBlurScreen(style:)' part of global actor 'MainActor'
public func enabledBlurScreen(style: UIBlurEffect.Style = UIBlurEffect.Style.light) {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKit.swift:96:21: warning: main actor-isolated property 'alpha' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
screenBlur?.alpha = 1.0
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:304:56: note: mutation of this property is only permitted within the actor
@property(nonatomic) CGFloat alpha; // animatable. default is 1.0
^
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKit.swift:82:17: note: add '@MainActor' to make instance method 'enabledBlurScreen(style:)' part of global actor 'MainActor'
public func enabledBlurScreen(style: UIBlurEffect.Style = UIBlurEffect.Style.light) {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKit.swift:105:21: warning: main actor-isolated property 'alpha' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
screenBlur?.alpha = 0.0
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:304:56: note: mutation of this property is only permitted within the actor
@property(nonatomic) CGFloat alpha; // animatable. default is 1.0
^
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKit.swift:104:17: note: add '@MainActor' to make instance method 'disableBlurScreen()' part of global actor 'MainActor'
public func disableBlurScreen() {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKit.swift:106:21: warning: main actor-isolated property 'isHidden' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
screenBlur?.isHidden = true
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:307:56: note: mutation of this property is only permitted within the actor
@property(nonatomic,getter=isHidden) BOOL hidden; // default is NO. doesn't check superviews
^
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKit.swift:104:17: note: add '@MainActor' to make instance method 'disableBlurScreen()' part of global actor 'MainActor'
public func disableBlurScreen() {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKit.swift:118:24: warning: call to main actor-isolated initializer 'init(frame:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
let view = UIView(frame: w.bounds)
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:149:1: note: calls to initializer 'init(frame:)' from outside of its actor context are implicitly asynchronous
- (instancetype)initWithFrame:(CGRect)frame NS_DESIGNATED_INITIALIZER;
^
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKit.swift:114:17: note: add '@MainActor' to make instance method 'enabledColorScreen(hexColor:)' part of global actor 'MainActor'
public func enabledColorScreen(hexColor: String) {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKit.swift:118:40: warning: main actor-isolated property 'bounds' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
let view = UIView(frame: w.bounds)
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:188:40: note: property declared here
@property(nonatomic) CGRect bounds; // default bounds is zero origin, frame size. animatable
^
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKit.swift:114:17: note: add '@MainActor' to make instance method 'enabledColorScreen(hexColor:)' part of global actor 'MainActor'
public func enabledColorScreen(hexColor: String) {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKit.swift:119:18: warning: main actor-isolated property 'autoresizingMask' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
view.autoresizingMask = [.flexibleWidth, .flexibleHeight]
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:212:41: note: mutation of this property is only permitted within the actor
@property(nonatomic) UIViewAutoresizing autoresizingMask; // simple resize. default is UIViewAutoresizingNone
^
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKit.swift:114:17: note: add '@MainActor' to make instance method 'enabledColorScreen(hexColor:)' part of global actor 'MainActor'
public func enabledColorScreen(hexColor: String) {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKit.swift:120:18: warning: main actor-isolated property 'backgroundColor' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
view.backgroundColor = UIColor(hexString: hexColor)
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:303:66: note: mutation of this property is only permitted within the actor
@property(nullable, nonatomic,copy) UIColor *backgroundColor UI_APPEARANCE_SELECTOR; // default is nil. Can be useful with the appearance proxy on custom UIView subclasses.
^
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKit.swift:114:17: note: add '@MainActor' to make instance method 'enabledColorScreen(hexColor:)' part of global actor 'MainActor'
public func enabledColorScreen(hexColor: String) {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKit.swift:122:15: warning: call to main actor-isolated instance method 'addSubview' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
w.addSubview(view)
^
UIKit.UIView.addSubview:2:22: note: calls to instance method 'addSubview' from outside of its actor context are implicitly asynchronous
@MainActor open func addSubview(_ view: UIView)}
^
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKit.swift:114:17: note: add '@MainActor' to make instance method 'enabledColorScreen(hexColor:)' part of global actor 'MainActor'
public func enabledColorScreen(hexColor: String) {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKit.swift:125:22: warning: main actor-isolated property 'isHidden' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
screenColor?.isHidden = false
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:307:56: note: mutation of this property is only permitted within the actor
@property(nonatomic,getter=isHidden) BOOL hidden; // default is NO. doesn't check superviews
^
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKit.swift:114:17: note: add '@MainActor' to make instance method 'enabledColorScreen(hexColor:)' part of global actor 'MainActor'
public func enabledColorScreen(hexColor: String) {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKit.swift:126:22: warning: main actor-isolated property 'alpha' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
screenColor?.alpha = 1.0
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:304:56: note: mutation of this property is only permitted within the actor
@property(nonatomic) CGFloat alpha; // animatable. default is 1.0
^
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKit.swift:114:17: note: add '@MainActor' to make instance method 'enabledColorScreen(hexColor:)' part of global actor 'MainActor'
public func enabledColorScreen(hexColor: String) {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKit.swift:135:22: warning: main actor-isolated property 'isHidden' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
screenColor?.isHidden = true
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:307:56: note: mutation of this property is only permitted within the actor
@property(nonatomic,getter=isHidden) BOOL hidden; // default is NO. doesn't check superviews
^
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKit.swift:134:17: note: add '@MainActor' to make instance method 'disableColorScreen()' part of global actor 'MainActor'
public func disableColorScreen() {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKit.swift:136:22: warning: main actor-isolated property 'alpha' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
screenColor?.alpha = 0.0
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:304:56: note: mutation of this property is only permitted within the actor
@property(nonatomic) CGFloat alpha; // animatable. default is 1.0
^
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKit.swift:134:17: note: add '@MainActor' to make instance method 'disableColorScreen()' part of global actor 'MainActor'
public func disableColorScreen() {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKit.swift:148:29: warning: call to main actor-isolated initializer 'init(frame:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
let imageView = UIImageView(frame: w.bounds)
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:149:1: note: calls to initializer 'init(frame:)' from outside of its actor context are implicitly asynchronous
- (instancetype)initWithFrame:(CGRect)frame NS_DESIGNATED_INITIALIZER;
^
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKit.swift:144:17: note: add '@MainActor' to make instance method 'enabledImageScreen(named:)' part of global actor 'MainActor'
public func enabledImageScreen(named: String) {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKit.swift:148:50: warning: main actor-isolated property 'bounds' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
let imageView = UIImageView(frame: w.bounds)
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:188:40: note: property declared here
@property(nonatomic) CGRect bounds; // default bounds is zero origin, frame size. animatable
^
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKit.swift:144:17: note: add '@MainActor' to make instance method 'enabledImageScreen(named:)' part of global actor 'MainActor'
public func enabledImageScreen(named: String) {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKit.swift:149:23: warning: main actor-isolated property 'autoresizingMask' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
imageView.autoresizingMask = [.flexibleWidth, .flexibleHeight]
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:212:41: note: mutation of this property is only permitted within the actor
@property(nonatomic) UIViewAutoresizing autoresizingMask; // simple resize. default is UIViewAutoresizingNone
^
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKit.swift:144:17: note: add '@MainActor' to make instance method 'enabledImageScreen(named:)' part of global actor 'MainActor'
public func enabledImageScreen(named: String) {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKit.swift:150:23: warning: main actor-isolated property 'image' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
imageView.image = UIImage(named: named)
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIImageView.h:26:50: note: mutation of this property is only permitted within the actor
@property (nullable, nonatomic, strong) UIImage *image; // default is nil
^
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKit.swift:144:17: note: add '@MainActor' to make instance method 'enabledImageScreen(named:)' part of global actor 'MainActor'
public func enabledImageScreen(named: String) {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKit.swift:151:23: warning: main actor-isolated property 'isUserInteractionEnabled' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
imageView.isUserInteractionEnabled = false
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIImageView.h:29:61: note: mutation of this property is only permitted within the actor
@property (nonatomic, getter=isUserInteractionEnabled) BOOL userInteractionEnabled; // default is NO
^
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKit.swift:144:17: note: add '@MainActor' to make instance method 'enabledImageScreen(named:)' part of global actor 'MainActor'
public func enabledImageScreen(named: String) {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKit.swift:152:23: warning: main actor-isolated property 'contentMode' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
imageView.contentMode = .scaleAspectFill
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:308:56: note: mutation of this property is only permitted within the actor
@property(nonatomic) UIViewContentMode contentMode; // default is UIViewContentModeScaleToFill
^
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKit.swift:144:17: note: add '@MainActor' to make instance method 'enabledImageScreen(named:)' part of global actor 'MainActor'
public func enabledImageScreen(named: String) {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKit.swift:153:23: warning: main actor-isolated property 'clipsToBounds' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
imageView.clipsToBounds = true
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:302:56: note: mutation of this property is only permitted within the actor
@property(nonatomic) BOOL clipsToBounds; // When YES, content and subviews are clipped to the bounds of the view. Default is NO.
^
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKit.swift:144:17: note: add '@MainActor' to make instance method 'enabledImageScreen(named:)' part of global actor 'MainActor'
public func enabledImageScreen(named: String) {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKit.swift:155:15: warning: call to main actor-isolated instance method 'addSubview' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
w.addSubview(imageView)
^
UIKit.UIView.addSubview:2:22: note: calls to instance method 'addSubview' from outside of its actor context are implicitly asynchronous
@MainActor open func addSubview(_ view: UIView)}
^
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKit.swift:144:17: note: add '@MainActor' to make instance method 'enabledImageScreen(named:)' part of global actor 'MainActor'
public func enabledImageScreen(named: String) {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKit.swift:158:22: warning: main actor-isolated property 'isHidden' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
screenImage?.isHidden = false
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:307:56: note: mutation of this property is only permitted within the actor
@property(nonatomic,getter=isHidden) BOOL hidden; // default is NO. doesn't check superviews
^
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKit.swift:144:17: note: add '@MainActor' to make instance method 'enabledImageScreen(named:)' part of global actor 'MainActor'
public func enabledImageScreen(named: String) {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKit.swift:159:22: warning: main actor-isolated property 'alpha' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
screenImage?.alpha = 1.0
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:304:56: note: mutation of this property is only permitted within the actor
@property(nonatomic) CGFloat alpha; // animatable. default is 1.0
^
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKit.swift:144:17: note: add '@MainActor' to make instance method 'enabledImageScreen(named:)' part of global actor 'MainActor'
public func enabledImageScreen(named: String) {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKit.swift:168:22: warning: main actor-isolated property 'isHidden' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
screenImage?.isHidden = true
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:307:56: note: mutation of this property is only permitted within the actor
@property(nonatomic,getter=isHidden) BOOL hidden; // default is NO. doesn't check superviews
^
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKit.swift:167:17: note: add '@MainActor' to make instance method 'disableImageScreen()' part of global actor 'MainActor'
public func disableImageScreen() {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKit.swift:169:22: warning: main actor-isolated property 'alpha' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
screenImage?.alpha = 0.0
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:304:56: note: mutation of this property is only permitted within the actor
@property(nonatomic) CGFloat alpha; // animatable. default is 1.0
^
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKit.swift:167:17: note: add '@MainActor' to make instance method 'disableImageScreen()' part of global actor 'MainActor'
public func disableImageScreen() {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKit.swift:219:13: warning: capture of 'onScreenshot' with non-sendable type '() -> Void' in a '@Sendable' closure
onScreenshot()
^
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKit.swift:219:13: note: a function type must be marked '@Sendable' to conform to 'Sendable'
onScreenshot()
^
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKit.swift:234:22: error: 'UIScreen' is unavailable in visionOS
forName: UIScreen.capturedDidChangeNotification,
^~~~~~~~
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIScreen.h:54:12: note: 'UIScreen' has been explicitly marked unavailable here
@interface UIScreen : NSObject <UITraitEnvironment>
^
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKit.swift:234:31: error: 'capturedDidChangeNotification' is unavailable in visionOS
forName: UIScreen.capturedDidChangeNotification,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIScreen.h:27:39: note: 'capturedDidChangeNotification' has been explicitly marked unavailable here
UIKIT_EXTERN NSNotificationName const UIScreenCapturedDidChangeNotification API_AVAILABLE(ios(11.0)) API_UNAVAILABLE(visionos, watchos) NS_SWIFT_NONISOLATED;
^
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKit.swift:238:30: error: 'UIScreen' is unavailable in visionOS
let isCaptured = UIScreen.main.isCaptured
^~~~~~~~
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIScreen.h:54:12: note: 'UIScreen' has been explicitly marked unavailable here
@interface UIScreen : NSObject <UITraitEnvironment>
^
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKit.swift:239:13: warning: capture of 'onScreenRecord' with non-sendable type '(Bool) -> Void' in a '@Sendable' closure
onScreenRecord(isCaptured)
^
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKit.swift:239:13: note: a function type must be marked '@Sendable' to conform to 'Sendable'
onScreenRecord(isCaptured)
^
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKit.swift:238:44: warning: main actor-isolated property 'isCaptured' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
let isCaptured = UIScreen.main.isCaptured
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIScreen.h:74:54: note: property declared here
@property(nonatomic,readonly,getter=isCaptured) BOOL captured API_DEPRECATED("Use the sceneCaptureState in UITraitCollection instead.", ios(11.0, API_TO_BE_DEPRECATED)) API_UNAVAILABLE(watchos); // True if this screen is being captured (e.g. recorded, AirPlayed, mirrored, etc.)
^
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKit.swift:238:39: warning: main actor-isolated class property 'main' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
let isCaptured = UIScreen.main.isCaptured
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIScreen.h:57:49: note: class property declared here
@property(class, nonatomic, readonly) UIScreen *mainScreen API_DEPRECATED("Use a UIScreen instance found through context instead: i.e, view.window.windowScene.screen", ios(2.0, API_TO_BE_DEPRECATED), visionos(1.0, API_TO_BE_DEPRECATED)) API_UNAVAILABLE(watchos); // the device's internal screen
^
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKit.swift:250:16: error: 'UIScreen' is unavailable in visionOS
return UIScreen.main.isCaptured
^~~~~~~~
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIScreen.h:54:12: note: 'UIScreen' has been explicitly marked unavailable here
@interface UIScreen : NSObject <UITraitEnvironment>
^
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKit.swift:250:30: warning: main actor-isolated property 'isCaptured' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
return UIScreen.main.isCaptured
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIScreen.h:74:54: note: property declared here
@property(nonatomic,readonly,getter=isCaptured) BOOL captured API_DEPRECATED("Use the sceneCaptureState in UITraitCollection instead.", ios(11.0, API_TO_BE_DEPRECATED)) API_UNAVAILABLE(watchos); // True if this screen is being captured (e.g. recorded, AirPlayed, mirrored, etc.)
^
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKit.swift:249:17: note: add '@MainActor' to make instance method 'screenIsRecording()' part of global actor 'MainActor'
public func screenIsRecording() -> Bool {
^
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKit.swift:250:25: warning: main actor-isolated class property 'main' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
return UIScreen.main.isCaptured
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIScreen.h:57:49: note: class property declared here
@property(class, nonatomic, readonly) UIScreen *mainScreen API_DEPRECATED("Use a UIScreen instance found through context instead: i.e, view.window.windowScene.screen", ios(2.0, API_TO_BE_DEPRECATED), visionos(1.0, API_TO_BE_DEPRECATED)) API_UNAVAILABLE(watchos); // the device's internal screen
^
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKit.swift:249:17: note: add '@MainActor' to make instance method 'screenIsRecording()' part of global actor 'MainActor'
public func screenIsRecording() -> Bool {
^
Failed frontend command:
/Applications/Xcode-16.3.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-frontend -frontend -c -primary-file /Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKit.swift /Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKitManager.swift /Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/UIColor+Extension.swift /Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/WindowManager.swift -emit-dependencies-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ScreenProtectorKit.build/Debug-xros/ScreenProtectorKit.build/Objects-normal/arm64/ScreenProtectorKit.d -emit-const-values-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ScreenProtectorKit.build/Debug-xros/ScreenProtectorKit.build/Objects-normal/arm64/ScreenProtectorKit.swiftconstvalues -emit-reference-dependencies-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ScreenProtectorKit.build/Debug-xros/ScreenProtectorKit.build/Objects-normal/arm64/ScreenProtectorKit.swiftdeps -serialize-diagnostics-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ScreenProtectorKit.build/Debug-xros/ScreenProtectorKit.build/Objects-normal/arm64/ScreenProtectorKit.dia -target arm64-apple-xros1.0 -Xllvm -aarch64-use-tbi -enable-objc-interop -stack-check -sdk /Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk -I /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-xros -I /Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/usr/lib -F /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-xros -F /Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/Library/Frameworks -F /Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk/Developer/Library/Frameworks -no-color-diagnostics -enable-testing -g -debug-info-format\=dwarf -dwarf-version\=4 -module-cache-path /Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex -profile-generate -profile-coverage-mapping -swift-version 5 -enforce-exclusivity\=checked -stats-output-dir /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode/.stats -Onone -D SWIFT_PACKAGE -D DEBUG -serialize-debugging-options -const-gather-protocols-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ScreenProtectorKit.build/Debug-xros/ScreenProtectorKit.build/Objects-normal/arm64/ScreenProtectorKit_const_extract_protocols.json -enable-upcoming-feature StrictConcurrency -enable-upcoming-feature DisableOutwardActorInference -enable-upcoming-feature GlobalActorIsolatedTypesUsability -enable-upcoming-feature InferSendableFromCaptures -enable-experimental-feature DebugDescriptionMacro -strict-concurrency\=complete -empty-abi-descriptor -plugin-path /Applications/Xcode-16.3.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host/plugins/testing -validate-clang-modules-once -clang-build-session-file /Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex/Session.modulevalidation -Xcc -working-directory -Xcc /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode -resource-dir /Applications/Xcode-16.3.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift -enable-anonymous-context-mangled-names -file-compilation-dir /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode -Xcc -ivfsstatcache -Xcc /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/xros2.4-22O233-407b76dbb837030756cbe1ab3f0b01b6.sdkstatcache -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ScreenProtectorKit.build/Debug-xros/ScreenProtectorKit.build/swift-overrides.hmap -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-xros/include -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ScreenProtectorKit.build/Debug-xros/ScreenProtectorKit.build/DerivedSources-normal/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ScreenProtectorKit.build/Debug-xros/ScreenProtectorKit.build/DerivedSources/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ScreenProtectorKit.build/Debug-xros/ScreenProtectorKit.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -module-name ScreenProtectorKit -frontend-parseable-output -disable-clang-spi -target-sdk-version 2.4 -target-sdk-name xros2.4 -external-plugin-path /Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/usr/lib/swift/host/plugins\#/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/usr/bin/swift-plugin-server -external-plugin-path /Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/usr/local/lib/swift/host/plugins\#/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/usr/bin/swift-plugin-server -in-process-plugin-server-path /Applications/Xcode-16.3.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host/libSwiftInProcPluginServer.dylib -plugin-path /Applications/Xcode-16.3.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host/plugins -plugin-path /Applications/Xcode-16.3.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/local/lib/swift/host/plugins -o /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ScreenProtectorKit.build/Debug-xros/ScreenProtectorKit.build/Objects-normal/arm64/ScreenProtectorKit.o -index-unit-output-path /ScreenProtectorKit.build/Debug-xros/ScreenProtectorKit.build/Objects-normal/arm64/ScreenProtectorKit.o -index-store-path /Users/admin/builder/spi-builder-workspace/.derivedData/Index.noindex/DataStore -index-system-modules
SwiftCompile normal arm64 Compiling\ WindowManager.swift /Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/WindowManager.swift (in target 'ScreenProtectorKit' from project 'ScreenProtectorKit')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/WindowManager.swift (in target 'ScreenProtectorKit' from project 'ScreenProtectorKit')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/WindowManager.swift:55:51: error: 'keyWindow' is unavailable in visionOS
return window ?? UIApplication.shared.keyWindow
^~~~~~~~~
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:108:51: note: 'keyWindow' has been explicitly marked unavailable here
@property(nullable, nonatomic,readonly) UIWindow *keyWindow API_DEPRECATED("Should not be used for applications that support multiple scenes as it returns a key window across all connected scenes", ios(2.0, 13.0)) API_UNAVAILABLE(visionos, watchos);
^
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/WindowManager.swift:37:55: warning: main actor-isolated property 'connectedScenes' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
if let sceneWindow = UIApplication.shared.connectedScenes
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:170:50: note: property declared here
@property(nonatomic, readonly) NSSet<UIScene *> *connectedScenes API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos);
^
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/WindowManager.swift:34:18: note: add '@MainActor' to make instance method 'findKeyWindow()' part of global actor 'MainActor'
private func findKeyWindow() -> UIWindow? {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/WindowManager.swift:37:48: warning: main actor-isolated class property 'shared' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
if let sceneWindow = UIApplication.shared.connectedScenes
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:87:54: note: class property declared here
@property(class, nonatomic, readonly) UIApplication *sharedApplication NS_EXTENSION_UNAVAILABLE_IOS("Use view controller based solutions where appropriate instead.");
^
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/WindowManager.swift:34:18: note: add '@MainActor' to make instance method 'findKeyWindow()' part of global actor 'MainActor'
private func findKeyWindow() -> UIWindow? {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/WindowManager.swift:39:31: warning: main actor-isolated property 'windows' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
.flatMap({ $0.windows })
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIWindowScene.h:38:54: note: property declared here
@property (nonatomic, readonly) NSArray<UIWindow *> *windows;
^
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/WindowManager.swift:40:36: warning: main actor-isolated property 'isKeyWindow' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
.first(where: { $0.isKeyWindow }) { return sceneWindow }
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIWindow.h:42:55: note: property declared here
@property(nonatomic,readonly,getter=isKeyWindow) BOOL keyWindow;
^
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/WindowManager.swift:43:53: warning: main actor-isolated property 'connectedScenes' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
if let anyWindow = UIApplication.shared.connectedScenes
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:170:50: note: property declared here
@property(nonatomic, readonly) NSSet<UIScene *> *connectedScenes API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos);
^
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/WindowManager.swift:34:18: note: add '@MainActor' to make instance method 'findKeyWindow()' part of global actor 'MainActor'
private func findKeyWindow() -> UIWindow? {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/WindowManager.swift:43:46: warning: main actor-isolated class property 'shared' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
if let anyWindow = UIApplication.shared.connectedScenes
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:87:54: note: class property declared here
@property(class, nonatomic, readonly) UIApplication *sharedApplication NS_EXTENSION_UNAVAILABLE_IOS("Use view controller based solutions where appropriate instead.");
^
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/WindowManager.swift:34:18: note: add '@MainActor' to make instance method 'findKeyWindow()' part of global actor 'MainActor'
private func findKeyWindow() -> UIWindow? {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/WindowManager.swift:45:31: warning: main actor-isolated property 'windows' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
.flatMap({ $0.windows })
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIWindowScene.h:38:54: note: property declared here
@property (nonatomic, readonly) NSArray<UIWindow *> *windows;
^
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/WindowManager.swift:49:56: warning: main actor-isolated property 'delegate' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
if let legacyWindow = UIApplication.shared.delegate?.window as? UIWindow {
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:89:66: note: property declared here
@property(nullable, nonatomic, assign) id<UIApplicationDelegate> delegate;
^
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/WindowManager.swift:34:18: note: add '@MainActor' to make instance method 'findKeyWindow()' part of global actor 'MainActor'
private func findKeyWindow() -> UIWindow? {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/WindowManager.swift:49:49: warning: main actor-isolated class property 'shared' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
if let legacyWindow = UIApplication.shared.delegate?.window as? UIWindow {
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:87:54: note: class property declared here
@property(class, nonatomic, readonly) UIApplication *sharedApplication NS_EXTENSION_UNAVAILABLE_IOS("Use view controller based solutions where appropriate instead.");
^
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/WindowManager.swift:34:18: note: add '@MainActor' to make instance method 'findKeyWindow()' part of global actor 'MainActor'
private func findKeyWindow() -> UIWindow? {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/WindowManager.swift:49:66: warning: main actor-isolated property 'window' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
if let legacyWindow = UIApplication.shared.delegate?.window as? UIWindow {
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:441:51: note: property declared here
@property (nullable, nonatomic, strong) UIWindow *window API_AVAILABLE(ios(5.0));
^
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/WindowManager.swift:34:18: note: add '@MainActor' to make instance method 'findKeyWindow()' part of global actor 'MainActor'
private func findKeyWindow() -> UIWindow? {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/WindowManager.swift:54:47: warning: main actor-isolated property 'delegate' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
let window = UIApplication.shared.delegate?.window as? UIWindow
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:89:66: note: property declared here
@property(nullable, nonatomic, assign) id<UIApplicationDelegate> delegate;
^
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/WindowManager.swift:34:18: note: add '@MainActor' to make instance method 'findKeyWindow()' part of global actor 'MainActor'
private func findKeyWindow() -> UIWindow? {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/WindowManager.swift:54:40: warning: main actor-isolated class property 'shared' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
let window = UIApplication.shared.delegate?.window as? UIWindow
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:87:54: note: class property declared here
@property(class, nonatomic, readonly) UIApplication *sharedApplication NS_EXTENSION_UNAVAILABLE_IOS("Use view controller based solutions where appropriate instead.");
^
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/WindowManager.swift:34:18: note: add '@MainActor' to make instance method 'findKeyWindow()' part of global actor 'MainActor'
private func findKeyWindow() -> UIWindow? {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/WindowManager.swift:54:57: warning: main actor-isolated property 'window' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
let window = UIApplication.shared.delegate?.window as? UIWindow
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:441:51: note: property declared here
@property (nullable, nonatomic, strong) UIWindow *window API_AVAILABLE(ios(5.0));
^
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/WindowManager.swift:34:18: note: add '@MainActor' to make instance method 'findKeyWindow()' part of global actor 'MainActor'
private func findKeyWindow() -> UIWindow? {
^
@MainActor
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/WindowManager.swift:55:51: warning: main actor-isolated property 'keyWindow' can not be referenced from a nonisolated autoclosure; this is an error in the Swift 6 language mode
return window ?? UIApplication.shared.keyWindow
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:108:51: note: property declared here
@property(nullable, nonatomic,readonly) UIWindow *keyWindow API_DEPRECATED("Should not be used for applications that support multiple scenes as it returns a key window across all connected scenes", ios(2.0, 13.0)) API_UNAVAILABLE(visionos, watchos);
^
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/WindowManager.swift:55:44: warning: main actor-isolated class property 'shared' can not be referenced from a nonisolated autoclosure; this is an error in the Swift 6 language mode
return window ?? UIApplication.shared.keyWindow
^
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:87:54: note: class property declared here
@property(class, nonatomic, readonly) UIApplication *sharedApplication NS_EXTENSION_UNAVAILABLE_IOS("Use view controller based solutions where appropriate instead.");
^
SwiftCompile normal arm64 Compiling\ UIColor+Extension.swift /Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/UIColor+Extension.swift (in target 'ScreenProtectorKit' from project 'ScreenProtectorKit')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/UIColor+Extension.swift (in target 'ScreenProtectorKit' from project 'ScreenProtectorKit')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
SwiftCompile normal arm64 Compiling\ ScreenProtectorKitManager.swift /Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKitManager.swift (in target 'ScreenProtectorKit' from project 'ScreenProtectorKit')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKitManager.swift (in target 'ScreenProtectorKit' from project 'ScreenProtectorKit')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKitManager.swift:17:80: warning: passing non-sendable parameter 'work' to function expecting a @Sendable closure
if Thread.isMainThread { work() } else { DispatchQueue.main.async(execute: work) }
^
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKitManager.swift:16:22: note: parameter 'work' is implicitly non-sendable
public func onMain(_ work: @escaping () -> Void) {
^
@Sendable
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKitManager.swift:168:30: warning: capture of 'self' with non-sendable type 'ScreenProtectorKitManager?' in a '@Sendable' closure
guard let self = self else { return }
^
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKitManager.swift:113:20: note: class 'ScreenProtectorKitManager' does not conform to the 'Sendable' protocol
public final class ScreenProtectorKitManager: ScreenProtectorKitManaging {
^
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKitManager.swift:169:44: warning: capture of 'snapshot' with non-sendable type 'StateSnapshot' in a '@Sendable' closure
self._preventScreenshotState = snapshot.preventScreenshotState
^
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKitManager.swift:62:15: note: consider making struct 'StateSnapshot' conform to the 'Sendable' protocol
public struct StateSnapshot: Equatable {
^
, Sendable
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKitManager.swift:238:44: warning: capture of 'self' with non-sendable type 'ScreenProtectorKitManager' in a '@Sendable' closure
syncQueue.async(flags: .barrier) { self._colorProtectionState = .off }
^
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKitManager.swift:113:20: note: class 'ScreenProtectorKitManager' does not conform to the 'Sendable' protocol
public final class ScreenProtectorKitManager: ScreenProtectorKitManaging {
^
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKitManager.swift:239:44: warning: capture of 'self' with non-sendable type 'ScreenProtectorKitManager' in a '@Sendable' closure
syncQueue.async(flags: .barrier) { self._imageProtectionState = .off }
^
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKitManager.swift:113:20: note: class 'ScreenProtectorKitManager' does not conform to the 'Sendable' protocol
public final class ScreenProtectorKitManager: ScreenProtectorKitManaging {
^
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKitManager.swift:240:44: warning: capture of 'self' with non-sendable type 'ScreenProtectorKitManager' in a '@Sendable' closure
syncQueue.async(flags: .barrier) { self._blurProtectionState = .off }
^
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKitManager.swift:113:20: note: class 'ScreenProtectorKitManager' does not conform to the 'Sendable' protocol
public final class ScreenProtectorKitManager: ScreenProtectorKitManaging {
^
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKitManager.swift:251:44: warning: capture of 'self' with non-sendable type 'ScreenProtectorKitManager' in a '@Sendable' closure
syncQueue.async(flags: .barrier) { self._preventScreenshotState = .on }
^
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKitManager.swift:113:20: note: class 'ScreenProtectorKitManager' does not conform to the 'Sendable' protocol
public final class ScreenProtectorKitManager: ScreenProtectorKitManaging {
^
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKitManager.swift:260:44: warning: capture of 'self' with non-sendable type 'ScreenProtectorKitManager' in a '@Sendable' closure
syncQueue.async(flags: .barrier) { self._preventScreenshotState = .off }
^
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKitManager.swift:113:20: note: class 'ScreenProtectorKitManager' does not conform to the 'Sendable' protocol
public final class ScreenProtectorKitManager: ScreenProtectorKitManaging {
^
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKitManager.swift:338:48: warning: capture of 'self' with non-sendable type 'ScreenProtectorKitManager' in a '@Sendable' closure
syncQueue.async(flags: .barrier) { self._blurProtectionState = .on }
^
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKitManager.swift:113:20: note: class 'ScreenProtectorKitManager' does not conform to the 'Sendable' protocol
public final class ScreenProtectorKitManager: ScreenProtectorKitManaging {
^
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKitManager.swift:341:48: warning: capture of 'self' with non-sendable type 'ScreenProtectorKitManager' in a '@Sendable' closure
syncQueue.async(flags: .barrier) { self._imageProtectionName = name }
^
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKitManager.swift:113:20: note: class 'ScreenProtectorKitManager' does not conform to the 'Sendable' protocol
public final class ScreenProtectorKitManager: ScreenProtectorKitManaging {
^
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKitManager.swift:342:48: warning: capture of 'self' with non-sendable type 'ScreenProtectorKitManager' in a '@Sendable' closure
syncQueue.async(flags: .barrier) { self._imageProtectionState = .on }
^
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKitManager.swift:113:20: note: class 'ScreenProtectorKitManager' does not conform to the 'Sendable' protocol
public final class ScreenProtectorKitManager: ScreenProtectorKitManaging {
^
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKitManager.swift:345:48: warning: capture of 'self' with non-sendable type 'ScreenProtectorKitManager' in a '@Sendable' closure
syncQueue.async(flags: .barrier) { self._colorProtectionHex = hex }
^
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKitManager.swift:113:20: note: class 'ScreenProtectorKitManager' does not conform to the 'Sendable' protocol
public final class ScreenProtectorKitManager: ScreenProtectorKitManaging {
^
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKitManager.swift:346:48: warning: capture of 'self' with non-sendable type 'ScreenProtectorKitManager' in a '@Sendable' closure
syncQueue.async(flags: .barrier) { self._colorProtectionState = .on }
^
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKitManager.swift:113:20: note: class 'ScreenProtectorKitManager' does not conform to the 'Sendable' protocol
public final class ScreenProtectorKitManager: ScreenProtectorKitManaging {
^
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKitManager.swift:360:48: warning: capture of 'self' with non-sendable type 'ScreenProtectorKitManager' in a '@Sendable' closure
syncQueue.async(flags: .barrier) { self._blurProtectionState = .off }
^
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKitManager.swift:113:20: note: class 'ScreenProtectorKitManager' does not conform to the 'Sendable' protocol
public final class ScreenProtectorKitManager: ScreenProtectorKitManaging {
^
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKitManager.swift:364:48: warning: capture of 'self' with non-sendable type 'ScreenProtectorKitManager' in a '@Sendable' closure
syncQueue.async(flags: .barrier) { self._imageProtectionState = .off }
^
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKitManager.swift:113:20: note: class 'ScreenProtectorKitManager' does not conform to the 'Sendable' protocol
public final class ScreenProtectorKitManager: ScreenProtectorKitManaging {
^
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKitManager.swift:368:48: warning: capture of 'self' with non-sendable type 'ScreenProtectorKitManager' in a '@Sendable' closure
syncQueue.async(flags: .barrier) { self._colorProtectionState = .off }
^
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKitManager.swift:113:20: note: class 'ScreenProtectorKitManager' does not conform to the 'Sendable' protocol
public final class ScreenProtectorKitManager: ScreenProtectorKitManaging {
^
SwiftEmitModule normal arm64 Emitting\ module\ for\ ScreenProtectorKit (in target 'ScreenProtectorKit' from project 'ScreenProtectorKit')
EmitSwiftModule normal arm64 (in target 'ScreenProtectorKit' from project 'ScreenProtectorKit')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKit.swift:24:17: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
private var screenPrevent = UITextField()
^
SwiftDriverJobDiscovery normal arm64 Emitting module for ScreenProtectorKit (in target 'ScreenProtectorKit' from project 'ScreenProtectorKit')
SwiftDriver\ Compilation\ Requirements ScreenProtectorKit normal arm64 com.apple.xcode.tools.swift.compiler (in target 'ScreenProtectorKit' from project 'ScreenProtectorKit')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-Swift-Compilation-Requirements -- /Applications/Xcode-16.3.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc -module-name ScreenProtectorKit -Onone -enforce-exclusivity\=checked @/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ScreenProtectorKit.build/Debug-xros/ScreenProtectorKit.build/Objects-normal/arm64/ScreenProtectorKit.SwiftFileList -DSWIFT_PACKAGE -DDEBUG -stats-output-dir .stats -strict-concurrency\=complete -enable-upcoming-feature StrictConcurrency -enable-upcoming-feature DisableOutwardActorInference -enable-upcoming-feature GlobalActorIsolatedTypesUsability -enable-upcoming-feature InferSendableFromCaptures -plugin-path /Applications/Xcode-16.3.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host/plugins/testing -enable-experimental-feature DebugDescriptionMacro -sdk /Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk -target arm64-apple-xros1.0 -g -module-cache-path /Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex -Xfrontend -serialize-debugging-options -profile-coverage-mapping -profile-generate -enable-testing -index-store-path /Users/admin/builder/spi-builder-workspace/.derivedData/Index.noindex/DataStore -swift-version 5 -I /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-xros -I /Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/usr/lib -F /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-xros -F /Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/Library/Frameworks -F /Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk/Developer/Library/Frameworks -c -j10 -enable-batch-mode -incremental -Xcc -ivfsstatcache -Xcc /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/xros2.4-22O233-407b76dbb837030756cbe1ab3f0b01b6.sdkstatcache -output-file-map /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ScreenProtectorKit.build/Debug-xros/ScreenProtectorKit.build/Objects-normal/arm64/ScreenProtectorKit-OutputFileMap.json -use-frontend-parseable-output -save-temps -no-color-diagnostics -serialize-diagnostics -emit-dependencies -emit-module -emit-module-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ScreenProtectorKit.build/Debug-xros/ScreenProtectorKit.build/Objects-normal/arm64/ScreenProtectorKit.swiftmodule -validate-clang-modules-once -clang-build-session-file /Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex/Session.modulevalidation -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ScreenProtectorKit.build/Debug-xros/ScreenProtectorKit.build/swift-overrides.hmap -emit-const-values -Xfrontend -const-gather-protocols-file -Xfrontend /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ScreenProtectorKit.build/Debug-xros/ScreenProtectorKit.build/Objects-normal/arm64/ScreenProtectorKit_const_extract_protocols.json -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-xros/include -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ScreenProtectorKit.build/Debug-xros/ScreenProtectorKit.build/DerivedSources-normal/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ScreenProtectorKit.build/Debug-xros/ScreenProtectorKit.build/DerivedSources/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ScreenProtectorKit.build/Debug-xros/ScreenProtectorKit.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -emit-objc-header -emit-objc-header-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ScreenProtectorKit.build/Debug-xros/ScreenProtectorKit.build/Objects-normal/arm64/ScreenProtectorKit-Swift.h -working-directory /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode -experimental-emit-module-separately -disable-cmo
SwiftMergeGeneratedHeaders /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/GeneratedModuleMaps-xros/ScreenProtectorKit-Swift.h /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ScreenProtectorKit.build/Debug-xros/ScreenProtectorKit.build/Objects-normal/arm64/ScreenProtectorKit-Swift.h (in target 'ScreenProtectorKit' from project 'ScreenProtectorKit')
cd /Users/admin/builder/spi-builder-workspace
builtin-swiftHeaderTool -arch arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ScreenProtectorKit.build/Debug-xros/ScreenProtectorKit.build/Objects-normal/arm64/ScreenProtectorKit-Swift.h -o /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/GeneratedModuleMaps-xros/ScreenProtectorKit-Swift.h
Copy /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-xros/ScreenProtectorKit.swiftmodule/arm64-apple-xros.swiftmodule /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ScreenProtectorKit.build/Debug-xros/ScreenProtectorKit.build/Objects-normal/arm64/ScreenProtectorKit.swiftmodule (in target 'ScreenProtectorKit' from project 'ScreenProtectorKit')
cd /Users/admin/builder/spi-builder-workspace
builtin-copy -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -exclude .hg -resolve-src-symlinks -rename /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ScreenProtectorKit.build/Debug-xros/ScreenProtectorKit.build/Objects-normal/arm64/ScreenProtectorKit.swiftmodule /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-xros/ScreenProtectorKit.swiftmodule/arm64-apple-xros.swiftmodule
Copy /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-xros/ScreenProtectorKit.swiftmodule/arm64-apple-xros.swiftdoc /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ScreenProtectorKit.build/Debug-xros/ScreenProtectorKit.build/Objects-normal/arm64/ScreenProtectorKit.swiftdoc (in target 'ScreenProtectorKit' from project 'ScreenProtectorKit')
cd /Users/admin/builder/spi-builder-workspace
builtin-copy -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -exclude .hg -resolve-src-symlinks -rename /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ScreenProtectorKit.build/Debug-xros/ScreenProtectorKit.build/Objects-normal/arm64/ScreenProtectorKit.swiftdoc /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-xros/ScreenProtectorKit.swiftmodule/arm64-apple-xros.swiftdoc
Copy /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-xros/ScreenProtectorKit.swiftmodule/arm64-apple-xros.abi.json /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ScreenProtectorKit.build/Debug-xros/ScreenProtectorKit.build/Objects-normal/arm64/ScreenProtectorKit.abi.json (in target 'ScreenProtectorKit' from project 'ScreenProtectorKit')
cd /Users/admin/builder/spi-builder-workspace
builtin-copy -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -exclude .hg -resolve-src-symlinks -rename /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ScreenProtectorKit.build/Debug-xros/ScreenProtectorKit.build/Objects-normal/arm64/ScreenProtectorKit.abi.json /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-xros/ScreenProtectorKit.swiftmodule/arm64-apple-xros.abi.json
Copy /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-xros/ScreenProtectorKit.swiftmodule/Project/arm64-apple-xros.swiftsourceinfo /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ScreenProtectorKit.build/Debug-xros/ScreenProtectorKit.build/Objects-normal/arm64/ScreenProtectorKit.swiftsourceinfo (in target 'ScreenProtectorKit' from project 'ScreenProtectorKit')
cd /Users/admin/builder/spi-builder-workspace
builtin-copy -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -exclude .hg -resolve-src-symlinks -rename /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ScreenProtectorKit.build/Debug-xros/ScreenProtectorKit.build/Objects-normal/arm64/ScreenProtectorKit.swiftsourceinfo /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-xros/ScreenProtectorKit.swiftmodule/Project/arm64-apple-xros.swiftsourceinfo
** BUILD FAILED **
The following build commands failed:
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKit.swift (in target 'ScreenProtectorKit' from project 'ScreenProtectorKit')
SwiftCompile normal arm64 Compiling\ ScreenProtectorKit.swift /Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKit.swift (in target 'ScreenProtectorKit' from project 'ScreenProtectorKit')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/WindowManager.swift (in target 'ScreenProtectorKit' from project 'ScreenProtectorKit')
Building workspace spi-builder-workspace with scheme ScreenProtectorKit
(4 failures)
Command line invocation:
/Applications/Xcode-16.3.0.app/Contents/Developer/usr/bin/xcodebuild -IDEClonedSourcePackagesDirPathOverride=/Users/admin/builder/spi-builder-workspace/.dependencies -resolvePackageDependencies
Resolve Package Graph
Resolved source packages:
ScreenProtectorKit: /Users/admin/builder/spi-builder-workspace
resolved source packages: ScreenProtectorKit
{
"dependencies" : [
],
"manifest_display_name" : "ScreenProtectorKit",
"name" : "ScreenProtectorKit",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "11.0"
}
],
"products" : [
{
"name" : "ScreenProtectorKit",
"targets" : [
"ScreenProtectorKit"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "ScreenProtectorKitTests",
"module_type" : "SwiftTarget",
"name" : "ScreenProtectorKitTests",
"path" : "Tests/ScreenProtectorKitTests",
"sources" : [
"ScreenProtectorKitTests.swift"
],
"target_dependencies" : [
"ScreenProtectorKit"
],
"type" : "test"
},
{
"c99name" : "ScreenProtectorKit",
"module_type" : "SwiftTarget",
"name" : "ScreenProtectorKit",
"path" : "Sources/ScreenProtectorKit",
"product_memberships" : [
"ScreenProtectorKit"
],
"sources" : [
"ScreenProtectorKit.swift",
"ScreenProtectorKitManager.swift",
"UIColor+Extension.swift",
"WindowManager.swift"
],
"type" : "library"
}
],
"tools_version" : "5.5"
}
{
"workspace" : {
"name" : "spi-builder-workspace",
"schemes" : [
"ScreenProtectorKit"
]
}
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun xcodebuild -IDEClonedSourcePackagesDirPathOverride=$PWD/.dependencies -skipMacroValidation -skipPackagePluginValidation -derivedDataPath $PWD/.derivedData build -scheme ScreenProtectorKit -destination generic/platform=xrOS
Command line invocation:
/Applications/Xcode-16.3.0.app/Contents/Developer/usr/bin/xcodebuild -IDEClonedSourcePackagesDirPathOverride=/Users/admin/builder/spi-builder-workspace/.dependencies -skipMacroValidation -skipPackagePluginValidation -derivedDataPath /Users/admin/builder/spi-builder-workspace/.derivedData build -scheme ScreenProtectorKit -destination generic/platform=xrOS
Resolve Package Graph
Resolved source packages:
ScreenProtectorKit: /Users/admin/builder/spi-builder-workspace
ComputePackagePrebuildTargetDependencyGraph
Prepare packages
CreateBuildRequest
SendProjectDescription
CreateBuildOperation
ComputeTargetDependencyGraph
note: Building targets in dependency order
note: Target dependency graph (2 targets)
Target 'ScreenProtectorKit' in project 'ScreenProtectorKit'
➜ Explicit dependency on target 'ScreenProtectorKit' in project 'ScreenProtectorKit'
Target 'ScreenProtectorKit' in project 'ScreenProtectorKit' (no dependencies)
GatherProvisioningInputs
CreateBuildDescription
ExecuteExternalTool /Applications/Xcode-16.3.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -v -E -dM -isysroot /Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk -x c -c /dev/null
ExecuteExternalTool /Applications/Xcode-16.3.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc --version
ExecuteExternalTool /Applications/Xcode-16.3.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld -version_details
Build description signature: 3d00925ca23bc1e98ce4d219a3fd6226
Build description path: /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/XCBuildData/3d00925ca23bc1e98ce4d219a3fd6226.xcbuilddata
ClangStatCache /Applications/Xcode-16.3.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang-stat-cache /Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/xros2.4-22O233-407b76dbb837030756cbe1ab3f0b01b6.sdkstatcache
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
/Applications/Xcode-16.3.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang-stat-cache /Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk -o /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/xros2.4-22O233-407b76dbb837030756cbe1ab3f0b01b6.sdkstatcache
SwiftDriver ScreenProtectorKit normal arm64 com.apple.xcode.tools.swift.compiler (in target 'ScreenProtectorKit' from project 'ScreenProtectorKit')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftDriver -- /Applications/Xcode-16.3.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc -module-name ScreenProtectorKit -Onone -enforce-exclusivity\=checked @/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ScreenProtectorKit.build/Debug-xros/ScreenProtectorKit.build/Objects-normal/arm64/ScreenProtectorKit.SwiftFileList -DSWIFT_PACKAGE -DDEBUG -DXcode -plugin-path /Applications/Xcode-16.3.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host/plugins/testing -enable-experimental-feature DebugDescriptionMacro -sdk /Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk -target arm64-apple-xros1.0 -g -module-cache-path /Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex -Xfrontend -serialize-debugging-options -profile-coverage-mapping -profile-generate -enable-testing -index-store-path /Users/admin/builder/spi-builder-workspace/.derivedData/Index.noindex/DataStore -swift-version 5 -I /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-xros -I /Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/usr/lib -F /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-xros -F /Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/Library/Frameworks -F /Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk/Developer/Library/Frameworks -c -j10 -enable-batch-mode -incremental -Xcc -ivfsstatcache -Xcc /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/xros2.4-22O233-407b76dbb837030756cbe1ab3f0b01b6.sdkstatcache -output-file-map /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ScreenProtectorKit.build/Debug-xros/ScreenProtectorKit.build/Objects-normal/arm64/ScreenProtectorKit-OutputFileMap.json -use-frontend-parseable-output -save-temps -no-color-diagnostics -serialize-diagnostics -emit-dependencies -emit-module -emit-module-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ScreenProtectorKit.build/Debug-xros/ScreenProtectorKit.build/Objects-normal/arm64/ScreenProtectorKit.swiftmodule -validate-clang-modules-once -clang-build-session-file /Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex/Session.modulevalidation -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ScreenProtectorKit.build/Debug-xros/ScreenProtectorKit.build/swift-overrides.hmap -emit-const-values -Xfrontend -const-gather-protocols-file -Xfrontend /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ScreenProtectorKit.build/Debug-xros/ScreenProtectorKit.build/Objects-normal/arm64/ScreenProtectorKit_const_extract_protocols.json -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-xros/include -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ScreenProtectorKit.build/Debug-xros/ScreenProtectorKit.build/DerivedSources-normal/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ScreenProtectorKit.build/Debug-xros/ScreenProtectorKit.build/DerivedSources/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ScreenProtectorKit.build/Debug-xros/ScreenProtectorKit.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -emit-objc-header -emit-objc-header-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ScreenProtectorKit.build/Debug-xros/ScreenProtectorKit.build/Objects-normal/arm64/ScreenProtectorKit-Swift.h -working-directory /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode -experimental-emit-module-separately -disable-cmo
SwiftCompile normal arm64 Compiling\ ScreenProtectorKit.swift /Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKit.swift (in target 'ScreenProtectorKit' from project 'ScreenProtectorKit')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKit.swift (in target 'ScreenProtectorKit' from project 'ScreenProtectorKit')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
SwiftEmitModule normal arm64 Emitting\ module\ for\ ScreenProtectorKit (in target 'ScreenProtectorKit' from project 'ScreenProtectorKit')
EmitSwiftModule normal arm64 (in target 'ScreenProtectorKit' from project 'ScreenProtectorKit')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
SwiftCompile normal arm64 Compiling\ WindowManager.swift /Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/WindowManager.swift (in target 'ScreenProtectorKit' from project 'ScreenProtectorKit')
Failed frontend command:
/Applications/Xcode-16.3.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-frontend -frontend -c /Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKit.swift /Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKitManager.swift /Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/UIColor+Extension.swift -primary-file /Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/WindowManager.swift -emit-dependencies-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ScreenProtectorKit.build/Debug-xros/ScreenProtectorKit.build/Objects-normal/arm64/WindowManager.d -emit-const-values-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ScreenProtectorKit.build/Debug-xros/ScreenProtectorKit.build/Objects-normal/arm64/WindowManager.swiftconstvalues -emit-reference-dependencies-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ScreenProtectorKit.build/Debug-xros/ScreenProtectorKit.build/Objects-normal/arm64/WindowManager.swiftdeps -serialize-diagnostics-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ScreenProtectorKit.build/Debug-xros/ScreenProtectorKit.build/Objects-normal/arm64/WindowManager.dia -target arm64-apple-xros1.0 -Xllvm -aarch64-use-tbi -enable-objc-interop -stack-check -sdk /Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk -I /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-xros -I /Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/usr/lib -F /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-xros -F /Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/Library/Frameworks -F /Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk/Developer/Library/Frameworks -no-color-diagnostics -enable-testing -g -debug-info-format\=dwarf -dwarf-version\=4 -module-cache-path /Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex -profile-generate -profile-coverage-mapping -swift-version 5 -enforce-exclusivity\=checked -Onone -D SWIFT_PACKAGE -D DEBUG -D Xcode -serialize-debugging-options -const-gather-protocols-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ScreenProtectorKit.build/Debug-xros/ScreenProtectorKit.build/Objects-normal/arm64/ScreenProtectorKit_const_extract_protocols.json -enable-experimental-feature DebugDescriptionMacro -empty-abi-descriptor -plugin-path /Applications/Xcode-16.3.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host/plugins/testing -validate-clang-modules-once -clang-build-session-file /Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex/Session.modulevalidation -Xcc -working-directory -Xcc /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode -resource-dir /Applications/Xcode-16.3.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift -enable-anonymous-context-mangled-names -file-compilation-dir /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode -Xcc -ivfsstatcache -Xcc /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/xros2.4-22O233-407b76dbb837030756cbe1ab3f0b01b6.sdkstatcache -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ScreenProtectorKit.build/Debug-xros/ScreenProtectorKit.build/swift-overrides.hmap -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-xros/include -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ScreenProtectorKit.build/Debug-xros/ScreenProtectorKit.build/DerivedSources-normal/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ScreenProtectorKit.build/Debug-xros/ScreenProtectorKit.build/DerivedSources/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ScreenProtectorKit.build/Debug-xros/ScreenProtectorKit.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -module-name ScreenProtectorKit -frontend-parseable-output -disable-clang-spi -target-sdk-version 2.4 -target-sdk-name xros2.4 -external-plugin-path /Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/usr/lib/swift/host/plugins\#/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/usr/bin/swift-plugin-server -external-plugin-path /Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/usr/local/lib/swift/host/plugins\#/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/usr/bin/swift-plugin-server -in-process-plugin-server-path /Applications/Xcode-16.3.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host/libSwiftInProcPluginServer.dylib -plugin-path /Applications/Xcode-16.3.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host/plugins -plugin-path /Applications/Xcode-16.3.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/local/lib/swift/host/plugins -o /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ScreenProtectorKit.build/Debug-xros/ScreenProtectorKit.build/Objects-normal/arm64/WindowManager.o -index-unit-output-path /ScreenProtectorKit.build/Debug-xros/ScreenProtectorKit.build/Objects-normal/arm64/WindowManager.o -index-store-path /Users/admin/builder/spi-builder-workspace/.derivedData/Index.noindex/DataStore -index-system-modules
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/WindowManager.swift (in target 'ScreenProtectorKit' from project 'ScreenProtectorKit')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
/Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/WindowManager.swift:55:51: error: 'keyWindow' is unavailable in visionOS
return window ?? UIApplication.shared.keyWindow
^~~~~~~~~
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:108:51: note: 'keyWindow' has been explicitly marked unavailable here
@property(nullable, nonatomic,readonly) UIWindow *keyWindow API_DEPRECATED("Should not be used for applications that support multiple scenes as it returns a key window across all connected scenes", ios(2.0, 13.0)) API_UNAVAILABLE(visionos, watchos);
^
SwiftCompile normal arm64 Compiling\ UIColor+Extension.swift /Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/UIColor+Extension.swift (in target 'ScreenProtectorKit' from project 'ScreenProtectorKit')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/UIColor+Extension.swift (in target 'ScreenProtectorKit' from project 'ScreenProtectorKit')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
SwiftCompile normal arm64 Compiling\ ScreenProtectorKitManager.swift /Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKitManager.swift (in target 'ScreenProtectorKit' from project 'ScreenProtectorKit')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/ScreenProtectorKitManager.swift (in target 'ScreenProtectorKit' from project 'ScreenProtectorKit')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
** BUILD FAILED **
The following build commands failed:
SwiftCompile normal arm64 Compiling\ WindowManager.swift /Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/WindowManager.swift (in target 'ScreenProtectorKit' from project 'ScreenProtectorKit')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/ScreenProtectorKit/WindowManager.swift (in target 'ScreenProtectorKit' from project 'ScreenProtectorKit')
Building workspace spi-builder-workspace with scheme ScreenProtectorKit
(3 failures)
BUILD FAILURE 6.1 visionOS