Build Information
Failed to build Wyler, reference v1.0.0 (5f2448
), with Swift 6.2 (beta) for macOS (SPM) on 18 Jun 2025 21:09:03 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: v1.0.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/toupper/Wyler
* tag v1.0.0 -> FETCH_HEAD
HEAD is now at 5f2448d Add SPM support
Cloned https://github.com/toupper/Wyler.git
Revision (git rev-parse @):
5f2448d3e998cfa76d386a839edefd4d0831e4da
SUCCESS checkout https://github.com/toupper/Wyler.git at v1.0.0
========================================
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:82:39: error: cannot find 'UIScreen' in scope
80 |
81 | private func addVideoWriterInput(size: CGSize?) {
82 | let passingSize: CGSize = size ?? UIScreen.main.bounds.size
| `- error: cannot find 'UIScreen' in scope
83 |
84 | let videoSettings: [String: Any] = [AVVideoCodecKey: AVVideoCodecType.h264,
/Users/admin/builder/spi-builder-workspace/Wyler/Wyler/ScreenRecorder.swift:112:14: error: 'startCapture(handler:completionHandler:)' is only available in macOS 11.0 or newer
15 | }
16 |
17 | final public class ScreenRecorder {
| `- note: add @available attribute to enclosing class
18 | private var videoOutputURL: URL?
19 | private var videoWriter: AVAssetWriter?
:
109 | }
110 |
111 | private func startCapture(error: @escaping (Error) -> Void) {
| `- note: add @available attribute to enclosing instance method
112 | 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
113 | if let passedError = passedError {
114 | error(passedError)
/Users/admin/builder/spi-builder-workspace/Wyler/Wyler/ScreenRecorder.swift:153:31: error: 'stopCapture(handler:)' is only available in macOS 11.0 or newer
15 | }
16 |
17 | final public class ScreenRecorder {
| `- note: add @available attribute to enclosing class
18 | private var videoOutputURL: URL?
19 | private var videoWriter: AVAssetWriter?
:
150 | - Parameter errorHandler: Called when an error is found
151 | */
152 | public func stoprecording(errorHandler: @escaping (Error) -> Void) {
| `- note: add @available attribute to enclosing instance method
153 | RPScreenRecorder.shared().stopCapture( handler: { error in
| |- error: 'stopCapture(handler:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
154 | if let error = error {
155 | errorHandler(error)
/Users/admin/builder/spi-builder-workspace/Wyler/Wyler/ScreenRecorder.swift:187:7: error: 'PHAssetChangeRequest' is only available in macOS 10.15 or newer
15 | }
16 |
17 | final public class ScreenRecorder {
| `- note: add @available attribute to enclosing class
18 | private var videoOutputURL: URL?
19 | private var videoWriter: AVAssetWriter?
:
179 | }
180 |
181 | private func saveVideoToCameraRoll(errorHandler: @escaping (Error) -> Void) {
| `- note: add @available attribute to enclosing instance method
182 | guard let videoOutputURL = self.videoOutputURL else {
183 | return
:
185 |
186 | PHPhotoLibrary.shared().performChanges({
187 | PHAssetChangeRequest.creationRequestForAssetFromVideo(atFileURL: videoOutputURL)
| |- error: 'PHAssetChangeRequest' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
188 | }, completionHandler: { _, error in
189 | if let error = error {
/Users/admin/builder/spi-builder-workspace/Wyler/Wyler/ScreenRecorder.swift:187:28: error: 'creationRequestForAssetFromVideo(atFileURL:)' is only available in macOS 10.15 or newer
15 | }
16 |
17 | final public class ScreenRecorder {
| `- note: add @available attribute to enclosing class
18 | private var videoOutputURL: URL?
19 | private var videoWriter: AVAssetWriter?
:
179 | }
180 |
181 | private func saveVideoToCameraRoll(errorHandler: @escaping (Error) -> Void) {
| `- note: add @available attribute to enclosing instance method
182 | guard let videoOutputURL = self.videoOutputURL else {
183 | return
:
185 |
186 | PHPhotoLibrary.shared().performChanges({
187 | PHAssetChangeRequest.creationRequestForAssetFromVideo(atFileURL: videoOutputURL)
| |- error: 'creationRequestForAssetFromVideo(atFileURL:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
188 | }, completionHandler: { _, error in
189 | if let error = error {
BUILD FAILURE 6.2 macosSpm