Build Information
Failed to build Wyler with Swift 5.9 for macOS (SPM).
Build Command
Build command unavailable
Build Log
========================================
RunAll
========================================
Builder version: 4.27.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/toupper/Wyler.git
Reference: master
Initialized empty Git repository in /Users/admin/builds/J1XnyXFH/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/.git/
From https://github.com/toupper/Wyler
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
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 master
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builds/J1XnyXFH/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builds/J1XnyXFH/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/.resolve-product-dependencies",
"dependencies": [
{
"identity": "wyler",
"name": "Wyler",
"url": "https://github.com/toupper/Wyler.git",
"version": "unspecified",
"path": "/Users/admin/builds/J1XnyXFH/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Wyler",
"dependencies": [
]
}
]
}
Fetching https://github.com/toupper/Wyler.git
[1/114] Fetching wyler
Fetched https://github.com/toupper/Wyler.git (0.39s)
Creating working copy for https://github.com/toupper/Wyler.git
Working copy of https://github.com/toupper/Wyler.git resolved at master
warning: '.resolve-product-dependencies': dependency 'wyler' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 5.9
Building package at path: $PWD/checkout
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.0.0.app xcrun swift build --arch arm64
Building for debugging...
[1/2] Emitting module Wyler
[2/2] Compiling Wyler ScreenRecorder.swift
/Users/admin/builds/J1XnyXFH/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Wyler/Wyler/ScreenRecorder.swift:82:39: error: cannot find 'UIScreen' in scope
let passingSize: CGSize = size ?? UIScreen.main.bounds.size
^~~~~~~~
/Users/admin/builds/J1XnyXFH/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Wyler/Wyler/ScreenRecorder.swift:112:14: error: 'startCapture(handler:completionHandler:)' is only available in macOS 11.0 or newer
recorder.startCapture(handler: { (sampleBuffer, sampleType, passedError) in
^
/Users/admin/builds/J1XnyXFH/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Wyler/Wyler/ScreenRecorder.swift:112:14: note: add 'if #available' version check
recorder.startCapture(handler: { (sampleBuffer, sampleType, passedError) in
^
/Users/admin/builds/J1XnyXFH/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Wyler/Wyler/ScreenRecorder.swift:111:16: note: add @available attribute to enclosing instance method
private func startCapture(error: @escaping (Error) -> Void) {
^
/Users/admin/builds/J1XnyXFH/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Wyler/Wyler/ScreenRecorder.swift:17:20: note: add @available attribute to enclosing class
final public class ScreenRecorder {
^
/Users/admin/builds/J1XnyXFH/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Wyler/Wyler/ScreenRecorder.swift:153:31: error: 'stopCapture(handler:)' is only available in macOS 11.0 or newer
RPScreenRecorder.shared().stopCapture( handler: { error in
^
/Users/admin/builds/J1XnyXFH/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Wyler/Wyler/ScreenRecorder.swift:153:31: note: add 'if #available' version check
RPScreenRecorder.shared().stopCapture( handler: { error in
^
/Users/admin/builds/J1XnyXFH/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Wyler/Wyler/ScreenRecorder.swift:152:15: note: add @available attribute to enclosing instance method
public func stoprecording(errorHandler: @escaping (Error) -> Void) {
^
/Users/admin/builds/J1XnyXFH/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Wyler/Wyler/ScreenRecorder.swift:17:20: note: add @available attribute to enclosing class
final public class ScreenRecorder {
^
/Users/admin/builds/J1XnyXFH/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Wyler/Wyler/ScreenRecorder.swift:187:7: error: 'PHAssetChangeRequest' is only available in macOS 10.15 or newer
PHAssetChangeRequest.creationRequestForAssetFromVideo(atFileURL: videoOutputURL)
^
/Users/admin/builds/J1XnyXFH/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Wyler/Wyler/ScreenRecorder.swift:187:7: note: add 'if #available' version check
PHAssetChangeRequest.creationRequestForAssetFromVideo(atFileURL: videoOutputURL)
^
/Users/admin/builds/J1XnyXFH/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Wyler/Wyler/ScreenRecorder.swift:181:16: note: add @available attribute to enclosing instance method
private func saveVideoToCameraRoll(errorHandler: @escaping (Error) -> Void) {
^
/Users/admin/builds/J1XnyXFH/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Wyler/Wyler/ScreenRecorder.swift:17:20: note: add @available attribute to enclosing class
final public class ScreenRecorder {
^
/Users/admin/builds/J1XnyXFH/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Wyler/Wyler/ScreenRecorder.swift:187:28: error: 'creationRequestForAssetFromVideo(atFileURL:)' is only available in macOS 10.15 or newer
PHAssetChangeRequest.creationRequestForAssetFromVideo(atFileURL: videoOutputURL)
^
/Users/admin/builds/J1XnyXFH/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Wyler/Wyler/ScreenRecorder.swift:187:28: note: add 'if #available' version check
PHAssetChangeRequest.creationRequestForAssetFromVideo(atFileURL: videoOutputURL)
^
/Users/admin/builds/J1XnyXFH/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Wyler/Wyler/ScreenRecorder.swift:181:16: note: add @available attribute to enclosing instance method
private func saveVideoToCameraRoll(errorHandler: @escaping (Error) -> Void) {
^
/Users/admin/builds/J1XnyXFH/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Wyler/Wyler/ScreenRecorder.swift:17:20: note: add @available attribute to enclosing class
final public class ScreenRecorder {
^
error: fatalError
[0/1] Planning build
Building for debugging...
[1/2] Emitting module Wyler
[2/2] Compiling Wyler ScreenRecorder.swift
/Users/admin/builds/J1XnyXFH/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Wyler/Wyler/ScreenRecorder.swift:82:39: error: cannot find 'UIScreen' in scope
let passingSize: CGSize = size ?? UIScreen.main.bounds.size
^~~~~~~~
/Users/admin/builds/J1XnyXFH/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Wyler/Wyler/ScreenRecorder.swift:112:14: error: 'startCapture(handler:completionHandler:)' is only available in macOS 11.0 or newer
recorder.startCapture(handler: { (sampleBuffer, sampleType, passedError) in
^
/Users/admin/builds/J1XnyXFH/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Wyler/Wyler/ScreenRecorder.swift:112:14: note: add 'if #available' version check
recorder.startCapture(handler: { (sampleBuffer, sampleType, passedError) in
^
/Users/admin/builds/J1XnyXFH/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Wyler/Wyler/ScreenRecorder.swift:111:16: note: add @available attribute to enclosing instance method
private func startCapture(error: @escaping (Error) -> Void) {
^
/Users/admin/builds/J1XnyXFH/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Wyler/Wyler/ScreenRecorder.swift:17:20: note: add @available attribute to enclosing class
final public class ScreenRecorder {
^
/Users/admin/builds/J1XnyXFH/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Wyler/Wyler/ScreenRecorder.swift:153:31: error: 'stopCapture(handler:)' is only available in macOS 11.0 or newer
RPScreenRecorder.shared().stopCapture( handler: { error in
^
/Users/admin/builds/J1XnyXFH/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Wyler/Wyler/ScreenRecorder.swift:153:31: note: add 'if #available' version check
RPScreenRecorder.shared().stopCapture( handler: { error in
^
/Users/admin/builds/J1XnyXFH/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Wyler/Wyler/ScreenRecorder.swift:152:15: note: add @available attribute to enclosing instance method
public func stoprecording(errorHandler: @escaping (Error) -> Void) {
^
/Users/admin/builds/J1XnyXFH/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Wyler/Wyler/ScreenRecorder.swift:17:20: note: add @available attribute to enclosing class
final public class ScreenRecorder {
^
/Users/admin/builds/J1XnyXFH/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Wyler/Wyler/ScreenRecorder.swift:187:7: error: 'PHAssetChangeRequest' is only available in macOS 10.15 or newer
PHAssetChangeRequest.creationRequestForAssetFromVideo(atFileURL: videoOutputURL)
^
/Users/admin/builds/J1XnyXFH/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Wyler/Wyler/ScreenRecorder.swift:187:7: note: add 'if #available' version check
PHAssetChangeRequest.creationRequestForAssetFromVideo(atFileURL: videoOutputURL)
^
/Users/admin/builds/J1XnyXFH/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Wyler/Wyler/ScreenRecorder.swift:181:16: note: add @available attribute to enclosing instance method
private func saveVideoToCameraRoll(errorHandler: @escaping (Error) -> Void) {
^
/Users/admin/builds/J1XnyXFH/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Wyler/Wyler/ScreenRecorder.swift:17:20: note: add @available attribute to enclosing class
final public class ScreenRecorder {
^
/Users/admin/builds/J1XnyXFH/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Wyler/Wyler/ScreenRecorder.swift:187:28: error: 'creationRequestForAssetFromVideo(atFileURL:)' is only available in macOS 10.15 or newer
PHAssetChangeRequest.creationRequestForAssetFromVideo(atFileURL: videoOutputURL)
^
/Users/admin/builds/J1XnyXFH/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Wyler/Wyler/ScreenRecorder.swift:187:28: note: add 'if #available' version check
PHAssetChangeRequest.creationRequestForAssetFromVideo(atFileURL: videoOutputURL)
^
/Users/admin/builds/J1XnyXFH/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Wyler/Wyler/ScreenRecorder.swift:181:16: note: add @available attribute to enclosing instance method
private func saveVideoToCameraRoll(errorHandler: @escaping (Error) -> Void) {
^
/Users/admin/builds/J1XnyXFH/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Wyler/Wyler/ScreenRecorder.swift:17:20: note: add @available attribute to enclosing class
final public class ScreenRecorder {
^
error: fatalError
BUILD FAILURE 5.9 macosSpm