The Swift Package Index logo.Swift Package Index

Build Information

Failed to build WWSVGImageView, reference main (54162e), with Swift 6.1 for macOS (SPM) on 6 Feb 2026 18:27:55 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.68.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/William-Weng/WWSVGImageView.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/William-Weng/WWSVGImageView
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 54162ea - update ReadMe
Cloned https://github.com/William-Weng/WWSVGImageView.git
Revision (git rev-parse @):
54162ea956fe1da0071281217cc16866d22581ab
SUCCESS checkout https://github.com/William-Weng/WWSVGImageView.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/William-Weng/WWSVGImageView.git
https://github.com/William-Weng/WWSVGImageView.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "WWSVGImageView",
  "name" : "WWSVGImageView",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "16.0"
    }
  ],
  "products" : [
    {
      "name" : "WWSVGImageView",
      "targets" : [
        "WWSVGImageView"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "swift_languages_versions" : [
    "5"
  ],
  "targets" : [
    {
      "c99name" : "WWSVGImageView",
      "module_type" : "SwiftTarget",
      "name" : "WWSVGImageView",
      "path" : "Sources/WWSVGImageView",
      "product_memberships" : [
        "WWSVGImageView"
      ],
      "resources" : [
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Sources/WWSVGImageView/Privacy",
          "rule" : {
            "copy" : {
            }
          }
        }
      ],
      "sources" : [
        "SwiftUI/WWSVGImage.swift",
        "Utility/Constant.swift",
        "Utility/Extension.swift",
        "Utility/Model.swift",
        "WWSVGImageView.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.7"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/3] Write sources
[1/3] Copying Privacy
[2/3] Write swift-version-2F0A5646E1D333AE.txt
[4/10] Compiling WWSVGImageView resource_bundle_accessor.swift
[5/10] Compiling WWSVGImageView WWSVGImageView.swift
/Users/admin/builder/spi-builder-workspace/Sources/WWSVGImageView/WWSVGImageView.swift:19:17: error: cannot assign to property: 'isOpaque' is a get-only property
 17 |         let webView: WWSVGImageView = WWSVGImageView._build(html: "")
 18 |
 19 |         webView.isOpaque = false
    |                 `- error: cannot assign to property: 'isOpaque' is a get-only property
 20 |         webView.backgroundColor = .clear
 21 |         webView.scrollView.backgroundColor = .clear
/Users/admin/builder/spi-builder-workspace/Sources/WWSVGImageView/WWSVGImageView.swift:20:17: error: value of type 'WWSVGImageView' has no member 'backgroundColor'
 18 |
 19 |         webView.isOpaque = false
 20 |         webView.backgroundColor = .clear
    |                 `- error: value of type 'WWSVGImageView' has no member 'backgroundColor'
 21 |         webView.scrollView.backgroundColor = .clear
 22 |
/Users/admin/builder/spi-builder-workspace/Sources/WWSVGImageView/WWSVGImageView.swift:20:36: error: cannot infer contextual base in reference to member 'clear'
 18 |
 19 |         webView.isOpaque = false
 20 |         webView.backgroundColor = .clear
    |                                    `- error: cannot infer contextual base in reference to member 'clear'
 21 |         webView.scrollView.backgroundColor = .clear
 22 |
/Users/admin/builder/spi-builder-workspace/Sources/WWSVGImageView/WWSVGImageView.swift:21:17: error: value of type 'WWSVGImageView' has no member 'scrollView'
 19 |         webView.isOpaque = false
 20 |         webView.backgroundColor = .clear
 21 |         webView.scrollView.backgroundColor = .clear
    |                 `- error: value of type 'WWSVGImageView' has no member 'scrollView'
 22 |
 23 |         return webView
/Users/admin/builder/spi-builder-workspace/Sources/WWSVGImageView/WWSVGImageView.swift:21:47: error: cannot infer contextual base in reference to member 'clear'
 19 |         webView.isOpaque = false
 20 |         webView.backgroundColor = .clear
 21 |         webView.scrollView.backgroundColor = .clear
    |                                               `- error: cannot infer contextual base in reference to member 'clear'
 22 |
 23 |         return webView
[6/10] Compiling WWSVGImageView Constant.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[7/10] Emitting module WWSVGImageView
/Users/admin/builder/spi-builder-workspace/Sources/WWSVGImageView/SwiftUI/WWSVGImage.swift:21:27: error: 'View' is only available in macOS 10.15 or newer
 9 |
10 | // MARK: - 給SwiftUI用的
11 | public struct WWSVGImage: View {
   |               `- note: add @available attribute to enclosing struct
12 |
13 |     private let svg: String
   :
19 |     }
20 |
21 |     public var body: some View {
   |                |          `- error: 'View' is only available in macOS 10.15 or newer
   |                `- note: add @available attribute to enclosing property
22 |         SVGImage(svg: svg, useRWD: useRWD)
23 |     }
/Users/admin/builder/spi-builder-workspace/Sources/WWSVGImageView/Utility/Model.swift:34:34: error: cannot find type 'Context' in scope
32 |         let useRWD: Bool
33 |
34 |         func makeUIView(context: Context) -> UIViewType {
   |                                  `- error: cannot find type 'Context' in scope
35 |             return WWSVGImageView.build()
36 |         }
/Users/admin/builder/spi-builder-workspace/Sources/WWSVGImageView/Utility/Model.swift:37:59: error: cannot find type 'Context' in scope
35 |             return WWSVGImageView.build()
36 |         }
37 |         func updateUIView(_ webView: UIViewType, context: Context) {
   |                                                           `- error: cannot find type 'Context' in scope
38 |             webView.load(svg: svg)
39 |         }
/Users/admin/builder/spi-builder-workspace/Sources/WWSVGImageView/Utility/Model.swift:27:23: error: cannot find type 'UIViewRepresentable' in scope
25 | extension WWSVGImage {
26 |
27 |     struct SVGImage : UIViewRepresentable {
   |                       `- error: cannot find type 'UIViewRepresentable' in scope
28 |
29 |         typealias UIViewType = WWSVGImageView
[8/10] Compiling WWSVGImageView Model.swift
/Users/admin/builder/spi-builder-workspace/Sources/WWSVGImageView/Utility/Model.swift:34:34: error: cannot find type 'Context' in scope
32 |         let useRWD: Bool
33 |
34 |         func makeUIView(context: Context) -> UIViewType {
   |                                  `- error: cannot find type 'Context' in scope
35 |             return WWSVGImageView.build()
36 |         }
/Users/admin/builder/spi-builder-workspace/Sources/WWSVGImageView/Utility/Model.swift:37:59: error: cannot find type 'Context' in scope
35 |             return WWSVGImageView.build()
36 |         }
37 |         func updateUIView(_ webView: UIViewType, context: Context) {
   |                                                           `- error: cannot find type 'Context' in scope
38 |             webView.load(svg: svg)
39 |         }
/Users/admin/builder/spi-builder-workspace/Sources/WWSVGImageView/Utility/Model.swift:27:23: error: cannot find type 'UIViewRepresentable' in scope
25 | extension WWSVGImage {
26 |
27 |     struct SVGImage : UIViewRepresentable {
   |                       `- error: cannot find type 'UIViewRepresentable' in scope
28 |
29 |         typealias UIViewType = WWSVGImageView
/Users/admin/builder/spi-builder-workspace/Sources/WWSVGImageView/Utility/Model.swift:35:35: warning: call to main actor-isolated static method 'build()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
32 |         let useRWD: Bool
33 |
34 |         func makeUIView(context: Context) -> UIViewType {
   |              `- note: add '@MainActor' to make instance method 'makeUIView(context:)' part of global actor 'MainActor'
35 |             return WWSVGImageView.build()
   |                                   `- warning: call to main actor-isolated static method 'build()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
36 |         }
37 |         func updateUIView(_ webView: UIViewType, context: Context) {
/Users/admin/builder/spi-builder-workspace/Sources/WWSVGImageView/WWSVGImageView.swift:15:17: note: calls to static method 'build()' from outside of its actor context are implicitly asynchronous
 13 |     /// 建立WWSVGImageView
 14 |     /// - Returns: WWSVGImageView
 15 |     static func build() -> WWSVGImageView {
    |                 |- note: calls to static method 'build()' from outside of its actor context are implicitly asynchronous
    |                 `- note: main actor isolation inferred from inheritance from class 'WKWebView'
 16 |
 17 |         let webView: WWSVGImageView = WWSVGImageView._build(html: "")
/Users/admin/builder/spi-builder-workspace/Sources/WWSVGImageView/Utility/Model.swift:38:21: warning: call to main actor-isolated instance method 'load(svg:useRWD:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
35 |             return WWSVGImageView.build()
36 |         }
37 |         func updateUIView(_ webView: UIViewType, context: Context) {
   |              `- note: add '@MainActor' to make instance method 'updateUIView(_:context:)' part of global actor 'MainActor'
38 |             webView.load(svg: svg)
   |                     `- warning: call to main actor-isolated instance method 'load(svg:useRWD:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
39 |         }
40 |     }
/Users/admin/builder/spi-builder-workspace/Sources/WWSVGImageView/WWSVGImageView.swift:34:10: note: calls to instance method 'load(svg:useRWD:)' from outside of its actor context are implicitly asynchronous
 32 |     ///   - svg: SVG程式碼
 33 |     ///   - useRWD: [RWD支援](https://medium.com/frochu/html-meta-viewport-setting-69fbb06ed3d8)
 34 |     func load(svg: String, useRWD: Bool = true) {
    |          |- note: calls to instance method 'load(svg:useRWD:)' from outside of its actor context are implicitly asynchronous
    |          `- note: main actor isolation inferred from inheritance from class 'WKWebView'
 35 |
 36 |         let content = """
[9/10] Compiling WWSVGImageView Extension.swift
/Users/admin/builder/spi-builder-workspace/Sources/WWSVGImageView/Utility/Extension.swift:48:17: error: value of type 'T' has no member 'backgroundColor'
46 |
47 |         webView.loadHTMLString(html, baseURL: nil)
48 |         webView.backgroundColor = .clear
   |                 `- error: value of type 'T' has no member 'backgroundColor'
49 |
50 |         return webView
/Users/admin/builder/spi-builder-workspace/Sources/WWSVGImageView/Utility/Extension.swift:48:36: error: cannot infer contextual base in reference to member 'clear'
46 |
47 |         webView.loadHTMLString(html, baseURL: nil)
48 |         webView.backgroundColor = .clear
   |                                    `- error: cannot infer contextual base in reference to member 'clear'
49 |
50 |         return webView
[10/10] Compiling WWSVGImageView WWSVGImage.swift
/Users/admin/builder/spi-builder-workspace/Sources/WWSVGImageView/SwiftUI/WWSVGImage.swift:21:27: error: 'View' is only available in macOS 10.15 or newer
 9 |
10 | // MARK: - 給SwiftUI用的
11 | public struct WWSVGImage: View {
   |               `- note: add @available attribute to enclosing struct
12 |
13 |     private let svg: String
   :
19 |     }
20 |
21 |     public var body: some View {
   |                |          `- error: 'View' is only available in macOS 10.15 or newer
   |                `- note: add @available attribute to enclosing property
22 |         SVGImage(svg: svg, useRWD: useRWD)
23 |     }
/Users/admin/builder/spi-builder-workspace/Sources/WWSVGImageView/SwiftUI/WWSVGImage.swift:22:9: error: 'buildExpression' is unavailable: this expression does not conform to 'View'
20 |
21 |     public var body: some View {
22 |         SVGImage(svg: svg, useRWD: useRWD)
   |         `- error: 'buildExpression' is unavailable: this expression does not conform to 'View'
23 |     }
24 | }
SwiftUICore.ViewBuilder.buildExpression:3:22: note: 'buildExpression' has been explicitly marked unavailable here
1 | struct ViewBuilder {
2 | @available(*, unavailable, message: "this expression does not conform to 'View'")
3 |   public static func buildExpression(_ invalid: Any) -> some View
  |                      `- note: 'buildExpression' has been explicitly marked unavailable here
4 |   }
5 |
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-2F0A5646E1D333AE.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/8] Compiling WWSVGImageView resource_bundle_accessor.swift
[3/8] Compiling WWSVGImageView Constant.swift
[4/8] Emitting module WWSVGImageView
/Users/admin/builder/spi-builder-workspace/Sources/WWSVGImageView/SwiftUI/WWSVGImage.swift:21:27: error: 'View' is only available in macOS 10.15 or newer
 9 |
10 | // MARK: - 給SwiftUI用的
11 | public struct WWSVGImage: View {
   |               `- note: add @available attribute to enclosing struct
12 |
13 |     private let svg: String
   :
19 |     }
20 |
21 |     public var body: some View {
   |                |          `- error: 'View' is only available in macOS 10.15 or newer
   |                `- note: add @available attribute to enclosing property
22 |         SVGImage(svg: svg, useRWD: useRWD)
23 |     }
/Users/admin/builder/spi-builder-workspace/Sources/WWSVGImageView/Utility/Model.swift:34:34: error: cannot find type 'Context' in scope
32 |         let useRWD: Bool
33 |
34 |         func makeUIView(context: Context) -> UIViewType {
   |                                  `- error: cannot find type 'Context' in scope
35 |             return WWSVGImageView.build()
36 |         }
/Users/admin/builder/spi-builder-workspace/Sources/WWSVGImageView/Utility/Model.swift:37:59: error: cannot find type 'Context' in scope
35 |             return WWSVGImageView.build()
36 |         }
37 |         func updateUIView(_ webView: UIViewType, context: Context) {
   |                                                           `- error: cannot find type 'Context' in scope
38 |             webView.load(svg: svg)
39 |         }
/Users/admin/builder/spi-builder-workspace/Sources/WWSVGImageView/Utility/Model.swift:27:23: error: cannot find type 'UIViewRepresentable' in scope
25 | extension WWSVGImage {
26 |
27 |     struct SVGImage : UIViewRepresentable {
   |                       `- error: cannot find type 'UIViewRepresentable' in scope
28 |
29 |         typealias UIViewType = WWSVGImageView
[5/8] Compiling WWSVGImageView Extension.swift
/Users/admin/builder/spi-builder-workspace/Sources/WWSVGImageView/Utility/Extension.swift:48:17: error: value of type 'T' has no member 'backgroundColor'
46 |
47 |         webView.loadHTMLString(html, baseURL: nil)
48 |         webView.backgroundColor = .clear
   |                 `- error: value of type 'T' has no member 'backgroundColor'
49 |
50 |         return webView
/Users/admin/builder/spi-builder-workspace/Sources/WWSVGImageView/Utility/Extension.swift:48:36: error: cannot infer contextual base in reference to member 'clear'
46 |
47 |         webView.loadHTMLString(html, baseURL: nil)
48 |         webView.backgroundColor = .clear
   |                                    `- error: cannot infer contextual base in reference to member 'clear'
49 |
50 |         return webView
[6/8] Compiling WWSVGImageView WWSVGImage.swift
/Users/admin/builder/spi-builder-workspace/Sources/WWSVGImageView/SwiftUI/WWSVGImage.swift:21:27: error: 'View' is only available in macOS 10.15 or newer
 9 |
10 | // MARK: - 給SwiftUI用的
11 | public struct WWSVGImage: View {
   |               `- note: add @available attribute to enclosing struct
12 |
13 |     private let svg: String
   :
19 |     }
20 |
21 |     public var body: some View {
   |                |          `- error: 'View' is only available in macOS 10.15 or newer
   |                `- note: add @available attribute to enclosing property
22 |         SVGImage(svg: svg, useRWD: useRWD)
23 |     }
/Users/admin/builder/spi-builder-workspace/Sources/WWSVGImageView/SwiftUI/WWSVGImage.swift:22:9: error: 'buildExpression' is unavailable: this expression does not conform to 'View'
20 |
21 |     public var body: some View {
22 |         SVGImage(svg: svg, useRWD: useRWD)
   |         `- error: 'buildExpression' is unavailable: this expression does not conform to 'View'
23 |     }
24 | }
SwiftUICore.ViewBuilder.buildExpression:3:22: note: 'buildExpression' has been explicitly marked unavailable here
1 | struct ViewBuilder {
2 | @available(*, unavailable, message: "this expression does not conform to 'View'")
3 |   public static func buildExpression(_ invalid: Any) -> some View
  |                      `- note: 'buildExpression' has been explicitly marked unavailable here
4 |   }
5 |
[7/8] Compiling WWSVGImageView WWSVGImageView.swift
/Users/admin/builder/spi-builder-workspace/Sources/WWSVGImageView/WWSVGImageView.swift:19:17: error: cannot assign to property: 'isOpaque' is a get-only property
 17 |         let webView: WWSVGImageView = WWSVGImageView._build(html: "")
 18 |
 19 |         webView.isOpaque = false
    |                 `- error: cannot assign to property: 'isOpaque' is a get-only property
 20 |         webView.backgroundColor = .clear
 21 |         webView.scrollView.backgroundColor = .clear
/Users/admin/builder/spi-builder-workspace/Sources/WWSVGImageView/WWSVGImageView.swift:20:17: error: value of type 'WWSVGImageView' has no member 'backgroundColor'
 18 |
 19 |         webView.isOpaque = false
 20 |         webView.backgroundColor = .clear
    |                 `- error: value of type 'WWSVGImageView' has no member 'backgroundColor'
 21 |         webView.scrollView.backgroundColor = .clear
 22 |
/Users/admin/builder/spi-builder-workspace/Sources/WWSVGImageView/WWSVGImageView.swift:20:36: error: cannot infer contextual base in reference to member 'clear'
 18 |
 19 |         webView.isOpaque = false
 20 |         webView.backgroundColor = .clear
    |                                    `- error: cannot infer contextual base in reference to member 'clear'
 21 |         webView.scrollView.backgroundColor = .clear
 22 |
/Users/admin/builder/spi-builder-workspace/Sources/WWSVGImageView/WWSVGImageView.swift:21:17: error: value of type 'WWSVGImageView' has no member 'scrollView'
 19 |         webView.isOpaque = false
 20 |         webView.backgroundColor = .clear
 21 |         webView.scrollView.backgroundColor = .clear
    |                 `- error: value of type 'WWSVGImageView' has no member 'scrollView'
 22 |
 23 |         return webView
/Users/admin/builder/spi-builder-workspace/Sources/WWSVGImageView/WWSVGImageView.swift:21:47: error: cannot infer contextual base in reference to member 'clear'
 19 |         webView.isOpaque = false
 20 |         webView.backgroundColor = .clear
 21 |         webView.scrollView.backgroundColor = .clear
    |                                               `- error: cannot infer contextual base in reference to member 'clear'
 22 |
 23 |         return webView
[8/8] Compiling WWSVGImageView Model.swift
/Users/admin/builder/spi-builder-workspace/Sources/WWSVGImageView/Utility/Model.swift:34:34: error: cannot find type 'Context' in scope
32 |         let useRWD: Bool
33 |
34 |         func makeUIView(context: Context) -> UIViewType {
   |                                  `- error: cannot find type 'Context' in scope
35 |             return WWSVGImageView.build()
36 |         }
/Users/admin/builder/spi-builder-workspace/Sources/WWSVGImageView/Utility/Model.swift:37:59: error: cannot find type 'Context' in scope
35 |             return WWSVGImageView.build()
36 |         }
37 |         func updateUIView(_ webView: UIViewType, context: Context) {
   |                                                           `- error: cannot find type 'Context' in scope
38 |             webView.load(svg: svg)
39 |         }
/Users/admin/builder/spi-builder-workspace/Sources/WWSVGImageView/Utility/Model.swift:27:23: error: cannot find type 'UIViewRepresentable' in scope
25 | extension WWSVGImage {
26 |
27 |     struct SVGImage : UIViewRepresentable {
   |                       `- error: cannot find type 'UIViewRepresentable' in scope
28 |
29 |         typealias UIViewType = WWSVGImageView
BUILD FAILURE 6.1 macosSpm