The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build Wyler, reference master (69c855), with Swift 6.2 (beta) for macOS (SPM) on 18 Jun 2025 21:09:26 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/toupper/Wyler.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/toupper/Wyler
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 69c8552 Merge pull request #8 from riderx/master
Cloned https://github.com/toupper/Wyler.git
Revision (git rev-parse @):
69c8552a0f2f280e2d93f4c8ac856f7567148996
SUCCESS checkout https://github.com/toupper/Wyler.git at master
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/toupper/Wyler.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
[3/4] Emitting module Wyler
[4/4] Compiling Wyler ScreenRecorder.swift
/Users/admin/builder/spi-builder-workspace/Wyler/Wyler/ScreenRecorder.swift:51:21: error: incorrect argument label in call (have 'error:', expected 'handler:')
 49 |            self.appAudioWriterInput = createAndAddAudioInput()
 50 |         }
 51 |         startCapture(error: errorHandler)
    |                     `- error: incorrect argument label in call (have 'error:', expected 'handler:')
 52 |     } catch let err {
 53 |         errorHandler(err)
/Users/admin/builder/spi-builder-workspace/Wyler/Wyler/ScreenRecorder.swift:89:39: error: cannot find 'UIScreen' in scope
 87 |
 88 |   private func addVideoWriterInput(size: CGSize?) {
 89 |     let passingSize: CGSize = size ?? UIScreen.main.bounds.size
    |                                       `- error: cannot find 'UIScreen' in scope
 90 |
 91 |     let videoSettings: [String: Any] = [AVVideoCodecKey: AVVideoCodecType.h264,
/Users/admin/builder/spi-builder-workspace/Wyler/Wyler/ScreenRecorder.swift:121:14: error: 'startCapture(handler:completionHandler:)' is only available in macOS 11.0 or newer
 16 | }
 17 |
 18 | final public class ScreenRecorder {
    |                    `- note: add @available attribute to enclosing class
 19 |   private var videoOutputURL: URL?
 20 |   private var videoWriter: AVAssetWriter?
    :
115 |   }
116 |
117 |   private func startCapture(handler: @escaping (Error?) -> Void) {
    |                `- note: add @available attribute to enclosing instance method
118 |     guard recorder.isAvailable else {
119 |         return handler(ScreenRecorderError.notAvailable)
120 |     }
121 |     recorder.startCapture(handler: { (sampleBuffer, sampleType, passedError) in
    |              |- error: 'startCapture(handler:completionHandler:)' is only available in macOS 11.0 or newer
    |              `- note: add 'if #available' version check
122 |       if let passedError = passedError {
123 |         handler(passedError)
/Users/admin/builder/spi-builder-workspace/Wyler/Wyler/ScreenRecorder.swift:162:14: error: 'stopCapture(handler:)' is only available in macOS 11.0 or newer
 16 | }
 17 |
 18 | final public class ScreenRecorder {
    |                    `- note: add @available attribute to enclosing class
 19 |   private var videoOutputURL: URL?
 20 |   private var videoWriter: AVAssetWriter?
    :
159 |   - Parameter errorHandler: Called when an error is found
160 |   */
161 |   public func stoprecording(handler: @escaping (Error?) -> Void) {
    |               `- note: add @available attribute to enclosing instance method
162 |     recorder.stopCapture( handler: { error in
    |              |- error: 'stopCapture(handler:)' is only available in macOS 11.0 or newer
    |              `- note: add 'if #available' version check
163 |       if let error = error {
164 |         handler(error)
/Users/admin/builder/spi-builder-workspace/Wyler/Wyler/ScreenRecorder.swift:183:63: error: cannot find 'errorHandler' in scope
181 |     }
182 |     self.videoWriter?.finishWriting {
183 |       self.saveVideoToCameraRollAfterAuthorized(errorHandler: errorHandler)
    |                                                               `- error: cannot find 'errorHandler' in scope
184 |     }
185 |   }
/Users/admin/builder/spi-builder-workspace/Wyler/Wyler/ScreenRecorder.swift:183:48: error: incorrect argument label in call (have 'errorHandler:', expected 'handler:')
181 |     }
182 |     self.videoWriter?.finishWriting {
183 |       self.saveVideoToCameraRollAfterAuthorized(errorHandler: errorHandler)
    |                                                `- error: incorrect argument label in call (have 'errorHandler:', expected 'handler:')
184 |     }
185 |   }
/Users/admin/builder/spi-builder-workspace/Wyler/Wyler/ScreenRecorder.swift:207:7: error: 'PHAssetChangeRequest' is only available in macOS 10.15 or newer
 16 | }
 17 |
 18 | final public class ScreenRecorder {
    |                    `- note: add @available attribute to enclosing class
 19 |   private var videoOutputURL: URL?
 20 |   private var videoWriter: AVAssetWriter?
    :
199 |   }
200 |
201 |   private func saveVideoToCameraRoll(handler: @escaping (Error?) -> Void) {
    |                `- note: add @available attribute to enclosing instance method
202 |     guard let videoOutputURL = self.videoOutputURL else {
203 |       return handler(nil)
    :
205 |
206 |     PHPhotoLibrary.shared().performChanges({
207 |       PHAssetChangeRequest.creationRequestForAssetFromVideo(atFileURL: videoOutputURL)
    |       |- error: 'PHAssetChangeRequest' is only available in macOS 10.15 or newer
    |       `- note: add 'if #available' version check
208 |     }, completionHandler: { _, error in
209 |       if let error = error {
/Users/admin/builder/spi-builder-workspace/Wyler/Wyler/ScreenRecorder.swift:207:28: error: 'creationRequestForAssetFromVideo(atFileURL:)' is only available in macOS 10.15 or newer
 16 | }
 17 |
 18 | final public class ScreenRecorder {
    |                    `- note: add @available attribute to enclosing class
 19 |   private var videoOutputURL: URL?
 20 |   private var videoWriter: AVAssetWriter?
    :
199 |   }
200 |
201 |   private func saveVideoToCameraRoll(handler: @escaping (Error?) -> Void) {
    |                `- note: add @available attribute to enclosing instance method
202 |     guard let videoOutputURL = self.videoOutputURL else {
203 |       return handler(nil)
    :
205 |
206 |     PHPhotoLibrary.shared().performChanges({
207 |       PHAssetChangeRequest.creationRequestForAssetFromVideo(atFileURL: videoOutputURL)
    |                            |- error: 'creationRequestForAssetFromVideo(atFileURL:)' is only available in macOS 10.15 or newer
    |                            `- note: add 'if #available' version check
208 |     }, completionHandler: { _, error in
209 |       if let error = error {
BUILD FAILURE 6.2 macosSpm