The Swift Package Index logo.Swift Package Index

Build Information

Failed to build Wyler, reference master (4f9b9b), with Swift 6.1 for macOS (SPM) on 11 Mar 2026 10:43:46 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/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
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/toupper/Wyler.git
https://github.com/toupper/Wyler.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Wyler",
  "name" : "Wyler",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "11.0"
    }
  ],
  "products" : [
    {
      "name" : "Wyler",
      "targets" : [
        "Wyler"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "Wyler",
      "module_type" : "SwiftTarget",
      "name" : "Wyler",
      "path" : "Wyler/Wyler",
      "product_memberships" : [
        "Wyler"
      ],
      "sources" : [
        "ScreenRecorder.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
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
12 |     name: "Wyler",
13 |     platforms: [
14 |         .iOS(.v11),
   |               `- warning: 'v11' is deprecated: iOS 12.0 is the oldest supported version
15 |     ],
16 |     products: [
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/2] Write sources
[1/2] Write swift-version-2F0A5646E1D333AE.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:192:9: warning: capture of 'self' with non-sendable type 'ScreenRecorder' in a '@Sendable' closure
 16 | }
 17 |
 18 | final public class ScreenRecorder {
    |                    `- note: class 'ScreenRecorder' does not conform to the 'Sendable' protocol
 19 |   private var videoOutputURL: URL?
 20 |   private var videoWriter: AVAssetWriter?
    :
190 |
191 |     videoWriter.finishWriting {
192 |         self.saveVideoToCameraRollAfterAuthorized(handler: handler)
    |         `- warning: capture of 'self' with non-sendable type 'ScreenRecorder' in a '@Sendable' closure
193 |         self.resetWriterState()
194 |     }
/Users/admin/builder/spi-builder-workspace/Wyler/Wyler/ScreenRecorder.swift:192:60: warning: capture of 'handler' with non-sendable type '((any Error)?) -> Void' in a '@Sendable' closure
190 |
191 |     videoWriter.finishWriting {
192 |         self.saveVideoToCameraRollAfterAuthorized(handler: handler)
    |                                                            |- warning: capture of 'handler' with non-sendable type '((any Error)?) -> Void' in a '@Sendable' closure
    |                                                            `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
193 |         self.resetWriterState()
194 |     }
/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
12 |     name: "Wyler",
13 |     platforms: [
14 |         .iOS(.v11),
   |               `- warning: 'v11' is deprecated: iOS 12.0 is the oldest supported version
15 |     ],
16 |     products: [
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
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
[2/3] Emitting module Wyler
[3/3] 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': 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.1 macosSpm