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

Successful build of RPG-card-generator, reference v0.6.0 (e852b6), with Swift 6.1 for macOS (SPM) on 25 Apr 2025 18:45:37 UTC.

Swift 6 data race errors: 0

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64

Build Log

========================================
RunAll
========================================
Builder version: 4.61.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Samasaur1/RPG-card-generator.git
Reference: v0.6.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/Samasaur1/RPG-card-generator
 * tag               v0.6.0     -> FETCH_HEAD
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 v0.6.0
Fetching https://github.com/JohnSundell/Files
Fetching https://github.com/onevcat/Rainbow
[1/1236] Fetching files
[212/2432] Fetching files, rainbow
Fetched https://github.com/JohnSundell/Files from cache (0.76s)
[742/1196] Fetching rainbow
Fetched https://github.com/onevcat/Rainbow from cache (0.90s)
Computing version for https://github.com/onevcat/Rainbow
Computed https://github.com/onevcat/Rainbow at 3.1.4 (1.48s)
Computing version for https://github.com/JohnSundell/Files
Computed https://github.com/JohnSundell/Files at 2.2.1 (0.57s)
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
[1/140] Fetching rpg-card-generator
Fetched https://github.com/Samasaur1/RPG-card-generator.git from cache (0.72s)
Fetching https://github.com/onevcat/Rainbow from cache
Fetching https://github.com/JohnSundell/Files from cache
Fetched https://github.com/JohnSundell/Files from cache (0.48s)
Fetched https://github.com/onevcat/Rainbow from cache (0.48s)
Computing version for https://github.com/JohnSundell/Files
Computed https://github.com/JohnSundell/Files at 2.3.0 (0.54s)
Computing version for https://github.com/onevcat/Rainbow
Computed https://github.com/onevcat/Rainbow at 3.2.0 (0.02s)
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/onevcat/Rainbow
Working copy of https://github.com/onevcat/Rainbow resolved at 3.2.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 v0.6.0 (e852b6d)
Found 2 product dependencies
  - Files
  - Rainbow
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/Samasaur1/RPG-card-generator.git
https://github.com/Samasaur1/RPG-card-generator.git
{
  "dependencies" : [
    {
      "identity" : "files",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "2.2.1",
            "upper_bound" : "3.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/JohnSundell/Files"
    },
    {
      "identity" : "rainbow",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "3.1.4",
            "upper_bound" : "4.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/onevcat/Rainbow"
    }
  ],
  "manifest_display_name" : "RPG-card-generator",
  "name" : "RPG-card-generator",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "RPGCardGenerator",
      "targets" : [
        "RPG-card-generator"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "RPG_card_generator",
      "module_type" : "SwiftTarget",
      "name" : "RPG-card-generator",
      "path" : "Sources/RPG-card-generator",
      "product_dependencies" : [
        "Files",
        "Rainbow"
      ],
      "product_memberships" : [
        "RPGCardGenerator"
      ],
      "sources" : [
        "main.swift"
      ],
      "type" : "executable"
    }
  ],
  "tools_version" : "4.0"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/8] Write sources
[3/8] Write RPGCardGenerator-entitlement.plist
[4/8] Write swift-version-2F0A5646E1D333AE.txt
[6/21] Compiling Rainbow StringGenerator.swift
[7/22] Emitting module Rainbow
[8/22] Compiling Rainbow String+Rainbow.swift
[9/22] Compiling Rainbow XcodeColorsSupport.swift
[10/22] Compiling Rainbow OutputTarget.swift
[11/22] Compiling Rainbow Style.swift
[12/22] Compiling Rainbow ModesExtractor.swift
[13/22] Compiling Rainbow ControlCode.swift
[14/22] Compiling Rainbow BackgroundColor.swift
[15/22] Compiling Rainbow CodesParser.swift
[16/22] Compiling Rainbow Color.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
397 |
398 |                 print("Successfully initialized RPGSTDLIB")
399 |                 completion()
    |                 |- warning: capture of 'completion' with non-sendable type '() -> ()' in a '@Sendable' closure
    |                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
400 |             } catch let writeError {
401 |                 print(writeError.localizedDescription)
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
[0/1] Planning build
Building for debugging...
[0/4] Write swift-version-2F0A5646E1D333AE.txt
[2/17] Compiling Rainbow Rainbow.swift
[3/17] Compiling Rainbow Style.swift
[4/18] Compiling Rainbow StringGenerator.swift
[5/18] Compiling Rainbow OutputTarget.swift
[6/18] Compiling Rainbow String+Rainbow.swift
[7/18] Compiling Rainbow Color.swift
[8/18] Compiling Rainbow BackgroundColor.swift
[9/18] Compiling Rainbow CodesParser.swift
[10/18] Compiling Rainbow ControlCode.swift
[11/18] Emitting module Rainbow
[12/18] Compiling Rainbow ModesExtractor.swift
[13/18] Emitting module Files
[14/18] Compiling Files Files.swift
[15/18] Compiling Rainbow XcodeColorsSupport.swift
[16/20] 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")
[17/20] Emitting module RPG_card_generator
[17/20] Write Objects.LinkFileList
[18/20] Linking RPGCardGenerator
[19/20] Applying RPGCardGenerator
Build complete! (2.59s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "files",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "2.2.1",
            "upper_bound" : "3.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/JohnSundell/Files"
    },
    {
      "identity" : "rainbow",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "3.1.4",
            "upper_bound" : "4.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/onevcat/Rainbow"
    }
  ],
  "manifest_display_name" : "RPG-card-generator",
  "name" : "RPG-card-generator",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "RPGCardGenerator",
      "targets" : [
        "RPG-card-generator"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "RPG_card_generator",
      "module_type" : "SwiftTarget",
      "name" : "RPG-card-generator",
      "path" : "Sources/RPG-card-generator",
      "product_dependencies" : [
        "Files",
        "Rainbow"
      ],
      "product_memberships" : [
        "RPGCardGenerator"
      ],
      "sources" : [
        "main.swift"
      ],
      "type" : "executable"
    }
  ],
  "tools_version" : "4.0"
}
Done.