The Swift Package Index logo.Swift Package Index

Build Information

Failed to build InAppSafariKit, reference main (f44ab1), with Swift 6.0 for macOS (SPM) on 22 Apr 2026 13:06:43 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/vistar941/InAppSafariKit.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/vistar941/InAppSafariKit
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at f44ab11 fix
Cloned https://github.com/vistar941/InAppSafariKit.git
Revision (git rev-parse @):
f44ab1110f1d94f238f021f677a0b13f14f40aad
SUCCESS checkout https://github.com/vistar941/InAppSafariKit.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/vistar941/InAppSafariKit.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.2.0.app xcrun swift build --arch arm64
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-5BDAB9E9C0126B9D.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/4] Emitting module InAppSafariKit
/Users/admin/builder/spi-builder-workspace/Sources/InAppSafariKit/OpenURLInAppSafariModifier.swift:53:29: error: cannot find type 'SFSafariViewController' in scope
 51 |         entersReaderIfAvailable: Bool = false,
 52 |         barCollapsingEnabled: Bool = true,
 53 |         dismissButtonStyle: SFSafariViewController.DismissButtonStyle = .done,
    |                             `- error: cannot find type 'SFSafariViewController' in scope
 54 |         preferredBarTintColor: UIColor? = nil,
 55 |         preferredControlTintColor: UIColor? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/InAppSafariKit/OpenURLInAppSafariModifier.swift:54:32: error: cannot find type 'UIColor' in scope
 52 |         barCollapsingEnabled: Bool = true,
 53 |         dismissButtonStyle: SFSafariViewController.DismissButtonStyle = .done,
 54 |         preferredBarTintColor: UIColor? = nil,
    |                                `- error: cannot find type 'UIColor' in scope
 55 |         preferredControlTintColor: UIColor? = nil,
 56 |         modalPresentationStyle: UIModalPresentationStyle = .fullScreen
