The Swift Package Index logo.Swift Package Index

Build Information

Failed to build WWScreenRecorder, reference main (6dfae6), with Swift 6.3 for macOS (SPM) on 14 Apr 2026 23:35:24 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/William-Weng/WWScreenRecorder.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/William-Weng/WWScreenRecorder
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 6dfae6b - update package
Cloned https://github.com/William-Weng/WWScreenRecorder.git
Revision (git rev-parse @):
6dfae6b837bd498c9237832210a29b139cd30894
SUCCESS checkout https://github.com/William-Weng/WWScreenRecorder.git at main
========================================
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": "wwscreenrecorder",
      "name": "WWScreenRecorder",
      "url": "https://github.com/William-Weng/WWScreenRecorder.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/WWScreenRecorder",
      "traits": [
        "default"
      ],
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/William-Weng/WWScreenRecorder.git
[1/109] Fetching wwscreenrecorder
Fetched https://github.com/William-Weng/WWScreenRecorder.git from cache (1.01s)
Creating working copy for https://github.com/William-Weng/WWScreenRecorder.git
Working copy of https://github.com/William-Weng/WWScreenRecorder.git resolved at main (6dfae6b)
warning: '.resolve-product-dependencies': dependency 'wwscreenrecorder' 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/William-Weng/WWScreenRecorder.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.4.0.app xcrun swift build --arch arm64
Building for debugging...
[0/3] Write sources
[1/3] Copying Privacy
[2/3] Write swift-version--6988338F2F200930.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/6] Emitting module WWScreenRecorder
/Users/admin/builder/spi-builder-workspace/Sources/WWScreenRecorder/WWScreenRecorder.swift:33:59: error: 'RPPreviewViewController' is only available in macOS 11.0 or newer
29 | // MARK: - RPScreenRecorderDelegate, RPPreviewViewControllerDelegate
30 | extension WWScreenRecorder: RPScreenRecorderDelegate, RPPreviewViewControllerDelegate {}
31 | public extension WWScreenRecorder {
   |        `- note: add '@available' attribute to enclosing extension
32 |
33 |      func previewControllerDidFinish(_ previewController: RPPreviewViewController) {
   |           |                                               `- error: 'RPPreviewViewController' is only available in macOS 11.0 or newer
   |           `- note: add '@available' attribute to enclosing instance method
34 |         previewController.dismiss(animated: true, completion: nil)
35 |     }
/Users/admin/builder/spi-builder-workspace/Sources/WWScreenRecorder/WWScreenRecorder.swift:61:41: error: 'RPPreviewViewController' is only available in macOS 11.0 or newer
37 |
38 | // MARK: - 公開函式
39 | public extension WWScreenRecorder {
   |        `- note: add '@available' attribute to enclosing extension
40 |
41 |     /// [開始錄製螢幕畫面](https://www.appcoda.com.tw/replaykit/)
   :
59 |     /// [停止錄製螢幕畫面](https://medium.com/@jerryleetw1992/錄製app畫面-replaykit-by-swiftui-54927c6347b7)
60 |     /// - Parameter result: [Result<RPPreviewViewController, Error>) -> Void](https://youtu.be/9dFsoQKBT0g)
61 |     func stop(result: @escaping (Result<RPPreviewViewController, Error>) -> Void) {
   |          |                              `- error: 'RPPreviewViewController' is only available in macOS 11.0 or newer
   |          `- note: add '@available' attribute to enclosing instance method
62 |
63 |         screenRecorder.stopRecording { previewViewController, error in
[5/6] Compiling WWScreenRecorder resource_bundle_accessor.swift
[6/6] Compiling WWScreenRecorder WWScreenRecorder.swift
/Users/admin/builder/spi-builder-workspace/Sources/WWScreenRecorder/WWScreenRecorder.swift:33:59: error: 'RPPreviewViewController' is only available in macOS 11.0 or newer
29 | // MARK: - RPScreenRecorderDelegate, RPPreviewViewControllerDelegate
30 | extension WWScreenRecorder: RPScreenRecorderDelegate, RPPreviewViewControllerDelegate {}
31 | public extension WWScreenRecorder {
   |        `- note: add '@available' attribute to enclosing extension
32 |
33 |      func previewControllerDidFinish(_ previewController: RPPreviewViewController) {
   |           |                                               `- error: 'RPPreviewViewController' is only available in macOS 11.0 or newer
   |           `- note: add '@available' attribute to enclosing instance method
34 |         previewController.dismiss(animated: true, completion: nil)
35 |     }
/Users/admin/builder/spi-builder-workspace/Sources/WWScreenRecorder/WWScreenRecorder.swift:61:41: error: 'RPPreviewViewController' is only available in macOS 11.0 or newer
37 |
38 | // MARK: - 公開函式
39 | public extension WWScreenRecorder {
   |        `- note: add '@available' attribute to enclosing extension
40 |
41 |     /// [開始錄製螢幕畫面](https://www.appcoda.com.tw/replaykit/)
   :
59 |     /// [停止錄製螢幕畫面](https://medium.com/@jerryleetw1992/錄製app畫面-replaykit-by-swiftui-54927c6347b7)
60 |     /// - Parameter result: [Result<RPPreviewViewController, Error>) -> Void](https://youtu.be/9dFsoQKBT0g)
61 |     func stop(result: @escaping (Result<RPPreviewViewController, Error>) -> Void) {
   |          |                              `- error: 'RPPreviewViewController' is only available in macOS 11.0 or newer
   |          `- note: add '@available' attribute to enclosing instance method
62 |
63 |         screenRecorder.stopRecording { previewViewController, error in
/Users/admin/builder/spi-builder-workspace/Sources/WWScreenRecorder/WWScreenRecorder.swift:34:63: error: extra argument 'completion' in call
32 |
33 |      func previewControllerDidFinish(_ previewController: RPPreviewViewController) {
34 |         previewController.dismiss(animated: true, completion: nil)
   |                                                               `- error: extra argument 'completion' in call
35 |     }
36 | }
/Users/admin/builder/spi-builder-workspace/Sources/WWScreenRecorder/WWScreenRecorder.swift:34:63: error: 'nil' requires a contextual type
32 |
33 |      func previewControllerDidFinish(_ previewController: RPPreviewViewController) {
34 |         previewController.dismiss(animated: true, completion: nil)
   |                                                               `- error: 'nil' requires a contextual type
35 |     }
36 | }
/Users/admin/builder/spi-builder-workspace/Sources/WWScreenRecorder/WWScreenRecorder.swift:50:24: error: 'isCameraEnabled' is only available in macOS 11.0 or newer
37 |
38 | // MARK: - 公開函式
39 | public extension WWScreenRecorder {
   |        `- note: add '@available' attribute to enclosing extension
40 |
41 |     /// [開始錄製螢幕畫面](https://www.appcoda.com.tw/replaykit/)
   :
44 |     ///   - isMicrophoneEnabled: [錄製麥克風取得的聲音](https://developer.apple.com/cn/videos/play/wwdc2021/10101/)
45 |     ///   - result: [(Result<Bool, Error>) -> Void](https://support.apple.com/zh-tw/guide/security/seca5fc039dd/web)
46 |     func start(isCameraEnabled: Bool = true, isMicrophoneEnabled: Bool = true, result: @escaping (Result<Bool, Error>) -> Void) {
   |          `- note: add '@available' attribute to enclosing instance method
47 |
48 |         guard screenRecorder.isAvailable else { result(.failure(CustomError.isNotAvailable)); return }
49 |
50 |         screenRecorder.isCameraEnabled = isCameraEnabled
   |                        |- error: 'isCameraEnabled' is only available in macOS 11.0 or newer
   |                        `- note: add 'if #available' version check
51 |         screenRecorder.isMicrophoneEnabled = isMicrophoneEnabled
52 |
/Users/admin/builder/spi-builder-workspace/Sources/WWScreenRecorder/WWScreenRecorder.swift:53:24: error: 'startRecording(handler:)' is only available in macOS 11.0 or newer
37 |
38 | // MARK: - 公開函式
39 | public extension WWScreenRecorder {
   |        `- note: add '@available' attribute to enclosing extension
40 |
41 |     /// [開始錄製螢幕畫面](https://www.appcoda.com.tw/replaykit/)
   :
44 |     ///   - isMicrophoneEnabled: [錄製麥克風取得的聲音](https://developer.apple.com/cn/videos/play/wwdc2021/10101/)
45 |     ///   - result: [(Result<Bool, Error>) -> Void](https://support.apple.com/zh-tw/guide/security/seca5fc039dd/web)
46 |     func start(isCameraEnabled: Bool = true, isMicrophoneEnabled: Bool = true, result: @escaping (Result<Bool, Error>) -> Void) {
   |          `- note: add '@available' attribute to enclosing instance method
47 |
48 |         guard screenRecorder.isAvailable else { result(.failure(CustomError.isNotAvailable)); return }
   :
51 |         screenRecorder.isMicrophoneEnabled = isMicrophoneEnabled
52 |
53 |         screenRecorder.startRecording { error in
   |                        |- error: 'startRecording(handler:)' is only available in macOS 11.0 or newer
   |                        `- note: add 'if #available' version check
54 |             if let error = error { result(.failure(error)); return }
55 |             result(.success(true))
BUILD FAILURE 6.3 macosSpm