Build Information
Failed to build SolicitReviewLibrary, reference 1.6.0 (2af43a
), with Swift 6.1 for macOS (SPM) on 30 Aug 2025 23:42:48 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
Build Log
========================================
RunAll
========================================
Builder version: 4.67.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/higracehuang/SolicitReviewLibrary.git
Reference: 1.6.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/higracehuang/SolicitReviewLibrary
* tag 1.6.0 -> FETCH_HEAD
HEAD is now at 2af43a1 add requestReviewIfNecessary
Cloned https://github.com/higracehuang/SolicitReviewLibrary.git
Revision (git rev-parse @):
2af43a136c2238bfe1861c443dfbdcae2a77cef6
SUCCESS checkout https://github.com/higracehuang/SolicitReviewLibrary.git at 1.6.0
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"dependencies": [
{
"identity": "solicitreviewlibrary",
"name": "SolicitReviewLibrary",
"url": "https://github.com/higracehuang/SolicitReviewLibrary.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/SolicitReviewLibrary",
"dependencies": [
]
}
]
}
Fetching https://github.com/higracehuang/SolicitReviewLibrary.git
[1/236] Fetching solicitreviewlibrary
Fetched https://github.com/higracehuang/SolicitReviewLibrary.git from cache (0.64s)
Creating working copy for https://github.com/higracehuang/SolicitReviewLibrary.git
Working copy of https://github.com/higracehuang/SolicitReviewLibrary.git resolved at 1.6.0 (2af43a1)
warning: '.resolve-product-dependencies': dependency 'solicitreviewlibrary' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.1
Building package at path: $PWD
https://github.com/higracehuang/SolicitReviewLibrary.git
https://github.com/higracehuang/SolicitReviewLibrary.git
{
"default_localization" : "en",
"dependencies" : [
],
"manifest_display_name" : "SolicitReviewLibrary",
"name" : "SolicitReviewLibrary",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "14.0"
},
{
"name" : "macos",
"version" : "11.0"
}
],
"products" : [
{
"name" : "SolicitReviewLibrary",
"targets" : [
"SolicitReviewLibrary"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "SolicitReviewLibraryTests",
"module_type" : "SwiftTarget",
"name" : "SolicitReviewLibraryTests",
"path" : "Tests/SolicitReviewLibraryTests",
"sources" : [
"SolicitReviewLibraryTests.swift"
],
"target_dependencies" : [
"SolicitReviewLibrary"
],
"type" : "test"
},
{
"c99name" : "SolicitReviewLibrary",
"module_type" : "SwiftTarget",
"name" : "SolicitReviewLibrary",
"path" : "Sources/SolicitReviewLibrary",
"product_memberships" : [
"SolicitReviewLibrary"
],
"resources" : [
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/SolicitReviewLibrary/Resources/de.lproj/Localizable.strings",
"rule" : {
"process" : {
"localization" : "de"
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/SolicitReviewLibrary/Resources/ja.lproj/Localizable.strings",
"rule" : {
"process" : {
"localization" : "ja"
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/SolicitReviewLibrary/Resources/zh-Hans.lproj/Localizable.strings",
"rule" : {
"process" : {
"localization" : "zh-hans"
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/SolicitReviewLibrary/Resources/zh-Hant.lproj/Localizable.strings",
"rule" : {
"process" : {
"localization" : "zh-hant"
}
}
}
],
"sources" : [
"Bundle+Extensions.swift",
"Bundle+Module.swift",
"Logger.swift",
"SolicitReviewLibrary.swift"
],
"type" : "library"
}
],
"tools_version" : "5.9"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/7] Write sources
[0/7] Copying Info.plist
[0/7] Copying Localizable.strings
[6/7] Write swift-version-2F0A5646E1D333AE.txt
[8/13] Compiling SolicitReviewLibrary resource_bundle_accessor.swift
[9/13] Compiling SolicitReviewLibrary Bundle+Module.swift
/Users/admin/builder/spi-builder-workspace/Sources/SolicitReviewLibrary/Bundle+Module.swift:6:16: warning: static property 'moduleBundle' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
4 |
5 | extension Foundation.Bundle {
6 | static var moduleBundle: Bundle = {
| |- warning: static property 'moduleBundle' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'moduleBundle' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'moduleBundle' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
7 | let bundleName = "SolicitReviewLibrary_SolicitReviewLibrary"
8 |
[10/13] Compiling SolicitReviewLibrary Logger.swift
[11/13] Compiling SolicitReviewLibrary Bundle+Extensions.swift
[12/13] Emitting module SolicitReviewLibrary
/Users/admin/builder/spi-builder-workspace/Sources/SolicitReviewLibrary/Bundle+Module.swift:6:16: warning: static property 'moduleBundle' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
4 |
5 | extension Foundation.Bundle {
6 | static var moduleBundle: Bundle = {
| |- warning: static property 'moduleBundle' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'moduleBundle' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'moduleBundle' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
7 | let bundleName = "SolicitReviewLibrary_SolicitReviewLibrary"
8 |
[13/13] Compiling SolicitReviewLibrary SolicitReviewLibrary.swift
/Users/admin/builder/spi-builder-workspace/Sources/SolicitReviewLibrary/SolicitReviewLibrary.swift:103:21: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
100 | #elseif os(macOS)
101 |
102 | private func askForReview(withHandler handler: @escaping () -> Void) {
| `- note: add '@MainActor' to make instance method 'askForReview(withHandler:)' part of global actor 'MainActor'
103 | let alert = NSAlert()
| `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
104 | alert.messageText = PromptStrings.title
105 | alert.informativeText = PromptStrings.message
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/usr/include/objc/NSObject.h:66:1: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
64 |
65 | + (void)initialize;
66 | - (instancetype)init
| `- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
67 | #if NS_ENFORCE_NSOBJECT_DESIGNATED_INITIALIZER
68 | NS_DESIGNATED_INITIALIZER
/Users/admin/builder/spi-builder-workspace/Sources/SolicitReviewLibrary/SolicitReviewLibrary.swift:104:15: warning: main actor-isolated property 'messageText' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
100 | #elseif os(macOS)
101 |
102 | private func askForReview(withHandler handler: @escaping () -> Void) {
| `- note: add '@MainActor' to make instance method 'askForReview(withHandler:)' part of global actor 'MainActor'
103 | let alert = NSAlert()
104 | alert.messageText = PromptStrings.title
| `- warning: main actor-isolated property 'messageText' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
105 | alert.informativeText = PromptStrings.message
106 | alert.addButton(withTitle: PromptStrings.yesButton)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSAlert.h:71:28: note: mutation of this property is only permitted within the actor
69 | /// The text that is displayed prominently in the alert.
70 | /// - Note: Use this string to get the user’s attention and communicate the reason for displaying the alert.
71 | @property (copy) NSString *messageText;
| `- note: mutation of this property is only permitted within the actor
72 |
73 | /// The descriptive text that provides more details about the reason for the alert.
/Users/admin/builder/spi-builder-workspace/Sources/SolicitReviewLibrary/SolicitReviewLibrary.swift:105:15: warning: main actor-isolated property 'informativeText' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
100 | #elseif os(macOS)
101 |
102 | private func askForReview(withHandler handler: @escaping () -> Void) {
| `- note: add '@MainActor' to make instance method 'askForReview(withHandler:)' part of global actor 'MainActor'
103 | let alert = NSAlert()
104 | alert.messageText = PromptStrings.title
105 | alert.informativeText = PromptStrings.message
| `- warning: main actor-isolated property 'informativeText' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
106 | alert.addButton(withTitle: PromptStrings.yesButton)
107 | alert.addButton(withTitle: PromptStrings.noButton)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSAlert.h:75:28: note: mutation of this property is only permitted within the actor
73 | /// The descriptive text that provides more details about the reason for the alert.
74 | /// - Note: The informative text string is displayed below the message text and is less prominent. Use this string to provide additional context about the reason for the alert or about the actions that the user might take.
75 | @property (copy) NSString *informativeText;
| `- note: mutation of this property is only permitted within the actor
76 |
77 | // MARK: - Accessing a Custom Alert Icon
/Users/admin/builder/spi-builder-workspace/Sources/SolicitReviewLibrary/SolicitReviewLibrary.swift:106:15: warning: call to main actor-isolated instance method 'addButton(withTitle:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
100 | #elseif os(macOS)
101 |
102 | private func askForReview(withHandler handler: @escaping () -> Void) {
| `- note: add '@MainActor' to make instance method 'askForReview(withHandler:)' part of global actor 'MainActor'
103 | let alert = NSAlert()
104 | alert.messageText = PromptStrings.title
105 | alert.informativeText = PromptStrings.message
106 | alert.addButton(withTitle: PromptStrings.yesButton)
| `- warning: call to main actor-isolated instance method 'addButton(withTitle:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
107 | alert.addButton(withTitle: PromptStrings.noButton)
108 | alert.buttons.first?.keyEquivalent = "\r"
AppKit.NSAlert.addButton:2:22: note: calls to instance method 'addButton(withTitle:)' from outside of its actor context are implicitly asynchronous
1 | class NSAlert {
2 | @MainActor open func addButton(withTitle title: String) -> NSButton}
| `- note: calls to instance method 'addButton(withTitle:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/SolicitReviewLibrary/SolicitReviewLibrary.swift:107:15: warning: call to main actor-isolated instance method 'addButton(withTitle:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
100 | #elseif os(macOS)
101 |
102 | private func askForReview(withHandler handler: @escaping () -> Void) {
| `- note: add '@MainActor' to make instance method 'askForReview(withHandler:)' part of global actor 'MainActor'
103 | let alert = NSAlert()
104 | alert.messageText = PromptStrings.title
105 | alert.informativeText = PromptStrings.message
106 | alert.addButton(withTitle: PromptStrings.yesButton)
107 | alert.addButton(withTitle: PromptStrings.noButton)
| `- warning: call to main actor-isolated instance method 'addButton(withTitle:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
108 | alert.buttons.first?.keyEquivalent = "\r"
109 |
AppKit.NSAlert.addButton:2:22: note: calls to instance method 'addButton(withTitle:)' from outside of its actor context are implicitly asynchronous
1 | class NSAlert {
2 | @MainActor open func addButton(withTitle title: String) -> NSButton}
| `- note: calls to instance method 'addButton(withTitle:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/SolicitReviewLibrary/SolicitReviewLibrary.swift:108:30: warning: main actor-isolated property 'keyEquivalent' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
100 | #elseif os(macOS)
101 |
102 | private func askForReview(withHandler handler: @escaping () -> Void) {
| `- note: add '@MainActor' to make instance method 'askForReview(withHandler:)' part of global actor 'MainActor'
103 | let alert = NSAlert()
104 | alert.messageText = PromptStrings.title
:
106 | alert.addButton(withTitle: PromptStrings.yesButton)
107 | alert.addButton(withTitle: PromptStrings.noButton)
108 | alert.buttons.first?.keyEquivalent = "\r"
| `- warning: main actor-isolated property 'keyEquivalent' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
109 |
110 | if alert.runModal() == .alertFirstButtonReturn {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSButton.h:162:28: note: mutation of this property is only permitted within the actor
160 |
161 | /*! This property contains the button's key equivalent, or the empty string if no equivalent has been defined. Buttons don’t have a default key equivalent. Setting the key equivalent to the Return character causes it to act as the default button for its window. */
162 | @property (copy) NSString *keyEquivalent;
| `- note: mutation of this property is only permitted within the actor
163 |
164 | /*! A bitmask specifying the modifier keys that are applied to the button's key equivalent. Mask bits are defined by the NSEventModifierFlags option set. The only mask bits relevant in button key-equivalent modifier masks are NSEventModifierFlagControl, NSEventModifierFlagOption, and NSEventModifierFlagCommand. */
/Users/admin/builder/spi-builder-workspace/Sources/SolicitReviewLibrary/SolicitReviewLibrary.swift:108:15: warning: main actor-isolated property 'buttons' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
100 | #elseif os(macOS)
101 |
102 | private func askForReview(withHandler handler: @escaping () -> Void) {
| `- note: add '@MainActor' to make instance method 'askForReview(withHandler:)' part of global actor 'MainActor'
103 | let alert = NSAlert()
104 | alert.messageText = PromptStrings.title
:
106 | alert.addButton(withTitle: PromptStrings.yesButton)
107 | alert.addButton(withTitle: PromptStrings.noButton)
108 | alert.buttons.first?.keyEquivalent = "\r"
| `- warning: main actor-isolated property 'buttons' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
109 |
110 | if alert.runModal() == .alertFirstButtonReturn {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSAlert.h:100:49: note: mutation of this property is only permitted within the actor
98 | /// The array of response buttons for the alert.
99 | /// The buttons are in the order in which they were added, and do not necessarily reflect the order they are arranged visually. The array does not include the default “OK” button that is shown in an alert presented without any buttons added with `-addButtonWithTitle:`.
100 | @property (readonly, copy) NSArray<NSButton *> *buttons;
| `- note: mutation of this property is only permitted within the actor
101 |
102 | // MARK: - Configuring Alerts
/Users/admin/builder/spi-builder-workspace/Sources/SolicitReviewLibrary/SolicitReviewLibrary.swift:110:18: warning: call to main actor-isolated instance method 'runModal()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
100 | #elseif os(macOS)
101 |
102 | private func askForReview(withHandler handler: @escaping () -> Void) {
| `- note: add '@MainActor' to make instance method 'askForReview(withHandler:)' part of global actor 'MainActor'
103 | let alert = NSAlert()
104 | alert.messageText = PromptStrings.title
:
108 | alert.buttons.first?.keyEquivalent = "\r"
109 |
110 | if alert.runModal() == .alertFirstButtonReturn {
| `- warning: call to main actor-isolated instance method 'runModal()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
111 | handler()
112 | }
AppKit.NSAlert.runModal:2:22: note: calls to instance method 'runModal()' from outside of its actor context are implicitly asynchronous
1 | class NSAlert {
2 | @MainActor open func runModal() -> NSApplication.ModalResponse}
| `- note: calls to instance method 'runModal()' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/SolicitReviewLibrary/SolicitReviewLibrary.swift:156:24: error: cannot find 'UIActivityViewController' in scope
154 | let appURL = getShareURL(appStoreId: appStoreId)!
155 | let shareText = "Check out this amazing app: \(Bundle.main.appName)! Download it here: \(appURL)"
156 | let activityVC = UIActivityViewController(activityItems: [shareText], applicationActivities: nil)
| `- error: cannot find 'UIActivityViewController' in scope
157 |
158 | if let windowScene = UIApplication.shared.connectedScenes.first as? UIWindowScene,
/Users/admin/builder/spi-builder-workspace/Sources/SolicitReviewLibrary/SolicitReviewLibrary.swift:156:100: error: 'nil' requires a contextual type
154 | let appURL = getShareURL(appStoreId: appStoreId)!
155 | let shareText = "Check out this amazing app: \(Bundle.main.appName)! Download it here: \(appURL)"
156 | let activityVC = UIActivityViewController(activityItems: [shareText], applicationActivities: nil)
| `- error: 'nil' requires a contextual type
157 |
158 | if let windowScene = UIApplication.shared.connectedScenes.first as? UIWindowScene,
/Users/admin/builder/spi-builder-workspace/Sources/SolicitReviewLibrary/SolicitReviewLibrary.swift:158:28: error: cannot find 'UIApplication' in scope
156 | let activityVC = UIActivityViewController(activityItems: [shareText], applicationActivities: nil)
157 |
158 | if let windowScene = UIApplication.shared.connectedScenes.first as? UIWindowScene,
| `- error: cannot find 'UIApplication' in scope
159 | let rootVC = windowScene.windows.first?.rootViewController {
160 | rootVC.present(activityVC, animated: true, completion: nil)
/Users/admin/builder/spi-builder-workspace/Sources/SolicitReviewLibrary/SolicitReviewLibrary.swift:158:75: error: cannot find type 'UIWindowScene' in scope
156 | let activityVC = UIActivityViewController(activityItems: [shareText], applicationActivities: nil)
157 |
158 | if let windowScene = UIApplication.shared.connectedScenes.first as? UIWindowScene,
| `- error: cannot find type 'UIWindowScene' in scope
159 | let rootVC = windowScene.windows.first?.rootViewController {
160 | rootVC.present(activityVC, animated: true, completion: nil)
/Users/admin/builder/spi-builder-workspace/Sources/SolicitReviewLibrary/SolicitReviewLibrary.swift:160:64: error: 'nil' requires a contextual type
158 | if let windowScene = UIApplication.shared.connectedScenes.first as? UIWindowScene,
159 | let rootVC = windowScene.windows.first?.rootViewController {
160 | rootVC.present(activityVC, animated: true, completion: nil)
| `- error: 'nil' requires a contextual type
161 | }
162 | }
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-2F0A5646E1D333AE.txt
[2/7] Compiling SolicitReviewLibrary resource_bundle_accessor.swift
[3/7] Compiling SolicitReviewLibrary Bundle+Module.swift
[4/7] Compiling SolicitReviewLibrary Logger.swift
[5/7] Compiling SolicitReviewLibrary Bundle+Extensions.swift
[6/7] Emitting module SolicitReviewLibrary
[7/7] Compiling SolicitReviewLibrary SolicitReviewLibrary.swift
/Users/admin/builder/spi-builder-workspace/Sources/SolicitReviewLibrary/SolicitReviewLibrary.swift:156:24: error: cannot find 'UIActivityViewController' in scope
154 | let appURL = getShareURL(appStoreId: appStoreId)!
155 | let shareText = "Check out this amazing app: \(Bundle.main.appName)! Download it here: \(appURL)"
156 | let activityVC = UIActivityViewController(activityItems: [shareText], applicationActivities: nil)
| `- error: cannot find 'UIActivityViewController' in scope
157 |
158 | if let windowScene = UIApplication.shared.connectedScenes.first as? UIWindowScene,
/Users/admin/builder/spi-builder-workspace/Sources/SolicitReviewLibrary/SolicitReviewLibrary.swift:156:100: error: 'nil' requires a contextual type
154 | let appURL = getShareURL(appStoreId: appStoreId)!
155 | let shareText = "Check out this amazing app: \(Bundle.main.appName)! Download it here: \(appURL)"
156 | let activityVC = UIActivityViewController(activityItems: [shareText], applicationActivities: nil)
| `- error: 'nil' requires a contextual type
157 |
158 | if let windowScene = UIApplication.shared.connectedScenes.first as? UIWindowScene,
/Users/admin/builder/spi-builder-workspace/Sources/SolicitReviewLibrary/SolicitReviewLibrary.swift:158:28: error: cannot find 'UIApplication' in scope
156 | let activityVC = UIActivityViewController(activityItems: [shareText], applicationActivities: nil)
157 |
158 | if let windowScene = UIApplication.shared.connectedScenes.first as? UIWindowScene,
| `- error: cannot find 'UIApplication' in scope
159 | let rootVC = windowScene.windows.first?.rootViewController {
160 | rootVC.present(activityVC, animated: true, completion: nil)
/Users/admin/builder/spi-builder-workspace/Sources/SolicitReviewLibrary/SolicitReviewLibrary.swift:158:75: error: cannot find type 'UIWindowScene' in scope
156 | let activityVC = UIActivityViewController(activityItems: [shareText], applicationActivities: nil)
157 |
158 | if let windowScene = UIApplication.shared.connectedScenes.first as? UIWindowScene,
| `- error: cannot find type 'UIWindowScene' in scope
159 | let rootVC = windowScene.windows.first?.rootViewController {
160 | rootVC.present(activityVC, animated: true, completion: nil)
/Users/admin/builder/spi-builder-workspace/Sources/SolicitReviewLibrary/SolicitReviewLibrary.swift:160:64: error: 'nil' requires a contextual type
158 | if let windowScene = UIApplication.shared.connectedScenes.first as? UIWindowScene,
159 | let rootVC = windowScene.windows.first?.rootViewController {
160 | rootVC.present(activityVC, animated: true, completion: nil)
| `- error: 'nil' requires a contextual type
161 | }
162 | }
BUILD FAILURE 6.1 macosSpm