The Swift Package Index logo.Swift Package Index

Build Information

Failed to build Wyler, reference master (4f9b9b), with Swift 6.2 for macOS (SPM) on 11 Mar 2026 02:39:21 UTC.

Build Command

env DEVELOPER_DIR=/Applications/Xcode-26.0.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/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 4f9b9b8 Merge pull request #11 from toupper/codex/wyler-maintenance
Cloned https://github.com/toupper/Wyler.git
Revision (git rev-parse @):
4f9b9b82870c6313fa8b16a1531fbf9b76ac5f99
SUCCESS checkout https://github.com/toupper/Wyler.git at master
warning: 'spi-builder-workspace': /Users/admin/builder/spi-builder-workspace/Package.swift:14:15: warning: 'v11' is deprecated: iOS 12.0 is the oldest supported version [#DeprecatedDeclaration]
12 |     name: "Wyler",
13 |     platforms: [
14 |         .iOS(.v11),
   |               `- warning: 'v11' is deprecated: iOS 12.0 is the oldest supported version [#DeprecatedDeclaration]
15 |     ],
16 |     products: [
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
========================================
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",
  "dependencies": [
    {
      "identity": "wyler",
      "name": "Wyler",
      "url": "https://github.com/toupper/Wyler.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Wyler",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/toupper/Wyler.git
[1/137] Fetching wyler
Fetched https://github.com/toupper/Wyler.git from cache (0.98s)
warning: 'wyler': /Package.swift:14:15: warning: 'v11' is deprecated: iOS 12.0 is the oldest supported version [#DeprecatedDeclaration]
12 |     name: "Wyler",
13 |     platforms: [
14 |         .iOS(.v11),
   |               `- warning: 'v11' is deprecated: iOS 12.0 is the oldest supported version [#DeprecatedDeclaration]
15 |     ],
16 |     products: [
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
Creating working copy for https://github.com/toupper/Wyler.git
Working copy of https://github.com/toupper/Wyler.git resolved at master (4f9b9b8)
warning: 'wyler': /Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Wyler/Package.swift:14:15: warning: 'v11' is deprecated: iOS 12.0 is the oldest supported version [#DeprecatedDeclaration]
12 |     name: "Wyler",
13 |     platforms: [
14 |         .iOS(.v11),
   |               `- warning: 'v11' is deprecated: iOS 12.0 is the oldest supported version [#DeprecatedDeclaration]
15 |     ],
16 |     products: [
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
warning: '.resolve-product-dependencies': dependency 'wyler' is not used by any target
Found 0 product dependencies
========================================
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.app xcrun swift build --arch arm64
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-49B95AFC49DCD68C.txt
[3/4] Emitting module Wyler
[4/4] Compiling Wyler ScreenRecorder.swift
/Users/admin/builder/spi-builder-workspace/Wyler/Wyler/ScreenRecorder.swift:88:39: error: cannot find 'UIScreen' in scope
 86 |
 87 |   private func addVideoWriterInput(size: CGSize?) {
 88 |     let passingSize: CGSize = size ?? UIScreen.main.bounds.size
    |                                       `- error: cannot find 'UIScreen' in scope
 89 |
 90 |     let videoSettings: [String: Any] = [AVVideoCodecKey: AVVideoCodecType.h264,
/Users/admin/builder/spi-builder-workspace/Wyler/Wyler/ScreenRecorder.swift:120: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?
    :
114 |   }
115 |
116 |   private func startCapture(handler: @escaping (Error?) -> Void) {
    |                `- note: add '@available' attribute to enclosing instance method
117 |     guard recorder.isAvailable else {
118 |         return handler(ScreenRecorderError.notAvailable)
119 |     }
120 |     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
121 |       if let passedError = passedError {
122 |         handler(passedError)
/Users/admin/builder/spi-builder-workspace/Wyler/Wyler/ScreenRecorder.swift:161: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?
    :
158 |   - Parameter errorHandler: Called when an error is found
159 |   */
160 |   public func stoprecording(handler: @escaping (Error?) -> Void) {
    |               `- note: add '@available' attribute to enclosing instance method
161 |     recorder.stopCapture { error in
    |              |- error: 'stopCapture(handler:)' is only available in macOS 11.0 or newer
    |              `- note: add 'if #available' version check
162 |       if let error = error {
163 |         handler(error)
/Users/admin/builder/spi-builder-workspace/Wyler/Wyler/ScreenRecorder.swift:224: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?
    :
216 |   }
217 |
218 |   private func saveVideoToCameraRoll(handler: @escaping (Error?) -> Void) {
    |                `- note: add '@available' attribute to enclosing instance method
219 |     guard let videoOutputURL = self.videoOutputURL else {
220 |       return handler(nil)
    :
222 |
223 |     PHPhotoLibrary.shared().performChanges({
224 |       PHAssetChangeRequest.creationRequestForAssetFromVideo(atFileURL: videoOutputURL)
    |       |- error: 'PHAssetChangeRequest' is only available in macOS 10.15 or newer
    |       `- note: add 'if #available' version check
225 |     }, completionHandler: { _, error in
226 |       if let error = error {
/Users/admin/builder/spi-builder-workspace/Wyler/Wyler/ScreenRecorder.swift:224: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?
    :
216 |   }
217 |
218 |   private func saveVideoToCameraRoll(handler: @escaping (Error?) -> Void) {
    |                `- note: add '@available' attribute to enclosing instance method
219 |     guard let videoOutputURL = self.videoOutputURL else {
220 |       return handler(nil)
    :
222 |
223 |     PHPhotoLibrary.shared().performChanges({
224 |       PHAssetChangeRequest.creationRequestForAssetFromVideo(atFileURL: videoOutputURL)
    |                            |- error: 'creationRequestForAssetFromVideo(atFileURL:)' is only available in macOS 10.15 or newer
    |                            `- note: add 'if #available' version check
225 |     }, completionHandler: { _, error in
226 |       if let error = error {
/Users/admin/builder/spi-builder-workspace/Wyler/Wyler/ScreenRecorder.swift:236:31: error: 'authorizationStatus(for:)' is only available in macOS 11 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?
    :
232 |   }
233 |
234 |   private func photoLibraryAuthorizationStatus() -> PHAuthorizationStatus {
    |                `- note: add '@available' attribute to enclosing instance method
235 |     if #available(iOS 14, *) {
236 |         return PHPhotoLibrary.authorizationStatus(for: .addOnly)
    |                               |- error: 'authorizationStatus(for:)' is only available in macOS 11 or newer
    |                               `- note: add 'if #available' version check
237 |     }
238 |
/Users/admin/builder/spi-builder-workspace/Wyler/Wyler/ScreenRecorder.swift:244:24: error: 'requestAuthorization(for:handler:)' is only available in macOS 11 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?
    :
240 |   }
241 |
242 |   private func requestPhotoLibraryAuthorization(handler: @escaping (PHAuthorizationStatus) -> Void) {
    |                `- note: add '@available' attribute to enclosing instance method
243 |     if #available(iOS 14, *) {
244 |         PHPhotoLibrary.requestAuthorization(for: .addOnly, handler: handler)
    |                        |- error: 'requestAuthorization(for:handler:)' is only available in macOS 11 or newer
    |                        `- note: add 'if #available' version check
245 |     } else {
246 |         PHPhotoLibrary.requestAuthorization(handler)
warning: 'spi-builder-workspace': /Users/admin/builder/spi-builder-workspace/Package.swift:14:15: warning: 'v11' is deprecated: iOS 12.0 is the oldest supported version [#DeprecatedDeclaration]
12 |     name: "Wyler",
13 |     platforms: [
14 |         .iOS(.v11),
   |               `- warning: 'v11' is deprecated: iOS 12.0 is the oldest supported version [#DeprecatedDeclaration]
15 |     ],
16 |     products: [
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /Users/admin/builder/spi-builder-workspace/Wyler/Wyler/Info.plist
BUILD FAILURE 6.2 macosSpm