The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Failed to build Typer 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/Typer.git
Reference: v1.7.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/Typer
 * tag               v1.7.0     -> FETCH_HEAD
HEAD is now at c5d17b1 Change LICENSE to AFLv3.0
Cloned https://github.com/Samasaur1/Typer.git
Revision (git rev-parse @):
c5d17b1a5893fc173ed267d6edd04bdfb51196ef
SUCCESS checkout https://github.com/Samasaur1/Typer.git at v1.7.0
========================================
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-4606859-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:56:33: error: cannot find 'arc4random_uniform' in scope
                var sleepTime = arc4random_uniform(5)
                                ^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Typer/Typer.swift:68:33: error: cannot find 'arc4random_uniform' in scope
                var sleepTime = arc4random_uniform(5)
                                ^~~~~~~~~~~~~~~~~~
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:56:33: error: cannot find 'arc4random_uniform' in scope
                var sleepTime = arc4random_uniform(5)
                                ^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Typer/Typer.swift:68:33: error: cannot find 'arc4random_uniform' in scope
                var sleepTime = arc4random_uniform(5)
                                ^~~~~~~~~~~~~~~~~~
error: fatalError
BUILD FAILURE 5.10 linux