Build Information
Failed to build Typer with Swift 5.10 for Linux.
Build Command
bash -c docker run --rm -v "checkouts-4609320-1":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.29.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Samasaur1/Typer.git
Reference: master
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/Samasaur1/Typer
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at e49f498 Only add transition function when supported (Swift 4.2+)
Cloned https://github.com/Samasaur1/Typer.git
Revision (git rev-parse @):
e49f498cfb7dc45e1091751e5015b2ffec34280f
SUCCESS checkout https://github.com/Samasaur1/Typer.git at master
========================================
Build
========================================
Selected platform: linux
Swift version: 5.10
Building package at path: $workDir
https://github.com/Samasaur1/Typer.git
Running build ...
bash -c docker run --rm -v "checkouts-4609320-1":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/4] Emitting module Typer
[4/4] Compiling Typer Typer.swift
/host/spi-builder-workspace/Sources/Typer/Typer.swift:38:34: error: cannot find 'NSAppleScript' in scope
if let applescript = NSAppleScript(source: "tell app \"System Events\" to keystroke \(toPrint)") {
^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Typer/Typer.swift:39:51: error: 'nil' requires a contextual type
applescript.compileAndReturnError(nil)
^
/host/spi-builder-workspace/Sources/Typer/Typer.swift:40:51: error: 'nil' requires a contextual type
applescript.executeAndReturnError(nil)
^
/host/spi-builder-workspace/Sources/Typer/Typer.swift:57:30: error: cannot find 'arc4random_uniform' in scope
sleepTime += arc4random_uniform(5) * 10000
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Typer/Typer.swift:69:33: error: cannot find 'arc4random_uniform' in scope
var sleepTime = arc4random_uniform(5)
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Typer/Typer.swift:86:23: error: cannot find 'arc4random_uniform' in scope
base += Int64(arc4random_uniform(5) * 1000)
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Typer/Typer.swift:87:23: error: cannot find 'arc4random_uniform' in scope
base += Int64(arc4random_uniform(11) * 100)
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Typer/Typer.swift:88:23: error: cannot find 'arc4random_uniform' in scope
base += Int64(arc4random_uniform(21) * 10)
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Typer/Typer.swift:89:23: error: cannot find 'arc4random_uniform' in scope
base += Int64(arc4random_uniform(21))
^~~~~~~~~~~~~~~~~~
error: fatalError
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/3] Emitting module Typer
[3/3] Compiling Typer Typer.swift
/host/spi-builder-workspace/Sources/Typer/Typer.swift:38:34: error: cannot find 'NSAppleScript' in scope
if let applescript = NSAppleScript(source: "tell app \"System Events\" to keystroke \(toPrint)") {
^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Typer/Typer.swift:39:51: error: 'nil' requires a contextual type
applescript.compileAndReturnError(nil)
^
/host/spi-builder-workspace/Sources/Typer/Typer.swift:40:51: error: 'nil' requires a contextual type
applescript.executeAndReturnError(nil)
^
/host/spi-builder-workspace/Sources/Typer/Typer.swift:57:30: error: cannot find 'arc4random_uniform' in scope
sleepTime += arc4random_uniform(5) * 10000
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Typer/Typer.swift:69:33: error: cannot find 'arc4random_uniform' in scope
var sleepTime = arc4random_uniform(5)
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Typer/Typer.swift:86:23: error: cannot find 'arc4random_uniform' in scope
base += Int64(arc4random_uniform(5) * 1000)
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Typer/Typer.swift:87:23: error: cannot find 'arc4random_uniform' in scope
base += Int64(arc4random_uniform(11) * 100)
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Typer/Typer.swift:88:23: error: cannot find 'arc4random_uniform' in scope
base += Int64(arc4random_uniform(21) * 10)
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Typer/Typer.swift:89:23: error: cannot find 'arc4random_uniform' in scope
base += Int64(arc4random_uniform(21))
^~~~~~~~~~~~~~~~~~
error: fatalError
BUILD FAILURE 5.10 linux