/Users/admin/builder/spi-builder-workspace/Sources/InAppSafariKit/OpenURLInAppSafariModifier.swift:55:36: error: cannot find type 'UIColor' in scope
 53 |         dismissButtonStyle: SFSafariViewController.DismissButtonStyle = .done,
 54 |         preferredBarTintColor: UIColor? = nil,
 55 |         preferredControlTintColor: UIColor? = nil,
    |                                    `- error: cannot find type 'UIColor' in scope
 56 |         modalPresentationStyle: UIModalPresentationStyle = .fullScreen
 57 |     ) {
/Users/admin/builder/spi-builder-workspace/Sources/InAppSafariKit/OpenURLInAppSafariModifier.swift:56:33: error: cannot find type 'UIModalPresentationStyle' in scope
 54 |         preferredBarTintColor: UIColor? = nil,
 55 |         preferredControlTintColor: UIColor? = nil,
 56 |         modalPresentationStyle: UIModalPresentationStyle = .fullScreen
    |                                 `- error: cannot find type 'UIModalPresentationStyle' in scope
 57 |     ) {
 58 |         self.entersReaderIfAvailable = entersReaderIfAvailable
/Users/admin/builder/spi-builder-workspace/Sources/InAppSafariKit/OpenURLInAppSafariModifier.swift:12:6: error: generic parameter 'T' could not be inferred
 10 |
 11 | struct OpenURLInAppSafariModifier: ViewModifier {
 12 |     @Environment(\.customSafariStyle) private var style
    |      `- error: generic parameter 'T' could not be inferred
 13 |     let entersReaderIfAvailable: Bool?
 14 |     let barCollapsingEnabled: Bool?
SwiftUICore.Environment:6:12: note: in call to initializer
4 |     public init(_ objectType: Value.Type) where Value : AnyObject, Value : Observable
5 |     @available(iOS 17.0, macOS 14.0, tvOS 17.0, watchOS 10.0, *)
6 |     public init<T>(_ objectType: T.Type) where Value == T?, T : AnyObject, T : Observable
  |            `- note: in call to initializer
7 | }
/Users/admin/builder/spi-builder-workspace/Sources/InAppSafariKit/OpenURLInAppSafariModifier.swift:12:18: error: cannot infer key path type from context; consider explicitly specifying a root type
 10 |
 11 | struct OpenURLInAppSafariModifier: ViewModifier {
 12 |     @Environment(\.customSafariStyle) private var style
    |                  `- error: cannot infer key path type from context; consider explicitly specifying a root type
 13 |     let entersReaderIfAvailable: Bool?
 14 |     let barCollapsingEnabled: Bool?
/Users/admin/builder/spi-builder-workspace/Sources/InAppSafariKit/OpenURLInAppSafariModifier.swift:15:29: error: cannot find type 'SFSafariViewController' in scope
 13 |     let entersReaderIfAvailable: Bool?
 14 |     let barCollapsingEnabled: Bool?
 15 |     let dismissButtonStyle: SFSafariViewController.DismissButtonStyle?
    |                             `- error: cannot find type 'SFSafariViewController' in scope
 16 |     let preferredBarTintColor: UIColor?
 17 |     let preferredControlTintColor: UIColor?
/Users/admin/builder/spi-builder-workspace/Sources/InAppSafariKit/OpenURLInAppSafariModifier.swift:16:32: error: cannot find type 'UIColor' in scope
 14 |     let barCollapsingEnabled: Bool?
 15 |     let dismissButtonStyle: SFSafariViewController.DismissButtonStyle?
 16 |     let preferredBarTintColor: UIColor?
    |                                `- error: cannot find type 'UIColor' in scope
 17 |     let preferredControlTintColor: UIColor?
 18 |     let modalPresentationStyle: UIModalPresentationStyle?
/Users/admin/builder/spi-builder-workspace/Sources/InAppSafariKit/OpenURLInAppSafariModifier.swift:17:36: error: cannot find type 'UIColor' in scope
 15 |     let dismissButtonStyle: SFSafariViewController.DismissButtonStyle?
 16 |     let preferredBarTintColor: UIColor?
 17 |     let preferredControlTintColor: UIColor?
    |                                    `- error: cannot find type 'UIColor' in scope
 18 |     let modalPresentationStyle: UIModalPresentationStyle?
 19 |
/Users/admin/builder/spi-builder-workspace/Sources/InAppSafariKit/OpenURLInAppSafariModifier.swift:18:33: error: cannot find type 'UIModalPresentationStyle' in scope
 16 |     let preferredBarTintColor: UIColor?
 17 |     let preferredControlTintColor: UIColor?
 18 |     let modalPresentationStyle: UIModalPresentationStyle?
    |                                 `- error: cannot find type 'UIModalPresentationStyle' in scope
 19 |
 20 |     func body(content: Content) -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/InAppSafariKit/OpenURLInAppSafariModifier.swift:12:6: error: 'Environment' is only available in macOS 10.15 or newer
  9 | import SafariServices
 10 |
 11 | struct OpenURLInAppSafariModifier: ViewModifier {
    |        `- note: add @available attribute to enclosing struct
 12 |     @Environment(\.customSafariStyle) private var style
    |      `- error: 'Environment' is only available in macOS 10.15 or newer
 13 |     let entersReaderIfAvailable: Bool?
 14 |     let barCollapsingEnabled: Bool?
/Users/admin/builder/spi-builder-workspace/Sources/InAppSafariKit/OpenURLInAppSafariModifier.swift:20:41: error: 'View' is only available in macOS 10.15 or newer
  9 | import SafariServices
 10 |
 11 | struct OpenURLInAppSafariModifier: ViewModifier {
    |        `- note: add @available attribute to enclosing struct
 12 |     @Environment(\.customSafariStyle) private var style
 13 |     let entersReaderIfAvailable: Bool?
    :
 18 |     let modalPresentationStyle: UIModalPresentationStyle?
 19 |
 20 |     func body(content: Content) -> some View {
    |          |                              `- error: 'View' is only available in macOS 10.15 or newer
    |          `- note: add @available attribute to enclosing instance method
 21 |         content
 22 |             .environment(\.openURL, OpenURLAction { url in
/Users/admin/builder/spi-builder-workspace/Sources/InAppSafariKit/OpenURLInAppSafariModifier.swift:45:36: error: cannot find type 'SFSafariViewController' in scope
 43 |     public var entersReaderIfAvailable: Bool
 44 |     public var barCollapsingEnabled: Bool
 45 |     public var dismissButtonStyle: SFSafariViewController.DismissButtonStyle
    |                                    `- error: cannot find type 'SFSafariViewController' in scope
 46 |     public var preferredBarTintColor: UIColor?
 47 |     public var preferredControlTintColor: UIColor?
/Users/admin/builder/spi-builder-workspace/Sources/InAppSafariKit/OpenURLInAppSafariModifier.swift:46:39: error: cannot find type 'UIColor' in scope
 44 |     public var barCollapsingEnabled: Bool
 45 |     public var dismissButtonStyle: SFSafariViewController.DismissButtonStyle
 46 |     public var preferredBarTintColor: UIColor?
    |                                       `- error: cannot find type 'UIColor' in scope
 47 |     public var preferredControlTintColor: UIColor?
 48 |     public var modalPresentationStyle: UIModalPresentationStyle
/Users/admin/builder/spi-builder-workspace/Sources/InAppSafariKit/OpenURLInAppSafariModifier.swift:47:43: error: cannot find type 'UIColor' in scope
 45 |     public var dismissButtonStyle: SFSafariViewController.DismissButtonStyle
 46 |     public var preferredBarTintColor: UIColor?
 47 |     public var preferredControlTintColor: UIColor?
    |                                           `- error: cannot find type 'UIColor' in scope
 48 |     public var modalPresentationStyle: UIModalPresentationStyle
 49 |
/Users/admin/builder/spi-builder-workspace/Sources/InAppSafariKit/OpenURLInAppSafariModifier.swift:48:40: error: cannot find type 'UIModalPresentationStyle' in scope
 46 |     public var preferredBarTintColor: UIColor?
 47 |     public var preferredControlTintColor: UIColor?
 48 |     public var modalPresentationStyle: UIModalPresentationStyle
    |                                        `- error: cannot find type 'UIModalPresentationStyle' in scope
 49 |
 50 |     public init(
macro expansion @Entry:1:16: error: type 'EnvironmentValues.__Key_customSafariStyle' does not conform to protocol 'EnvironmentKey'
`- /Users/admin/builder/spi-builder-workspace/Sources/InAppSafariKit/OpenURLInAppSafariModifier.swift:69:62: note: expanded code originates here
 67 |
 68 | extension EnvironmentValues {
 69 |     @Entry public var customSafariStyle = CustomSafariStyle()
    +--- macro expansion @Entry ----------------------------------------
    |1 | private struct __Key_customSafariStyle: SwiftUICore.EnvironmentKey {
    |  |                `- error: type 'EnvironmentValues.__Key_customSafariStyle' does not conform to protocol 'EnvironmentKey'
    |2 |     @__EntryDefaultValue
    |3 |     static var defaultValue = CustomSafariStyle()
    +-------------------------------------------------------------------
 70 | }
 71 |
SwiftUICore.EnvironmentKey:3:20: note: protocol requires nested type 'Value'; add nested type 'Value' for conformance
1 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
2 | public protocol EnvironmentKey {
3 |     associatedtype Value
  |                    `- note: protocol requires nested type 'Value'; add nested type 'Value' for conformance
4 |     static var defaultValue: Self.Value { get }
5 |     @available(iOS 16.0, macOS 13.0, tvOS 16.0, watchOS 9.0, *)
/Users/admin/builder/spi-builder-workspace/Sources/InAppSafariKit/OpenURLInAppSafariModifier.swift:68:11: error: 'EnvironmentValues' is only available in macOS 10.15 or newer
 66 |
 67 |
 68 | extension EnvironmentValues {
    | |         `- error: 'EnvironmentValues' is only available in macOS 10.15 or newer
    | `- note: add @available attribute to enclosing extension
 69 |     @Entry public var customSafariStyle = CustomSafariStyle()
 70 | }
/Users/admin/builder/spi-builder-workspace/Sources/InAppSafariKit/OpenURLInAppSafariModifier.swift:84:29: error: cannot find type 'SFSafariViewController' in scope
 82 |         entersReaderIfAvailable: Bool? = nil,
 83 |         barCollapsingEnabled: Bool? = nil,
 84 |         dismissButtonStyle: SFSafariViewController.DismissButtonStyle? = nil,
    |                             `- error: cannot find type 'SFSafariViewController' in scope
 85 |         preferredBarTintColor: UIColor? = nil,
 86 |         preferredControlTintColor: UIColor? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/InAppSafariKit/OpenURLInAppSafariModifier.swift:85:32: error: cannot find type 'UIColor' in scope
 83 |         barCollapsingEnabled: Bool? = nil,
 84 |         dismissButtonStyle: SFSafariViewController.DismissButtonStyle? = nil,
 85 |         preferredBarTintColor: UIColor? = nil,
    |                                `- error: cannot find type 'UIColor' in scope
 86 |         preferredControlTintColor: UIColor? = nil,
 87 |         modalPresentationStyle: UIModalPresentationStyle? = nil
/Users/admin/builder/spi-builder-workspace/Sources/InAppSafariKit/OpenURLInAppSafariModifier.swift:86:36: error: cannot find type 'UIColor' in scope
 84 |         dismissButtonStyle: SFSafariViewController.DismissButtonStyle? = nil,
 85 |         preferredBarTintColor: UIColor? = nil,
 86 |         preferredControlTintColor: UIColor? = nil,
    |                                    `- error: cannot find type 'UIColor' in scope
 87 |         modalPresentationStyle: UIModalPresentationStyle? = nil
 88 |     ) -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/InAppSafariKit/OpenURLInAppSafariModifier.swift:87:33: error: cannot find type 'UIModalPresentationStyle' in scope
 85 |         preferredBarTintColor: UIColor? = nil,
 86 |         preferredControlTintColor: UIColor? = nil,
 87 |         modalPresentationStyle: UIModalPresentationStyle? = nil
    |                                 `- error: cannot find type 'UIModalPresentationStyle' in scope
 88 |     ) -> some View {
 89 |         return modifier(OpenURLInAppSafariModifier(
/Users/admin/builder/spi-builder-workspace/Sources/InAppSafariKit/OpenURLInAppSafariModifier.swift:88:15: error: 'View' is only available in macOS 10.15 or newer
 70 | }
 71 |
 72 | extension View {
    | `- note: add @available attribute to enclosing extension
 73 |     /// Open the URL in the app using `SFSafariViewController`.
 74 |     /// - Parameters:
    :
 79 |     ///   - preferredControlTintColor: Default value `nil`
 80 |     ///   - modalPresentationStyle: `.none` cannot be used. Default value `.fullScreen`
 81 |     public func OpenURLInAppSafari(
    |                 `- note: add @available attribute to enclosing instance method
 82 |         entersReaderIfAvailable: Bool? = nil,
 83 |         barCollapsingEnabled: Bool? = nil,
    :
 86 |         preferredControlTintColor: UIColor? = nil,
 87 |         modalPresentationStyle: UIModalPresentationStyle? = nil
 88 |     ) -> some View {
    |               `- error: 'View' is only available in macOS 10.15 or newer
 89 |         return modifier(OpenURLInAppSafariModifier(
 90 |             entersReaderIfAvailable: entersReaderIfAvailable,
/Users/admin/builder/spi-builder-workspace/Sources/InAppSafariKit/OpenURLInAppSafariModifier.swift:72:11: error: 'View' is only available in macOS 10.15 or newer
 70 | }
 71 |
 72 | extension View {
    | |         `- error: 'View' is only available in macOS 10.15 or newer
    | `- note: add @available attribute to enclosing extension
 73 |     /// Open the URL in the app using `SFSafariViewController`.
 74 |     /// - Parameters:
/Users/admin/builder/spi-builder-workspace/Sources/InAppSafariKit/OpenURLInAppSafariModifier.swift:100:11: error: cannot find type 'UIApplication' in scope
 98 | }
 99 |
100 | extension UIApplication {
    |           `- error: cannot find type 'UIApplication' in scope
101 |     internal var firstKeyWindow: UIWindow? {
102 |         return UIApplication.shared.connectedScenes
[4/4] Compiling InAppSafariKit OpenURLInAppSafariModifier.swift
/Users/admin/builder/spi-builder-workspace/Sources/InAppSafariKit/OpenURLInAppSafariModifier.swift:53:29: error: cannot find type 'SFSafariViewController' in scope
 51 |         entersReaderIfAvailable: Bool = false,
 52 |         barCollapsingEnabled: Bool = true,
 53 |         dismissButtonStyle: SFSafariViewController.DismissButtonStyle = .done,
    |                             `- error: cannot find type 'SFSafariViewController' in scope
 54 |         preferredBarTintColor: UIColor? = nil,
 55 |         preferredControlTintColor: UIColor? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/InAppSafariKit/OpenURLInAppSafariModifier.swift:54:32: error: cannot find type 'UIColor' in scope
 52 |         barCollapsingEnabled: Bool = true,
 53 |         dismissButtonStyle: SFSafariViewController.DismissButtonStyle = .done,
 54 |         preferredBarTintColor: UIColor? = nil,
    |                                `- error: cannot find type 'UIColor' in scope
 55 |         preferredControlTintColor: UIColor? = nil,
 56 |         modalPresentationStyle: UIModalPresentationStyle = .fullScreen
/Users/admin/builder/spi-builder-workspace/Sources/InAppSafariKit/OpenURLInAppSafariModifier.swift:55:36: error: cannot find type 'UIColor' in scope
 53 |         dismissButtonStyle: SFSafariViewController.DismissButtonStyle = .done,
 54 |         preferredBarTintColor: UIColor? = nil,
 55 |         preferredControlTintColor: UIColor? = nil,
    |                                    `- error: cannot find type 'UIColor' in scope
 56 |         modalPresentationStyle: UIModalPresentationStyle = .fullScreen
 57 |     ) {
/Users/admin/builder/spi-builder-workspace/Sources/InAppSafariKit/OpenURLInAppSafariModifier.swift:56:33: error: cannot find type 'UIModalPresentationStyle' in scope
 54 |         preferredBarTintColor: UIColor? = nil,
 55 |         preferredControlTintColor: UIColor? = nil,
 56 |         modalPresentationStyle: UIModalPresentationStyle = .fullScreen
    |                                 `- error: cannot find type 'UIModalPresentationStyle' in scope
 57 |     ) {
 58 |         self.entersReaderIfAvailable = entersReaderIfAvailable
/Users/admin/builder/spi-builder-workspace/Sources/InAppSafariKit/OpenURLInAppSafariModifier.swift:12:6: error: generic parameter 'T' could not be inferred
 10 |
 11 | struct OpenURLInAppSafariModifier: ViewModifier {
 12 |     @Environment(\.customSafariStyle) private var style
    |      `- error: generic parameter 'T' could not be inferred
 13 |     let entersReaderIfAvailable: Bool?
 14 |     let barCollapsingEnabled: Bool?
SwiftUICore.Environment:6:12: note: in call to initializer
4 |     public init(_ objectType: Value.Type) where Value : AnyObject, Value : Observable
5 |     @available(iOS 17.0, macOS 14.0, tvOS 17.0, watchOS 10.0, *)
6 |     public init<T>(_ objectType: T.Type) where Value == T?, T : AnyObject, T : Observable
  |            `- note: in call to initializer
7 | }
/Users/admin/builder/spi-builder-workspace/Sources/InAppSafariKit/OpenURLInAppSafariModifier.swift:12:18: error: cannot infer key path type from context; consider explicitly specifying a root type
 10 |
 11 | struct OpenURLInAppSafariModifier: ViewModifier {
 12 |     @Environment(\.customSafariStyle) private var style
    |                  `- error: cannot infer key path type from context; consider explicitly specifying a root type
 13 |     let entersReaderIfAvailable: Bool?
 14 |     let barCollapsingEnabled: Bool?
/Users/admin/builder/spi-builder-workspace/Sources/InAppSafariKit/OpenURLInAppSafariModifier.swift:15:29: error: cannot find type 'SFSafariViewController' in scope
 13 |     let entersReaderIfAvailable: Bool?
 14 |     let barCollapsingEnabled: Bool?
 15 |     let dismissButtonStyle: SFSafariViewController.DismissButtonStyle?
    |                             `- error: cannot find type 'SFSafariViewController' in scope
 16 |     let preferredBarTintColor: UIColor?
 17 |     let preferredControlTintColor: UIColor?
/Users/admin/builder/spi-builder-workspace/Sources/InAppSafariKit/OpenURLInAppSafariModifier.swift:16:32: error: cannot find type 'UIColor' in scope
 14 |     let barCollapsingEnabled: Bool?
 15 |     let dismissButtonStyle: SFSafariViewController.DismissButtonStyle?
 16 |     let preferredBarTintColor: UIColor?
    |                                `- error: cannot find type 'UIColor' in scope
 17 |     let preferredControlTintColor: UIColor?
 18 |     let modalPresentationStyle: UIModalPresentationStyle?
/Users/admin/builder/spi-builder-workspace/Sources/InAppSafariKit/OpenURLInAppSafariModifier.swift:17:36: error: cannot find type 'UIColor' in scope
 15 |     let dismissButtonStyle: SFSafariViewController.DismissButtonStyle?
 16 |     let preferredBarTintColor: UIColor?
 17 |     let preferredControlTintColor: UIColor?
    |                                    `- error: cannot find type 'UIColor' in scope
 18 |     let modalPresentationStyle: UIModalPresentationStyle?
 19 |
/Users/admin/builder/spi-builder-workspace/Sources/InAppSafariKit/OpenURLInAppSafariModifier.swift:18:33: error: cannot find type 'UIModalPresentationStyle' in scope
 16 |     let preferredBarTintColor: UIColor?
 17 |     let preferredControlTintColor: UIColor?
 18 |     let modalPresentationStyle: UIModalPresentationStyle?
    |                                 `- error: cannot find type 'UIModalPresentationStyle' in scope
 19 |
 20 |     func body(content: Content) -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/InAppSafariKit/OpenURLInAppSafariModifier.swift:12:6: error: 'Environment' is only available in macOS 10.15 or newer
  9 | import SafariServices
 10 |
 11 | struct OpenURLInAppSafariModifier: ViewModifier {
    |        `- note: add @available attribute to enclosing struct
 12 |     @Environment(\.customSafariStyle) private var style
    |      `- error: 'Environment' is only available in macOS 10.15 or newer
 13 |     let entersReaderIfAvailable: Bool?
 14 |     let barCollapsingEnabled: Bool?
/Users/admin/builder/spi-builder-workspace/Sources/InAppSafariKit/OpenURLInAppSafariModifier.swift:20:41: error: 'View' is only available in macOS 10.15 or newer
  9 | import SafariServices
 10 |
 11 | struct OpenURLInAppSafariModifier: ViewModifier {
    |        `- note: add @available attribute to enclosing struct
 12 |     @Environment(\.customSafariStyle) private var style
 13 |     let entersReaderIfAvailable: Bool?
    :
 18 |     let modalPresentationStyle: UIModalPresentationStyle?
 19 |
 20 |     func body(content: Content) -> some View {
    |          |                              `- error: 'View' is only available in macOS 10.15 or newer
    |          `- note: add @available attribute to enclosing instance method
 21 |         content
 22 |             .environment(\.openURL, OpenURLAction { url in
/Users/admin/builder/spi-builder-workspace/Sources/InAppSafariKit/OpenURLInAppSafariModifier.swift:45:36: error: cannot find type 'SFSafariViewController' in scope
 43 |     public var entersReaderIfAvailable: Bool
 44 |     public var barCollapsingEnabled: Bool
 45 |     public var dismissButtonStyle: SFSafariViewController.DismissButtonStyle
    |                                    `- error: cannot find type 'SFSafariViewController' in scope
 46 |     public var preferredBarTintColor: UIColor?
 47 |     public var preferredControlTintColor: UIColor?
/Users/admin/builder/spi-builder-workspace/Sources/InAppSafariKit/OpenURLInAppSafariModifier.swift:46:39: error: cannot find type 'UIColor' in scope
 44 |     public var barCollapsingEnabled: Bool
 45 |     public var dismissButtonStyle: SFSafariViewController.DismissButtonStyle
 46 |     public var preferredBarTintColor: UIColor?
    |                                       `- error: cannot find type 'UIColor' in scope
 47 |     public var preferredControlTintColor: UIColor?
 48 |     public var modalPresentationStyle: UIModalPresentationStyle
/Users/admin/builder/spi-builder-workspace/Sources/InAppSafariKit/OpenURLInAppSafariModifier.swift:47:43: error: cannot find type 'UIColor' in scope
 45 |     public var dismissButtonStyle: SFSafariViewController.DismissButtonStyle
 46 |     public var preferredBarTintColor: UIColor?
 47 |     public var preferredControlTintColor: UIColor?
    |                                           `- error: cannot find type 'UIColor' in scope
 48 |     public var modalPresentationStyle: UIModalPresentationStyle
 49 |
/Users/admin/builder/spi-builder-workspace/Sources/InAppSafariKit/OpenURLInAppSafariModifier.swift:48:40: error: cannot find type 'UIModalPresentationStyle' in scope
 46 |     public var preferredBarTintColor: UIColor?
 47 |     public var preferredControlTintColor: UIColor?
 48 |     public var modalPresentationStyle: UIModalPresentationStyle
    |                                        `- error: cannot find type 'UIModalPresentationStyle' in scope
 49 |
 50 |     public init(
macro expansion @Entry:1:16: error: type 'EnvironmentValues.__Key_customSafariStyle' does not conform to protocol 'EnvironmentKey'
`- /Users/admin/builder/spi-builder-workspace/Sources/InAppSafariKit/OpenURLInAppSafariModifier.swift:69:62: note: expanded code originates here
 67 |
 68 | extension EnvironmentValues {
 69 |     @Entry public var customSafariStyle = CustomSafariStyle()
    +--- macro expansion @Entry ----------------------------------------
    |1 | private struct __Key_customSafariStyle: SwiftUICore.EnvironmentKey {
    |  |                `- error: type 'EnvironmentValues.__Key_customSafariStyle' does not conform to protocol 'EnvironmentKey'
    |2 |     @__EntryDefaultValue
    |3 |     static var defaultValue = CustomSafariStyle()
    +-------------------------------------------------------------------
 70 | }
 71 |
macro expansion @Entry:1:16: error: type 'EnvironmentValues.__Key_customSafariStyle' does not conform to protocol 'EnvironmentKey'
`- /Users/admin/builder/spi-builder-workspace/Sources/InAppSafariKit/OpenURLInAppSafariModifier.swift:69:62: note: expanded code originates here
 67 |
 68 | extension EnvironmentValues {
 69 |     @Entry public var customSafariStyle = CustomSafariStyle()
    +--- macro expansion @Entry ----------------------------------------
    |1 | private struct __Key_customSafariStyle: SwiftUICore.EnvironmentKey {
    |  |                `- error: type 'EnvironmentValues.__Key_customSafariStyle' does not conform to protocol 'EnvironmentKey'
    |2 |     @__EntryDefaultValue
    |3 |     static var defaultValue = CustomSafariStyle()
    +-------------------------------------------------------------------
 70 | }
 71 |
SwiftUICore.EnvironmentKey:3:20: note: protocol requires nested type 'Value'; add nested type 'Value' for conformance
1 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
2 | public protocol EnvironmentKey {
3 |     associatedtype Value
  |                    `- note: protocol requires nested type 'Value'; add nested type 'Value' for conformance
4 |     static var defaultValue: Self.Value { get }
5 |     @available(iOS 16.0, macOS 13.0, tvOS 16.0, watchOS 9.0, *)
/Users/admin/builder/spi-builder-workspace/Sources/InAppSafariKit/OpenURLInAppSafariModifier.swift:68:11: error: 'EnvironmentValues' is only available in macOS 10.15 or newer
 66 |
 67 |
 68 | extension EnvironmentValues {
    | |         `- error: 'EnvironmentValues' is only available in macOS 10.15 or newer
    | `- note: add @available attribute to enclosing extension
 69 |     @Entry public var customSafariStyle = CustomSafariStyle()
 70 | }
/Users/admin/builder/spi-builder-workspace/Sources/InAppSafariKit/OpenURLInAppSafariModifier.swift:84:29: error: cannot find type 'SFSafariViewController' in scope
 82 |         entersReaderIfAvailable: Bool? = nil,
 83 |         barCollapsingEnabled: Bool? = nil,
 84 |         dismissButtonStyle: SFSafariViewController.DismissButtonStyle? = nil,
    |                             `- error: cannot find type 'SFSafariViewController' in scope
 85 |         preferredBarTintColor: UIColor? = nil,
 86 |         preferredControlTintColor: UIColor? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/InAppSafariKit/OpenURLInAppSafariModifier.swift:85:32: error: cannot find type 'UIColor' in scope
 83 |         barCollapsingEnabled: Bool? = nil,
 84 |         dismissButtonStyle: SFSafariViewController.DismissButtonStyle? = nil,
 85 |         preferredBarTintColor: UIColor? = nil,
    |                                `- error: cannot find type 'UIColor' in scope
 86 |         preferredControlTintColor: UIColor? = nil,
 87 |         modalPresentationStyle: UIModalPresentationStyle? = nil
/Users/admin/builder/spi-builder-workspace/Sources/InAppSafariKit/OpenURLInAppSafariModifier.swift:86:36: error: cannot find type 'UIColor' in scope
 84 |         dismissButtonStyle: SFSafariViewController.DismissButtonStyle? = nil,
 85 |         preferredBarTintColor: UIColor? = nil,
 86 |         preferredControlTintColor: UIColor? = nil,
    |                                    `- error: cannot find type 'UIColor' in scope
 87 |         modalPresentationStyle: UIModalPresentationStyle? = nil
 88 |     ) -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/InAppSafariKit/OpenURLInAppSafariModifier.swift:87:33: error: cannot find type 'UIModalPresentationStyle' in scope
 85 |         preferredBarTintColor: UIColor? = nil,
 86 |         preferredControlTintColor: UIColor? = nil,
 87 |         modalPresentationStyle: UIModalPresentationStyle? = nil
    |                                 `- error: cannot find type 'UIModalPresentationStyle' in scope
 88 |     ) -> some View {
 89 |         return modifier(OpenURLInAppSafariModifier(
/Users/admin/builder/spi-builder-workspace/Sources/InAppSafariKit/OpenURLInAppSafariModifier.swift:88:15: error: 'View' is only available in macOS 10.15 or newer
 70 | }
 71 |
 72 | extension View {
    | `- note: add @available attribute to enclosing extension
 73 |     /// Open the URL in the app using `SFSafariViewController`.
 74 |     /// - Parameters:
    :
 79 |     ///   - preferredControlTintColor: Default value `nil`
 80 |     ///   - modalPresentationStyle: `.none` cannot be used. Default value `.fullScreen`
 81 |     public func OpenURLInAppSafari(
    |                 `- note: add @available attribute to enclosing instance method
 82 |         entersReaderIfAvailable: Bool? = nil,
 83 |         barCollapsingEnabled: Bool? = nil,
    :
 86 |         preferredControlTintColor: UIColor? = nil,
 87 |         modalPresentationStyle: UIModalPresentationStyle? = nil
 88 |     ) -> some View {
    |               `- error: 'View' is only available in macOS 10.15 or newer
 89 |         return modifier(OpenURLInAppSafariModifier(
 90 |             entersReaderIfAvailable: entersReaderIfAvailable,
/Users/admin/builder/spi-builder-workspace/Sources/InAppSafariKit/OpenURLInAppSafariModifier.swift:72:11: error: 'View' is only available in macOS 10.15 or newer
 70 | }
 71 |
 72 | extension View {
    | |         `- error: 'View' is only available in macOS 10.15 or newer
    | `- note: add @available attribute to enclosing extension
 73 |     /// Open the URL in the app using `SFSafariViewController`.
 74 |     /// - Parameters:
/Users/admin/builder/spi-builder-workspace/Sources/InAppSafariKit/OpenURLInAppSafariModifier.swift:100:11: error: cannot find type 'UIApplication' in scope
 98 | }
 99 |
100 | extension UIApplication {
    |           `- error: cannot find type 'UIApplication' in scope
101 |     internal var firstKeyWindow: UIWindow? {
102 |         return UIApplication.shared.connectedScenes
/Users/admin/builder/spi-builder-workspace/Sources/InAppSafariKit/OpenURLInAppSafariModifier.swift:27:30: error: cannot find 'SFSafariViewController' in scope
 25 |                 }
 26 |
 27 |                 let config = SFSafariViewController.Configuration()
    |                              `- error: cannot find 'SFSafariViewController' in scope
 28 |                 config.entersReaderIfAvailable = entersReaderIfAvailable ?? style.entersReaderIfAvailable
 29 |                 config.barCollapsingEnabled = barCollapsingEnabled ?? style.barCollapsingEnabled
/Users/admin/builder/spi-builder-workspace/Sources/InAppSafariKit/OpenURLInAppSafariModifier.swift:30:26: error: cannot find 'SFSafariViewController' in scope
 28 |                 config.entersReaderIfAvailable = entersReaderIfAvailable ?? style.entersReaderIfAvailable
 29 |                 config.barCollapsingEnabled = barCollapsingEnabled ?? style.barCollapsingEnabled
 30 |                 let vc = SFSafariViewController(url: url, configuration: config)
    |                          `- error: cannot find 'SFSafariViewController' in scope
 31 |                 vc.dismissButtonStyle = dismissButtonStyle ?? style.dismissButtonStyle
 32 |                 vc.preferredBarTintColor = preferredBarTintColor ?? style.preferredBarTintColor
/Users/admin/builder/spi-builder-workspace/Sources/InAppSafariKit/OpenURLInAppSafariModifier.swift:35:17: error: cannot find 'UIApplication' in scope
 33 |                 vc.preferredControlTintColor = preferredControlTintColor ?? style.preferredControlTintColor
 34 |                 vc.modalPresentationStyle = modalPresentationStyle ?? style.modalPresentationStyle
 35 |                 UIApplication.shared.firstKeyWindow?.rootViewController?.present(vc, animated: true)
    |                 `- error: cannot find 'UIApplication' in scope
 36 |                 return .handled
 37 |             })
/Users/admin/builder/spi-builder-workspace/Sources/InAppSafariKit/OpenURLInAppSafariModifier.swift:63:76: error: cannot infer contextual base in reference to member 'fullScreen'
 61 |         self.preferredBarTintColor = preferredBarTintColor
 62 |         self.preferredControlTintColor = preferredControlTintColor
 63 |         self.modalPresentationStyle = (modalPresentationStyle == .none) ? .fullScreen : modalPresentationStyle
    |                                                                            `- error: cannot infer contextual base in reference to member 'fullScreen'
 64 |     }
 65 | }
/Users/admin/builder/spi-builder-workspace/Sources/InAppSafariKit/OpenURLInAppSafariModifier.swift:101:34: error: cannot find type 'UIWindow' in scope
 99 |
100 | extension UIApplication {
101 |     internal var firstKeyWindow: UIWindow? {
    |                                  `- error: cannot find type 'UIWindow' in scope
102 |         return UIApplication.shared.connectedScenes
103 |             .compactMap { $0 as? UIWindowScene }
BUILD FAILURE 6.0 macosSpm