Build Information
Failed to build TyperTool with Swift 5.9 for Linux.
Build Command
docker run --rm -v "checkouts-4606859-0":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.19.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Samasaur1/TyperTool.git
Reference: master
Cloned https://github.com/Samasaur1/TyperTool.git into spi-builder-workspace
SUCCESS checkout https://github.com/Samasaur1/TyperTool.git at master
========================================
Build
========================================
Selected platform: linux
Swift version: 5.9
Building package at path: spi-builder-workspace
Running build ...
docker run --rm -v "checkouts-4606859-0":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1
Fetching https://github.com/Samasaur1/Typer.git
[1/334] Fetching typer
Fetched https://github.com/Samasaur1/Typer.git (0.21s)
Computing version for https://github.com/Samasaur1/Typer.git
Computed https://github.com/Samasaur1/Typer.git at 1.6.3 (0.26s)
Creating working copy for https://github.com/Samasaur1/Typer.git
Working copy of https://github.com/Samasaur1/Typer.git resolved at 1.6.3
Building for debugging...
[1/5] Emitting module Typer
[2/5] Compiling Typer Typer.swift
/host/spi-builder-workspace/.build/checkouts/Typer/Sources/Typer/Typer.swift:32:34: error: cannot find 'NSAppleScript' in scope
if let applescript = NSAppleScript(source: "tell app \"System Events\" to keystroke \(toPrint)") {
^~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Typer/Sources/Typer/Typer.swift:33:51: error: 'nil' requires a contextual type
applescript.compileAndReturnError(nil)
^
/host/spi-builder-workspace/.build/checkouts/Typer/Sources/Typer/Typer.swift:34:51: error: 'nil' requires a contextual type
applescript.executeAndReturnError(nil)
^
/host/spi-builder-workspace/.build/checkouts/Typer/Sources/Typer/Typer.swift:50:33: error: cannot find 'arc4random_uniform' in scope
var sleepTime = arc4random_uniform(5)
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Typer/Sources/Typer/Typer.swift:62:33: error: cannot find 'arc4random_uniform' in scope
var sleepTime = arc4random_uniform(5)
^~~~~~~~~~~~~~~~~~
error: fatalError
BUILD FAILURE 5.9 linux
Build Machine: Linux 1