Build Information
Failed to build Wyler, reference v1.0.0 (5f2448
), with Swift 6.1 for macOS (SPM) on 26 Apr 2025 08:29:07 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
Build Log
========================================
RunAll
========================================
Builder version: 4.61.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
========================================
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/124] Fetching wyler
Fetched https://github.com/toupper/Wyler.git from cache (0.89s)
Creating working copy for https://github.com/toupper/Wyler.git
Working copy of https://github.com/toupper/Wyler.git resolved at v1.0.0 (5f2448d)
warning: '.resolve-product-dependencies': dependency 'wyler' is not used by any target
Found 0 product dependencies
========================================
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.0"
}
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: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:163:7: warning: capture of 'self' with non-sendable type 'ScreenRecorder' in a '@Sendable' closure
15 | }
16 |
17 | final public class ScreenRecorder {
| `- note: class 'ScreenRecorder' does not conform to the 'Sendable' protocol
18 | private var videoOutputURL: URL?
19 | private var videoWriter: AVAssetWriter?
:
161 | self.appAudioWriterInput?.markAsFinished()
162 | self.videoWriter?.finishWriting {
163 | self.saveVideoToCameraRollAfterAuthorized(errorHandler: errorHandler)
| `- warning: capture of 'self' with non-sendable type 'ScreenRecorder' in a '@Sendable' closure
164 | }
165 | }
/Users/admin/builder/spi-builder-workspace/Wyler/Wyler/ScreenRecorder.swift:163:63: warning: capture of 'errorHandler' with non-sendable type '(any Error) -> Void' in a '@Sendable' closure
161 | self.appAudioWriterInput?.markAsFinished()
162 | self.videoWriter?.finishWriting {
163 | self.saveVideoToCameraRollAfterAuthorized(errorHandler: errorHandler)
| |- warning: capture of 'errorHandler' with non-sendable type '(any Error) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
164 | }
165 | }
/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 {
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: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.1 macosSpm