Build Information
Failed to build copper-ai-ios-sdk, reference main (98af67
), with Swift 6.0 for macOS (SPM) on 16 Sep 2024 23:06:57 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.0.0-Release.Candidate.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
========================================
RunAll
========================================
Builder version: 4.53.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.0
Building package at path: $PWD
https://github.com/yavar-ai/copper-ai-ios-sdk.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.0.0-Release.Candidate.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-117DEE11B69C53C9.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
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
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{
[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:39:19: warning: call to main actor-isolated initializer 'init(frame:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
37 |
38 | init(url:String,isLoading: Binding<Bool>, progress: Binding<Double>) {
39 | webView = WKWebView(frame: .zero)
| `- warning: call to main actor-isolated initializer 'init(frame:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
40 | botUrl = url
41 | self._isLoading = isLoading
WebKit.WKWebView:210:35: note: calls to initializer 'init(frame:)' from outside of its actor context are implicitly asynchronous
208 | @available(swift, obsoleted: 3, renamed: "isWritingToolsActive")
209 | open var writingToolsActive: Bool { get }
210 | @MainActor public convenience init(frame frameRect: NSRect)
| `- note: calls to initializer 'init(frame:)' from outside of its actor context are implicitly asynchronous
211 | public convenience init()
212 | }
/Users/admin/builder/spi-builder-workspace/Sources/copper-ai-ios-sdk/src/WebViewContainer.swift:46:23: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
43 | }
44 |
45 | public func makeUIView(context: Context) -> WKWebView {
| `- note: add '@MainActor' to make instance method 'makeUIView(context:)' part of global actor 'MainActor'
46 | let webView = WKWebView()
| `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
47 | webView.navigationDelegate = context.coordinator
48 | let request = URLRequest(url:URL(string: botUrl)!)
WebKit.WKWebView:211:24: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
209 | open var writingToolsActive: Bool { get }
210 | @MainActor public convenience init(frame frameRect: NSRect)
211 | public convenience init()
| `- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
212 | }
/Users/admin/builder/spi-builder-workspace/Sources/copper-ai-ios-sdk/src/WebViewContainer.swift:49:17: warning: call to main actor-isolated instance method 'load' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
43 | }
44 |
45 | public func makeUIView(context: Context) -> WKWebView {
| `- note: add '@MainActor' to make instance method 'makeUIView(context:)' part of global actor 'MainActor'
46 | let webView = WKWebView()
47 | webView.navigationDelegate = context.coordinator
48 | let request = URLRequest(url:URL(string: botUrl)!)
49 | webView.load(request)
| `- warning: call to main actor-isolated instance method 'load' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
50 | return webView
51 | }
WebKit.WKWebView:11:15: note: calls to instance method 'load' from outside of its actor context are implicitly asynchronous
9 | public init(frame: CGRect, configuration: WKWebViewConfiguration)
10 | public init?(coder: NSCoder)
11 | open func load(_ request: URLRequest) -> WKNavigation?
| `- note: calls to instance method 'load' from outside of its actor context are implicitly asynchronous
12 | @available(swift, obsoleted: 3, renamed: "load(_:)")
13 | open func loadRequest(_ request: URLRequest) -> WKNavigation?
/Users/admin/builder/spi-builder-workspace/Sources/copper-ai-ios-sdk/src/WebViewContainer.swift:56:9: warning: call to main actor-isolated initializer 'init(_:isLoading:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
53 | func updateUIView(_ uiView: WKWebView, context: Context) {}
54 |
55 | public func makeCoordinator() -> Coordinator {
| `- note: add '@MainActor' to make instance method 'makeCoordinator()' part of global actor 'MainActor'
56 | Coordinator(self, isLoading: $isLoading)
| `- warning: call to main actor-isolated initializer 'init(_:isLoading:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
57 | }
58 |
:
61 | @Binding var isLoading: Bool
62 |
63 | public init(_ parent: WebView, isLoading: Binding<Bool>) {
| `- note: calls to initializer 'init(_:isLoading:)' from outside of its actor context are implicitly asynchronous
64 | self._isLoading = isLoading
65 | self.parent = parent
/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.0 macosSpm