Build Information
Failed to build RPG-card-generator, reference master (e852b6
), with Swift 6.0 for macOS (SPM) on 31 Oct 2024 23:14:21 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Samasaur1/RPG-card-generator.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/Samasaur1/RPG-card-generator
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at e852b6d Update RPGSTDLIB with four more spells
Cloned https://github.com/Samasaur1/RPG-card-generator.git
Revision (git rev-parse @):
e852b6d565d973f82d3d3e46eb9dbcbc949b95e8
SUCCESS checkout https://github.com/Samasaur1/RPG-card-generator.git at master
Fetching https://github.com/JohnSundell/Files
Fetching https://github.com/onevcat/Rainbow
[1/1231] Fetching files
[149/2357] Fetching files, rainbow
Fetched https://github.com/onevcat/Rainbow from cache (1.00s)
Fetched https://github.com/JohnSundell/Files from cache (1.00s)
Computing version for https://github.com/onevcat/Rainbow
Computed https://github.com/onevcat/Rainbow at 3.1.4 (0.66s)
Computing version for https://github.com/JohnSundell/Files
Computed https://github.com/JohnSundell/Files at 2.2.1 (0.65s)
Creating working copy for https://github.com/onevcat/Rainbow
Working copy of https://github.com/onevcat/Rainbow resolved at 3.1.4
Creating working copy for https://github.com/JohnSundell/Files
Working copy of https://github.com/JohnSundell/Files resolved at 2.2.1
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"dependencies": [
{
"identity": "rpg-card-generator",
"name": "RPG-card-generator",
"url": "https://github.com/Samasaur1/RPG-card-generator.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/RPG-card-generator",
"dependencies": [
{
"identity": "files",
"name": "Files",
"url": "https://github.com/JohnSundell/Files",
"version": "2.3.0",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Files",
"dependencies": [
]
},
{
"identity": "rainbow",
"name": "Rainbow",
"url": "https://github.com/onevcat/Rainbow",
"version": "3.2.0",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Rainbow",
"dependencies": [
]
}
]
}
]
}
Fetching https://github.com/Samasaur1/RPG-card-generator.git
[3/140] Fetching rpg-card-generator
Fetched https://github.com/Samasaur1/RPG-card-generator.git from cache (0.78s)
Fetching https://github.com/onevcat/Rainbow from cache
Fetching https://github.com/JohnSundell/Files from cache
Fetched https://github.com/JohnSundell/Files from cache (1.72s)
Fetched https://github.com/onevcat/Rainbow from cache (1.72s)
Computing version for https://github.com/JohnSundell/Files
Computed https://github.com/JohnSundell/Files at 2.3.0 (0.03s)
Computing version for https://github.com/onevcat/Rainbow
Computed https://github.com/onevcat/Rainbow at 3.2.0 (0.03s)
Creating working copy for https://github.com/onevcat/Rainbow
Working copy of https://github.com/onevcat/Rainbow resolved at 3.2.0
Creating working copy for https://github.com/JohnSundell/Files
Working copy of https://github.com/JohnSundell/Files resolved at 2.3.0
Creating working copy for https://github.com/Samasaur1/RPG-card-generator.git
Working copy of https://github.com/Samasaur1/RPG-card-generator.git resolved at master (e852b6d)
Found 2 product dependencies
- Files
- Rainbow
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/Samasaur1/RPG-card-generator.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/8] Write sources
[3/8] Write RPGCardGenerator-entitlement.plist
[4/8] Write swift-version--7754E27361AE5C74.txt
[6/21] Compiling Rainbow Style.swift
[7/22] Emitting module Rainbow
[8/22] Compiling Rainbow BackgroundColor.swift
[9/22] Compiling Rainbow CodesParser.swift
[10/22] Compiling Rainbow XcodeColorsSupport.swift
[11/22] Compiling Rainbow ModesExtractor.swift
[12/22] Compiling Rainbow Color.swift
[13/22] Compiling Rainbow ControlCode.swift
[14/22] Compiling Rainbow StringGenerator.swift
[15/22] Compiling Rainbow String+Rainbow.swift
[16/22] Compiling Rainbow OutputTarget.swift
[17/22] Compiling Rainbow Rainbow.swift
[18/22] Emitting module Files
[19/22] Compiling Files Files.swift
[20/24] Emitting module RPG_card_generator
[21/24] Compiling RPG_card_generator main.swift
/Users/admin/builder/spi-builder-workspace/Sources/RPG-card-generator/main.swift:188:9: warning: initialization of immutable value 'icon' was never used; consider replacing with assignment to '_' or removing it
186 | }
187 | func createEquipment() {
188 | let icon = ["barbute", "breastplate", "visored-helm", "steeltoe-boots"]
| `- warning: initialization of immutable value 'icon' was never used; consider replacing with assignment to '_' or removing it
189 | }
190 | func createArmor() {
/Users/admin/builder/spi-builder-workspace/Sources/RPG-card-generator/main.swift:351:17: warning: initialization of immutable value 'icon' was never used; consider replacing with assignment to '_' or removing it
349 | ], tags: ["ammunition"], icon_back: "quiver", icon: "arrow-cluster", titleSize: "16")
350 | } else if type.equalsIgnoreCase("blowgun dart", "blowgun darts", "dart", "darts") {
351 | let icon = "dart"
| `- warning: initialization of immutable value 'icon' was never used; consider replacing with assignment to '_' or removing it
352 | } else {
353 | print("Not recognized, canceling")
/Users/admin/builder/spi-builder-workspace/Sources/RPG-card-generator/main.swift:359:5: error: main actor-isolated var 'jsonObject' can not be mutated from a nonisolated context
30 | }
31 | }
32 | var jsonObject: [[String: Any]] = []
| `- note: mutation of this var is only permitted within the actor
33 | func createSpell() {
34 | print("Creating a spell...")
:
356 | }
357 | }
358 | func addCard(title: String, contents: [String], tags: [String], icon_back: String, icon: String, titleSize: String) {
| `- note: add '@MainActor' to make global function 'addCard(title:contents:tags:icon_back:icon:titleSize:)' part of global actor 'MainActor'
359 | jsonObject.append(["count": 1, "title": title, "contents": contents, "tags": tags, "color": "black", "icon_back": icon_back, "icon": icon, "title_size": titleSize])
| `- error: main actor-isolated var 'jsonObject' can not be mutated from a nonisolated context
360 | }
361 |
/Users/admin/builder/spi-builder-workspace/Sources/RPG-card-generator/main.swift:366:82: error: main actor-isolated var 'jsonObject' can not be referenced from a nonisolated context
30 | }
31 | }
32 | var jsonObject: [[String: Any]] = []
| `- note: var declared here
33 | func createSpell() {
34 | print("Creating a spell...")
:
360 | }
361 |
362 | func save() {
| `- note: add '@MainActor' to make global function 'save()' part of global actor 'MainActor'
363 | print("Output filename?")
364 | let fileName = readLine()!
365 | do {
366 | let jsonString = String(data: try JSONSerialization.data(withJSONObject: jsonObject, options: .prettyPrinted), encoding: .utf8)!
| `- error: main actor-isolated var 'jsonObject' can not be referenced from a nonisolated context
367 | try Folder.current.createFileIfNeeded(withName: fileName).write(string: jsonString)
368 | } catch let error {
/Users/admin/builder/spi-builder-workspace/Sources/RPG-card-generator/main.swift:399:17: warning: capture of 'completion' with non-sendable type '() -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
397 |
398 | print("Successfully initialized RPGSTDLIB")
399 | completion()
| |- warning: capture of 'completion' with non-sendable type '() -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
400 | } catch let writeError {
401 | print(writeError.localizedDescription)
BUILD FAILURE 6.0 macosSpm