Build Information
Failed to build InAppSafariKit, reference 1.0.0 (f44ab1), with Swift 6.3 for macOS (SPM) on 22 Apr 2026 12:37:42 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-26.4.0.app xcrun swift build --arch arm64Build Log
========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/vistar941/InAppSafariKit.git
Reference: 1.0.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/vistar941/InAppSafariKit
* tag 1.0.0 -> FETCH_HEAD
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 1.0.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",
"traits": [
"default"
],
"dependencies": [
{
"identity": "inappsafarikit",
"name": "InAppSafariKit",
"url": "https://github.com/vistar941/InAppSafariKit.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/InAppSafariKit",
"traits": [
"default"
],
"dependencies": [
]
}
]
}
Fetching https://github.com/vistar941/InAppSafariKit.git
[1/108] Fetching inappsafarikit
Fetched https://github.com/vistar941/InAppSafariKit.git from cache (1.14s)
Creating working copy for https://github.com/vistar941/InAppSafariKit.git
Working copy of https://github.com/vistar941/InAppSafariKit.git resolved at 1.0.0 (f44ab11)
warning: '.resolve-product-dependencies': dependency 'inappsafarikit' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.3
Building package at path: $PWD
https://github.com/vistar941/InAppSafariKit.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.4.0.app xcrun swift build --arch arm64
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--6988338F2F200930.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: no exact matches in call to initializer
10 |
11 | struct OpenURLInAppSafariModifier: ViewModifier {
12 | @Environment(\.customSafariStyle) private var style
| |- error: no exact matches in call to initializer
| `- note: found candidate with type '(T.Type) -> Environment<T?>'
13 | let entersReaderIfAvailable: Bool?
14 | let barCollapsingEnabled: Bool?
SwiftUI.Environment.init:3:10: note: candidate expects value of type 'Value.Type' for parameter #1 (got 'KeyPath<Root, Value>')
1 | generic struct Environment {
2 | @available(iOS 17.0, macOS 14.0, tvOS 17.0, watchOS 10.0, *)
3 | public init(_ objectType: Value.Type) where Value : AnyObject, Value : Observable}
| `- note: candidate expects value of type 'Value.Type' for parameter #1 (got 'KeyPath<Root, Value>')
4 |
/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()
| |- note: in expansion of macro 'Entry' on property 'customSafariStyle' here
| `- note: in expansion of macro 'Entry' on property 'customSafariStyle' here
+--- macro expansion @Entry ----------------------------------------
|1 | private struct __Key_customSafariStyle: SwiftUICore.EnvironmentKey {
| | |- error: type 'EnvironmentValues.__Key_customSafariStyle' does not conform to protocol 'EnvironmentKey'
| | `- note: add stubs for conformance
|2 | @SwiftUICore.__EntryDefaultValue
|3 | static var defaultValue = CustomSafariStyle()
+-------------------------------------------------------------------
70 | }
71 |
SwiftUI.EnvironmentKey.Value:2:16: note: protocol requires nested type 'Value'
1 | protocol EnvironmentKey {
2 | associatedtype Value}
| `- note: protocol requires nested type 'Value'
3 |
/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: no exact matches in call to initializer
10 |
11 | struct OpenURLInAppSafariModifier: ViewModifier {
12 | @Environment(\.customSafariStyle) private var style
| |- error: no exact matches in call to initializer
| `- note: found candidate with type '(T.Type) -> Environment<T?>'
13 | let entersReaderIfAvailable: Bool?
14 | let barCollapsingEnabled: Bool?
SwiftUI.Environment.init:3:10: note: candidate expects value of type 'Value.Type' for parameter #1 (got 'KeyPath<Root, Value>')
1 | generic struct Environment {
2 | @available(iOS 17.0, macOS 14.0, tvOS 17.0, watchOS 10.0, *)
3 | public init(_ objectType: Value.Type) where Value : AnyObject, Value : Observable}
| `- note: candidate expects value of type 'Value.Type' for parameter #1 (got 'KeyPath<Root, Value>')
4 |
/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()
| `- note: in expansion of macro 'Entry' on property 'customSafariStyle' here
+--- macro expansion @Entry ----------------------------------------
|1 | private struct __Key_customSafariStyle: SwiftUICore.EnvironmentKey {
| | `- error: type 'EnvironmentValues.__Key_customSafariStyle' does not conform to protocol 'EnvironmentKey'
|2 | @SwiftUICore.__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()
| |- note: in expansion of macro 'Entry' on property 'customSafariStyle' here
| `- note: in expansion of macro 'Entry' on property 'customSafariStyle' here
+--- macro expansion @Entry ----------------------------------------
|1 | private struct __Key_customSafariStyle: SwiftUICore.EnvironmentKey {
| | |- error: type 'EnvironmentValues.__Key_customSafariStyle' does not conform to protocol 'EnvironmentKey'
| | `- note: add stubs for conformance
|2 | @SwiftUICore.__EntryDefaultValue
|3 | static var defaultValue = CustomSafariStyle()
+-------------------------------------------------------------------
70 | }
71 |
SwiftUI.EnvironmentKey.Value:2:16: note: protocol requires nested type 'Value'
1 | protocol EnvironmentKey {
2 | associatedtype Value}
| `- note: protocol requires nested type 'Value'
3 |
/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:22:26: error: cannot convert value of type 'KeyPath<EnvironmentValues, OpenURLAction>' to expected argument type 'WritableKeyPath<EnvironmentValues, OpenURLAction>'
20 | func body(content: Content) -> some View {
21 | content
22 | .environment(\.openURL, OpenURLAction { url in
| `- error: cannot convert value of type 'KeyPath<EnvironmentValues, OpenURLAction>' to expected argument type 'WritableKeyPath<EnvironmentValues, OpenURLAction>'
23 | guard let scheme = url.scheme, scheme == "http" || scheme == "https" else {
24 | return .systemAction(url)
/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.3 macosSpm