The Swift Package Index logo.Swift Package Index

Build Information

Failed to build TyperTool with Swift 5.10 for Linux.

Build Command

bash -c docker run --rm -v "checkouts-4606859-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/TyperTool.git
Reference: v1.0.0
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/TyperTool
 * tag               v1.0.0     -> FETCH_HEAD
HEAD is now at ff52632 Update Package.resolved
Cloned https://github.com/Samasaur1/TyperTool.git
Revision (git rev-parse @):
ff52632330171292fd071b249139322ad2233a7f
SUCCESS checkout https://github.com/Samasaur1/TyperTool.git at v1.0.0
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.10
Building package at path:  $workDir
https://github.com/Samasaur1/TyperTool.git
Running build ...
bash -c docker run --rm -v "checkouts-4606859-1":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1
Fetching https://github.com/Samasaur1/Typer.git
[1/334] Fetching typer
Fetched https://github.com/Samasaur1/Typer.git from cache (0.20s)
Computing version for https://github.com/Samasaur1/Typer.git
Computed https://github.com/Samasaur1/Typer.git at 1.6.3 (0.38s)
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...
[0/7] Write sources
[2/7] Write swift-version-24593BA9C3E375BF.txt
[4/9] Emitting module Typer
[5/9] 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
[0/1] Planning build
Building for debugging...
[0/5] Write swift-version-24593BA9C3E375BF.txt
[2/7] Emitting module Typer
[3/7] 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.10 linux

Build Machine: Linux 1