Build Information
Failed to build copper-ai-ios-sdk, reference main (98af67), with Swift 6.2 for macOS (SPM) on 21 Jun 2025 23:19:30 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64Build Log
========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/yavar-ai/copper-ai-ios-sdk.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/yavar-ai/copper-ai-ios-sdk
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 98af67f Merge pull request #1 from yavar-ai/develop
Cloned https://github.com/yavar-ai/copper-ai-ios-sdk.git
Revision (git rev-parse @):
98af67f6020b3ce1cac5fb1e72be7b538dcc4349
SUCCESS checkout https://github.com/yavar-ai/copper-ai-ios-sdk.git at main
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.2
Building package at path: $PWD
https://github.com/yavar-ai/copper-ai-ios-sdk.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-1EA4D86E10B52AF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/5] Emitting module copper_ai_ios_sdk
/Users/admin/builder/spi-builder-workspace/Sources/copper-ai-ios-sdk/copper_ai_ios_sdk.swift:13:27: error: 'View' is only available in macOS 10.15 or newer
2 |
3 | @available(iOS 13.0, *)
4 | public struct CopperAiBot<Label:View> : View{
| `- note: add @available attribute to enclosing generic struct
5 | let url: String
6 | let content : ()->Label
:
11 | }
12 |
13 | public var body: some View{
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
14 | if #available(iOS 16.0, *) {
15 | NavigationStack{
/Users/admin/builder/spi-builder-workspace/Sources/copper-ai-ios-sdk/copper_ai_ios_sdk.swift:4:33: error: 'View' is only available in macOS 10.15 or newer
2 |
3 | @available(iOS 13.0, *)
4 | public struct CopperAiBot<Label:View> : View{
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
5 | let url: String
6 | let content : ()->Label
/Users/admin/builder/spi-builder-workspace/Sources/copper-ai-ios-sdk/src/WebViewContainer.swift:8:6: error: 'State' is only available in macOS 10.15 or newer
3 |
4 | @available(iOS 13.0, *)
5 | struct WebViewContainer: View {
| `- note: add @available attribute to enclosing struct
6 | let url: String
7 |
8 | @State private var isLoading: Bool = false
| `- error: 'State' is only available in macOS 10.15 or newer
9 | @State private var progress: Double = 0.0
10 |
/Users/admin/builder/spi-builder-workspace/Sources/copper-ai-ios-sdk/src/WebViewContainer.swift:9:6: error: 'State' is only available in macOS 10.15 or newer
3 |
4 | @available(iOS 13.0, *)
5 | struct WebViewContainer: View {
| `- note: add @available attribute to enclosing struct
6 | let url: String
7 |
8 | @State private var isLoading: Bool = false
9 | @State private var progress: Double = 0.0
| `- error: 'State' is only available in macOS 10.15 or newer
10 |
11 | var body: some View {
/Users/admin/builder/spi-builder-workspace/Sources/copper-ai-ios-sdk/src/WebViewContainer.swift:11:20: error: 'View' is only available in macOS 10.15 or newer
3 |
4 | @available(iOS 13.0, *)
5 | struct WebViewContainer: View {
| `- note: add @available attribute to enclosing struct
6 | let url: String
7 |
:
9 | @State private var progress: Double = 0.0
10 |
11 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
12 | VStack(spacing: 0) {
13 | if isLoading {
/Users/admin/builder/spi-builder-workspace/Sources/copper-ai-ios-sdk/src/WebViewContainer.swift:35:6: error: 'Binding' is only available in macOS 10.15 or newer
29 |
30 | @available(iOS 13.0, *)
31 | struct WebView: UIViewRepresentable {
| `- note: add @available attribute to enclosing struct
32 |
33 | let webView: WKWebView
34 | let botUrl : String
35 | @Binding public var isLoading: Bool
| `- error: 'Binding' is only available in macOS 10.15 or newer
36 | @Binding public var progress: Double
37 |
/Users/admin/builder/spi-builder-workspace/Sources/copper-ai-ios-sdk/src/WebViewContainer.swift:36:6: error: 'Binding' is only available in macOS 10.15 or newer
29 |
30 | @available(iOS 13.0, *)
31 | struct WebView: UIViewRepresentable {
| `- note: add @available attribute to enclosing struct
32 |
33 | let webView: WKWebView
34 | let botUrl : String
35 | @Binding public var isLoading: Bool
36 | @Binding public var progress: Double
| `- error: 'Binding' is only available in macOS 10.15 or newer
37 |
38 | init(url:String,isLoading: Binding<Bool>, progress: Binding<Double>) {
/Users/admin/builder/spi-builder-workspace/Sources/copper-ai-ios-sdk/src/WebViewContainer.swift:38:32: error: 'Binding' is only available in macOS 10.15 or newer
29 |
30 | @available(iOS 13.0, *)
31 | struct WebView: UIViewRepresentable {
| `- note: add @available attribute to enclosing struct
32 |
33 | let webView: WKWebView
:
36 | @Binding public var progress: Double
37 |
38 | init(url:String,isLoading: Binding<Bool>, progress: Binding<Double>) {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
39 | webView = WKWebView(frame: .zero)
40 | botUrl = url
/Users/admin/builder/spi-builder-workspace/Sources/copper-ai-ios-sdk/src/WebViewContainer.swift:38:57: error: 'Binding' is only available in macOS 10.15 or newer
29 |
30 | @available(iOS 13.0, *)
31 | struct WebView: UIViewRepresentable {
| `- note: add @available attribute to enclosing struct
32 |
33 | let webView: WKWebView
:
36 | @Binding public var progress: Double
37 |
38 | init(url:String,isLoading: Binding<Bool>, progress: Binding<Double>) {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
39 | webView = WKWebView(frame: .zero)
40 | botUrl = url
/Users/admin/builder/spi-builder-workspace/Sources/copper-ai-ios-sdk/src/WebViewContainer.swift:45:37: error: cannot find type 'Context' in scope
43 | }
44 |
45 | public func makeUIView(context: Context) -> WKWebView {
| `- error: cannot find type 'Context' in scope
46 | let webView = WKWebView()
47 | webView.navigationDelegate = context.coordinator
/Users/admin/builder/spi-builder-workspace/Sources/copper-ai-ios-sdk/src/WebViewContainer.swift:53:53: error: cannot find type 'Context' in scope
51 | }
52 |
53 | func updateUIView(_ uiView: WKWebView, context: Context) {}
| `- error: cannot find type 'Context' in scope
54 |
55 | public func makeCoordinator() -> Coordinator {
/Users/admin/builder/spi-builder-workspace/Sources/copper-ai-ios-sdk/src/WebViewContainer.swift:61:10: error: 'Binding' is only available in macOS 10.15 or newer
57 | }
58 |
59 | public class Coordinator: NSObject, WKNavigationDelegate {
| |- note: add @available attribute to enclosing class
| `- note: add @available attribute to enclosing class
60 | var parent: WebView
61 | @Binding var isLoading: Bool
| `- error: 'Binding' is only available in macOS 10.15 or newer
62 |
63 | public init(_ parent: WebView, isLoading: Binding<Bool>) {
/Users/admin/builder/spi-builder-workspace/Sources/copper-ai-ios-sdk/src/WebViewContainer.swift:63:51: error: 'Binding' is only available in macOS 10.15 or newer
57 | }
58 |
59 | public class Coordinator: NSObject, WKNavigationDelegate {
| `- note: add @available attribute to enclosing class
60 | var parent: WebView
61 | @Binding var isLoading: Bool
62 |
63 | public init(_ parent: WebView, isLoading: Binding<Bool>) {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
64 | self._isLoading = isLoading
65 | self.parent = parent
/Users/admin/builder/spi-builder-workspace/Sources/copper-ai-ios-sdk/src/WebViewContainer.swift:31:17: error: cannot find type 'UIViewRepresentable' in scope
29 |
30 | @available(iOS 13.0, *)
31 | struct WebView: UIViewRepresentable {
| `- error: cannot find type 'UIViewRepresentable' in scope
32 |
33 | let webView: WKWebView
[4/5] Compiling copper_ai_ios_sdk copper_ai_ios_sdk.swift
/Users/admin/builder/spi-builder-workspace/Sources/copper-ai-ios-sdk/copper_ai_ios_sdk.swift:13:27: error: 'View' is only available in macOS 10.15 or newer
2 |
3 | @available(iOS 13.0, *)
4 | public struct CopperAiBot<Label:View> : View{
| `- note: add @available attribute to enclosing generic struct
5 | let url: String
6 | let content : ()->Label
:
11 | }
12 |
13 | public var body: some View{
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
14 | if #available(iOS 16.0, *) {
15 | NavigationStack{
/Users/admin/builder/spi-builder-workspace/Sources/copper-ai-ios-sdk/copper_ai_ios_sdk.swift:4:33: error: 'View' is only available in macOS 10.15 or newer
2 |
3 | @available(iOS 13.0, *)
4 | public struct CopperAiBot<Label:View> : View{
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
5 | let url: String
6 | let content : ()->Label
/Users/admin/builder/spi-builder-workspace/Sources/copper-ai-ios-sdk/copper_ai_ios_sdk.swift:14:12: warning: result builder 'ViewBuilder' does not implement 'buildLimitedAvailability'; this code may crash on earlier versions of the OS [#ResultBuilderMethods]
12 |
13 | public var body: some View{
14 | if #available(iOS 16.0, *) {
| `- warning: result builder 'ViewBuilder' does not implement 'buildLimitedAvailability'; this code may crash on earlier versions of the OS [#ResultBuilderMethods]
15 | NavigationStack{
16 | NavigationLink(destination: WebViewContainer(url: url),label: content)
/Users/admin/builder/spi-builder-workspace/Sources/copper-ai-ios-sdk/copper_ai_ios_sdk.swift:15:13: error: 'NavigationStack' is only available in macOS 13.0 or newer
2 |
3 | @available(iOS 13.0, *)
4 | public struct CopperAiBot<Label:View> : View{
| `- note: add @available attribute to enclosing generic struct
5 | let url: String
6 | let content : ()->Label
:
11 | }
12 |
13 | public var body: some View{
| `- note: add @available attribute to enclosing property
14 | if #available(iOS 16.0, *) {
15 | NavigationStack{
| |- error: 'NavigationStack' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
16 | NavigationLink(destination: WebViewContainer(url: url),label: content)
17 | }
/Users/admin/builder/spi-builder-workspace/Sources/copper-ai-ios-sdk/copper_ai_ios_sdk.swift:16:17: error: 'NavigationLink' is only available in macOS 10.15 or newer
2 |
3 | @available(iOS 13.0, *)
4 | public struct CopperAiBot<Label:View> : View{
| `- note: add @available attribute to enclosing generic struct
5 | let url: String
6 | let content : ()->Label
:
11 | }
12 |
13 | public var body: some View{
| `- note: add @available attribute to enclosing property
14 | if #available(iOS 16.0, *) {
15 | NavigationStack{
16 | NavigationLink(destination: WebViewContainer(url: url),label: content)
| |- error: 'NavigationLink' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
17 | }
18 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/copper-ai-ios-sdk/copper_ai_ios_sdk.swift:16:17: error: 'init(destination:label:)' is only available in macOS 10.15 or newer
2 |
3 | @available(iOS 13.0, *)
4 | public struct CopperAiBot<Label:View> : View{
| `- note: add @available attribute to enclosing generic struct
5 | let url: String
6 | let content : ()->Label
:
11 | }
12 |
13 | public var body: some View{
| `- note: add @available attribute to enclosing property
14 | if #available(iOS 16.0, *) {
15 | NavigationStack{
16 | NavigationLink(destination: WebViewContainer(url: url),label: content)
| |- error: 'init(destination:label:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
17 | }
18 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/copper-ai-ios-sdk/copper_ai_ios_sdk.swift:14:36: error: 'buildLimitedAvailability' is only available in macOS 11.0 or newer
2 |
3 | @available(iOS 13.0, *)
4 | public struct CopperAiBot<Label:View> : View{
| `- note: add @available attribute to enclosing generic struct
5 | let url: String
6 | let content : ()->Label
:
11 | }
12 |
13 | public var body: some View{
| `- note: add @available attribute to enclosing property
14 | if #available(iOS 16.0, *) {
| |- error: 'buildLimitedAvailability' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
15 | NavigationStack{
16 | NavigationLink(destination: WebViewContainer(url: url),label: content)
/Users/admin/builder/spi-builder-workspace/Sources/copper-ai-ios-sdk/copper_ai_ios_sdk.swift:14:36: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
2 |
3 | @available(iOS 13.0, *)
4 | public struct CopperAiBot<Label:View> : View{
| `- note: add @available attribute to enclosing generic struct
5 | let url: String
6 | let content : ()->Label
:
11 | }
12 |
13 | public var body: some View{
| `- note: add @available attribute to enclosing property
14 | if #available(iOS 16.0, *) {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
15 | NavigationStack{
16 | NavigationLink(destination: WebViewContainer(url: url),label: content)
/Users/admin/builder/spi-builder-workspace/Sources/copper-ai-ios-sdk/copper_ai_ios_sdk.swift:18:16: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
2 |
3 | @available(iOS 13.0, *)
4 | public struct CopperAiBot<Label:View> : View{
| `- note: add @available attribute to enclosing generic struct
5 | let url: String
6 | let content : ()->Label
:
11 | }
12 |
13 | public var body: some View{
| `- note: add @available attribute to enclosing property
14 | if #available(iOS 16.0, *) {
15 | NavigationStack{
16 | NavigationLink(destination: WebViewContainer(url: url),label: content)
17 | }
18 | } else {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
19 | NavigationView{
20 | NavigationLink(destination: WebViewContainer(url: url),label: content)
/Users/admin/builder/spi-builder-workspace/Sources/copper-ai-ios-sdk/copper_ai_ios_sdk.swift:13:31: warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
2 |
3 | @available(iOS 13.0, *)
4 | public struct CopperAiBot<Label:View> : View{
| `- note: add @available attribute to enclosing generic struct
5 | let url: String
6 | let content : ()->Label
:
11 | }
12 |
13 | public var body: some View{
| | |- warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| | `- note: add 'if #available' version check
| `- note: add @available attribute to enclosing property
14 | if #available(iOS 16.0, *) {
15 | NavigationStack{
[#ResultBuilderMethods]: <https://docs.swift.org/compiler/documentation/diagnostics/result-builder-methods>
[5/5] Compiling copper_ai_ios_sdk WebViewContainer.swift
/Users/admin/builder/spi-builder-workspace/Sources/copper-ai-ios-sdk/src/WebViewContainer.swift:8:6: error: 'State' is only available in macOS 10.15 or newer
3 |
4 | @available(iOS 13.0, *)
5 | struct WebViewContainer: View {
| `- note: add @available attribute to enclosing struct
6 | let url: String
7 |
8 | @State private var isLoading: Bool = false
| `- error: 'State' is only available in macOS 10.15 or newer
9 | @State private var progress: Double = 0.0
10 |
/Users/admin/builder/spi-builder-workspace/Sources/copper-ai-ios-sdk/src/WebViewContainer.swift:9:6: error: 'State' is only available in macOS 10.15 or newer
3 |
4 | @available(iOS 13.0, *)
5 | struct WebViewContainer: View {
| `- note: add @available attribute to enclosing struct
6 | let url: String
7 |
8 | @State private var isLoading: Bool = false
9 | @State private var progress: Double = 0.0
| `- error: 'State' is only available in macOS 10.15 or newer
10 |
11 | var body: some View {
/Users/admin/builder/spi-builder-workspace/Sources/copper-ai-ios-sdk/src/WebViewContainer.swift:11:20: error: 'View' is only available in macOS 10.15 or newer
3 |
4 | @available(iOS 13.0, *)
5 | struct WebViewContainer: View {
| `- note: add @available attribute to enclosing struct
6 | let url: String
7 |
:
9 | @State private var progress: Double = 0.0
10 |
11 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
12 | VStack(spacing: 0) {
13 | if isLoading {
/Users/admin/builder/spi-builder-workspace/Sources/copper-ai-ios-sdk/src/WebViewContainer.swift:35:6: error: 'Binding' is only available in macOS 10.15 or newer
29 |
30 | @available(iOS 13.0, *)
31 | struct WebView: UIViewRepresentable {
| `- note: add @available attribute to enclosing struct
32 |
33 | let webView: WKWebView
34 | let botUrl : String
35 | @Binding public var isLoading: Bool
| `- error: 'Binding' is only available in macOS 10.15 or newer
36 | @Binding public var progress: Double
37 |
/Users/admin/builder/spi-builder-workspace/Sources/copper-ai-ios-sdk/src/WebViewContainer.swift:36:6: error: 'Binding' is only available in macOS 10.15 or newer
29 |
30 | @available(iOS 13.0, *)
31 | struct WebView: UIViewRepresentable {
| `- note: add @available attribute to enclosing struct
32 |
33 | let webView: WKWebView
34 | let botUrl : String
35 | @Binding public var isLoading: Bool
36 | @Binding public var progress: Double
| `- error: 'Binding' is only available in macOS 10.15 or newer
37 |
38 | init(url:String,isLoading: Binding<Bool>, progress: Binding<Double>) {
/Users/admin/builder/spi-builder-workspace/Sources/copper-ai-ios-sdk/src/WebViewContainer.swift:38:32: error: 'Binding' is only available in macOS 10.15 or newer
29 |
30 | @available(iOS 13.0, *)
31 | struct WebView: UIViewRepresentable {
| `- note: add @available attribute to enclosing struct
32 |
33 | let webView: WKWebView
:
36 | @Binding public var progress: Double
37 |
38 | init(url:String,isLoading: Binding<Bool>, progress: Binding<Double>) {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
39 | webView = WKWebView(frame: .zero)
40 | botUrl = url
/Users/admin/builder/spi-builder-workspace/Sources/copper-ai-ios-sdk/src/WebViewContainer.swift:38:57: error: 'Binding' is only available in macOS 10.15 or newer
29 |
30 | @available(iOS 13.0, *)
31 | struct WebView: UIViewRepresentable {
| `- note: add @available attribute to enclosing struct
32 |
33 | let webView: WKWebView
:
36 | @Binding public var progress: Double
37 |
38 | init(url:String,isLoading: Binding<Bool>, progress: Binding<Double>) {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
39 | webView = WKWebView(frame: .zero)
40 | botUrl = url
/Users/admin/builder/spi-builder-workspace/Sources/copper-ai-ios-sdk/src/WebViewContainer.swift:45:37: error: cannot find type 'Context' in scope
43 | }
44 |
45 | public func makeUIView(context: Context) -> WKWebView {
| `- error: cannot find type 'Context' in scope
46 | let webView = WKWebView()
47 | webView.navigationDelegate = context.coordinator
/Users/admin/builder/spi-builder-workspace/Sources/copper-ai-ios-sdk/src/WebViewContainer.swift:53:53: error: cannot find type 'Context' in scope
51 | }
52 |
53 | func updateUIView(_ uiView: WKWebView, context: Context) {}
| `- error: cannot find type 'Context' in scope
54 |
55 | public func makeCoordinator() -> Coordinator {
/Users/admin/builder/spi-builder-workspace/Sources/copper-ai-ios-sdk/src/WebViewContainer.swift:61:10: error: 'Binding' is only available in macOS 10.15 or newer
57 | }
58 |
59 | public class Coordinator: NSObject, WKNavigationDelegate {
| |- note: add @available attribute to enclosing class
| `- note: add @available attribute to enclosing class
60 | var parent: WebView
61 | @Binding var isLoading: Bool
| `- error: 'Binding' is only available in macOS 10.15 or newer
62 |
63 | public init(_ parent: WebView, isLoading: Binding<Bool>) {
/Users/admin/builder/spi-builder-workspace/Sources/copper-ai-ios-sdk/src/WebViewContainer.swift:63:51: error: 'Binding' is only available in macOS 10.15 or newer
57 | }
58 |
59 | public class Coordinator: NSObject, WKNavigationDelegate {
| `- note: add @available attribute to enclosing class
60 | var parent: WebView
61 | @Binding var isLoading: Bool
62 |
63 | public init(_ parent: WebView, isLoading: Binding<Bool>) {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
64 | self._isLoading = isLoading
65 | self.parent = parent
/Users/admin/builder/spi-builder-workspace/Sources/copper-ai-ios-sdk/src/WebViewContainer.swift:31:17: error: cannot find type 'UIViewRepresentable' in scope
29 |
30 | @available(iOS 13.0, *)
31 | struct WebView: UIViewRepresentable {
| `- error: cannot find type 'UIViewRepresentable' in scope
32 |
33 | let webView: WKWebView
/Users/admin/builder/spi-builder-workspace/Sources/copper-ai-ios-sdk/src/WebViewContainer.swift:21:34: error: value of type 'WebView' has no member 'ignoresSafeArea'
19 | if #available(iOS 14.0, *) {
20 | WebView(url: url, isLoading: $isLoading, progress: $progress)
21 | .ignoresSafeArea()
| `- error: value of type 'WebView' has no member 'ignoresSafeArea'
22 | } else {
23 | WebView(url: url, isLoading: $isLoading, progress: $progress)
/Users/admin/builder/spi-builder-workspace/Sources/copper-ai-ios-sdk/src/WebViewContainer.swift:69:13: error: setter for 'isLoading' is only available in macOS 10.15 or newer
57 | }
58 |
59 | public class Coordinator: NSObject, WKNavigationDelegate {
| `- note: add @available attribute to enclosing class
60 | var parent: WebView
61 | @Binding var isLoading: Bool
:
66 | }
67 |
68 | public func webView(_ webView: WKWebView, didStartProvisionalNavigation navigation: WKNavigation!) {
| `- note: add @available attribute to enclosing instance method
69 | isLoading = true
| |- error: setter for 'isLoading' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
70 | }
71 |
/Users/admin/builder/spi-builder-workspace/Sources/copper-ai-ios-sdk/src/WebViewContainer.swift:74:17: error: setter for 'isLoading' is only available in macOS 10.15 or newer
57 | }
58 |
59 | public class Coordinator: NSObject, WKNavigationDelegate {
| `- note: add @available attribute to enclosing class
60 | var parent: WebView
61 | @Binding var isLoading: Bool
:
70 | }
71 |
72 | public func webView(_ webView: WKWebView, didFinish navigation: WKNavigation!) {
| `- note: add @available attribute to enclosing instance method
73 | DispatchQueue.main.asyncAfter(deadline: .now() + 0.5) {
74 | self.isLoading = false
| |- error: setter for 'isLoading' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
75 | }
76 | parent.progress = 1.0
/Users/admin/builder/spi-builder-workspace/Sources/copper-ai-ios-sdk/src/WebViewContainer.swift:76:13: error: setter for 'progress' is only available in macOS 10.15 or newer
57 | }
58 |
59 | public class Coordinator: NSObject, WKNavigationDelegate {
| `- note: add @available attribute to enclosing class
60 | var parent: WebView
61 | @Binding var isLoading: Bool
:
70 | }
71 |
72 | public func webView(_ webView: WKWebView, didFinish navigation: WKNavigation!) {
| `- note: add @available attribute to enclosing instance method
73 | DispatchQueue.main.asyncAfter(deadline: .now() + 0.5) {
74 | self.isLoading = false
75 | }
76 | parent.progress = 1.0
| |- error: setter for 'progress' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
77 | }
78 |
/Users/admin/builder/spi-builder-workspace/Sources/copper-ai-ios-sdk/src/WebViewContainer.swift:80:13: error: setter for 'progress' is only available in macOS 10.15 or newer
57 | }
58 |
59 | public class Coordinator: NSObject, WKNavigationDelegate {
| `- note: add @available attribute to enclosing class
60 | var parent: WebView
61 | @Binding var isLoading: Bool
:
77 | }
78 |
79 | public func webView(_ webView: WKWebView, didCommit navigation: WKNavigation!) {
| `- note: add @available attribute to enclosing instance method
80 | parent.progress = Double(webView.estimatedProgress)
| |- error: setter for 'progress' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
81 | }
82 | }
BUILD FAILURE 6.2 macosSpm