This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.

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 TyperTool with Swift 6.0 for Linux.

Build Command

bash -c docker run --rm -v "checkouts-4609320-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Samasaur1/TyperTool.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/TyperTool
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 2542e24 Update gif (lower framerate)
Cloned https://github.com/Samasaur1/TyperTool.git
Revision (git rev-parse @):
2542e24b5cb8a117392e4936088db59f8613d728
SUCCESS checkout https://github.com/Samasaur1/TyperTool.git at master
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $workDir
https://github.com/Samasaur1/TyperTool.git
Running build ...
bash -c docker run --rm -v "checkouts-4609320-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
Fetching https://github.com/Samasaur1/Typer.git
[4/334] Fetching typer
Fetched https://github.com/Samasaur1/Typer.git from cache (0.21s)
Computing version for https://github.com/Samasaur1/Typer.git
Computed https://github.com/Samasaur1/Typer.git at 1.6.3 (0.52s)
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
30 |                 print(toPrint)
31 |             }
32 |             if let applescript = NSAppleScript(source: "tell app \"System Events\" to keystroke \(toPrint)") {
   |                                  `- error: cannot find 'NSAppleScript' in scope
33 |                 applescript.compileAndReturnError(nil)
34 |                 applescript.executeAndReturnError(nil)
/host/spi-builder-workspace/.build/checkouts/Typer/Sources/Typer/Typer.swift:33:51: error: 'nil' requires a contextual type
31 |             }
32 |             if let applescript = NSAppleScript(source: "tell app \"System Events\" to keystroke \(toPrint)") {
33 |                 applescript.compileAndReturnError(nil)
   |                                                   `- error: 'nil' requires a contextual type
34 |                 applescript.executeAndReturnError(nil)
35 |                 if debug {
/host/spi-builder-workspace/.build/checkouts/Typer/Sources/Typer/Typer.swift:34:51: error: 'nil' requires a contextual type
32 |             if let applescript = NSAppleScript(source: "tell app \"System Events\" to keystroke \(toPrint)") {
33 |                 applescript.compileAndReturnError(nil)
34 |                 applescript.executeAndReturnError(nil)
   |                                                   `- error: 'nil' requires a contextual type
35 |                 if debug {
36 |                     print("AppleScript:")
/host/spi-builder-workspace/.build/checkouts/Typer/Sources/Typer/Typer.swift:50:33: error: cannot find 'arc4random_uniform' in scope
48 |                 usleep(0100000)
49 |             case .natural:
50 |                 var sleepTime = arc4random_uniform(5)
   |                                 `- error: cannot find 'arc4random_uniform' in scope
51 |                 sleepTime *= 10000
52 |                 if debug {
/host/spi-builder-workspace/.build/checkouts/Typer/Sources/Typer/Typer.swift:62:33: error: cannot find 'arc4random_uniform' in scope
60 |                 usleep(µsecondDelay)
61 |             case let .customVarying(µsecondBaseDelay, maxVariance):
62 |                 var sleepTime = arc4random_uniform(5)
   |                                 `- error: cannot find 'arc4random_uniform' in scope
63 |                 let base = µsecondBaseDelay - maxVariance
64 |                 sleepTime *= (maxVariance / 2)
BUILD FAILURE 6.0 linux
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.